From 0a9ce488809f43218ec8b89dc5dbebfe52200b98 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 13 Oct 2022 17:10:33 +0800 Subject: [PATCH] 31090 --- .../AppHealthReport/components/Detail.vue | 92 ++++++++++++++++++- 1 file changed, 88 insertions(+), 4 deletions(-) diff --git a/project/pingchang/apps/AppHealthReport/components/Detail.vue b/project/pingchang/apps/AppHealthReport/components/Detail.vue index 8bf945fd..1b5d7b68 100644 --- a/project/pingchang/apps/AppHealthReport/components/Detail.vue +++ b/project/pingchang/apps/AppHealthReport/components/Detail.vue @@ -41,6 +41,13 @@ + + + @@ -74,6 +81,52 @@ + + + + + {{ reportInfo.temperature }}℃ + + + {{ $dict.getLabel('epidemicTouchInFourteen', reportInfo.contactPatients) }} + + + {{ reportInfo.healthName }} + + + + + + {{ reportInfo.nucleicAcidDate && reportInfo.nucleicAcidDate.split(' ')[0] }} + + + {{ $dict.getLabel('EP_nucleicAcidResult', reportInfo.nucleicAcidResult) }} + + + {{ $dict.getLabel('EP_jkmType', reportInfo.jkmType) }} + + + {{ $dict.getLabel('EP_vaccinationCount', reportInfo.vaccinationCount) }} + + + + + + + + @@ -95,6 +148,7 @@ currIndex: 0, isLoading: false, riskDisposalInfo: {}, + reportInfo: {}, tableData: [], colConfigs1: [ {prop: 'createTime', label: '上报日期', align: 'center' }, @@ -127,7 +181,9 @@ this.isLoading = true if (this.params && this.params.id) { this.id = this.params.id - this.getInfo(this.params.id) + this.dict.load(['EP_vaccinationCount', 'EP_jkmType', 'epidemicTouchInFourteen', 'EP_healthType']).then(() => { + this.getInfo(this.params.id) + }) } }, @@ -137,11 +193,8 @@ if (res.code === 0) { this.info = res.data - console.log(res.data.handleLogs.filter(v => v.riskRelief)) - if (res.data.handleLogs && res.data.handleLogs.length) { this.riskDisposalInfo = res.data.handleLogs.filter(v => v.riskRelief).length ? res.data.handleLogs.filter(v => !v.riskRelief)[0] : {} - console.log(this.riskDisposalInfo) this.info.handleLogs = res.data.handleLogs.filter(v => !v.riskRelief) } @@ -153,6 +206,37 @@ }) }, + toDetail (row) { + this.reportInfo = row + this.isShow = true + let healthName = '' + this.reportInfo.isHealth = false + row.health.split(',').forEach(v => { + if (v > 0) { + this.reportInfo.isHealth = true + } + healthName = healthName + this.dict.getLabel('EP_healthType', v) + }) + this.reportInfo.healthName = healthName + // this.instance.post(`/app/appepidemichealthreport/queryDetailById?id=${id}`).then(res => { + // if (res.code === 0) { + // this.reportInfo = res.data + // this.reportInfo.checkPhoto = JSON.parse(res.data.checkPhoto) + // let healthName = '' + // this.reportInfo.isHealth = false + // res.data.health.split(',').forEach(v => { + // if (v > 0) { + // this.reportInfo.isHealth = true + // } + // healthName = healthName + this.dict.getLabel('epidemicRecentHealth', v) + // }) + // this.reportInfo.healthName = healthName + + // this.isShow = true + // } + // }) + }, + cancel () { this.$emit('change', { type: 'List',