详情
This commit is contained in:
@@ -13,8 +13,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="item-info__item">
|
<div class="item-info__item">
|
||||||
<image src="https://cdn.cunwuyun.cn/wxmp/pingchang/to-date.png"/>
|
<image src="https://cdn.cunwuyun.cn/wxmp/pingchang/to-date.png"/>
|
||||||
|
<!-- <p>{{ info.arriveTime.substr(0, info.arriveTime.length - 3) }}</p> -->
|
||||||
<span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }} 到达</span>
|
<span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }} 到达</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="item-info__item">
|
||||||
|
<image src="https://cdn.cunwuyun.cn/wxmp/pingchang/kakou.png"/>
|
||||||
|
<span>{{ info.gatewayName }}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-info">
|
<div class="detail-info">
|
||||||
@@ -37,7 +42,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="detail-info__item">
|
<div class="detail-info__item">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<label>手机号码</label>
|
<label>联系方式</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="right" @click="call(info.phone)" hover-class="text-hover">
|
<div class="right" @click="call(info.phone)" hover-class="text-hover">
|
||||||
<image src="https://cdn.cunwuyun.cn/dvcp/h5/common/phone.png"/>
|
<image src="https://cdn.cunwuyun.cn/dvcp/h5/common/phone.png"/>
|
||||||
@@ -49,9 +54,16 @@
|
|||||||
<label>人员类别</label>
|
<label>人员类别</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<span :style="{color: /[03]/.test(info.type) ? '#42D784' : '#FF4466'}">{{
|
<!-- :style="{color: /[03]/.test(info.type) ? '#42D784' : '#FF4466'}" -->
|
||||||
$dict.getLabel('epidemicMemberType', info.type)
|
<span>{{ $dict.getLabel('EP_registerPersonType', info.type) }}</span>
|
||||||
}}</span>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="detail-info__item">
|
||||||
|
<div class="left">
|
||||||
|
<label>是否从事高危行业</label>
|
||||||
|
</div>
|
||||||
|
<div class="right">
|
||||||
|
<span>{{ $dict.getLabel('EP_highRiskIndustries', info.highRiskIndustries) }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -195,11 +207,15 @@ export default {
|
|||||||
|
|
||||||
onLoad(query) {
|
onLoad(query) {
|
||||||
this.$loading()
|
this.$loading()
|
||||||
this.$dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicMemberType', 'epidemicRecentTestResult']).then(() => {
|
this.$dict.load(['EP_highRiskIndustries', 'EP_registerPersonType', 'epidemicTouchInFourteen', 'epidemicMemberType', 'epidemicRecentTestResult']).then(() => {
|
||||||
this.getInfo(query.id)
|
this.getInfo(query.id)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onShow() {
|
||||||
|
this.getInfo(query.id)
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
preview(url) {
|
preview(url) {
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
@@ -209,25 +225,14 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getInfo(id) {
|
getInfo(id) {
|
||||||
this.$instance.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${id}`).then(res => {
|
this.$instance.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
this.info.checkPhoto = JSON.parse(res.data.checkPhoto)
|
this.info = res.data
|
||||||
let healthName = ''
|
this.companionList = res.data.companionList
|
||||||
this.info.isHealth = false
|
this.travelType = res.data.travelType?.split(',')
|
||||||
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.pageShow = true
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user