|
@ -334,15 +334,24 @@ |
|
|
var locationCode = result.balance.locationCode; |
|
|
var locationCode = result.balance.locationCode; |
|
|
var inventoryStatus = result.balance.inventoryStatus; |
|
|
var inventoryStatus = result.balance.inventoryStatus; |
|
|
var detail = this.detailSource.find(r => r.itemCode == itemCode); |
|
|
var detail = this.detailSource.find(r => r.itemCode == itemCode); |
|
|
|
|
|
|
|
|
if (detail == undefined) { |
|
|
if (detail == undefined) { |
|
|
this.showErrorMessage("物料号【" + itemCode + "】不在列表中") |
|
|
this.showErrorMessage("物料号【" + itemCode + "】不在列表中") |
|
|
} else { |
|
|
} else { |
|
|
var itemDetail = detail.subList.find(r => { |
|
|
// var itemDetail = detail.subList.find(r => { |
|
|
return r.batch == batch && |
|
|
// return r.batch == result.label.batch && |
|
|
r.fromLocationCode == result.fromLocationCode |
|
|
// r.fromLocationCode == result.fromLocationCode |
|
|
}) |
|
|
// }) |
|
|
if (itemDetail == undefined) { |
|
|
let itemDetail = '' |
|
|
|
|
|
this.detailSource.find(item => { |
|
|
|
|
|
const itemDetail1 = item.subList.find(r => { |
|
|
|
|
|
return r.batch == result.label.batch && r.fromLocationCode == result.fromLocationCode |
|
|
|
|
|
}) |
|
|
|
|
|
if(itemDetail1){ |
|
|
|
|
|
itemDetail = itemDetail1 |
|
|
|
|
|
} |
|
|
|
|
|
console.log(99,itemDetail1) |
|
|
|
|
|
}); |
|
|
|
|
|
if (!itemDetail) { |
|
|
this.showErrorMessage("批次【" + batch + "】库位【" + result |
|
|
this.showErrorMessage("批次【" + batch + "】库位【" + result |
|
|
.fromLocationCode + "】不在列表中") |
|
|
.fromLocationCode + "】不在列表中") |
|
|
} else { |
|
|
} else { |
|
@ -379,6 +388,7 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
|
|
|
console.log(2333,e) |
|
|
this.showMessage(e.message) |
|
|
this.showMessage(e.message) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|