|
@ -141,7 +141,7 @@ |
|
|
jobStatus: "", |
|
|
jobStatus: "", |
|
|
isAllReceived: false, |
|
|
isAllReceived: false, |
|
|
operation: '', |
|
|
operation: '', |
|
|
scanedPackingNumber: '', |
|
|
scanMessage: '', |
|
|
status: '', |
|
|
status: '', |
|
|
switchCode:"", |
|
|
switchCode:"", |
|
|
isCheckLocation: 'purchaseReceiptLocationCodeValidate',//校验收货库位 |
|
|
isCheckLocation: 'purchaseReceiptLocationCodeValidate',//校验收货库位 |
|
@ -152,7 +152,7 @@ |
|
|
|
|
|
|
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
|
this.id = option.id; |
|
|
this.id = option.id; |
|
|
this.scanedPackingNumber = option.scaned || ''; |
|
|
this.scanMessage = option.scanMessage; |
|
|
this.operation = option.operation; |
|
|
this.operation = option.operation; |
|
|
this.status = option.status; |
|
|
this.status = option.status; |
|
|
this.switchCode = "purchasereceiptPrintPDA"//pda打印 |
|
|
this.switchCode = "purchasereceiptPrintPDA"//pda打印 |
|
@ -248,24 +248,11 @@ |
|
|
that.toLocationCode = that.jobToLocationCode; |
|
|
that.toLocationCode = that.jobToLocationCode; |
|
|
} |
|
|
} |
|
|
that.isAllReceived = false; |
|
|
that.isAllReceived = false; |
|
|
nextTick(() => { |
|
|
//如果箱码扫描自动扫描,ASN不自动扫描 |
|
|
that.detailSource.forEach(r => { |
|
|
if(this.scanMessage){ |
|
|
r.subList.forEach(s => { |
|
|
this.$refs.scanPopup.simulateScan(this.scanMessage); |
|
|
if (this.scanedPackingNumber && this |
|
|
|
|
|
.scanedPackingNumber == s |
|
|
|
|
|
.packingNumber) { |
|
|
|
|
|
s.scaned = true |
|
|
|
|
|
s.cancleScanedHiht = true |
|
|
|
|
|
|
|
|
|
|
|
s.copyContent = "HPQ;V1.0;I" + s.itemCode + |
|
|
|
|
|
";P" + s.packingNumber + ";B" + s.batch + |
|
|
|
|
|
";Q" + s.qty |
|
|
|
|
|
this.$refs.scanPopup.simulateScan(s); |
|
|
|
|
|
this.scanedPackingNumber = '' |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
that.showMessage('列表数据为0'); |
|
|
that.showMessage('列表数据为0'); |
|
|
} |
|
|
} |
|
@ -292,7 +279,7 @@ |
|
|
if (itemDetail.length == 0) { |
|
|
if (itemDetail.length == 0) { |
|
|
this.showErrorMessage("物料【" + itemCode + "】、托码【" + containerNumber + "】不在列表中") |
|
|
this.showErrorMessage("物料【" + itemCode + "】、托码【" + containerNumber + "】不在列表中") |
|
|
} else { |
|
|
} else { |
|
|
if (!itemDetail[0].cancleScanedHiht && itemDetail[0].scaned) { |
|
|
if (itemDetail[0].scaned) { |
|
|
this.showErrorMessage("物料【" + itemCode + "】、托码【" + containerNumber + "】已经扫描") |
|
|
this.showErrorMessage("物料【" + itemCode + "】、托码【" + containerNumber + "】已经扫描") |
|
|
} else { |
|
|
} else { |
|
|
itemDetail.forEach(item => { |
|
|
itemDetail.forEach(item => { |
|
@ -339,7 +326,7 @@ |
|
|
if (isExit == undefined) { |
|
|
if (isExit == undefined) { |
|
|
this.showMessage("箱码【" + packingNumber + "】、批次【" + batch + "】不在列表中") |
|
|
this.showMessage("箱码【" + packingNumber + "】、批次【" + batch + "】不在列表中") |
|
|
} else { |
|
|
} else { |
|
|
if (!isExit.cancleScanedHiht && isExit.scaned) { |
|
|
if ( isExit.scaned) { |
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
} else { |
|
|
} else { |
|
|
isExit.scaned = true |
|
|
isExit.scaned = true |
|
@ -357,7 +344,7 @@ |
|
|
scanedLength++; |
|
|
scanedLength++; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (!itemDetail.cancleScanedHiht && itemDetail.scaned && scanedLength == itemDetail |
|
|
if (itemDetail.scaned && scanedLength == itemDetail |
|
|
.packList.length) { |
|
|
.packList.length) { |
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
} else { |
|
|
} else { |
|
|