|
@ -163,6 +163,7 @@ |
|
|
//查询推荐的目标库位 |
|
|
//查询推荐的目标库位 |
|
|
this.getRecommendLocation(balance, res => { |
|
|
this.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; |
|
@ -200,7 +201,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, |
|
|
}; |
|
|
}; |
|
@ -222,7 +223,7 @@ |
|
|
recommendLocationRemoveExpectin(param).then(res => { |
|
|
recommendLocationRemoveExpectin(param).then(res => { |
|
|
|
|
|
|
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
this.showErrorMessage('【'++'】移除预占用失败,请在PC端的预占用中移除') |
|
|
this.showErrorMessage('【' + lst.join(',') + '】移除预占用失败,请在PC端的预占用中移除') |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -245,7 +246,7 @@ |
|
|
this.calcHandleQty(); |
|
|
this.calcHandleQty(); |
|
|
}, |
|
|
}, |
|
|
removeItem(index, item) { |
|
|
removeItem(index, item) { |
|
|
this.removeRecommendLocation([item.id]); |
|
|
this.removeRecommendLocation([item.expectinNumber]); |
|
|
this.detailSource.splice(index, 1) |
|
|
this.detailSource.splice(index, 1) |
|
|
}, |
|
|
}, |
|
|
removePack() { |
|
|
removePack() { |
|
@ -320,8 +321,9 @@ |
|
|
this.showCommitSuccessMessage("提交成功<br>生成制品上架记录<br>" + res.data) |
|
|
this.showCommitSuccessMessage("提交成功<br>生成制品上架记录<br>" + res.data) |
|
|
let removeId = []; |
|
|
let removeId = []; |
|
|
this.detailSource.forEach(r => { |
|
|
this.detailSource.forEach(r => { |
|
|
removeId.push(r.id); |
|
|
removeId.push(r.expectinNumber); |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
this.removeRecommendLocation(removeId); |
|
|
this.removeRecommendLocation(removeId); |
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
@ -393,7 +395,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 = ""; |
|
|