Commit b4cf7b9be6bacfcf76e68092c5828d085aeb4af4
1 parent
b80e5713
案件处理
Showing
1 changed file
with
19 additions
and
0 deletions
src/views/baseCaseHandling/Form.vue
| ... | ... | @@ -539,6 +539,22 @@ export default { |
| 539 | 539 | }).then(async (res) => { |
| 540 | 540 | res.data.districtCountyName = this.areaOptions.find(item => item.id == res.data.districtCounty).fullName; |
| 541 | 541 | res.data.categoryName = this.platformTypeOptions.find(v => v.Id == res.data.category || v.FullName == res.data.category).FullName; |
| 542 | + this.isEmpty(res.data.registerApproval) && (res.data.registerApproval = ''); | |
| 543 | + !res.data.registerApprovalFileModel && (res.data.registerApprovalFileModel = []); | |
| 544 | + this.isEmpty(res.data.record) && (res.data.record = ''); | |
| 545 | + !res.data.recordFileModel && (res.data.recordFileModel = []); | |
| 546 | + this.isEmpty(res.data.caseHandlingOpinions) && (res.data.caseHandlingOpinions = ''); | |
| 547 | + !res.data.caseHandlingOpinionsFileModel && (res.data.caseHandlingOpinionsFileModel = []); | |
| 548 | + this.isEmpty(res.data.enforcementRecords) && (res.data.enforcementRecords = ''); | |
| 549 | + !res.data.enforcementRecordsFileModel && (res.data.enforcementRecordsFileModel = []); | |
| 550 | + this.isEmpty(res.data.noticeLetter) && (res.data.noticeLetter = ''); | |
| 551 | + !res.data.noticeLetterFileModel && (res.data.noticeLetterFileModel = []); | |
| 552 | + this.isEmpty(res.data.punishmentDecision) && (res.data.punishmentDecision = ''); | |
| 553 | + !res.data.punishmentDecisionFileModel && (res.data.punishmentDecisionFileModel = []); | |
| 554 | + this.isEmpty(res.data.closingReport) && (res.data.closingReport = ''); | |
| 555 | + !res.data.closingReportFileModel && (res.data.closingReportFileModel = []); | |
| 556 | + this.isEmpty(res.data.other) && (res.data.other = ''); | |
| 557 | + !res.data.otherFileModel && (res.data.otherFileModel = []); | |
| 542 | 558 | this.dataForm = res.data; |
| 543 | 559 | this.loading = false; |
| 544 | 560 | }).catch(() => { |
| ... | ... | @@ -547,6 +563,9 @@ export default { |
| 547 | 563 | } |
| 548 | 564 | }); |
| 549 | 565 | }, |
| 566 | + isEmpty(val) { | |
| 567 | + return !val || val == 'null' | |
| 568 | + }, | |
| 550 | 569 | // 上报/下派 |
| 551 | 570 | submit(type) { |
| 552 | 571 | // type: 1 上报 0 保存 | ... | ... |