对接虚拟清单详情

This commit is contained in:
qq787203167
2022-04-14 18:08:43 +08:00
parent 1d288acfff
commit 33ad3cce29
2 changed files with 17 additions and 10 deletions
@@ -59,7 +59,7 @@
</div> </div>
<a-form-model-item class="itemModel" prop="WVTAID"> <a-form-model-item class="itemModel" prop="WVTAID">
<a-input class="box-input" <a-input class="box-input"
:disabled="true" :disabled="false"
v-model="formInline.wvtaId" v-model="formInline.wvtaId"
:placeholder="$t('PleaseEnter')+'WVTA ID'"/> :placeholder="$t('PleaseEnter')+'WVTA ID'"/>
</a-form-model-item> </a-form-model-item>
@@ -523,6 +523,7 @@
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
this.formInline = item || {} this.formInline = item || {}
this.formInline.technologyTerritory = this.formInline.technologyTerritory ? this.formInline.technologyTerritory.split(',') : []
}) })
}, },
clickButtonToUpload(item) { clickButtonToUpload(item) {
@@ -553,8 +554,14 @@
this.visible = false this.visible = false
}, },
handleSubmit() { handleSubmit() {
let formInline = JSON.parse(JSON.stringify(this.formInline))
Object.keys(formInline).forEach(res => {
if (formInline[res] && formInline[res] instanceof Array) {
formInline[res] = formInline[res].join(',')
}
})
this.confirmLoading = true this.confirmLoading = true
postAction(this.url.editModel, this.formInline).then((res) => { postAction(this.url.editModel, formInline).then((res) => {
if (res.success) { if (res.success) {
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
this.visible = false this.visible = false
@@ -189,7 +189,7 @@
title: this.$t('standard'), title: this.$t('standard'),
align: 'center', align: 'center',
dataIndex: 'serialNumber', dataIndex: 'serialNumber',
width: 100, width: 180,
fixed: 'left' fixed: 'left'
}, },
{ {
@@ -272,12 +272,12 @@
}, },
{ {
title: this.$t('Sponsor'), title: this.$t('Sponsor'),
dataIndex: 'designInitiator', dataIndex: 'designInitiator_dictText',
align: 'center' align: 'center'
}, },
{ {
title: this.$t('personLiable'), title: this.$t('personLiable'),
dataIndex: 'designDuty', dataIndex: 'designDuty_dictText',
align: 'center' align: 'center'
} }
] ]
@@ -292,12 +292,12 @@
}, },
{ {
title: this.$t('Sponsor'), title: this.$t('Sponsor'),
dataIndex: 'prehomoInitiator', dataIndex: 'prehomoInitiator_dictText',
align: 'center' align: 'center'
}, },
{ {
title: this.$t('personLiable'), title: this.$t('personLiable'),
dataIndex: 'prehomoDuty', dataIndex: 'prehomoDuty_dictText',
align: 'center' align: 'center'
} }
] ]
@@ -312,12 +312,12 @@
}, },
{ {
title: this.$t('Sponsor'), title: this.$t('Sponsor'),
dataIndex: 'verifyInitiator', dataIndex: 'verifyInitiator_dictText',
align: 'center' align: 'center'
}, },
{ {
title: this.$t('personLiable'), title: this.$t('personLiable'),
dataIndex: 'verifyDuty', dataIndex: 'verifyDuty_dictText',
align: 'center' align: 'center'
} }
] ]
@@ -331,7 +331,7 @@
} }
], ],
selectedRowKeys: [], selectedRowKeys: [],
isTrue: false, isTrue: false
} }
}, },
mounted() { mounted() {