Browse Source

制品回收记录

hella_online_20240829
yufei0306 6 months ago
parent
commit
95007ee992
  1. 2
      src/common/record.js
  2. 10
      src/pages/productRecycle/record/productRecycleRecord.vue

2
src/common/record.js

@ -36,6 +36,8 @@ export function createDetailInfo(balance, pack) {
detail.packUnit = pack.packUnit
detail.handleQty = new Decimal(detail.qty).toNumber() ;
detail.package = pack;
detail.productionlineCode = pack.productionLineCode; // 制品回收记录需要加的
detail.toInventoryStatus = balance.inventoryStatus; // 制品回收记录需要加的
return detail;
}

10
src/pages/productRecycle/record/productRecycleRecord.vue

@ -105,9 +105,9 @@
if (this.fromType == "requestType") {
updateTitle("采购退货申请")
} else {
updateTitle("采购退货记录")
updateTitle("制品回收记录")
}
var typeCode = "PurchaseReturn"
var typeCode = "Productredress"
getBusinessType(typeCode, res => {
if (res.success) {
this.businessType = res.businessType;
@ -149,6 +149,7 @@
},
getScanResult(result) {
console.log('result',result)
if (this.supplierCode == '') {
this.supplierCode = result.label.supplierCode;
} else {
@ -170,6 +171,7 @@
},
getDataSource(result) {
console.log('getDataSource',result)
let balance = result.balance;
let label = result.label;
let pack = result.package;
@ -282,10 +284,12 @@
submitItem.toBatch = detail.batch;
submitItem.fromLocationCode = detail.locationCode;
submitItem.toLocationCode = ''; //退
submitItem.toLocationCode = detail.locationCode;
submitItem.qty = detail.handleQty;
submitItem.package = "";
submitItem.toInventoryStatus = detail.toInventoryStatus;
subList.push(submitItem)
}
})

Loading…
Cancel
Save