|
|
|
@ -254,9 +254,12 @@
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="productList" style="width: 100%"
|
|
|
|
|
highlight-current-row="false"
|
|
|
|
|
:row-key="getRowKeys"
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
ref="multipleTable">
|
|
|
|
|
<el-table-column
|
|
|
|
|
type="selection"
|
|
|
|
|
:reserve-selection="true"
|
|
|
|
|
width="55">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
@ -277,6 +280,7 @@
|
|
|
|
|
|
|
|
|
|
<el-pagination
|
|
|
|
|
:page-size="filterQuery.limit"
|
|
|
|
|
:current-page="filterQuery.page"
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
|
layout="prev, pager, next"
|
|
|
|
|
:total="total"
|
|
|
|
@ -378,10 +382,12 @@ export default {
|
|
|
|
|
codeQuery: {
|
|
|
|
|
productId: null,
|
|
|
|
|
orderIdFk: null,
|
|
|
|
|
batchNo: null,
|
|
|
|
|
edit: true
|
|
|
|
|
},
|
|
|
|
|
codesVisible: false,
|
|
|
|
|
disableSpace: false
|
|
|
|
|
disableSpace: false,
|
|
|
|
|
multiProduct: []
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
@ -506,12 +512,11 @@ export default {
|
|
|
|
|
this.getInvProducts();
|
|
|
|
|
},
|
|
|
|
|
combine() {
|
|
|
|
|
let selection = this.$refs.multipleTable.selection;
|
|
|
|
|
if (selection.length === 0) {
|
|
|
|
|
if (this.multiProduct.length === 0) {
|
|
|
|
|
this.$message.warning("请选择产品");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
selection.forEach(product => {
|
|
|
|
|
this.multiProduct.forEach(product => {
|
|
|
|
|
this.countProductList.push(product);
|
|
|
|
|
})
|
|
|
|
|
if (this.codeArray.length === 0) {
|
|
|
|
@ -537,6 +542,7 @@ export default {
|
|
|
|
|
getCountOrderDetailList(detailParam).then((result) => {
|
|
|
|
|
this.codeArray = result.data.list || [];
|
|
|
|
|
});
|
|
|
|
|
this.getCountOrderCodesNum();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.message);
|
|
|
|
|
}
|
|
|
|
@ -549,6 +555,7 @@ export default {
|
|
|
|
|
this.codeQuery = {
|
|
|
|
|
orderIdFk: row.orderIdFk,
|
|
|
|
|
productId: row.productId,
|
|
|
|
|
batchNo: row.batchNo,
|
|
|
|
|
edit: true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -623,7 +630,7 @@ export default {
|
|
|
|
|
invWarehouseCode: this.formData.invWarehouseCode
|
|
|
|
|
};
|
|
|
|
|
getCountInvProductProduct(params).then((res) => {
|
|
|
|
|
if (res.data.length !== 0) {
|
|
|
|
|
if (res.data.total !== 0) {
|
|
|
|
|
let invProductList = res.data.list;
|
|
|
|
|
for (let product of invProductList) {
|
|
|
|
|
this.countProductList.push(product);
|
|
|
|
@ -642,7 +649,7 @@ export default {
|
|
|
|
|
invSpaceCode: this.formData.invSpaceCode
|
|
|
|
|
};
|
|
|
|
|
getCountInvProductProduct(params).then((res) => {
|
|
|
|
|
if (res.data.length !== 0) {
|
|
|
|
|
if (res.data.total !== 0) {
|
|
|
|
|
let invProductList = res.data.list;
|
|
|
|
|
for (let product of invProductList) {
|
|
|
|
|
this.countProductList.push(product);
|
|
|
|
@ -655,10 +662,21 @@ export default {
|
|
|
|
|
this.$message.warning("请先选盘点仓库");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.multiProduct = [];
|
|
|
|
|
this.selectInvProductVisible = true;
|
|
|
|
|
this.queryInvProducts();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getRowKeys(row) {
|
|
|
|
|
return row.id;
|
|
|
|
|
},
|
|
|
|
|
handleSelectionChange(selectedRows) {
|
|
|
|
|
this.multiProduct = [];
|
|
|
|
|
selectedRows.forEach(item => {
|
|
|
|
|
this.multiProduct.push(item);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
countOrderCodes
|
|
|
|
|