卡口登记

This commit is contained in:
shijingjing
2022-09-23 18:03:52 +08:00
parent 761f404ac1
commit 6bc0e587b4
4 changed files with 63 additions and 79 deletions

View File

@@ -1,5 +1,6 @@
<template>
<div class="DetailGetway" v-if="pageShow">
<!-- v-if="pageShow" -->
<div class="DetailGetway">
<div class="detail-header">
<h2>{{ info.name }}的返乡登记信息</h2>
<div class="item-info">
@@ -15,6 +16,10 @@
<image src="/static/img/to-date.png"/>
<span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }} 到达</span>
</div>
<div class="item-info__item">
<image src="/static/img/kakou.png"/>
<span>{{ info.gatewayName }}</span>
</div>
</div>
</div>
<div class="detail-info">
@@ -37,7 +42,7 @@
</div>
<div class="detail-info__item">
<div class="left">
<label>手机号码</label>
<label>联系方式</label>
</div>
<div class="right" @click="call(info.phone)" hover-class="text-hover">
<image src="https://cdn.cunwuyun.cn/dvcp/h5/common/phone.png"/>
@@ -49,9 +54,7 @@
<label>人员类别</label>
</div>
<div class="right">
<span :style="{color: /[03]/.test(info.type) ? '#42D784' : '#FF4466'}">{{
$dict.getLabel('epidemicMemberType', info.type)
}}</span>
<span>{{ $dict.getLabel('EP_registerPersonType', info.type) }}</span>
</div>
</div>
</div>
@@ -65,6 +68,14 @@
<span>{{ $dict.getLabel('epidemicRecentTravel', info.travelType) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>车次/航班</label>
</div>
<div class="right">
<span>{{ info.trainNo }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>出发时间</label>
@@ -91,7 +102,15 @@
</div>
<div class="detail-info__item">
<div class="left">
<label>到达时间</label>
<label>行程描述</label>
</div>
<div class="right">
<span>{{ info.description }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>抵平时间</label>
</div>
<div class="right">
<span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }}</span>
@@ -113,62 +132,23 @@
<span>{{ info.arriveAddress }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>行程描述</label>
</div>
<div class="right">
<span>{{ info.description }}</span>
</div>
</div>
</div>
<div class="detail-info">
<h2>核酸检测信息</h2>
<div class="detail-info__item">
<div class="left">
<label>核酸检测日期</label>
</div>
<div class="right">
<span>{{ info.checkTime.split(' ')[0] }}</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 detail-info__item--img">
<div class="left" style="max-width: 100%;">
<label>本人健康码截图或核酸检测报告</label>
</div>
<div class="right">
<image :src="item.url" @click="preview(item.url)" v-for="(item, index) in info.checkPhoto" :key="index"/>
</div>
</div>
</div>
<div class="detail-info">
<h2>健康状况</h2>
<div class="detail-info__item">
<div class="left">
<label>当前体温</label>
<label>是否有风险旅居史</label>
</div>
<div class="right">
<span :style="{color: info.temperature >= 37.3 ? '#FF4466' : '#42D784'}">{{ info.temperature }}</span>
<span :style="{ color: info.fromHighRiskArea==1? '#FF4466' : '#42D784'}">{{ $dict.getLabel('yesOrNo',info.fromHighRiskArea) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>14天内是否接触新冠确诊或疑似患者</label>
<label>7天内是否接触新冠确诊或疑似患者</label>
</div>
<div class="right">
<span :style="{color: info.touchInFourteen === '0' ? '#42D784' : '#FF4466'}">{{
$dict.getLabel('epidemicTouchInFourteen', info.touchInFourteen)
}}</span>
<span :style="{ color: info.contactPatients==1? '#FF4466' : info.contactPatients==2? '': '#42D784'}">{{ $dict.getLabel('epidemicTouchInFourteen', info.contactPatients) }}</span>
</div>
</div>
<div class="detail-info__item">
@@ -176,10 +156,27 @@
<label>当前健康状况</label>
</div>
<div class="right">
<span :style="{color: !info.isHealth ? '#42D784' : '#FF4466'}">{{ info.healthName }}</span>
<span>{{ $dict.getLabel('EP_abnormalType',info.abnormalType) || '没有出现症状' }}</span>
</div>
</div>
</div>
<div class="detail-info" v-if="info.companionCount > 0">
<h2>同行情况</h2>
<div class="detail-info__item">
<div class="left">
<label>同行人数</label>
</div>
<div class="right">
<span>{{ info.companionCount }}</span>
</div>
</div>
<div class="companionList">
小伙伴表格
</div>
</div>
<div class="btn-wrapper" v-if="info.handleType == 0">
<div class="btn" @click="toEdit" hover-class="text-hover">编辑</div>
</div>
</div>
</template>
@@ -189,7 +186,7 @@ export default {
data() {
return {
info: {},
pageShow: false
// pageShow: false
}
},
@@ -209,29 +206,19 @@ export default {
},
getInfo(id) {
this.$instance.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.$instance.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${id}`).then(res => {
if (res?.data) {
this.info = res.data
this.info.checkPhoto = JSON.parse(res.data.checkPhoto)
let healthName = ''
this.info.isHealth = false
res.data.health.split(',').forEach(v => {
if (v > 0) {
this.info.isHealth = true
}
healthName = healthName + this.$dict.getLabel('epidemicRecentHealth', v)
})
this.info.healthName = healthName
this.$nextTick(() => {
this.pageShow = true
})
}
this.$hideLoading()
})
},
toEdit() {
console.log('编辑');
},
call(phone) {
uni.makePhoneCall({
phoneNumber: phone
@@ -243,7 +230,7 @@ export default {
<style lang="scss">
.DetailGetway {
padding-bottom: 40px;
padding-bottom: 140px;
.detail-header {
padding: 32px;