|
@ -218,13 +218,14 @@ |
|
|
} else { |
|
|
} else { |
|
|
var itemDetail = detail.subList.find(r => { |
|
|
var itemDetail = detail.subList.find(r => { |
|
|
return r.packingNumber == packingNumber && |
|
|
return r.packingNumber == packingNumber && |
|
|
r.batch == batch |
|
|
r.batch == batch&& |
|
|
|
|
|
r.fromLocationCode == result.fromLocationCode |
|
|
}) |
|
|
}) |
|
|
if (itemDetail == undefined) { |
|
|
if (itemDetail == undefined) { |
|
|
this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]不在列表中") |
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【"+result.fromLocationCode+"】不在列表中") |
|
|
} else { |
|
|
} else { |
|
|
if (itemDetail.scaned) { |
|
|
if (itemDetail.scaned) { |
|
|
this.showErrorMessage("箱码[" + packingNumber + "]" + "批次[" + batch + "]已经扫描") |
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【"+result.fromLocationCode+"】已经扫描") |
|
|
} else { |
|
|
} else { |
|
|
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); |
|
|
let balanceStatus = getInventoryStatusName(result.balance.inventoryStatus); |
|
|
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); |
|
|
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); |
|
@ -362,6 +363,17 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
showQuestionMessage(message, callback) { |
|
|
|
|
|
setTimeout(r => { |
|
|
|
|
|
this.scanPopupLoseFocus(); |
|
|
|
|
|
this.$refs.comMessage.showQuestionMessage(message, res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
callback(res); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
openScanPopup() { |
|
|
openScanPopup() { |
|
|
let fromlocationCode = ''; |
|
|
let fromlocationCode = ''; |
|
|
let fromlocationList = []; |
|
|
let fromlocationList = []; |
|
@ -369,8 +381,8 @@ |
|
|
let item = this.detailSource[i]; |
|
|
let item = this.detailSource[i]; |
|
|
item.subList.forEach(l => { |
|
|
item.subList.forEach(l => { |
|
|
//重复的库位不往里面插入 |
|
|
//重复的库位不往里面插入 |
|
|
var location = fromlocationList.filter(res => res.fromLocationCode != l.fromLocationCode) |
|
|
var location = fromlocationList.find(res => res == l.fromLocationCode) |
|
|
if (location.length == 0) { |
|
|
if (location == undefined) { |
|
|
fromlocationList.push(l.fromLocationCode); |
|
|
fromlocationList.push(l.fromLocationCode); |
|
|
} |
|
|
} |
|
|
//来源库位赋默认值 |
|
|
//来源库位赋默认值 |
|
|