From 3b03b45417c44d73d4480a1ed157e09c3eff3c55 Mon Sep 17 00:00:00 2001 From: zhang_li Date: Wed, 30 Jul 2025 08:32:35 +0800 Subject: [PATCH] =?UTF-8?q?YT-2929=E7=89=A9=E6=96=99=E9=9A=94=E7=A6=BB?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E6=94=AF=E6=8C=81=E7=BA=BF=E8=BE=B9=E8=B4=9F?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E7=9A=84=E9=9A=94=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/qty/balanceQtyEdit.vue | 7 +- .../coms/comInventoryDetailCard.vue | 9 +- .../inventoryMove/job/inventoryMoveDetail.vue | 1651 +++++++++-------- 3 files changed, 848 insertions(+), 819 deletions(-) diff --git a/src/mycomponents/qty/balanceQtyEdit.vue b/src/mycomponents/qty/balanceQtyEdit.vue index 319ef2b9..a4dde10c 100644 --- a/src/mycomponents/qty/balanceQtyEdit.vue +++ b/src/mycomponents/qty/balanceQtyEdit.vue @@ -124,6 +124,11 @@ type: Boolean, default: true }, + // 是否校验扫描数量大于库存数量 + isTestBalance: { + type: Boolean, + default: true + }, }, watch:{ 'allQty'(newVal){ @@ -188,7 +193,7 @@ this.allQty = balanceQty; }) }else { - if (this.allQty > balanceQty) { + if (this.allQty > balanceQty && this.isTestBalance) { this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']', res => { this.allQty = balanceQty; diff --git a/src/pages/inventoryMove/coms/comInventoryDetailCard.vue b/src/pages/inventoryMove/coms/comInventoryDetailCard.vue index 2f379ad2..c6300cc8 100644 --- a/src/pages/inventoryMove/coms/comInventoryDetailCard.vue +++ b/src/pages/inventoryMove/coms/comInventoryDetailCard.vue @@ -22,7 +22,7 @@ + :allowEditStatus="true" :isTestBalance='isTestBalance'> @@ -80,7 +80,12 @@ locationAreaTypeList: { type: Array, default: [] - } + }, + // 是否校验扫描数量大于库存数量 + isTestBalance: { + type: Boolean, + default: true + }, }, watch: { dataContent: { diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue index c1ef964e..9709c6e2 100644 --- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue +++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue @@ -1,817 +1,836 @@ - - - - - \ No newline at end of file