Commit d39fb948 authored by jingnan's avatar jingnan 👀

退库管理试飞退库修改

parent 5062b12c
......@@ -111,8 +111,13 @@ export default {
responseName = 'erpInventory'
} else if (this.basicData.subTypeName === 'RetirementTestFlyBack') { // 试飞退库
maxAmount = this.selection.outsideAmount
inventoryData = this.selection.inventory
inventoryData = this.selection.erpInventory
if (this.selection.subTypeName === 'JobResponseSorting') {
responseName = 'jobResponseSorting'
} else { // 历史配套数据
responseName = 'oldOutStorage'
delete this.selection.erpInventory
}
}
if (this.applyForm.reqAmount > maxAmount) return this.$utils.showMessageWarning(`当前选中物料的退库数量不足!`)
const data = [{
......@@ -120,15 +125,15 @@ export default {
'material': inventoryData.extMaterial,
'materialId': inventoryData.extMaterialId,
'testNo': inventoryData.testNo,
'batchNo': this.basicData.subTypeName === 'RetirementTestFlyBack' ? inventoryData.lotNo : this.selection.batchNumber,
'serialNo': this.basicData.subTypeName === 'RetirementTestFlyBack' ? inventoryData.serno : this.selection.serialNo,
'batchNo': this.selection.batchNumber,
'serialNo': this.selection.serialNo,
'uniqueId': this.selection.id,
'backAmount': this.selection.backAmount || 0,
'scrapCount': this.selection.scrapCount || 0,
'backedAmount': this.selection.backedAmount || 0,
'outsideAmount': this.selection.outsideAmount || 0,
'reqAmount': this.applyForm.reqAmount,
'unit': this.basicData.subTypeName === 'RetirementTestFlyBack' ? inventoryData.extUnit.unitName : this.selection.unit,
'unit': this.selection.unit,
'reqNo': this.selection.reqNo || '',
'aoPlan': aoNo,
'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