3
0
Fork 0

## 隐藏添加产品中进销存接口调用;

This commit is contained in:
cabbage 2025-07-07 16:46:42 +08:00
parent 5e4befb340
commit 08dcf48590
1 changed files with 73 additions and 71 deletions

View File

@ -366,70 +366,72 @@
{{ '确认' }}</el-button>
</div>
</div>
<!-- 产品弹框 -->
<el-dialog
:title="'添加'"
:visible.sync="dialogVisible"
:close-on-click-modal="false"
width="50%"
center
:before-close="handleClose1"
>
<div class="cpHeight">
<el-row>
<el-col :span="22">
<el-input
v-model="select.query"
clearable
:placeholder="'请输入'"
prefix-icon="el-icon-search"
@keyup.enter.native="getProduct"
/>
</el-col>
<el-col :span="2">
<el-button type="primary" size="small" @click="getProduct">
{{ '搜索' }}</el-button>
</el-col>
</el-row>
<div style="height: 10px" />
<el-table
ref="multipleTable"
:data="productList"
height="500px"
style="width: 100%"
:header-cell-style="{ background: '#EEEEEE' }"
:row-class-name="tableRowClassName"
@select-all="onSelectAll"
@select="selected"
>
<el-table-column type="selection" width="55" />
<el-table-column
align="center"
prop="productName"
:label="'产品名称'"
/>
<el-table-column
align="center"
prop="productCode"
:label="'产品编号'"
/>
<el-table-column align="center" prop="unitStr" :label="'单位'" />
</el-table>
</div>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getProduct"
/>
<span slot="footer" class="dialog-footer">
<el-button @click="handleClose1">{{ '取消' }}</el-button>
<el-button type="primary" @click="sureProduct">{{
'确认'
}}</el-button>
</span>
</el-dialog>
<!-- <el-dialog-->
<!-- :title="'添加'"-->
<!-- :visible.sync="dialogVisible"-->
<!-- :close-on-click-modal="false"-->
<!-- width="50%"-->
<!-- center-->
<!-- :before-close="handleClose1"-->
<!-- >-->
<!-- <div class="cpHeight">-->
<!-- <el-row>-->
<!-- <el-col :span="22">-->
<!-- <el-input-->
<!-- v-model="select.query"-->
<!-- clearable-->
<!-- :placeholder="'请输入'"-->
<!-- prefix-icon="el-icon-search"-->
<!-- @keyup.enter.native="getProduct"-->
<!-- />-->
<!-- </el-col>-->
<!-- <el-col :span="2">-->
<!-- <el-button type="primary" size="small" @click="getProduct">-->
<!-- {{ '搜索' }}</el-button>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <div style="height: 10px" />-->
<!-- <el-table-->
<!-- ref="multipleTable"-->
<!-- :data="productList"-->
<!-- height="500px"-->
<!-- style="width: 100%"-->
<!-- :header-cell-style="{ background: '#EEEEEE' }"-->
<!-- :row-class-name="tableRowClassName"-->
<!-- @select-all="onSelectAll"-->
<!-- @select="selected"-->
<!-- >-->
<!-- <el-table-column type="selection" width="55" />-->
<!-- <el-table-column-->
<!-- align="center"-->
<!-- prop="productName"-->
<!-- :label="'产品名称'"-->
<!-- />-->
<!-- <el-table-column-->
<!-- align="center"-->
<!-- prop="productCode"-->
<!-- :label="'产品编号'"-->
<!-- />-->
<!-- <el-table-column align="center" prop="unitStr" :label="'单位'" />-->
<!-- </el-table>-->
<!-- </div>-->
<!-- <pagination-->
<!-- v-show="total > 0"-->
<!-- :total="total"-->
<!-- :page.sync="queryParams.pageNum"-->
<!-- :limit.sync="queryParams.pageSize"-->
<!-- @pagination="getProduct"-->
<!-- />-->
<!-- <span slot="footer" class="dialog-footer">-->
<!-- <el-button @click="handleClose1">{{ '取消' }}</el-button>-->
<!-- <el-button type="primary" @click="sureProduct">{{-->
<!-- '确认'-->
<!-- }}</el-button>-->
<!-- </span>-->
<!-- </el-dialog>-->
<!-- 规格 -->
<el-dialog
:title="'添加'"
@ -658,8 +660,8 @@ export default {
this.getProductCode()
//
this.getSort()
//
this.getProduct()
// //
// this.getProduct()
},
methods: {
sureProduct() {
@ -682,12 +684,12 @@ export default {
opProduct() {
this.dialogVisible = true
},
getProduct() {
api.productFind1(Object.assign({}, this.queryParams, this.select)).then((res) => {
this.productList = res.rows
this.total = res.total
})
},
// getProduct() {
// api.productFind1(Object.assign({}, this.queryParams, this.select)).then((res) => {
// this.productList = res.rows
// this.total = res.total
// })
// },
getRepurchaseType() {
api.repurchaseType().then((res) => {
this.repurchaseTypeList = res.data