|
|
@ -48,7 +48,23 @@ export function createDetailInfo(balance, pack) { |
|
|
|
|
|
|
|
return detail; |
|
|
|
} |
|
|
|
export function createDetailInfoForLabel(balance, pack,label) { |
|
|
|
balance.scaned = true; |
|
|
|
// data.toInventoryStatus = this.toInventoryStatus == "" ? data.inventoryStatus : this.toInventoryStatus;
|
|
|
|
// data.inventoryStatus = data.inventoryStatus;
|
|
|
|
let detail = deepCopyData(balance); |
|
|
|
detail.balanceQty = new Decimal(detail.qty).toNumber() |
|
|
|
detail.qty = new Decimal(detail.qty).toNumber(); |
|
|
|
detail.packQty = pack.packQty ? new Decimal(pack.packQty).toNumber() : 0 |
|
|
|
detail.packUnit = pack.packUnit |
|
|
|
console.log(988,label.qty) |
|
|
|
detail.handleQty = new Decimal(label.qty).toNumber(); |
|
|
|
detail.package = pack; |
|
|
|
detail.productionlineCode = pack.productionLineCode; // 制品回收记录需要加的
|
|
|
|
detail.toInventoryStatus = balance.inventoryStatus; // 制品回收记录需要加的
|
|
|
|
|
|
|
|
return detail; |
|
|
|
} |
|
|
|
|
|
|
|
export function createDetailByPackInfo(pack) { |
|
|
|
|
|
|
|