From 85dff3ceb5f636bcecd7ee469dec916e95fe2c96 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Tue, 13 Aug 2024 13:45:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E4=BA=A7=E6=94=B6?= =?UTF-8?q?=E6=96=99=E8=87=AA=E5=8A=A8=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../job/productionReceiptDetail.vue | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/pages/productionReceipt/job/productionReceiptDetail.vue b/src/pages/productionReceipt/job/productionReceiptDetail.vue index 10b0564b..967a3083 100644 --- a/src/pages/productionReceipt/job/productionReceiptDetail.vue +++ b/src/pages/productionReceipt/job/productionReceiptDetail.vue @@ -213,6 +213,32 @@ calcHandleQty(this.detailSource); this.continueScan() this.$forceUpdate(); + + }, + autoCommit(){ + //判断数量是否相等 + var noCommitInfo=null + for (var i = 0; i < this.detailSource.length; i++) { + var sub =this.detailSource[i].subList + for(var j=0;j{ + if(res){ + this.commit() + } + }) + }else { + //提交 + this.commit() + } }, //继续扫描 @@ -332,6 +358,7 @@ itemDetail.balance.packQty = Number(result.package.packQty) itemDetail.balance.packUnit = result.package.packUnit this.calcHandleQty(); + this.autoCommit(); } else { this.scanPopupGetFocus(); } @@ -354,6 +381,7 @@ itemDetail.balance.packQty = Number(result.package.packQty) itemDetail.balance.packUnit = result.package.packUnit this.calcHandleQty(); + this.autoCommit(); } } }