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 + ']' }