[update] 修改各部门主动上报流程表格编辑
This commit is contained in:
+13
-10
@@ -770,17 +770,22 @@ export default {
|
|||||||
this.visible = true
|
this.visible = true
|
||||||
this.model = Object.assign({}, record)
|
this.model = Object.assign({}, record)
|
||||||
this.formInline = Object.assign({}, record)
|
this.formInline = Object.assign({}, record)
|
||||||
|
// 没有年代号就设置为当前年份
|
||||||
|
if (!this.formInline.decadeCode) {
|
||||||
|
this.formInline.decadeCode = new Date().getFullYear() + ''
|
||||||
|
}
|
||||||
|
// 处理隶属工作组格式
|
||||||
if (this.formInline.workGroup) {
|
if (this.formInline.workGroup) {
|
||||||
this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText }
|
this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText }
|
||||||
}
|
}
|
||||||
|
// 没有申请类型就设置为立项
|
||||||
if (!this.formInline.applicationType) {
|
if (!this.formInline.applicationType) {
|
||||||
this.formInline.applicationType = this.ApplicationCategory.INITIATION.value
|
this.formInline.applicationType = this.ApplicationCategory.INITIATION.value
|
||||||
}
|
}
|
||||||
if (this.formInline.enStandardSystem && this.formInline.enStandardSystem.length > 0) {
|
// 处理标准体系数据格式
|
||||||
this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => {
|
this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => {
|
||||||
return { value: item }
|
return { value: item }
|
||||||
}) : []
|
}) : []
|
||||||
}
|
|
||||||
},
|
},
|
||||||
look (record) {
|
look (record) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
@@ -789,11 +794,9 @@ export default {
|
|||||||
if (this.formInline.workGroup) {
|
if (this.formInline.workGroup) {
|
||||||
this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText }
|
this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText }
|
||||||
}
|
}
|
||||||
if (this.formInline.enStandardSystem && this.formInline.enStandardSystem.length > 0) {
|
this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => {
|
||||||
this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => {
|
return { value: item }
|
||||||
return { value: item }
|
}) : []
|
||||||
}) : []
|
|
||||||
}
|
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
},
|
},
|
||||||
// watch监视年代号会滞后
|
// watch监视年代号会滞后
|
||||||
|
|||||||
Reference in New Issue
Block a user