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