From b6d13f9f0974eae77343aa3cb09810e4db53676c Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 3 Dec 2024 08:49:51 +0800 Subject: [PATCH] =?UTF-8?q?YT-1441pda=E7=9B=B4=E6=8E=A5=E7=A7=BB=E5=BA=93?= =?UTF-8?q?=EF=BC=8C=E6=89=80=E6=9C=89=E7=B2=BE=E5=BA=A6=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E7=AC=AC=E4=BA=8C=E6=AC=A1=E6=89=AB=E6=8F=8F=E5=90=8C?= =?UTF-8?q?=E4=B8=80=E7=AE=B1=E7=A0=81=E6=97=B6=EF=BC=8C=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E5=B7=B2=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventoryMove/coms/comMoveRecord.vue | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue index b42a2ec8..c85f9806 100644 --- a/src/pages/inventoryMove/coms/comMoveRecord.vue +++ b/src/pages/inventoryMove/coms/comMoveRecord.vue @@ -559,16 +559,21 @@ } else { // console.log(999,detail.handleQty) // detail.handleQty =calc.add(detail.handleQty, result.label.qty) - if (managementTypeParams == 'BY_QUANTITY') { - this.showErrorMessage( - "物料号[" + item.itemCode + "]\n" + "批次[]\n" + "库位[" + detail.fromLocationCode + "]\n" + - "已经存在") - } else if (managementTypeParams == 'BY_BATCH') { - this.showErrorMessage( - "物料号[" + item.itemCode + "]\n" + "批次[" + detail.batch + "]\n" + "库位[" + detail - .fromLocationCode + "]\n" + - "已经存在") + if(this.showOnePop){ + if (managementTypeParams == 'BY_QUANTITY') { + this.showErrorMessage( + "物料号[" + item.itemCode + "]\n" + "批次[]\n" + "库位[" + detail.fromLocationCode + "]\n" + + "已经存在") + } else if (managementTypeParams == 'BY_BATCH') { + this.showErrorMessage( + "物料号[" + item.itemCode + "]\n" + "批次[" + detail.batch + "]\n" + "库位[" + detail + .fromLocationCode + "]\n" + + "已经存在") + } + }else{ + detail.handleQty =calc.add(detail.handleQty, result.label.qty) } + } } calcHandleQty(this.detailSource);