Subject: [PATCH] fix: 开启和修复整单盘点功能 fix: 开启和修复整单盘点功能 --- Index: src/views/inventory/count/InvCountOrderModify.vue IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/src/views/inventory/count/InvCountOrderModify.vue b/src/views/inventory/count/InvCountOrderModify.vue --- a/src/views/inventory/count/InvCountOrderModify.vue (revision 6877dcc229f0592427c367ec58272414a20aabcd) +++ b/src/views/inventory/count/InvCountOrderModify.vue (revision e80a4233bb02b3bc8c6f5c807fde3f709a1b2da9) @@ -130,7 +130,7 @@ v-if="countType != 2" type="primary" size="mini" - + :disabled="startCountVisible" @click.native="startCount(1)" >录入产品 @@ -431,6 +431,7 @@ selectedIndex: null, isCodeAlive: true, saveLoading: false, + startCountVisible: false, submitLoading: false, } }, @@ -711,6 +712,7 @@ }); }, startCount(val) { + // this.countProductList = []; if (this.countType === 0 && val === 1) { if (isBlank(this.formData.invStorageCode)) { @@ -724,9 +726,22 @@ }; getCountInvProductProduct(params).then((res) => { if (res.data.total !== 0) { + this.startCountVisible = true let invProductList = res.data.list; for (let product of invProductList) { - this.countProductList.push(product); + let product2 = { + orderIdFk: this.formData.orderId, + productId: product.relIdFk, + nameCode: product.nameCode, + batchNo: product.batchNo, + produceDate: product.productionDate, + expireDate: product.expireDate, + invCode: this.formData.invStorageCode, + invSpaceCode: this.formData.invSpaceCode, + invNum: product.reCount, + supId: product.supId + } + this.countProductList.push(product2); } this.saveOrder(1); } @@ -808,6 +823,11 @@ this.getInvList(); if (!isBlank(this.countOrder.orderId)) { + if (!isBlank(this.countOrder.countType)) { + if (this.countOrder.countType == 0){ + this.startCountVisible = true + } + } //拉取单据详情信息 this.formData = this.countOrder; let params = {orderIdFk: this.countOrder.orderId}; @@ -818,6 +838,7 @@ } }) } + }, }; Index: src/views/inventory/count/InvCountOrderNew.vue IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/src/views/inventory/count/InvCountOrderNew.vue b/src/views/inventory/count/InvCountOrderNew.vue --- a/src/views/inventory/count/InvCountOrderNew.vue (revision 6877dcc229f0592427c367ec58272414a20aabcd) +++ b/src/views/inventory/count/InvCountOrderNew.vue (revision 6f8f84e06ee12b612725edd3e6b231e8116dd306) @@ -128,7 +128,7 @@ 显示/隐藏搜索栏 重置 查询 - + 新增整库盘点 新增部分盘点