From 07f1038e44ae9db800921e6cc75ae46f1242a56f Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Fri, 11 Jul 2025 16:29:50 +0800 Subject: [PATCH] =?UTF-8?q?YT-2878=20YT-2882=20=20=E8=A1=A5=E7=BB=99?= =?UTF-8?q?=E5=93=81=E7=9B=98=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/qty/countQtyEdit.vue | 3 +++ src/pages/count/job/countLightDetail.vue | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/mycomponents/qty/countQtyEdit.vue b/src/mycomponents/qty/countQtyEdit.vue index b2529e2c..5ede4907 100644 --- a/src/mycomponents/qty/countQtyEdit.vue +++ b/src/mycomponents/qty/countQtyEdit.vue @@ -211,6 +211,9 @@ this.inventoryStatus = this.dataContent.inventoryStatus; this.allQty = Number(this.dataContent.handleQty); this.stdCount = Math.ceil(this.allQty / this.dataContent.packQty); + if(!this.stdCount){ + this.stdCount=0 + } this.detailList = detailList; }, diff --git a/src/pages/count/job/countLightDetail.vue b/src/pages/count/job/countLightDetail.vue index fe050dd9..80c9d952 100644 --- a/src/pages/count/job/countLightDetail.vue +++ b/src/pages/count/job/countLightDetail.vue @@ -19,7 +19,7 @@ - + @@ -446,7 +446,7 @@ handleQty: subItem.handleQty, uom: subItem.uom, packUnit: subItem.packUnit, - packQty: subItem.packQty, + packQty: subItem.packQty?subItem.packQty:0, balanceQty: subItem.balanceQty, locationCode: subItem.locationCode } @@ -734,7 +734,7 @@ handleQty: handleQty, uom: uom, packUnit: pack.packUnit, - packQty: pack.packQty, + packQty: pack.packQty?pack.packQty:0, balanceQty: qty, locationCode: locationCode } @@ -817,6 +817,7 @@ r.inventoryStatus == scanItem.inventoryStatus) scanItem.toBatch = "" scanItem.toPackingNumber = "" + item.qty=scanItem.balanceQty //在任务列表中,添加到对应的recordList if (item) { if (!item.recordList) { @@ -883,7 +884,6 @@ this.currentEditItem.handleQty = qty; this.currentEditItem.inventoryStatus = inventoryStatus; this.setData(this.currentEditItem); - console.log("editConfirm") },