From 5a250bce8e3a64d524ec4f8115d9e38d2bfcecd1 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 28 Oct 2024 13:42:55 +0800 Subject: [PATCH] =?UTF-8?q?YT-505=E6=88=90=E5=93=81=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=EF=BC=9A=E6=89=AB=E6=8F=8F=E6=95=B0=E9=87=8F=E5=A4=A7=E4=BA=8E?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=95=B0=E9=87=8F=E6=97=B6=EF=BC=8C=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E9=85=8D=E7=BD=AE=E4=BA=86=E4=B8=8D=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E5=A4=A7=E4=BA=8E=E6=8E=A8=E8=8D=90=E6=95=B0=E9=87=8F=EF=BC=8C?= =?UTF-8?q?=E5=88=99=E4=B8=8D=E5=8F=AF=E6=8F=90=E4=BA=A4=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/qty/qtyEdit.vue | 3 ++- src/pages/deliver/job/deliverDetailBatch.vue | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mycomponents/qty/qtyEdit.vue b/src/mycomponents/qty/qtyEdit.vue index fccc8b47..68542672 100644 --- a/src/mycomponents/qty/qtyEdit.vue +++ b/src/mycomponents/qty/qtyEdit.vue @@ -117,13 +117,14 @@ this.allQty = val * Number(this.dataContent.packQty); }, setValue() { + console.log(344,this.allowBiggerQty) var balanceQty = Number(this.dataContent.qty); if (this.allQty == 0) { this.$refs.comMessage.showConfirmWarningModal('数量必须大于0', res => { this.allQty = balanceQty; }) - } else if (this.allQty > balanceQty && this.allowBiggerQty == 'TRUE') { + } else if (this.allQty > balanceQty && this.allowBiggerQty == 'FALSE') { this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于任务数量[' + balanceQty + ']', res => { this.allQty = balanceQty; diff --git a/src/pages/deliver/job/deliverDetailBatch.vue b/src/pages/deliver/job/deliverDetailBatch.vue index 8a1bb006..17800ee6 100644 --- a/src/pages/deliver/job/deliverDetailBatch.vue +++ b/src/pages/deliver/job/deliverDetailBatch.vue @@ -110,7 +110,7 @@ status: "", toLocationCode: "", jobStatus: "", - allowBiggerQty:true,//开启数量校验提示 + allowBiggerQty:"TRUE",//开启数量校验提示 }; }, @@ -267,7 +267,7 @@ str += `物料号【${detail.itemCode}】任务数量【${taskQty}】与实际提交数量【${totalQty}】不一致\n` } } - if (this.allowBiggerQty) { + if (this.allowBiggerQty == 'FALSE') { if (taskQty > totalQty) { str1 += '数量[' + totalQty + ']不允许大于任务数量[' + taskQty + ']' }