卡口登记
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
<template>
|
||||
<div class="BackUserList">
|
||||
<div class="UserInfo">
|
||||
<div class="user-list">
|
||||
<div class="item">
|
||||
<h2 class="name">{{info.name}}的返乡登记信息</h2>
|
||||
<p><img src="./components/img/org-icon.png" alt=""><span class="start-name">{{info.startAreaName}}</span></p>
|
||||
<p><img src="./components/img/blue-icon.png" alt=""><span class="start-name">{{info.arriveAreaName}}</span></p>
|
||||
<p><img src="./components/img/time-icon.png" alt="">{{info.arriveTime}}</p>
|
||||
<p><img src="./components/img/point-icon.png" alt="">{{info.gatewayName}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info">
|
||||
@@ -16,7 +17,7 @@
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">身份证号</div>
|
||||
<div class="value">{{info.idNumber}}</div>
|
||||
<div class="value">{{info.idNumberText}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">联系方式</div>
|
||||
@@ -26,7 +27,7 @@
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">人员类别</div>
|
||||
<div class="value" :style="(info.type == 0 || info.type == 3 || info.type == 9) ? 'color:#42D784;' : 'color:#f46;'">{{$dict.getLabel('epidemicRecentPersonType', info.type)}}</div>
|
||||
<div class="value">{{$dict.getLabel('EP_registerPersonType', info.type)}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line-bg"></div>
|
||||
@@ -34,22 +35,32 @@
|
||||
<div class="title">行程信息</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">出行方式</div>
|
||||
<div class="value">{{$dict.getLabel('epidemicRecentTravel', info.travelType)}}</div>
|
||||
<div class="value">
|
||||
<span v-for="(item, index) in info.travelTypeList" :key="index"><span v-if="index>0">;</span>{{$dict.getLabel('EP_travelType',item)}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-flex border-none" v-if="info.trainNo">
|
||||
<div style="color:#999;">火车车次/航班号/汽车出发地</div>
|
||||
</div>
|
||||
<p class="line-text" v-if="info.trainNo">{{info.trainNo}}</p>
|
||||
<div class="item-flex">
|
||||
<div class="label">出发时间</div>
|
||||
<div class="value">{{info.startTime.substring(0, 16)}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">出发地区</div>
|
||||
<div class="value" :style="{color: info.denger == 1 ? '#FF4466' : '#333'}">{{info.startAreaName}}</div>
|
||||
<div class="value" :style="{color: info.riskLevel == 2 ? '#FF4466' : '#333'}">{{info.startAreaName}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">出发地址</div>
|
||||
<div class="value">{{info.startAddress}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">到达时间</div>
|
||||
<div class="label">行程描述</div>
|
||||
<div class="value">{{info.description}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">抵达时间</div>
|
||||
<div class="value">{{info.arriveTime.substring(0, 16)}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
@@ -60,70 +71,42 @@
|
||||
<div class="label">返乡地址</div>
|
||||
<div class="value">{{info.arriveAddress}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">行程描述</div>
|
||||
<div class="value">{{info.description}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line-bg"></div>
|
||||
<div class="info">
|
||||
<div class="title">核酸检测信息</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">核酸检测日期</div>
|
||||
<div class="value">{{info.checkTime}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">核酸检测结果</div>
|
||||
<div class="value" :style="info.checkResult == 1 ? 'color:#f46;' : 'color:#42D784;'">{{$dict.getLabel('epidemicRecentTestResult', info.checkResult)}}</div>
|
||||
</div>
|
||||
<div class="item-flex border-none">
|
||||
<div style="color:#999;">本人健康码截图或核酸检测报告</div>
|
||||
</div>
|
||||
<div class="img-list">
|
||||
<img :src="item.url" alt="" v-for="(item, index) in info.checkPhoto" :key="index" @click="previewImage(info.checkPhoto, item.url)">
|
||||
</div>
|
||||
</div>
|
||||
<div class="line-bg"></div>
|
||||
<div class="info">
|
||||
<div class="title">健康状况</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">当前体温</div>
|
||||
<div class="value" :style="info.temperature >= 37.3 ? 'color:#f46;' : ''">{{info.temperature}}℃</div>
|
||||
<div class="label">是否有风险旅居史</div>
|
||||
<div class="value" :style="info.fromHighRiskArea == 1 ? 'color:#f46;' : ''">{{$dict.getLabel('yesOrNo', info.fromHighRiskArea)}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label" style="width:360px;">14天内是否接触新冠确诊或疑似患者</div>
|
||||
<div class="value" :class="'color-'+info.touchInFourteen">{{$dict.getLabel('epidemicTouchInFourteen', info.touchInFourteen)}}</div>
|
||||
<div class="label" style="width:360px;">7天内是否接触新冠确诊或疑似患者</div>
|
||||
<div class="value" :style="info.contactPatients == 1 ? 'color:#f46;' : ''">{{$dict.getLabel('yesOrNo', info.contactPatients)}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">当前健康状况</div>
|
||||
<div class="value" >
|
||||
<span v-for="(item, index) in info.health" :key="index" :style="item != 0 ? 'color:#FF4466;' : ''"><span v-if="index>0">;</span>{{$dict.getLabel('epidemicRecentHealth', item)}}</span>
|
||||
<span v-if="info.abnormalHealth != 1">没有异常</span>
|
||||
<span v-else style="color:#FF4466;">{{$dict.getLabel('EP_abnormalType', info.abnormalType)}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line-bg"></div>
|
||||
<div class="info">
|
||||
<div class="title">异常处理情况</div>
|
||||
<div class="error-list" v-if="list.length">
|
||||
<div class="item" v-for="(item, index) in list" :key="index">
|
||||
<p>{{item.content}}</p>
|
||||
<div>{{item.createTime}}
|
||||
<span>{{item.createUserName}}</span>
|
||||
</div>
|
||||
<div class="info" v-if="info.companionList && info.companionList.length">
|
||||
<div class="title">同行情况<span>共{{info.companionCount}}人同行</span></div>
|
||||
<div class="table-content">
|
||||
<div class="item table-header">
|
||||
<div>姓名</div>
|
||||
<div>手机号码</div>
|
||||
</div>
|
||||
<div class="item" v-for="(item, index) in info.companionList" :key="index">
|
||||
<div>{{item.name}}</div>
|
||||
<div>{{item.phone}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-flex" v-if="info.releaseName">
|
||||
<div class="label">异常解除人</div>
|
||||
<div class="value">{{info.releaseName}}</div>
|
||||
</div>
|
||||
<div class="item-flex" v-if="info.releaseName">
|
||||
<div class="label">异常解除时间</div>
|
||||
<div class="value">{{info.releaseTime}}</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="line-bg" style="padding-bottom: 56px;"></div>
|
||||
<div class="footer" @click="toError" v-if="info.status != 1">异常情况处理</div>
|
||||
<div class="footer" v-if="info.handleType == 0" @click="toContent">风险处置</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -135,42 +118,31 @@ export default {
|
||||
return {
|
||||
id: '',
|
||||
info: {},
|
||||
list: []
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
onShow() {
|
||||
document.title = '返乡人员信息'
|
||||
document.title = '卡口登记详情'
|
||||
},
|
||||
onLoad(option) {
|
||||
this.$dict.load('epidemicRecentPersonType', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicRecentTestResult', 'epidemicRecentHealth').then(() => {
|
||||
this.$dict.load('yesOrNo', 'EP_registerPersonType', 'EP_travelType', 'EP_abnormalType').then(() => {
|
||||
this.id = option.id
|
||||
this.getDetail()
|
||||
this.getList()
|
||||
})
|
||||
uni.$on('updateDetail', () => {
|
||||
this.getList()
|
||||
this.getDetail()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$http.post(`/app/appepidemicunusuallog/list?recordId=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.list = res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${this.id}`).then((res) => {
|
||||
this.$http.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
if(res.data.checkTime) {
|
||||
res.data.checkTime = res.data.checkTime.substring(0, 10)
|
||||
}
|
||||
this.info = res.data
|
||||
this.info.checkPhoto = JSON.parse(this.info.checkPhoto)
|
||||
this.info.health = this.info.health.split(',')
|
||||
this.info.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||
this.info.travelTypeList = this.info.travelType.split(',')
|
||||
this.info.idNumberText = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -183,19 +155,19 @@ export default {
|
||||
current: img
|
||||
})
|
||||
},
|
||||
toError() {
|
||||
uni.navigateTo({url: `./ErrorInfo?id=${this.id}`})
|
||||
toContent() {
|
||||
uni.navigateTo({url: `./ManagementContent?id=${this.id}&idNumber=${this.info.idNumber}&haveHomeQuarantineBtn=${this.info.haveHomeQuarantineBtn}`})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.BackUserList {
|
||||
.UserInfo {
|
||||
.user-list{
|
||||
margin-bottom: 24px;
|
||||
.item{
|
||||
padding: 32px 64px 24px;
|
||||
padding: 32px 32px 24px;
|
||||
background-color: #fff;
|
||||
.name{
|
||||
font-size: 36px;
|
||||
@@ -245,6 +217,14 @@ export default {
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
overflow: hidden;
|
||||
span {
|
||||
float: right;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 32px;
|
||||
color: #999;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
.item-flex{
|
||||
padding: 34px 0;
|
||||
@@ -324,6 +304,31 @@ export default {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
}
|
||||
.table-content {
|
||||
padding: 32px 0 48px 0;
|
||||
.item {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-right: 1px solid #ccc;
|
||||
box-sizing: border-box;
|
||||
div {
|
||||
flex: 1;
|
||||
padding: 16px 48px;
|
||||
line-height: 40px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28px;
|
||||
color: #333;
|
||||
border-left: 1px solid #ccc;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
.table-header {
|
||||
background: #F7F7F7;
|
||||
border: 1px solid #ccc;
|
||||
border-left: none;
|
||||
}
|
||||
}
|
||||
.line-bg{
|
||||
width: 100%;
|
||||
height: 24px;
|
||||
@@ -347,5 +352,12 @@ export default {
|
||||
.border-none{
|
||||
border-bottom: 0!important;
|
||||
}
|
||||
.line-text {
|
||||
line-height: 80px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 32px;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user