Browse Source

修改发料任务执行功能 2024/8/6

hella_vue3
王志国 4 weeks ago
parent
commit
8137a35465
  1. 5
      src/pages/issue/coms/comScanIssuePack.vue
  2. 6
      src/pages/issue/job/issueDetail.vue
  3. 3
      src/pages/issue/job/issueJob.vue

5
src/pages/issue/coms/comScanIssuePack.vue

@ -296,7 +296,7 @@ const queryBalance = (result)=>{
result.balance = res.data[0] result.balance = res.data[0]
if (result.label.packingNumber != result.balance.packingNumber) { if (result.label.packingNumber != result.balance.packingNumber) {
result.balance.lableQty = result.label.qty result.balance.lableQty = Number(result.label.qty)
} }
this.afterGetBalance(result.label, result.balance, result.package); this.afterGetBalance(result.label, result.balance, result.package);
} else { } else {
@ -524,8 +524,9 @@ const creatRecord = (label, balance, packageInfo) => {
packingNumber: label.packingNumber, packingNumber: label.packingNumber,
parentPackingNumber: packageInfo.parentNumber, parentPackingNumber: packageInfo.parentNumber,
batch: label.batch, batch: label.batch,
qty: Number(balance.qty), // qty: Number(balance.qty),
// qty: Number(label.qty) > Number(balance.qty) ? Number(balance.qty) : Number(label.qty), // qty: Number(label.qty) > Number(balance.qty) ? Number(balance.qty) : Number(label.qty),
qty: balance.lableQty ?? Number(label.qty),
uom: balance.uom, uom: balance.uom,
inventoryStatus: balance.inventoryStatus, inventoryStatus: balance.inventoryStatus,
balance, balance,

6
src/pages/issue/job/issueDetail.vue

@ -340,9 +340,9 @@ const afterScan = () => {
submit() submit()
} else { } else {
comMessageRef.value.showQuestionMessage(`实际扫描数量【${totalHandleQty}】与物料需求数量【${item.qty}】不一致,是否继续提交`, (res) => { comMessageRef.value.showQuestionMessage(`实际扫描数量【${totalHandleQty}】与物料需求数量【${item.qty}】不一致,是否继续提交`, (res) => {
if (res) { // if (res) {
submit() // submit()
} // }
}) })
} }
}) })

3
src/pages/issue/job/issueJob.vue

@ -457,7 +457,8 @@ const getScanResult = (result) => {
selectItem(list[0]) selectItem(list[0])
} }
} else { } else {
showMessage(`物料号[${result.label.itemCode}]批次[${result.label.batch}]` + '未查找到任务<br>' + `扫描[${result.scanMessage}]`) showMessage("按来源库位[" + balance.locationCode + "]批次[" + result.label.batch +
"]物料号[" + result.label.itemCode + "]未查找到任务<br>" + "扫描[" + result.scanMessage + "]")
} }
}) })
.catch((error) => { .catch((error) => {

Loading…
Cancel
Save