|
@ -324,11 +324,11 @@ |
|
|
try { |
|
|
try { |
|
|
var itemCode = result.label.itemCode; |
|
|
var itemCode = result.label.itemCode; |
|
|
var detail = this.detailSource.find(r => r.itemCode == itemCode); |
|
|
var detail = this.detailSource.find(r => r.itemCode == itemCode); |
|
|
detail.scaned = true; |
|
|
|
|
|
if (detail == undefined) { |
|
|
if (detail == undefined) { |
|
|
this.showErrorMessage("物料号【" + itemCode + "】不在列表中") |
|
|
this.showErrorMessage("物料号【" + itemCode + "】不在列表中") |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
detail.scaned = true; |
|
|
if (result.label.labelType == "ContainerLabel") { |
|
|
if (result.label.labelType == "ContainerLabel") { |
|
|
var containerNumber = result.label.container; |
|
|
var containerNumber = result.label.container; |
|
|
var itemDetail = detail.subList.filter(r => r.containerNumber == containerNumber); |
|
|
var itemDetail = detail.subList.filter(r => r.containerNumber == containerNumber); |
|
@ -433,11 +433,11 @@ |
|
|
try { |
|
|
try { |
|
|
var itemCode = result.label.itemCode; |
|
|
var itemCode = result.label.itemCode; |
|
|
var detail = this.detailSource.find(r => r.itemCode == itemCode); |
|
|
var detail = this.detailSource.find(r => r.itemCode == itemCode); |
|
|
detail.scaned = true; |
|
|
|
|
|
if (detail == undefined) { |
|
|
if (detail == undefined) { |
|
|
this.showErrorMessage("物料号【" + itemCode + "】不在列表中") |
|
|
this.showErrorMessage("物料号【" + itemCode + "】不在列表中") |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
detail.scaned = true; |
|
|
if (result.label.labelType == "ContainerLabel") { |
|
|
if (result.label.labelType == "ContainerLabel") { |
|
|
var containerNumber = result.label.container; |
|
|
var containerNumber = result.label.container; |
|
|
var itemDetail = detail.subList.filter(r => r.containerNumber == containerNumber); |
|
|
var itemDetail = detail.subList.filter(r => r.containerNumber == containerNumber); |
|
|