健康上报
This commit is contained in:
@@ -1,34 +1,91 @@
|
||||
<template>
|
||||
<div class="Detail">
|
||||
<div class="header">
|
||||
<h2 class="name">{{info.name}}
|
||||
<span @click="callPhone(info.phone)">{{info.phone}}</span><img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(info.phone)" class="phone-icon" />
|
||||
</h2>
|
||||
<p><img src="./components/img/idnumber-icon.png" alt=""><span class="start-name">{{info.idNumber}}</span></p>
|
||||
<p><img src="./components/img/address-icon.png" alt=""><span class="start-name">{{info.startAreaName}}</span></p>
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="title">上报记录<span class="day-text"><span>7</span>/14</span></div>
|
||||
<p class="mini-title">个人连续无异常上报7天后自动解除风险</p>
|
||||
<div class="error-list">
|
||||
<div class="item" v-for="(item, index) in 10" :key="index">
|
||||
<p class="time">2022-05-16(自主上报)<span>有异常</span></p>
|
||||
<div class="text">
|
||||
<span class="label">健康状况</span>
|
||||
<span class="value">发烧、乏力、咳嗽</span>
|
||||
</div>
|
||||
<div class="text">
|
||||
<span class="label">当前情况</span>
|
||||
<span class="value">发烧、乏力、咳嗽</span>
|
||||
</div>
|
||||
<div class="title">基本信息</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">姓名</div>
|
||||
<div class="value">{{info.reportUser.name}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">身份证号</div>
|
||||
<div class="value">{{info.reportUser.idNumberText}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">联系方式</div>
|
||||
<div class="value" style="color:#4181FF;" @click="callPhone(info.reportUser.phone)">
|
||||
<img :src="$cdn + 'common/phone.png'" alt="" class="phone-icon" >
|
||||
{{info.reportUser.phone}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">本地地区</div>
|
||||
<div class="value">{{info.reportUser.areaName}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">本地地址</div>
|
||||
<div class="value">{{info.reportUser.address}}</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" :style="info.temperature > 37.2 ? 'color:#f46;' : ''" >{{info.temperature}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label" style="width:360px;">近14天内是否接触新冠确诊或疑似患者</div>
|
||||
<div class="value" :style="info.contactPatients == 1 ? 'color:#f46;' : ''">{{$dict.getLabel('epidemicTouchInFourteen', info.contactPatients)}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">当前健康状况</div>
|
||||
<div class="value" >
|
||||
<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="bg-line"></div>
|
||||
<div class="footer">
|
||||
<div class="add" @click="toContent">新增记录</div>
|
||||
<div class="confirm" @click="cancel()">解除风险</div>
|
||||
<div class="line-bg"></div>
|
||||
<div class="info">
|
||||
<div class="title">核酸检测</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">检测日期</div>
|
||||
<div class="value" v-if="info.nucleicAcidDate">{{info.nucleicAcidDate.substring(0, 10)}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">检测结果</div>
|
||||
<div class="value" :style="info.nucleicAcidResult == 1 ? 'color:#f46;' : ''">{{$dict.getLabel('EP_nucleicAcidResult', info.nucleicAcidResult)}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">健康码</div>
|
||||
<div class="value" :style="info.jkmType != 1 && info.jkmType != 0 ? 'color:#f46;' : ''">{{$dict.getLabel('EP_jkmType', info.jkmType)}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">已接种试剂</div>
|
||||
<div class="value" :style="info.vaccinationCount == 0 ? 'color:#f46;' : ''">{{$dict.getLabel('EP_vaccinationCount', info.vaccinationCount)}}</div>
|
||||
</div>
|
||||
<div class="item-flex border-none">
|
||||
<div class="label" style="width:100%;">本人健康码截图/核酸检测报告</div>
|
||||
</div>
|
||||
<div class="img-list">
|
||||
<img :src="info.jkmUrl" alt="" @click="previewImage(info.jkmUrl)">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="line-bg"></div>
|
||||
<div class="info" v-if="info.reportUser.handleLogs && info.reportUser.handleLogs.length">
|
||||
<div class="title">风险处置记录</div>
|
||||
<div class="error-list">
|
||||
<div class="item" v-for="(item, index) in info.reportUser.handleLogs" :key="index">
|
||||
<p>{{item.content}}</p>
|
||||
<div>{{item.createTime}}
|
||||
<span>{{item.createUserName}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height:16px;"></div>
|
||||
</div>
|
||||
<div class="line-bg" style="padding-bottom: 56px;"></div>
|
||||
<div class="footer" v-if="info.status == 1" @click="toError">风险处置</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -38,276 +95,205 @@ import { mapState } from 'vuex'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
show: false,
|
||||
value: '',
|
||||
id: '',
|
||||
list: [],
|
||||
info: {}
|
||||
info: {},
|
||||
userName: '',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
onShow() {
|
||||
document.title = '异常情况处理'
|
||||
document.title = this.userName + '的上报'
|
||||
},
|
||||
onLoad(option) {
|
||||
// this.id = option.id
|
||||
this.id = '5173745c3c00452a9346d1c559266982'
|
||||
this.$dict.load('epidemicRecentHealth').then(() => {
|
||||
this.$dict.load('EP_abnormalType', 'epidemicTouchInFourteen', 'EP_nucleicAcidResult', 'EP_jkmType', 'EP_vaccinationCount').then(() => {
|
||||
this.id = option.id
|
||||
this.getDetail()
|
||||
})
|
||||
this.getList()
|
||||
uni.$on('updateDetail', () => {
|
||||
this.getDetail()
|
||||
})
|
||||
uni.$emit('updateList')
|
||||
this.userName = option.name
|
||||
},
|
||||
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/appepidemicpreventionhealthreportinfo/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||
this.info = res.data
|
||||
this.info.health = this.info.health.split(',')
|
||||
}
|
||||
})
|
||||
},
|
||||
cancel() {
|
||||
this.$confirm(`是否解除该条异常信息?`).then(() => {
|
||||
this.$http.post("/app/appepidemicbackhomerecord/release", {id: this.id}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast("解除成功!")
|
||||
uni.$emit('updateDetail')
|
||||
uni.$emit('updateList')
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 600);
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
confirm() {
|
||||
if(!this.value) {
|
||||
return this.$u.toast('请输入异常情况')
|
||||
}
|
||||
|
||||
var params = {
|
||||
"content": this.value,
|
||||
"createUserId": this.user.id,
|
||||
"createUserName": this.user.name,
|
||||
"recordId": this.id
|
||||
}
|
||||
this.$http.post("/app/appepidemicunusuallog/addOrUpdate", params).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast("新增成功!")
|
||||
this.show = false
|
||||
this.value = ''
|
||||
this.getList()
|
||||
this.info.reportUser.idNumberText = this.info.reportUser.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||
}
|
||||
})
|
||||
},
|
||||
callPhone(phone) {
|
||||
uni.makePhoneCall({phoneNumber: phone})
|
||||
},
|
||||
toContent() {
|
||||
uni.navigateTo({url: './Content'})
|
||||
previewImage(img) {
|
||||
var imgs = [{url: img}]
|
||||
uni.previewImage({
|
||||
urls: imgs.map(v => v.url),
|
||||
current: img
|
||||
})
|
||||
},
|
||||
toError() {
|
||||
uni.navigateTo({url: `./ErrorInfo?id=${this.info.reportUser.id}`})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
<style lang="scss" scoped>
|
||||
.Detail {
|
||||
height: 100%;
|
||||
background-color: #f3f6f9;
|
||||
.header {
|
||||
padding: 32px 64px 24px;
|
||||
.info{
|
||||
background-color: #fff;
|
||||
.name{
|
||||
font-size: 36px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 50px;
|
||||
margin-bottom: 36px;
|
||||
span {
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #4181ff;
|
||||
line-height: 44px;
|
||||
margin: 0 20px 0 32px;
|
||||
}
|
||||
img {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
p{
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #333;
|
||||
line-height: 40px;
|
||||
margin-bottom: 8px;
|
||||
img{
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-right: 18px;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
.color-999{
|
||||
margin-bottom: 24px;
|
||||
color: #999;
|
||||
}
|
||||
.start-name{
|
||||
display: inline-block;
|
||||
width: calc(100% - 50px);
|
||||
}
|
||||
}
|
||||
.info {
|
||||
padding: 32px;
|
||||
background-color: #fff;
|
||||
margin-top: 24px;
|
||||
.title {
|
||||
padding: 0 32px;
|
||||
.title{
|
||||
line-height: 116px;
|
||||
background: #FFF;
|
||||
font-size: 38px;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
line-height: 52px;
|
||||
overflow: hidden;
|
||||
.day-text{
|
||||
span {
|
||||
float: right;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
span{
|
||||
color: #5AAD6A;
|
||||
}
|
||||
color: #999;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
.mini-title{
|
||||
font-size: 30px;
|
||||
.item-flex{
|
||||
padding: 34px 0;
|
||||
border-bottom: 1px solid #ddd;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
line-height: 44px;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #999;
|
||||
line-height: 42px;
|
||||
margin: 18px 0 24px 0;
|
||||
.label{
|
||||
width: 206px;
|
||||
color: #999;
|
||||
}
|
||||
.value{
|
||||
width: calc(100% - 206px);
|
||||
word-break: break-all;
|
||||
color: #333;
|
||||
text-align: right;
|
||||
.phone-icon{
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
vertical-align: middle;
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
.color-0{
|
||||
color: #42D784;
|
||||
}
|
||||
.color-1{
|
||||
color: #f46;
|
||||
}
|
||||
.color-2{
|
||||
color: #1365DD;
|
||||
}
|
||||
}
|
||||
.img-list{
|
||||
padding-bottom: 32px;
|
||||
img{
|
||||
width: 320px;
|
||||
height: 320px;
|
||||
}
|
||||
}
|
||||
.item-flex:nth-last-of-type(1){
|
||||
border-bottom: 0;
|
||||
}
|
||||
.error-list {
|
||||
.item {
|
||||
width: 100%;
|
||||
background: #f4f7fe;
|
||||
border-radius: 8px;
|
||||
padding: 32px 32px 24px;
|
||||
padding: 24px 24px 18px 24px;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 16px;
|
||||
.time{
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 44px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 24px;
|
||||
span{
|
||||
float: right;
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
}
|
||||
.color-f46{
|
||||
color: #f46;
|
||||
}
|
||||
.color-2EA222{
|
||||
color: #2EA222;
|
||||
}
|
||||
}
|
||||
.text{
|
||||
font-size: 26px;
|
||||
p {
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
line-height: 36px;
|
||||
margin-bottom: 8px;
|
||||
.label{
|
||||
color: #343d65;
|
||||
line-height: 40px;
|
||||
word-break: break-all;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
div {
|
||||
font-size: 24px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #666;
|
||||
line-height: 34px;
|
||||
span {
|
||||
display: inline-block;
|
||||
width: 136px;
|
||||
color: #999;
|
||||
}
|
||||
.value{
|
||||
width: calc(100% - 136px);
|
||||
color: #333;
|
||||
margin-left: 32px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.text-p{
|
||||
line-height: 44px;
|
||||
color: #333;
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
}
|
||||
.footer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
.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;
|
||||
background-color: #F3F6F9;
|
||||
}
|
||||
.footer{
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
font-size: 36px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
.add {
|
||||
flex: 1;
|
||||
color: #333;
|
||||
}
|
||||
.confirm {
|
||||
flex: 2;
|
||||
color: #fff;
|
||||
background: #1365dd;
|
||||
}
|
||||
div {
|
||||
text-align: center;
|
||||
}
|
||||
background: #1365DD;
|
||||
box-shadow: inset 0px 1px 0px 0px #EEEEEE;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #FFF;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
.bg-line {
|
||||
width: 100%;
|
||||
height: 130px;
|
||||
.border-none{
|
||||
border-bottom: 0!important;
|
||||
}
|
||||
.textarea {
|
||||
margin: 32px 32px 24px;
|
||||
width: calc(100% - 64px);
|
||||
padding: 16px;
|
||||
box-sizing: border-box;
|
||||
background: #f7f7f7;
|
||||
border-radius: 8px;
|
||||
p {
|
||||
font-size: 26px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #999;
|
||||
line-height: 36px;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
padding: 0 32px 24px;
|
||||
height: 64px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
span {
|
||||
display: inline-block;
|
||||
line-height: 64px;
|
||||
font-size: 26px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #666;
|
||||
}
|
||||
.confirm {
|
||||
width: 144px;
|
||||
text-align: center;
|
||||
background: #1365dd;
|
||||
border-radius: 32px;
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #fff;
|
||||
}
|
||||
.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