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") },