健康上报
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
|
<el-button type="text" @click="toDetail(row)">详情</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -28,7 +28,6 @@
|
|||||||
width="890px"
|
width="890px"
|
||||||
customFooter
|
customFooter
|
||||||
title="上报详情">
|
title="上报详情">
|
||||||
<ai-bar title="健康状况"></ai-bar>
|
|
||||||
<ai-wrapper
|
<ai-wrapper
|
||||||
label-width="120px">
|
label-width="120px">
|
||||||
<ai-info-item label="当前体温">
|
<ai-info-item label="当前体温">
|
||||||
@@ -41,30 +40,6 @@
|
|||||||
<span :style="{color: !reportInfo.isHealth ? '#42D784' : '#FF4466'}">{{ reportInfo.healthName }}</span>
|
<span :style="{color: !reportInfo.isHealth ? '#42D784' : '#FF4466'}">{{ reportInfo.healthName }}</span>
|
||||||
</ai-info-item>
|
</ai-info-item>
|
||||||
</ai-wrapper>
|
</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">
|
<div class="dialog-footer" slot="footer">
|
||||||
<el-button @click="isShow = false">关闭</el-button>
|
<el-button @click="isShow = false">关闭</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -106,10 +81,8 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
console.log(this.params)
|
|
||||||
if (this.params && this.params.id) {
|
if (this.params && this.params.id) {
|
||||||
this.id = this.params.id
|
this.id = this.params.id
|
||||||
console.log(this.id)
|
|
||||||
this.dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicMemberType', 'epidemicRecentTestResult']).then(() => {
|
this.dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicMemberType', 'epidemicRecentTestResult']).then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
@@ -117,24 +90,17 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
toDetail (id) {
|
toDetail (e) {
|
||||||
this.instance.post(`/app/appepidemichealthreport/queryDetailById?id=${id}`).then(res => {
|
this.reportInfo = e
|
||||||
if (res.code === 0) {
|
let healthName = ''
|
||||||
this.reportInfo = res.data
|
e.health.split(',').forEach(v => {
|
||||||
this.reportInfo.checkPhoto = JSON.parse(res.data.checkPhoto)
|
if (v > 0) {
|
||||||
let healthName = ''
|
this.reportInfo.isHealth = true
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
healthName = healthName + this.dict.getLabel('epidemicRecentHealth', v)
|
||||||
})
|
})
|
||||||
|
this.reportInfo.healthName = healthName
|
||||||
|
this.isShow = true
|
||||||
},
|
},
|
||||||
|
|
||||||
getList () {
|
getList () {
|
||||||
|
|||||||
Reference in New Issue
Block a user