diff --git a/src/views/workCenter/annualRevisionPlanStandardizationInit/modules/BaseInfoTableModal.vue b/src/views/workCenter/annualRevisionPlanStandardizationInit/modules/BaseInfoTableModal.vue index bb963d71..64648691 100644 --- a/src/views/workCenter/annualRevisionPlanStandardizationInit/modules/BaseInfoTableModal.vue +++ b/src/views/workCenter/annualRevisionPlanStandardizationInit/modules/BaseInfoTableModal.vue @@ -793,22 +793,22 @@ export default { edit (record) { this.visible = true this.model = Object.assign({}, record) - this.formInline = Object.assign({}, record) + const formInline = Object.assign({}, record) // 三个日期,如果标准化填写了,主起草人不能修改,标准化未填写,联络人必填 if ([6].includes(this.currentNode)) { // 是主起草人的编辑 // 草稿计划完成日期的处理 - if (this.formInline.draftPlannedCompleteDateEditFlag === '0') { + if (formInline.draftPlannedCompleteDateEditFlag === '0') { // 草稿计划完成日期已经填写了, 主起草人不能修改 this.draftPlanFinishDateDisabled = true } // 征求意见稿计划完成日期 - if (this.formInline.solicitationDraftPlanCompleteDateEditFlag === '0') { + if (formInline.solicitationDraftPlanCompleteDateEditFlag === '0') { // 征求意见稿计划完成日期已经填写了, 主起草人不能修改 this.exposureDraftPlanFinishDateDisabled = true } // 计划报批日期 - if (this.formInline.planApprovalDateEditFlag === '0') { + if (formInline.planApprovalDateEditFlag === '0') { // 计划报批日期已经填写了, 主起草人不能修改 this.planSubmissionDateDisabled = true } @@ -820,7 +820,7 @@ export default { // 是联络人的编辑,只能编辑3个日期,如果标准化填过了不能修改,未填的话必填 this.disabled = true // 草稿计划完成日期的处理 - if (this.formInline.draftPlannedCompleteDateEditFlag !== '0') { + if (formInline.draftPlannedCompleteDateEditFlag !== '0') { // 草稿计划完成日期没有填写, 联络人必填 this.rules.draftPlannedCompleteDate[0].required = true } else { @@ -828,7 +828,7 @@ export default { this.draftPlanFinishDateDisabled = true } // 征求意见稿计划完成日期 - if (this.formInline.solicitationDraftPlanCompleteDateEditFlag !== '0') { + if (formInline.solicitationDraftPlanCompleteDateEditFlag !== '0') { // 征求意见稿计划完成日期没有填写, 联络人必填 this.rules.solicitationDraftPlanCompleteDate[0].required = true } else { @@ -836,7 +836,7 @@ export default { this.exposureDraftPlanFinishDateDisabled = true } // 计划报批日期 - if (this.formInline.planApprovalDateEditFlag !== '0') { + if (formInline.planApprovalDateEditFlag !== '0') { // 计划报批日期没有填写, 联络人必填 this.rules.planApprovalDate[0].required = true } else { @@ -845,17 +845,18 @@ export default { } } // 没有年代号就设置为当前年份 - if (!this.formInline.decadeCode) { - this.formInline.decadeCode = new Date().getFullYear() + '' + if (!formInline.decadeCode) { + formInline.decadeCode = new Date().getFullYear() + '' } // 没有申请类型就设置为立项 - if (!this.formInline.applicationType) { - this.formInline.applicationType = this.ApplicationCategory.INITIATION.value + if (!formInline.applicationType) { + formInline.applicationType = this.ApplicationCategory.INITIATION.value } // 处理标准体系数据格式 - this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => { + formInline.enStandardSystem = formInline.enStandardSystem ? formInline.enStandardSystem.split(',').map(item => { return { value: item } }) : [] + this.formInline = Object.assign({}, formInline) }, look (record) { this.visible = true