Commit 1da96892 authored by jingnan's avatar jingnan 👀

领用出库增加FO领用和试验领用

parent 03b68bad
......@@ -69,18 +69,25 @@ export default {
'basicData.useRequestType': {
immediate: true,
handler(val) {
this.$set(this.cmpOptions, 'layKey', `outStorageUseMaterial_Add_${val}`)
switch (val) {
case 'useAO' :
case 'noAO':
case 'materialUse':
this.amountItemLabel = '申领数量'
this.$set(this.cmpOptions, 'layKey', `outStorageUseMaterial_Add_${val}`)
break
case 'noAO':
case 'testUse':
case 'FOUse':
this.amountItemLabel = '申领数量'
this.$set(this.cmpOptions, 'layKey', `outStorageUseMaterial_Add_noAO`)
break
case 'swapUse':
this.amountItemLabel = '换件数量'
this.$set(this.cmpOptions, 'layKey', `outStorageUseMaterial_Add_${val}`)
break
case 'scrapUse':
this.amountItemLabel = '报废数量'
this.$set(this.cmpOptions, 'layKey', `outStorageUseMaterial_Add_${val}`)
break
default:
break
......
......@@ -117,7 +117,11 @@ export default {
deep: true,
handler(val) {
if (val && val.useRequestType) {
this.$set(this.cmpOptions, 'layKey', `add_outStorageUseItem_${val.useRequestType}`)
if (val.useRequestType === 'noAO' || val.useRequestType === 'testUse' || val.useRequestType === 'FOUse') {
this.$set(this.cmpOptions, 'layKey', `add_outStorageUseItem_noAO`)
} else {
this.$set(this.cmpOptions, 'layKey', `add_outStorageUseItem_${val.useRequestType}`)
}
}
}
}
......@@ -255,8 +259,8 @@ export default {
},
occupy() {
const form = Object.assign({}, this.form)
form.aircraftType = form.aircraftType.includes('+') && form.aircraftType.split('+')[1] || form.aircraftType
form.sorties = form.sorties.includes('+') && form.sorties.split('+')[1] || form.sorties
form.aircraftType = form.aircraftType && form.aircraftType.includes('+') && form.aircraftType.split('+')[1] || form.aircraftType
form.sorties = form.sorties && form.sorties.includes('+') && form.sorties.split('+')[1] || form.sorties
const typeName = this.basicData.useRequestType
const param = {
...form,
......
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