|
|
@ -145,13 +145,17 @@ |
|
|
|
getScanResult(result) { |
|
|
|
let label = result.label; |
|
|
|
let pack = result.package; |
|
|
|
|
|
|
|
if(!result.label.itemCode){ |
|
|
|
this.showErrorMessage('扫描标签不对,请重新扫描') |
|
|
|
this.$emit('clearItemCode',result.label) |
|
|
|
return |
|
|
|
} |
|
|
|
var item = this.detailSource.find(res => { |
|
|
|
if (res.itemCode == label.itemCode) { |
|
|
|
return res |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
if (item == undefined) { |
|
|
|
var itemp = this.createItemInfo(label, pack); |
|
|
|
let newDetail = this.createDetailInfo(label, pack); |
|
|
|