Browse Source

YT-501成品发货提示错误,应该是:不允许大于任务数量

intex_online20241111
张立 4 months ago
parent
commit
ab9d82426d
  1. 2
      src/mycomponents/qty/qtyEdit.vue
  2. 4
      src/pages/purchaseReceipt/job/receiptDetail.vue

2
src/mycomponents/qty/qtyEdit.vue

@ -120,7 +120,7 @@
this.allQty = balanceQty; this.allQty = balanceQty;
}) })
} else if (this.allQty > balanceQty) { } else if (this.allQty > balanceQty) {
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/purchaseReceipt/job/receiptDetail.vue

@ -669,6 +669,8 @@
this.managementList = res.list; this.managementList = res.list;
var params = this.setParams(); var params = this.setParams();
let that = this let that = this
console.log(params)
// return
purchaseReceiptJobSubmit(params).then(res => { purchaseReceiptJobSubmit(params).then(res => {
if (res.data) { if (res.data) {
let isCheckPrint = getSwitchInfoByCode(this.switchCode)// let isCheckPrint = getSwitchInfoByCode(this.switchCode)//
@ -790,6 +792,7 @@
pack.handleQty = 0 pack.handleQty = 0
} }
}) })
detail.toLocationCode = this.toLocationCode
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode, var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch); detail.packingNumber, detail.batch);
detail.toPackingNumber = info.packingNumber; detail.toPackingNumber = info.packingNumber;
@ -863,6 +866,7 @@
}) })
}) })
this.scanCount = getScanCount(this.detailSource);
calcHandleQty(this.detailSource); calcHandleQty(this.detailSource);
} else { } else {
this.$refs.comMessage.showQuestionMessage("是否要关闭整单收货?", res => { this.$refs.comMessage.showQuestionMessage("是否要关闭整单收货?", res => {

Loading…
Cancel
Save