Files
dvcp_v2_wechat_app/src/project/pingchang/AppGetewayRegister/getewayDetail.vue

380 lines
9.7 KiB
Vue
Raw Normal View History

2022-09-22 11:20:10 +08:00
<template>
2022-09-26 13:50:24 +08:00
<div class="getewayDetail" v-if="pageShow">
2022-09-22 17:41:38 +08:00
<div class="detail-header">
<h2>{{ info.name }}的返乡登记信息</h2>
<div class="item-info">
<div class="item-info__item">
2022-09-27 09:49:19 +08:00
<image src="https://cdn.cunwuyun.cn/wxmp/pingchang/from-icon.png"/>
2022-09-22 17:41:38 +08:00
<span>{{ info.startAreaName }}</span>
</div>
<div class="item-info__item">
2022-09-27 09:49:19 +08:00
<image src="https://cdn.cunwuyun.cn/wxmp/pingchang/to-icon.png"/>
2022-09-22 17:41:38 +08:00
<span>{{ info.arriveAreaName }}</span>
</div>
<div class="item-info__item">
2022-09-27 09:49:19 +08:00
<image src="https://cdn.cunwuyun.cn/wxmp/pingchang/to-date.png"/>
2022-09-22 17:41:38 +08:00
<span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }} 到达</span>
</div>
2022-09-23 18:03:52 +08:00
<div class="item-info__item">
2022-09-27 09:49:19 +08:00
<image src="https://cdn.cunwuyun.cn/wxmp/pingchang/kakou.png"/>
2022-09-23 18:03:52 +08:00
<span>{{ info.gatewayName }}</span>
</div>
2022-09-22 17:41:38 +08:00
</div>
</div>
<div class="detail-info">
<h2>基本信息</h2>
<div class="detail-info__item">
<div class="left">
<label>姓名</label>
</div>
<div class="right">
<span>{{ info.name }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>身份证号</label>
</div>
<div class="right">
<span>{{ info.idNumber }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
2022-09-23 18:03:52 +08:00
<label>联系方式</label>
2022-09-22 17:41:38 +08:00
</div>
<div class="right" @click="call(info.phone)" hover-class="text-hover">
<image src="https://cdn.cunwuyun.cn/dvcp/h5/common/phone.png"/>
<span style="color: #4181FF">{{ info.phone }}</span>
</div>
</div>
2022-11-15 10:43:47 +08:00
<!-- <div class="detail-info__item">
2022-09-22 17:41:38 +08:00
<div class="left">
<label>人员类别</label>
</div>
<div class="right">
2022-09-23 18:03:52 +08:00
<span>{{ $dict.getLabel('EP_registerPersonType', info.type) }}</span>
2022-09-22 17:41:38 +08:00
</div>
2022-11-15 10:43:47 +08:00
</div> -->
<!-- <div class="detail-info__item">
2022-09-27 13:51:28 +08:00
<div class="left">
<label>高危行业</label>
</div>
<div class="right">
<span>{{ $dict.getLabel('EP_highRiskIndustries', info.highRiskIndustries) }}</span>
</div>
2022-11-15 10:43:47 +08:00
</div> -->
2022-09-22 17:41:38 +08:00
</div>
<div class="detail-info">
<h2>行程信息</h2>
<div class="detail-info__item">
<div class="left">
<label>出行方式</label>
</div>
<div class="right">
2022-09-26 09:58:11 +08:00
<span v-for="(item, index) in travelType" :key="index">
2022-09-28 16:18:40 +08:00
{{ $dict.getLabel('EP_travelType', item) }}
2022-09-26 09:58:11 +08:00
<span v-show="index < travelType.length - 1"></span>
2022-09-26 09:34:06 +08:00
</span>
2022-09-22 17:41:38 +08:00
</div>
</div>
2022-09-23 18:03:52 +08:00
<div class="detail-info__item">
<div class="left">
<label>车次/航班</label>
</div>
<div class="right">
<span>{{ info.trainNo }}</span>
</div>
</div>
2022-09-22 17:41:38 +08:00
<div class="detail-info__item">
<div class="left">
<label>出发时间</label>
</div>
<div class="right">
<span>{{ info.startTime && info.startTime.substr(0, info.startTime.length - 3) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
2022-10-09 10:10:41 +08:00
<label>出发地</label>
2022-09-22 17:41:38 +08:00
</div>
<div class="right">
<span :style="{color: info.denger == 1 ? '#FF4466' : '#333'}">{{ info.startAreaName }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
2022-10-09 10:10:41 +08:00
<label>出发地详址</label>
2022-09-22 17:41:38 +08:00
</div>
<div class="right">
<span>{{ info.startAddress }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
2022-09-23 18:03:52 +08:00
<label>行程描述</label>
2022-09-22 17:41:38 +08:00
</div>
<div class="right">
2022-09-23 18:03:52 +08:00
<span>{{ info.description }}</span>
2022-09-22 17:41:38 +08:00
</div>
</div>
<div class="detail-info__item">
<div class="left">
2022-09-23 18:03:52 +08:00
<label>抵平时间</label>
2022-09-22 17:41:38 +08:00
</div>
<div class="right">
2022-09-23 18:03:52 +08:00
<span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }}</span>
2022-09-22 17:41:38 +08:00
</div>
</div>
<div class="detail-info__item">
<div class="left">
2022-10-09 10:10:41 +08:00
<label>目的地</label>
2022-09-22 17:41:38 +08:00
</div>
<div class="right">
2022-09-23 18:03:52 +08:00
<span>{{ info.arriveAreaName }}</span>
2022-09-22 17:41:38 +08:00
</div>
</div>
<div class="detail-info__item">
<div class="left">
2022-10-09 10:10:41 +08:00
<label>目的地详址</label>
2022-09-22 17:41:38 +08:00
</div>
<div class="right">
2022-09-23 18:03:52 +08:00
<span>{{ info.arriveAddress }}</span>
2022-09-22 17:41:38 +08:00
</div>
</div>
</div>
<div class="detail-info">
2022-09-23 18:03:52 +08:00
<h2>健康状况</h2>
2022-09-22 17:41:38 +08:00
<div class="detail-info__item">
<div class="left">
2022-09-23 18:03:52 +08:00
<label>是否有风险旅居史</label>
2022-09-22 17:41:38 +08:00
</div>
<div class="right">
2022-09-27 15:08:30 +08:00
<span :style="{ color: info.fromHighRiskArea==1? '#FF4466' : '#42D784'}">{{ info.fromHighRiskArea==1? info.highRiskAreaName: '否' }}</span>
2022-09-27 14:22:25 +08:00
</div>
</div>
2022-09-22 17:41:38 +08:00
<div class="detail-info__item">
<div class="left">
2022-09-23 18:03:52 +08:00
<label>7天内是否接触新冠确诊或疑似患者</label>
2022-09-22 17:41:38 +08:00
</div>
<div class="right">
2022-09-23 18:03:52 +08:00
<span :style="{ color: info.contactPatients==1? '#FF4466' : info.contactPatients==2? '': '#42D784'}">{{ $dict.getLabel('epidemicTouchInFourteen', info.contactPatients) }}</span>
2022-09-22 17:41:38 +08:00
</div>
</div>
<div class="detail-info__item">
<div class="left">
2022-09-23 18:03:52 +08:00
<label>当前健康状况</label>
2022-09-22 17:41:38 +08:00
</div>
<div class="right">
2022-09-28 09:53:56 +08:00
<span :style="{ color: info.abnormalType? '#FF4466' :'#42D784'}">{{ $dict.getLabel('EP_abnormalType',info.abnormalType) || '没有出现症状' }}</span>
2022-09-22 17:41:38 +08:00
</div>
</div>
2022-09-23 18:03:52 +08:00
</div>
<div class="detail-info" v-if="info.companionCount > 0">
<h2>同行情况</h2>
2022-09-22 17:41:38 +08:00
<div class="detail-info__item">
<div class="left">
2022-09-23 18:03:52 +08:00
<label>同行人数</label>
2022-09-22 17:41:38 +08:00
</div>
<div class="right">
2022-09-26 09:58:11 +08:00
<span>{{ info.companionCount }}</span>
2022-09-22 17:41:38 +08:00
</div>
</div>
2022-09-23 18:03:52 +08:00
<div class="companionList">
2022-09-26 09:58:11 +08:00
<u-table>
<u-tr>
<u-th>姓名</u-th>
<u-th>手机号</u-th>
</u-tr>
<u-tr v-for="(e,index) in companionList" :key="index">
<u-td>{{ e.name }}</u-td>
<u-td>{{ e.phone }}</u-td>
</u-tr>
</u-table>
2022-09-22 17:41:38 +08:00
</div>
</div>
2022-09-23 18:03:52 +08:00
<div class="btn-wrapper" v-if="info.handleType == 0">
2022-09-27 08:56:51 +08:00
<div class="btn" @click="$linkTo(`./getewayAdd?id=${info.id}`)" hover-class="text-hover">编辑</div>
2022-09-23 18:03:52 +08:00
</div>
2022-09-22 17:41:38 +08:00
</div>
2022-09-22 11:20:10 +08:00
</template>
<script>
export default {
2022-09-22 17:41:38 +08:00
appName: "卡口登记详情",
data() {
return {
info: {},
2022-09-26 09:58:11 +08:00
pageShow: false,
companionList: [],
travelType: [],
2022-09-22 17:41:38 +08:00
}
},
onLoad(query) {
this.$loading()
2022-09-28 16:18:40 +08:00
this.$dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicMemberType', 'epidemicRecentTestResult','EP_travelType']).then(() => {
2022-09-22 17:41:38 +08:00
this.getInfo(query.id)
})
},
methods: {
preview(url) {
uni.previewImage({
urls: this.info.checkPhoto.map(v => v.url),
current: url
})
},
getInfo(id) {
2022-09-23 18:03:52 +08:00
this.$instance.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${id}`).then(res => {
if (res?.data) {
2022-09-22 17:41:38 +08:00
this.info = res.data
2022-09-26 09:58:11 +08:00
this.companionList = res.data.companionList
this.travelType = res.data.travelType?.split(',')
this.pageShow = true
2022-09-22 17:41:38 +08:00
}
this.$hideLoading()
})
},
call(phone) {
uni.makePhoneCall({
phoneNumber: phone
})
}
}
2022-09-22 11:20:10 +08:00
}
</script>
2022-09-26 14:02:17 +08:00
<style lang="scss" scoped>
2022-09-26 13:50:24 +08:00
.getewayDetail {
2022-09-26 09:58:11 +08:00
padding-bottom: 150px;
box-sizing: border-box;
2022-09-22 17:41:38 +08:00
.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;
}
span {
color: #333;
font-size: 28px;
}
}
}
}
.detail-info {
margin-top: 24px;
padding: 0 32px;
background: #fff;
& > h2 {
height: 116px;
line-height: 116px;
font-size: 38px;
font-weight: 600;
color: #333;
}
.detail-info__item {
display: flex;
justify-content: space-between;
padding: 34px 0;
border-bottom: 1px solid #DDDDDD;
&:last-child {
border: none;
}
.left {
display: flex;
line-height: 1.3;
max-width: 360px;
label {
position: relative;
color: #999999;
font-size: 32px;
}
}
.right {
display: flex;
max-width: 450px;
span {
color: #333333;
font-size: 32px;
text-align: right;
}
image {
width: 40px;
height: 40px;
}
}
}
.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;
2022-09-22 11:20:10 +08:00
2022-09-22 17:41:38 +08:00
&:nth-of-type(3n) {
margin-right: 0;
}
}
}
}
2022-09-26 09:58:11 +08:00
.companionList {
2022-09-26 13:50:24 +08:00
padding: 20px;
2022-09-26 09:58:11 +08:00
box-sizing: border-box;
u-table {
u-tr {
u-th {
width: 50%;
}
u-td {
width: 50%;
}
}
}
}
2022-09-22 17:41:38 +08:00
}
2022-09-22 11:20:10 +08:00
}
2022-09-22 17:41:38 +08:00
</style>