Commit 1da96892 authored by jingnan's avatar jingnan 👀

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

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