From a5dcb615c6da45d73a530756892a69d1c9b87103 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 8 Nov 2024 14:41:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=90=88=E6=A0=BC=E8=BD=AC?= =?UTF-8?q?=E9=9A=94=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/inventoryMove/coms/comMoveRecord.vue | 13 +++++++++++-- src/pages/inventoryMove/coms/comMoveRecordCard.vue | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue index 207753ee..18882bf5 100644 --- a/src/pages/inventoryMove/coms/comMoveRecord.vue +++ b/src/pages/inventoryMove/coms/comMoveRecord.vue @@ -429,8 +429,17 @@ newDetail.fromLocationCode = result.fromLocationCode item.subList.push(newDetail); } else { - console.log(999,detail.handleQty) - detail.handleQty =calc.add(detail.handleQty, result.label.qty) + // console.log(999,detail.handleQty) + // detail.handleQty =calc.add(detail.handleQty, result.label.qty) + if(managementTypeParams == 'BY_QUANTITY'){ + this.showErrorMessage( + "批次[]\n" + "库位[" + detail.fromLocationCode + "]\n" + + "已经存在") + }else if(managementTypeParams == 'BY_BATCH'){ + this.showErrorMessage( + "批次[" + detail.batch + "]\n" + "库位[" + detail.fromLocationCode + "]\n" + + "已经存在") + } } } diff --git a/src/pages/inventoryMove/coms/comMoveRecordCard.vue b/src/pages/inventoryMove/coms/comMoveRecordCard.vue index d8fc1a3b..496893f6 100644 --- a/src/pages/inventoryMove/coms/comMoveRecordCard.vue +++ b/src/pages/inventoryMove/coms/comMoveRecordCard.vue @@ -18,7 +18,7 @@ :right-options="item.scaned?scanOptions:detailOptions"> + :isShowLocation="true" :allowEditStatus='allowEditStatus' :isShowPack='item.managementTypeParams == "BY_PACKAGING"' >