Browse Source

判断物料代码

hella_online_20240829
wangyufei 4 months ago
parent
commit
8efe269405
  1. 4
      src/pages/issue/coms/comScanIssuePack.vue

4
src/pages/issue/coms/comScanIssuePack.vue

@ -488,6 +488,10 @@
} }
if (this.toLocation && result.package.packUnit) { if (this.toLocation && result.package.packUnit) {
let item = this.toLocation.Items.find(r => r.itemCode == result.package.itemCode); let item = this.toLocation.Items.find(r => r.itemCode == result.package.itemCode);
if(!item){
this.showErrorMessage('扫描物料代码不属于该任务');
return
}
if (result.package.packUnit !== item.packUnit) { if (result.package.packUnit !== item.packUnit) {
this.$refs.comMessage.showQuestionMessage( this.$refs.comMessage.showQuestionMessage(
`扫描物料包装【${result.package.packUnit}】与任务推荐包装规格【${item.packUnit}】不一致.是否要继续发料?`, res => { `扫描物料包装【${result.package.packUnit}】与任务推荐包装规格【${item.packUnit}】不一致.是否要继续发料?`, res => {

Loading…
Cancel
Save