Commit d39fb948 authored by jingnan's avatar jingnan 👀

退库管理试飞退库修改

parent 5062b12c
...@@ -111,8 +111,13 @@ export default { ...@@ -111,8 +111,13 @@ export default {
responseName = 'erpInventory' responseName = 'erpInventory'
} else if (this.basicData.subTypeName === 'RetirementTestFlyBack') { // 试飞退库 } else if (this.basicData.subTypeName === 'RetirementTestFlyBack') { // 试飞退库
maxAmount = this.selection.outsideAmount maxAmount = this.selection.outsideAmount
inventoryData = this.selection.inventory inventoryData = this.selection.erpInventory
if (this.selection.subTypeName === 'JobResponseSorting') {
responseName = 'jobResponseSorting'
} else { // 历史配套数据
responseName = 'oldOutStorage' responseName = 'oldOutStorage'
delete this.selection.erpInventory
}
} }
if (this.applyForm.reqAmount > maxAmount) return this.$utils.showMessageWarning(`当前选中物料的退库数量不足!`) if (this.applyForm.reqAmount > maxAmount) return this.$utils.showMessageWarning(`当前选中物料的退库数量不足!`)
const data = [{ const data = [{
...@@ -120,15 +125,15 @@ export default { ...@@ -120,15 +125,15 @@ export default {
'material': inventoryData.extMaterial, 'material': inventoryData.extMaterial,
'materialId': inventoryData.extMaterialId, 'materialId': inventoryData.extMaterialId,
'testNo': inventoryData.testNo, 'testNo': inventoryData.testNo,
'batchNo': this.basicData.subTypeName === 'RetirementTestFlyBack' ? inventoryData.lotNo : this.selection.batchNumber, 'batchNo': this.selection.batchNumber,
'serialNo': this.basicData.subTypeName === 'RetirementTestFlyBack' ? inventoryData.serno : this.selection.serialNo, 'serialNo': this.selection.serialNo,
'uniqueId': this.selection.id, 'uniqueId': this.selection.id,
'backAmount': this.selection.backAmount || 0, 'backAmount': this.selection.backAmount || 0,
'scrapCount': this.selection.scrapCount || 0, 'scrapCount': this.selection.scrapCount || 0,
'backedAmount': this.selection.backedAmount || 0, 'backedAmount': this.selection.backedAmount || 0,
'outsideAmount': this.selection.outsideAmount || 0, 'outsideAmount': this.selection.outsideAmount || 0,
'reqAmount': this.applyForm.reqAmount, 'reqAmount': this.applyForm.reqAmount,
'unit': this.basicData.subTypeName === 'RetirementTestFlyBack' ? inventoryData.extUnit.unitName : this.selection.unit, 'unit': this.selection.unit,
'reqNo': this.selection.reqNo || '', 'reqNo': this.selection.reqNo || '',
'aoPlan': aoNo, 'aoPlan': aoNo,
'mdsItemCode': inventoryData.extMaterial.resCode 'mdsItemCode': inventoryData.extMaterial.resCode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment