Browse Source

修改制品直接上架 2024/8/2

hella_vue3
王志国 1 month ago
parent
commit
9e6c5635e7
  1. 9
      src/pages/productPutaway/record/productPutawayRecord.vue

9
src/pages/productPutaway/record/productPutawayRecord.vue

@ -126,6 +126,7 @@
// //
getRecommendLocation(balance, res => { getRecommendLocation(balance, res => {
itemp.toLocationCode = res.code; itemp.toLocationCode = res.code;
itemp.expectinNumber = res.expectinNumber;
}) })
let newDetail = createDetailInfo(balance, pack); // let newDetail = createDetailInfo(balance, pack); //
newDetail.fromInventoryStatus = balance.inventoryStatus; newDetail.fromInventoryStatus = balance.inventoryStatus;
@ -162,7 +163,7 @@
}) })
let param = { let param = {
expectinNumber: balance.id, expectinNumber: balance.packingNumber + "-" + Date.now(),
itemCode: balance.itemCode, itemCode: balance.itemCode,
inventoryStatus: balance.inventoryStatus, inventoryStatus: balance.inventoryStatus,
}; };
@ -184,7 +185,7 @@
recommendLocationRemoveExpectin(param).then(res => { recommendLocationRemoveExpectin(param).then(res => {
}).catch(err => { }).catch(err => {
showErrorMessage('【'+err+'】移除预占用失败,请在PC端的预占用中移除') showErrorMessage('【'+lst.join(',')+'】移除预占用失败,请在PC端的预占用中移除')
}) })
} }
@ -276,7 +277,7 @@
showCommitSuccessMessage(`提交成功<br>生成制品上架记录<br>${res.data}`) showCommitSuccessMessage(`提交成功<br>生成制品上架记录<br>${res.data}`)
let removeId = []; let removeId = [];
detailSource.value.forEach(r => { detailSource.value.forEach(r => {
removeId.push(r.id); removeId.push(r.expectinNumber)
}) })
removeRecommendLocation(removeId); removeRecommendLocation(removeId);
} else { } else {
@ -347,7 +348,7 @@
submitItem.toBatch = info.batch submitItem.toBatch = info.batch
submitItem.fromLocationCode = detail.locationCode submitItem.fromLocationCode = detail.locationCode
submitItem.toLocationCode = detail.toLocationCode submitItem.toLocationCode = item.toLocationCode
submitItem.qty = detail.handleQty submitItem.qty = detail.handleQty
submitItem.package = '' submitItem.package = ''

Loading…
Cancel
Save