健康上报

This commit is contained in:
yanran200730
2022-02-09 18:28:44 +08:00
parent 01bec4be03
commit ab6624266c

View File

@@ -18,7 +18,7 @@
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
<template slot-scope="{ row }">
<div class="table-options">
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
<el-button type="text" @click="toDetail(row)">详情</el-button>
</div>
</template>
</el-table-column>
@@ -28,7 +28,6 @@
width="890px"
customFooter
title="上报详情">
<ai-bar title="健康状况"></ai-bar>
<ai-wrapper
label-width="120px">
<ai-info-item label="当前体温">
@@ -41,30 +40,6 @@
<span :style="{color: !reportInfo.isHealth ? '#42D784' : '#FF4466'}">{{ reportInfo.healthName }}</span>
</ai-info-item>
</ai-wrapper>
<ai-bar title="核酸检测信息"></ai-bar>
<ai-wrapper
label-width="120px">
<ai-info-item label="检测日期">
<span>{{ reportInfo.checkTime && reportInfo.checkTime.split(' ')[0] }}</span>
</ai-info-item>
<ai-info-item label="检测结果">
<span :style="{color: reportInfo.checkResult === '0' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicRecentTestResult', reportInfo.checkResult) }}</span>
</ai-info-item>
<ai-info-item label="健康码状态">
<span :style="{color: (reportInfo.healthCode === '0' || reportInfo.healthCode === '1') ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicHealthCode', reportInfo.healthCode) }}</span>
</ai-info-item>
<ai-info-item label="已接种疫苗次数">
<span>{{ $dict.getLabel('epidemicVaccineTime', reportInfo.vaccine) }}</span>
</ai-info-item>
<ai-info-item label="本人健康码截图" isLine>
<ai-uploader
:instance="instance"
v-model="reportInfo.checkPhoto"
disabled
:limit="9">
</ai-uploader>
</ai-info-item>
</ai-wrapper>
<div class="dialog-footer" slot="footer">
<el-button @click="isShow = false">关闭</el-button>
</div>
@@ -106,10 +81,8 @@
},
created () {
console.log(this.params)
if (this.params && this.params.id) {
this.id = this.params.id
console.log(this.id)
this.dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicMemberType', 'epidemicRecentTestResult']).then(() => {
this.getList()
})
@@ -117,24 +90,17 @@
},
methods: {
toDetail (id) {
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
toDetail (e) {
this.reportInfo = e
let healthName = ''
e.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
},
getList () {