Browse Source

YT-505成品发货:扫描数量大于任务数量时,如果配置了不允许大于推荐数量,则不可提交任务。

intex_online20241111
张立 6 months ago
parent
commit
5a250bce8e
  1. 3
      src/mycomponents/qty/qtyEdit.vue
  2. 4
      src/pages/deliver/job/deliverDetailBatch.vue

3
src/mycomponents/qty/qtyEdit.vue

@ -117,13 +117,14 @@
this.allQty = val * Number(this.dataContent.packQty); this.allQty = val * Number(this.dataContent.packQty);
}, },
setValue() { setValue() {
console.log(344,this.allowBiggerQty)
var balanceQty = Number(this.dataContent.qty); var balanceQty = Number(this.dataContent.qty);
if (this.allQty == 0) { if (this.allQty == 0) {
this.$refs.comMessage.showConfirmWarningModal('数量必须大于0', this.$refs.comMessage.showConfirmWarningModal('数量必须大于0',
res => { res => {
this.allQty = balanceQty; 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 + ']', this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于任务数量[' + balanceQty + ']',
res => { res => {
this.allQty = balanceQty; this.allQty = balanceQty;

4
src/pages/deliver/job/deliverDetailBatch.vue

@ -110,7 +110,7 @@
status: "", status: "",
toLocationCode: "", toLocationCode: "",
jobStatus: "", jobStatus: "",
allowBiggerQty:true,// allowBiggerQty:"TRUE",//
}; };
}, },
@ -267,7 +267,7 @@
str += `物料号【${detail.itemCode}】任务数量【${taskQty}】与实际提交数量【${totalQty}】不一致\n` str += `物料号【${detail.itemCode}】任务数量【${taskQty}】与实际提交数量【${totalQty}】不一致\n`
} }
} }
if (this.allowBiggerQty) { if (this.allowBiggerQty == 'FALSE') {
if (taskQty > totalQty) { if (taskQty > totalQty) {
str1 += '数量[' + totalQty + ']不允许大于任务数量[' + taskQty + ']' str1 += '数量[' + totalQty + ']不允许大于任务数量[' + taskQty + ']'
} }

Loading…
Cancel
Save