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

Loading…
Cancel
Save