上报记录

This commit is contained in:
shijingjing
2022-05-25 17:09:28 +08:00
parent 94ae33a36a
commit f6f667a0f6
4 changed files with 117 additions and 279 deletions

View File

@@ -1,72 +1,48 @@
<template>
<div class="detail">
<div class="detail-info">
<h2>健康状况</h2>
<div class="detail-info__item">
<div class="left">
<label>当前体温</label>
</div>
<div class="right">
<span :style="{color: info.temperature >= 37.3 ? '#FF4466' : '#42D784'}">{{ info.temperature }}</span>
</div>
<div class="detail-header">
<div class="name">
<h2>张三<span>返乡人员</span></h2>
<p><u-icon name="phone" color="#4181FF" size="28"></u-icon>拨打电话</p>
</div>
<div class="detail-info__item">
<div class="left">
<label>14天内是否接触新冠确诊或疑似患者</label>
</div>
<div class="right">
<span :style="{color: info.touchInFourteen === '0' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicTouchInFourteen', info.touchInFourteen) }}</span>
</div>
<div class="idNumber">
<span>身份证号</span>
<span>420107197309172837</span>
</div>
<div class="detail-info__item">
<div class="left">
<label>当前健康状况</label>
</div>
<div class="right">
<span :style="{color: !info.isHealth ? '#42D784' : '#FF4466'}">{{ info.healthName }}</span>
</div>
<div class="phone">
<span>手机号码</span>
<span>13827263092</span>
</div>
<div class="address">
<span>详细地址</span>
<span>辛店镇北靳楼-北靳楼大学学生宿舍560</span>
</div>
</div>
<div class="detail-info">
<h2>核酸检测信息</h2>
<div class="detail-info__item">
<div class="title">
<div class="left">
<label>核酸检测日期</label>
<h2>上报记录</h2>
<p>个人连续无异常上报<span>7</span>>天后自动解除风险</p>
</div>
<div class="right">
<span>{{ info.checkTime.split(' ')[0] }}</span>
<span>3</span>/<span>7</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>核酸检测结果</label>
</div>
<div class="right">
<span :style="{color: info.checkResult === '0' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicRecentTestResult', info.checkResult) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>健康码状态</label>
</div>
<div class="right">
<span :style="{color: info.healthCode === '0' || info.healthCode === '1' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicHealthCode', info.healthCode) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>已接种疫苗次数</label>
</div>
<div class="right">
<span>{{ $dict.getLabel('epidemicVaccineTime', info.vaccine) }}</span>
</div>
</div>
<div class="detail-info__item detail-info__item--img">
<div class="left">
<label>本人健康码截图</label>
</div>
<div class="right">
<image :src="item.url" @click="preview(item.url)" v-for="(item, index) in info.checkPhoto" :key="index" />
<div class="list">
<div class="item">
<div class="item_card">
<div class="left">
<span></span><span>2020-07-20</span><span>自主上报</span>
</div>
<div class="right">
<span>异常</span>
<u-icon name="arrow-down" color="#999" size="28"></u-icon>
</div>
</div>
<div class="item_info">
</div>
</div>
</div>
</div>
@@ -75,7 +51,7 @@
<script>
export default {
appName:"上报详情",
appName:"上报记录",
data () {
return {
info: {},
@@ -83,12 +59,12 @@
}
},
onLoad (query) {
this.$loading()
this.$dict.load(['epidemicTouchInFourteen', 'epidemicRecentHealth', 'epidemicRecentTestResult', 'epidemicHealthCode', 'epidemicVaccineTime']).then(() => {
this.getInfo(query.id)
})
},
// onLoad (query) {
// this.$loading()
// this.$dict.load(['epidemicTouchInFourteen', 'epidemicRecentHealth', 'epidemicRecentTestResult', 'epidemicHealthCode', 'epidemicVaccineTime']).then(() => {
// this.getInfo(query.id)
// })
// },
methods: {
preview (url) {
@@ -137,108 +113,104 @@
.detail-header {
padding: 32px;
background: #fff;
h2 {
margin-bottom: 32px;
color: #333333;
font-size: 40px;
font-weight: 600;
}
.item-info {
.item-info__item {
display: flex;
align-items: center;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
image {
width: 32px;
height: 32px;
margin-right: 16px;
}
box-sizing: border-box;
background: #FFF;
.name {
display: flex;
justify-content: space-between;
align-items: center;
h2 {
font-weight: 600;
font-size: 40px;
span {
color: #333;
font-size: 28px;
font-weight: normal;
font-size: 26px;
padding: 4px 8px;
margin-left: 16px;
background: #FFF5F7;
color: #FF4466;
}
}
p {
font-size: 26px;
color: #4181FF;
}
}
.idNumber,
.phone,
.address {
color: #999999;
font-size: 26px;
margin-top: 8px;
span:first-child {
display: inline-block;
width: 130px;
vertical-align: top;
}
span:last-child {
display: inline-block;
width: calc(100% - 130px);
vertical-align: top;
}
}
.idNumber {
margin-top: 16px;
}
}
.detail-info {
margin-top: 24px;
padding: 0 32px;
background: #fff;
background: #FFF;
padding: 32px;
box-sizing: border-box;
& > h2 {
height: 116px;
line-height: 116px;
font-size: 38px;
font-weight: 600;
color: #333;
}
.detail-info__item {
.title {
display: flex;
justify-content: space-between;
padding: 34px 0;
border-bottom: 1px solid #DDDDDD;
&:last-child {
border: none;
}
align-items: center;
.left {
display: flex;
line-height: 1.3;
max-width: 360px;
label {
position: relative;
h2 {
font-size: 38px;
color: #333333;
font-weight: 600;
}
p {
font-size: 26px;
color: #999999;
font-size: 32px;
margin-top: 8px;
}
}
.right {
display: flex;
max-width: 450px;
span {
color: #333333;
font-size: 32px;
text-align: right;
}
image {
width: 40px;
height: 40px;
color: #999999;
font-size: 28px;
span:first-child {
color: #4181FF;
}
}
}
.detail-info__item--img {
display: block;
.right {
flex-wrap: wrap;
max-width: 100%;
margin-top: 34px;
image {
width: 226px;
height: 226px;
margin: 0 9px 9px 0;
&:nth-of-type(3n) {
margin-right: 0;
.list {
.item {
.item_card {
display: flex;
justify-content: space-between;
align-items: center;
padding: 26px 0;
.left {
span:first-child {
display: inline-block;
width: 4px;
height: 24px;
background: #1365DD;
vertical-align: center;
margin-right: 12px;
}
}
}
}
}
}