diff --git a/src/common/record.js b/src/common/record.js index 10c6e606..de6c44e7 100644 --- a/src/common/record.js +++ b/src/common/record.js @@ -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) { diff --git a/src/mycomponents/package/packageCard.vue b/src/mycomponents/package/packageCard.vue index 6c1f9269..8e583b13 100644 --- a/src/mycomponents/package/packageCard.vue +++ b/src/mycomponents/package/packageCard.vue @@ -6,7 +6,7 @@ - + diff --git a/src/mycomponents/qty/balanceQtyEdit.vue b/src/mycomponents/qty/balanceQtyEdit.vue index 250d0a48..319ef2b9 100644 --- a/src/mycomponents/qty/balanceQtyEdit.vue +++ b/src/mycomponents/qty/balanceQtyEdit.vue @@ -44,7 +44,7 @@ 库存数量 : - {{Number(dataContent.balanceQty)}} + {{Number(dataContent.balanceQty)}} diff --git a/src/mycomponents/qty/packUnit.vue b/src/mycomponents/qty/packUnit.vue index e076def7..1ae100d1 100644 --- a/src/mycomponents/qty/packUnit.vue +++ b/src/mycomponents/qty/packUnit.vue @@ -1,5 +1,5 @@