Browse Source

修改直接采购上架推荐库位校验

ljc_0803
lijuncheng 1 month ago
parent
commit
994d1ca168
  1. 11
      src/pages/putaway/record/putawayRecord.vue

11
src/pages/putaway/record/putawayRecord.vue

@ -468,7 +468,7 @@
batch:item.batch, batch:item.batch,
inventoryStatus:item.inventoryStatus, inventoryStatus:item.inventoryStatus,
itemCode:item.itemCode, itemCode:item.itemCode,
toLocationCode:item.toLocationCode, toLocationCode:code,
expectinNumber: item.packingNumber + "-" + Date.now(), expectinNumber: item.packingNumber + "-" + Date.now(),
} }
checkItemCodeAndLocation(param).then(res=>{ checkItemCodeAndLocation(param).then(res=>{
@ -476,13 +476,14 @@
this.editItem.toLocationCode = code; this.editItem.toLocationCode = code;
}else { }else {
if(res.data.errorMsg){ if(res.data.errorMsg){
this.showErrorMessage(res.data.errorMsg) this.showErrorMessage("系统异常:"+res.data.errorMsg)
}else { }else {
if(res.data.balanceMsg){ if(res.data.balanceMsg){
this.$refs.comMessage.showQuestionMessage('已经有库存余额,是否继续上架?', res => { this.$refs.comMessage.showQuestionMessage("系统异常:"+res.data.balanceMsg, confirmRes => {
if (res) { if (confirmRes) {
this.editItem.toLocationCode = code;
}else { }else {
this.removeRecommendLocation(res.data.recommendList) this.removeRecommendLocation(res.data.expectinNumberList)
} }
}); });
}else { }else {

Loading…
Cancel
Save