|
@ -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 => { |
|
|