Files
dvcp_v2_webapp/project/pingchang/apps/AppBayonetRegistration/components/Detail.vue

190 lines
8.3 KiB
Vue
Raw Normal View History

2022-09-26 15:18:54 +08:00
<template>
2022-09-26 17:10:55 +08:00
<ai-detail isHasSidebar v-loading="isLoading">
2022-09-26 15:18:54 +08:00
<template slot="title">
<ai-title title="返乡登记详情" isShowBack isShowBottomBorder @onBackClick="cancel(false)">
</ai-title>
</template>
<template slot="content">
<AiSidebar :tabTitle="tabList" v-model="currIndex"></AiSidebar>
<div v-show="currIndex === 0">
<ai-card title="基本信息" v-show="currIndex === 0">
<template #content>
<ai-wrapper
label-width="120px">
<ai-info-item label="姓名" :value="info.name"></ai-info-item>
<ai-info-item label="填报时间" :value="info.createTime"></ai-info-item>
<ai-info-item label="身份证号" :value="info.idNumber"></ai-info-item>
<ai-info-item label="手机号码" :value="info.phone"></ai-info-item>
2022-09-26 17:07:59 +08:00
<ai-info-item label="人员类别" :value="dict.getLabel('EP_registerPersonType', info.type)"></ai-info-item>
<ai-info-item label="是否从事高危行业" :value="dict.getLabel('EP_highRiskIndustries', info.highRiskIndustries)"></ai-info-item>
<ai-info-item label="登记卡口" isLine :value="info.gatewayName"></ai-info-item>
2022-09-26 15:18:54 +08:00
</ai-wrapper>
</template>
</ai-card>
<ai-card title="行程信息">
<template #content>
<ai-wrapper
label-width="120px">
<ai-info-item label="出发时间" :value="info.startTime"></ai-info-item>
<ai-info-item label="出发地区" >
<span :style="{color: info.denger == 1 ? '#FF4466' : '#333'}">{{info.startAreaName}} </span>
</ai-info-item>
<ai-info-item label="出发地址" isLine :value="info.startAddress"></ai-info-item>
2022-09-26 17:07:59 +08:00
<ai-info-item label="出行方式" :value="info.travelTypeNames"></ai-info-item>
<ai-info-item label="车次/航班" isLine :value="info.trainNo"></ai-info-item>
2022-09-26 15:18:54 +08:00
<ai-info-item label="行程描述" isLine :value="info.description"></ai-info-item>
2022-09-26 17:07:59 +08:00
<ai-info-item label="抵平时间" :value="info.arriveTime"></ai-info-item>
2022-09-26 15:18:54 +08:00
<ai-info-item label="到达地区" :value="info.arriveAreaName"></ai-info-item>
<ai-info-item label="返乡地址" isLine :value="info.arriveAddress"></ai-info-item>
</ai-wrapper>
</template>
</ai-card>
<ai-card title="健康状况">
<template #content>
<ai-wrapper
label-width="120px">
2022-09-26 17:07:59 +08:00
<ai-info-item label="是否有风险旅居史" :value="dict.getLabel('yesOrNo', info.fromHighRiskArea)"></ai-info-item>
<ai-info-item label="7天内是否接触新冠确诊或疑似患者" :value="dict.getLabel('yesOrNo', info.contactPatients)"></ai-info-item>
<ai-info-item label="当前健康状况" :value="dict.getLabel('yesOrNo', info.abnormalHealth)"></ai-info-item>
2022-09-26 15:18:54 +08:00
</ai-wrapper>
</template>
</ai-card>
2022-09-26 17:07:59 +08:00
<ai-card title="同行情况">
2022-09-26 15:18:54 +08:00
<template #content>
2022-09-26 17:07:59 +08:00
<ai-table
:isShowPagination="false"
tableSize="small"
border
:tableData="info.companionList"
:col-configs="colConfigs"
@getList="() => {}">
</ai-table>
2022-09-26 15:18:54 +08:00
</template>
</ai-card>
</div>
<div v-show="currIndex === 1">
2022-09-26 17:07:59 +08:00
<ai-card title="风险处置">
2022-09-26 15:18:54 +08:00
<template #right>
<el-button type="primary" v-if="info.status === '0'" @click="release">解除异常</el-button>
</template>
<template #content>
<ai-wrapper
label-width="120px">
<ai-info-item label="姓名" :value="info.name"></ai-info-item>
<ai-info-item label="填报时间" :value="info.createTime"></ai-info-item>
<ai-info-item label="身份证号" :value="info.idNumber"></ai-info-item>
<ai-info-item label="手机号码" :value="info.phone"></ai-info-item>
2022-09-26 17:07:59 +08:00
<ai-info-item label="人员类别" :value="dict.getLabel('EP_registerPersonType', info.type)"></ai-info-item>
2022-09-26 15:18:54 +08:00
</ai-wrapper>
</template>
</ai-card>
2022-09-26 17:07:59 +08:00
<ai-card title="处理意见">
2022-09-26 15:18:54 +08:00
<template #content>
2022-09-26 17:07:59 +08:00
<ai-wrapper
style="margin-bottom: 20px;"
v-for="item in info.riskDisposalList"
:key="item.id"
label-width="120px">
<ai-info-item label="处理意见" :value="dict.getLabel('EP_handleType', item.handleType)"></ai-info-item>
<ai-info-item v-if="item.handleType === '2'" label="集中隔离地" :value="dict.getLabel('EP_quarantineAddress', item.quarantineAddress)"></ai-info-item>
<ai-info-item v-if="item.handleType === '3'" label="居家状态" :value="dict.getLabel('EP_homeStatus', item.homeStatus)"></ai-info-item>
<ai-info-item v-if="item.handleType === '6'" label="移交对象" :value="dict.getLabel('EP_handoverObject', item.handoverObject)"></ai-info-item>
<ai-info-item v-if="item.handleType === '6'" label="移交方式" :value="dict.getLabel('EP_handoverMethod', item.handoverMethod)"></ai-info-item>
<ai-info-item v-if="item.handleType === '6'" label="交接人员姓名" :value="info.handoverPersonName"></ai-info-item>
<ai-info-item v-if="item.handleType === '6'" label="手机号" :value="info.handoverPersonPhone"></ai-info-item>
<ai-info-item v-if="['2', '3'].includes(item.handleType)" label="隔离时间" :value="item.quarantineBeginTime + '至' + item.quarantineEndTime"></ai-info-item>
<ai-info-item v-if="['2', '3'].includes(item.handleType)" label="隔离策略" :value="dict.getLabel('EP_quarantineStrategy', item.quarantineStrategy)"></ai-info-item>
<ai-info-item v-if="['3'].includes(item.handleType)" label="管控方式" :value="dict.getLabel('EP_controlMethod', item.controlMethod)"></ai-info-item>
<ai-info-item label="图片" isLine v-if="['3', '6'].includes(item.handleType)">
<ai-uploader
:instance="instance"
:value="item.fileList"
disabled
:limit="9">
</ai-uploader>
</ai-info-item>
</ai-wrapper>
2022-09-27 14:41:56 +08:00
<ai-empty v-if="info.riskDisposalList && !info.riskDisposalList.length"></ai-empty>
2022-09-26 15:18:54 +08:00
</template>
</ai-card>
</div>
</template>
</ai-detail>
</template>
<script>
export default {
name: 'Detail',
props: {
instance: Function,
dict: Object,
params: Object
},
data () {
return {
info: {},
isShow: false,
currIndex: 0,
2022-09-26 17:10:55 +08:00
isLoading: false,
2022-09-26 15:18:54 +08:00
tableData: [],
colConfigs: [
2022-09-26 17:07:59 +08:00
{prop: 'createUserName', label: '姓名', align: 'center' },
{prop: 'phone', label: '手机号', align: 'center'}
2022-09-26 15:18:54 +08:00
],
2022-09-26 17:07:59 +08:00
tabList: ['基本信息', '风险处置']
2022-09-26 15:18:54 +08:00
}
},
created () {
2022-09-26 17:10:55 +08:00
this.isLoading = true
2022-09-26 15:18:54 +08:00
if (this.params && this.params.id) {
this.id = this.params.id
2022-09-26 17:07:59 +08:00
this.$dict.load(['EP_riskLevel', 'EP_handleType', 'EP_registerPersonType', 'EP_highRiskIndustries', 'EP_travelType', 'yesOrNo', 'EP_handoverObject',
'EP_handleType', 'EP_quarantineAddress', 'EP_homeStatus', 'EP_quarantineStrategy', 'EP_controlMethod', 'EP_handoverMethod']).then(() => {
2022-09-26 15:18:54 +08:00
this.getInfo(this.params.id)
})
}
},
methods: {
getInfo (id) {
2022-09-26 17:07:59 +08:00
this.instance.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${id}`).then(res => {
2022-09-26 15:18:54 +08:00
if (res.code === 0) {
this.info = res.data
this.info.checkPhoto = res.data.checkPhoto ? JSON.parse(res.data.checkPhoto) : []
2022-09-26 17:07:59 +08:00
this.info.travelTypeNames = res.data.travelType.split(',').map(v => {
return this.dict.getLabel('EP_travelType', v)
}).join('')
2022-09-26 15:18:54 +08:00
}
2022-09-26 17:10:55 +08:00
this.isLoading = false
}).catch(() => {
this.isLoading = false
2022-09-26 15:18:54 +08:00
})
},
cancel () {
this.$emit('change', {
type: 'List',
isRefresh: true
})
}
}
}
</script>
<style scoped lang="scss">
.color-0{
color: #42D784;
}
.color-1{
color: #f46;
}
.color-2{
color: #1365DD;
}
</style>