Commit f07d4d6b authored by jingnan's avatar jingnan 👀

供外出库占用逻辑修改

parent c36727af
...@@ -218,11 +218,19 @@ export default { ...@@ -218,11 +218,19 @@ export default {
const form = { ...this.form } const form = { ...this.form }
form.aircraftType = form.aircraftType.split('+')[1] form.aircraftType = form.aircraftType.split('+')[1]
form.sorties = form.sorties.split('+')[1] form.sorties = form.sorties.split('+')[1]
const inStorageRequestItems = this.tableData.map(row => {
if (row.id) {
row.operator = 'MODIFY'
} else {
row.operator = 'ADD'
}
return row
})
const param = { const param = {
...form, ...form,
inStorageRequestItems: this.tableData, inStorageRequestItems: inStorageRequestItems,
subTypeName: 'OutStorageOut', subTypeName: 'OutStorageOut',
operator: 'ADD' operator: form.id ? 'MODIFY' : 'ADD'
} }
if (this.applyId) { if (this.applyId) {
param.operator = 'MODIFY' param.operator = 'MODIFY'
......
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