|
|
@ -483,12 +483,33 @@ |
|
|
|
this.$refs.comMessage.showQuestionMessage("系统异常:"+res.data.balanceMsg, confirmRes => { |
|
|
|
if (confirmRes) { |
|
|
|
this.editItem.toLocationCode = code; |
|
|
|
var item = this.detailSource.find(res => { |
|
|
|
if (res.itemCode == this.editItem.itemCode) { |
|
|
|
return res |
|
|
|
} |
|
|
|
}) |
|
|
|
if(item){ |
|
|
|
item.subList.forEach(r=>{ |
|
|
|
r.toLocationCode =code |
|
|
|
}) |
|
|
|
} |
|
|
|
}else { |
|
|
|
this.removeRecommendLocation(res.data.expectinNumberList) |
|
|
|
} |
|
|
|
}); |
|
|
|
}else { |
|
|
|
//所有库位赋值 |
|
|
|
this.editItem.toLocationCode = code; |
|
|
|
var item = this.detailSource.find(res => { |
|
|
|
if (res.itemCode == this.editItem.itemCode) { |
|
|
|
return res |
|
|
|
} |
|
|
|
}) |
|
|
|
if(item){ |
|
|
|
item.subList.forEach(r=>{ |
|
|
|
r.toLocationCode =code |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|