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