|
|
@ -133,7 +133,8 @@ |
|
|
|
jobStatus: "", |
|
|
|
isAllReceived: false, |
|
|
|
operation: '', |
|
|
|
scanedPackingNumber: '' |
|
|
|
scanedPackingNumber: '', |
|
|
|
status:'' |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
@ -142,16 +143,20 @@ |
|
|
|
this.id = option.id; |
|
|
|
this.scanedPackingNumber = option.scaned || ''; |
|
|
|
this.operation = option.operation; |
|
|
|
if (this.id != undefined) { |
|
|
|
//新建的任务自动接收 |
|
|
|
if (option.status == "1") { |
|
|
|
this.receive((callback => { |
|
|
|
this.getDetail(); |
|
|
|
})); |
|
|
|
} else { |
|
|
|
this.getDetail(); |
|
|
|
} |
|
|
|
} |
|
|
|
this.status = option.status; |
|
|
|
}, |
|
|
|
|
|
|
|
onShow(){ |
|
|
|
if (this.id != undefined) { |
|
|
|
//新建的任务自动接收 |
|
|
|
if (this.status == "1") { |
|
|
|
this.receive((callback => { |
|
|
|
this.getDetail(); |
|
|
|
})); |
|
|
|
} else { |
|
|
|
this.getDetail(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
//返回首页 |
|
|
|
onNavigationBarButtonTap(e) { |
|
|
@ -229,7 +234,10 @@ |
|
|
|
if (this.scanedPackingNumber && this |
|
|
|
.scanedPackingNumber == s |
|
|
|
.packingNumber) { |
|
|
|
s.scaned = true |
|
|
|
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); |
|
|
|
} |
|
|
|
}) |
|
|
@ -246,7 +254,8 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getScanResult(result) { |
|
|
|
getScanResult(result) { |
|
|
|
|
|
|
|
try { |
|
|
|
var itemCode = result.label.itemCode; |
|
|
|
var detail = this.detailSource.find(r => r.itemCode == itemCode); |
|
|
@ -260,7 +269,7 @@ |
|
|
|
if (itemDetail.length == 0) { |
|
|
|
this.showErrorMessage("物料【" + itemCode + "】、托码【" + containerNumber + "】不在列表中") |
|
|
|
} else { |
|
|
|
if (itemDetail[0].scaned) { |
|
|
|
if (!itemDetail[0].cancleScanedHiht&&itemDetail[0].scaned) { |
|
|
|
this.showErrorMessage("物料【" + itemCode + "】、托码【" + containerNumber + "】已经扫描") |
|
|
|
} else { |
|
|
|
itemDetail.forEach(item => { |
|
|
@ -307,7 +316,7 @@ |
|
|
|
if (isExit == undefined) { |
|
|
|
this.showMessage("箱码【" + packingNumber + "】、批次【" + batch + "】不在列表中") |
|
|
|
} else { |
|
|
|
if (isExit.scaned) { |
|
|
|
if (!isExit.cancleScanedHiht&&isExit.scaned) { |
|
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
|
} else { |
|
|
|
isExit.scaned = true |
|
|
@ -325,7 +334,7 @@ |
|
|
|
scanedLength++; |
|
|
|
} |
|
|
|
}) |
|
|
|
if (itemDetail.scaned && scanedLength == itemDetail.packList.length) { |
|
|
|
if (!itemDetail.cancleScanedHiht&&itemDetail.scaned && scanedLength == itemDetail.packList.length) { |
|
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
|
} else { |
|
|
|
itemDetail.scaned = true; |
|
|
|