|
@ -309,53 +309,55 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
afterGetBalance(result) { |
|
|
afterGetBalance(result) { |
|
|
let balance = result.balance; |
|
|
let balance = result.balance; |
|
|
let label = result.label; |
|
|
let label = result.label; |
|
|
let pack = result.package; |
|
|
let pack = result.package; |
|
|
let packUnit = pack.packUnit; |
|
|
let packUnit = pack.packUnit; |
|
|
let packQty = pack.packQty |
|
|
let packQty = pack.packQty |
|
|
var item = this.detailSource.find(res => { |
|
|
var item = this.detailSource.find(res => { |
|
|
if (res.itemCode == balance.itemCode) { |
|
|
if (res.itemCode == balance.itemCode) { |
|
|
return res |
|
|
return res |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (this.fromWarehouseCode == '') { |
|
|
if (this.fromWarehouseCode == '') { |
|
|
this.fromWarehouseCode = balance.warehouseCode; |
|
|
this.fromWarehouseCode = balance.warehouseCode; |
|
|
} |
|
|
} |
|
|
if (item == undefined) { |
|
|
if (item == undefined) { |
|
|
|
|
|
|
|
|
var itemp = createItemInfo(balance, pack); |
|
|
var itemp = createItemInfo(balance, pack); |
|
|
let newDetail = createDetailInfo(balance, pack); // |
|
|
let newDetail = createDetailInfo(balance, pack); // |
|
|
newDetail.parentNumber = pack.parentNumber; |
|
|
newDetail.parentNumber = pack.parentNumber; |
|
|
newDetail.packingNumber = pack.number |
|
|
newDetail.packingNumber = pack.number |
|
|
newDetail.packUnit = packUnit; |
|
|
newDetail.packUnit = packUnit; |
|
|
newDetail.packQty = packQty; |
|
|
newDetail.packQty = packQty; |
|
|
itemp.subList.push(newDetail); |
|
|
itemp.subList.push(newDetail); |
|
|
this.detailSource.push(itemp) |
|
|
this.detailSource.push(itemp) |
|
|
calcHandleQty(this.detailSource); |
|
|
calcHandleQty(this.detailSource); |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
var detail = item.subList.find(r => { |
|
|
var detail = item.subList.find(r => { |
|
|
if (r.packingNumber == pack.number && |
|
|
if (r.packingNumber == pack.number && |
|
|
r.batch == balance.batch && |
|
|
r.batch == balance.batch && |
|
|
r.locationCode == balance.locationCode && |
|
|
r.locationCode == balance.locationCode && |
|
|
r.inventoryStatus == balance.inventoryStatus) { |
|
|
r.inventoryStatus == balance.inventoryStatus) { |
|
|
return r; |
|
|
return r; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (detail == undefined) { |
|
|
if (detail == undefined) { |
|
|
let newDetail = createDetailInfo(balance, pack); |
|
|
let newDetail = createDetailInfo(balance, pack); |
|
|
newDetail.parentNumber = pack.parentNumber; |
|
|
newDetail.parentNumber = pack.parentNumber; |
|
|
newDetail.packingNumber = pack.number |
|
|
newDetail.packingNumber = pack.number |
|
|
newDetail.packUnit = packUnit; |
|
|
newDetail.packUnit = packUnit; |
|
|
newDetail.packQty = packQty; |
|
|
newDetail.packQty = packQty; |
|
|
item.subList.push(newDetail); |
|
|
item.subList.push(newDetail); |
|
|
calcHandleQty(this.detailSource); |
|
|
calcHandleQty(this.detailSource); |
|
|
} else { |
|
|
} |
|
|
if (detail.scaned == true) { |
|
|
else { |
|
|
this.showErrorMessage("箱码[" + detail.packingNumber + "]批次[" + balance.batch + "]重复扫描 } |
|
|
if (detail.scaned == true) { |
|
|
} |
|
|
this.showErrorMessage("箱码[" + detail.packingNumber + "]批次[" + balance.batch + "]重复扫描") |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|