diff --git a/src/views/baseCaseHandling/Form.vue b/src/views/baseCaseHandling/Form.vue index e884450..15f6305 100644 --- a/src/views/baseCaseHandling/Form.vue +++ b/src/views/baseCaseHandling/Form.vue @@ -539,6 +539,22 @@ export default { }).then(async (res) => { res.data.districtCountyName = this.areaOptions.find(item => item.id == res.data.districtCounty).fullName; res.data.categoryName = this.platformTypeOptions.find(v => v.Id == res.data.category || v.FullName == res.data.category).FullName; + this.isEmpty(res.data.registerApproval) && (res.data.registerApproval = ''); + !res.data.registerApprovalFileModel && (res.data.registerApprovalFileModel = []); + this.isEmpty(res.data.record) && (res.data.record = ''); + !res.data.recordFileModel && (res.data.recordFileModel = []); + this.isEmpty(res.data.caseHandlingOpinions) && (res.data.caseHandlingOpinions = ''); + !res.data.caseHandlingOpinionsFileModel && (res.data.caseHandlingOpinionsFileModel = []); + this.isEmpty(res.data.enforcementRecords) && (res.data.enforcementRecords = ''); + !res.data.enforcementRecordsFileModel && (res.data.enforcementRecordsFileModel = []); + this.isEmpty(res.data.noticeLetter) && (res.data.noticeLetter = ''); + !res.data.noticeLetterFileModel && (res.data.noticeLetterFileModel = []); + this.isEmpty(res.data.punishmentDecision) && (res.data.punishmentDecision = ''); + !res.data.punishmentDecisionFileModel && (res.data.punishmentDecisionFileModel = []); + this.isEmpty(res.data.closingReport) && (res.data.closingReport = ''); + !res.data.closingReportFileModel && (res.data.closingReportFileModel = []); + this.isEmpty(res.data.other) && (res.data.other = ''); + !res.data.otherFileModel && (res.data.otherFileModel = []); this.dataForm = res.data; this.loading = false; }).catch(() => { @@ -547,6 +563,9 @@ export default { } }); }, + isEmpty(val) { + return !val || val == 'null' + }, // 上报/下派 submit(type) { // type: 1 上报 0 保存