|
@ -35,7 +35,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult'></win-scan-pack-and-location> |
|
|
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' :queryBalance='false'></win-scan-pack-and-location> |
|
|
<return-detail-info-popup ref="jobDetailPopup"></return-detail-info-popup> |
|
|
<return-detail-info-popup ref="jobDetailPopup"></return-detail-info-popup> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
</view> |
|
|
</view> |
|
@ -240,78 +240,95 @@ |
|
|
r.batch == batch && |
|
|
r.batch == batch && |
|
|
r.fromLocationCode == result.fromLocationCode |
|
|
r.fromLocationCode == result.fromLocationCode |
|
|
}) |
|
|
}) |
|
|
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); |
|
|
// let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); |
|
|
//不存在提示 |
|
|
//不存在提示 |
|
|
if (itemDetail == undefined) { |
|
|
if (itemDetail == undefined) { |
|
|
this.showErrorMessage("箱码【" + packingNumber + "】<br>批次【" + batch + "】<br>库位【" + result |
|
|
this.showErrorMessage("箱码【" + packingNumber + "】<br>批次【" + batch + "】<br>库位【" + result |
|
|
.fromLocationCode + "】<br>状态【" + balanceStatus + "】<br>未找到记录") |
|
|
.fromLocationCode + "】<br>未找到明细") |
|
|
return; |
|
|
return; |
|
|
} else { |
|
|
} else { |
|
|
itemDetail = detail.subList.find(r => { |
|
|
if (itemDetail.scaned) { |
|
|
return r.packingNumber == packingNumber && |
|
|
this.showErrorMessage("箱码【" + packingNumber + "】<br>批次【" + batch + "】<br>库位【" + result |
|
|
r.batch == batch && |
|
|
.fromLocationCode + "】已经扫描") |
|
|
r.fromLocationCode == result.fromLocationCode && |
|
|
return; |
|
|
r.inventoryStatus == result.balance.inventoryStatus |
|
|
|
|
|
}) |
|
|
|
|
|
//箱码、批次、库位、状态不一致 |
|
|
|
|
|
if (itemDetail == undefined) { |
|
|
|
|
|
itemDetail = detail.subList.find(r => { |
|
|
|
|
|
return r.packingNumber == packingNumber && |
|
|
|
|
|
r.batch == batch && |
|
|
|
|
|
r.fromLocationCode == result.fromLocationCode |
|
|
|
|
|
}) |
|
|
|
|
|
if (itemDetail.scaned) { |
|
|
|
|
|
this.showErrorMessage("箱码【" + packingNumber + "】<br>批次【" + batch + "】<br>库位【" + result |
|
|
|
|
|
.fromLocationCode + "】<br>状态【" + balanceStatus + "】<br>已经扫描") |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); |
|
|
|
|
|
if (this.jobContent.allowModifyInventoryStatus == "TRUE") { |
|
|
|
|
|
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + |
|
|
|
|
|
']不一致,是否继续退货?', res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
itemDetail.scaned = true; |
|
|
|
|
|
itemDetail.handleQty = Number(result.balance.qty); |
|
|
|
|
|
itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
|
|
|
itemDetail.inventoryStatus =result.balance.inventoryStatus; |
|
|
|
|
|
itemDetail.balance = result.balance; |
|
|
|
|
|
itemDetail.balance.balanceQty = result.balance.qty; |
|
|
|
|
|
itemDetail.balance.packQty = result.package.packQty |
|
|
|
|
|
itemDetail.balance.packUnit = result.package.packUnit |
|
|
|
|
|
this.calcHandleQty(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.scanPopupGetFocus(); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + |
|
|
|
|
|
itemStatus + |
|
|
|
|
|
']不一致,不允许转移!', res => { |
|
|
|
|
|
this.scanPopupGetFocus(); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
// 箱码、批次、库位、状态一致 |
|
|
itemDetail.scaned = true; |
|
|
if (itemDetail.scaned) { |
|
|
itemDetail.handleQty = Number(result.label.qty); |
|
|
this.showErrorMessage("箱码【" + packingNumber + "】<br>批次【" + batch + "】<br>库位【" + result |
|
|
|
|
|
.fromLocationCode + "】<br>状态【" + balanceStatus + "】<br>已经扫描") |
|
|
itemDetail.toInventoryStatus = itemDetail.inventoryStatus; |
|
|
return; |
|
|
|
|
|
} else { |
|
|
// itemDetail.balance = result.balance; |
|
|
itemDetail.scaned = true; |
|
|
// itemDetail.balance.balanceQty = Number(result.balance.qty); |
|
|
itemDetail.handleQty = Number(result.balance.qty); |
|
|
// itemDetail.balance.packQty = Number(result.package.packQty) |
|
|
itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
// itemDetail.balance.packUnit = result.package.packUnit |
|
|
itemDetail.inventoryStatus =result.balance.inventoryStatus; |
|
|
// itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
itemDetail.balance = result.balance; |
|
|
// itemDetail.inventoryStatus =result.balance.inventoryStatus; |
|
|
itemDetail.balance.balanceQty = Number(result.balance.qty); |
|
|
// itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
itemDetail.balance.packQty = Number(result.package.packQty) |
|
|
// itemDetail.inventoryStatus =result.balance.inventoryStatus; |
|
|
itemDetail.balance.packUnit = result.package.packUnit |
|
|
// itemDetail.balance = result.balance; |
|
|
this.calcHandleQty(); |
|
|
// itemDetail.balance.balanceQty = Number(result.balance.qty); |
|
|
} |
|
|
// itemDetail.balance.packQty = Number(result.package.packQty) |
|
|
|
|
|
// itemDetail.balance.packUnit = result.package.packUnit |
|
|
|
|
|
this.calcHandleQty(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (itemDetail == undefined) { |
|
|
|
|
|
// itemDetail = detail.subList.find(r => { |
|
|
|
|
|
// return r.packingNumber == packingNumber && |
|
|
|
|
|
// r.batch == batch && |
|
|
|
|
|
// r.fromLocationCode == result.fromLocationCode |
|
|
|
|
|
// }) |
|
|
|
|
|
// if (itemDetail.scaned) { |
|
|
|
|
|
// this.showErrorMessage("箱码【" + packingNumber + "】<br>批次【" + batch + "】<br>库位【" + result |
|
|
|
|
|
// .fromLocationCode + "】<br>状态【" + balanceStatus + "】<br>已经扫描") |
|
|
|
|
|
// return; |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
// let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); |
|
|
|
|
|
// if (this.jobContent.allowModifyInventoryStatus == "TRUE") { |
|
|
|
|
|
// this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + |
|
|
|
|
|
// ']不一致,是否继续退货?', res => { |
|
|
|
|
|
// if (res) { |
|
|
|
|
|
// itemDetail.scaned = true; |
|
|
|
|
|
// itemDetail.handleQty = Number(result.balance.qty); |
|
|
|
|
|
// itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
|
|
|
// itemDetail.inventoryStatus =result.balance.inventoryStatus; |
|
|
|
|
|
// itemDetail.balance = result.balance; |
|
|
|
|
|
// itemDetail.balance.balanceQty = result.balance.qty; |
|
|
|
|
|
// itemDetail.balance.packQty = result.package.packQty |
|
|
|
|
|
// itemDetail.balance.packUnit = result.package.packUnit |
|
|
|
|
|
// this.calcHandleQty(); |
|
|
|
|
|
// } else { |
|
|
|
|
|
// this.scanPopupGetFocus(); |
|
|
|
|
|
// } |
|
|
|
|
|
// }); |
|
|
|
|
|
// } else { |
|
|
|
|
|
// this.showQuestionMessage('任务中不允许修改库存状态,实际库存状态[' + balanceStatus + ']与推荐库存状态[' + |
|
|
|
|
|
// itemStatus + |
|
|
|
|
|
// ']不一致,不允许转移!', res => { |
|
|
|
|
|
// this.scanPopupGetFocus(); |
|
|
|
|
|
// }); |
|
|
|
|
|
// } |
|
|
|
|
|
// } else { |
|
|
|
|
|
// // 箱码、批次、库位、状态一致 |
|
|
|
|
|
// if (itemDetail.scaned) { |
|
|
|
|
|
// this.showErrorMessage("箱码【" + packingNumber + "】<br>批次【" + batch + "】<br>库位【" + result |
|
|
|
|
|
// .fromLocationCode + "】<br>状态【" + balanceStatus + "】<br>已经扫描") |
|
|
|
|
|
// return; |
|
|
|
|
|
// } else { |
|
|
|
|
|
// itemDetail.scaned = true; |
|
|
|
|
|
// itemDetail.handleQty = Number(result.balance.qty); |
|
|
|
|
|
// itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
|
|
|
// itemDetail.inventoryStatus =result.balance.inventoryStatus; |
|
|
|
|
|
// itemDetail.balance = result.balance; |
|
|
|
|
|
// itemDetail.balance.balanceQty = Number(result.balance.qty); |
|
|
|
|
|
// itemDetail.balance.packQty = Number(result.package.packQty) |
|
|
|
|
|
// itemDetail.balance.packUnit = result.package.packUnit |
|
|
|
|
|
// this.calcHandleQty(); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|