This commit is contained in:
liuye
2022-01-25 16:31:39 +08:00
parent 1c26780400
commit a4a8ce3e31
67 changed files with 9080 additions and 0 deletions

View File

@@ -0,0 +1,281 @@
<template>
<div class="AppEpidemicSituation">
<div class="header">
<img src="./components/img/header.png" alt="" />
<div class="content-info">
<div class="title">
<h2>实时数据统计</h2>
<div>截止{{toadyText}}</div>
</div>
<div class="tab-content">
<div class="tab-item">
<h2 class="color-5AAD6A">{{totalInfo.back1}}</h2>
<p>返乡人数</p>
</div>
<div class="tab-item">
<h2 class="color-4185F5">{{totalInfo.back2}}</h2>
<p>今日新增返乡</p>
</div>
<div class="tab-item">
<h2 class="color-CD413A">{{totalInfo.back3}}</h2>
<p>今日返乡异常</p>
</div>
<div class="tab-item">
<h2 class="color-5AAD6A">{{totalInfo.report1}}</h2>
<p>健康上报人数</p>
</div>
<div class="tab-item">
<h2 class="color-4185F5">{{totalInfo.report2}}</h2>
<p>今日上报人数</p>
</div>
<div class="tab-item">
<h2 class="color-CD413A">{{totalInfo.report3}}</h2>
<p>今日上报异常</p>
</div>
</div>
</div>
</div>
<div class="banner">
<img src="./components/img/fxry.png" alt="" class="mar-r18" @click="toBack"/>
<img src="./components/img/jkjc.png" alt="" @click="toHealth" />
</div>
<div class="echart-content">
<div class="title">返乡数据统计</div>
<div class="echart" id="statistic"></div>
<div class="type-text"><span class="tips bg-32C5FF"></span>新增返乡人数 <span class="tips bg-FFAA44"></span>新增异常人数</div>
</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
import echarts from 'echarts'
export default {
name: 'AppEpidemicSituation',
appName: '疫情防控',
data() {
return {
toadyText: '',
totalInfo: {},
echartData: null
}
},
computed: { ...mapState(['user']) },
onShow() {
document.title = '疫情防控'
},
onLoad() {
var date = new Date();
this.toadyText = date.getFullYear() + '-' + date.getMonth()+1 + '-' + date.getDate()
this.getTotal()
},
methods: {
getTotal() {
this.$http.post(`/app/appepidemicbackhomerecord/statisticForQW`).then((res) => {
if (res.code == 0) {
this.totalInfo = res.data.map
var xData = [], yDataBack = [], yDataError = []
for(let key in res.data.fiveTotal){
xData.push(key)
yDataBack.push(res.data.fiveTotal[key])
}
for(let key in res.data.fiveUnusual){
yDataError.push(res.data.fiveUnusual[key])
}
this.chartInit(xData, yDataBack, yDataError)
}
})
},
chartInit(xData, yDataBack, yDataError) {
console.log(xData)
this.echartData = echarts.init(document.getElementById('statistic'))
var option = {
grid: {
left: '6%',
right: '8%',
bottom: '3%',
containLabel: true
},
xAxis: {
type: 'category',
boundaryGap: false,
data: xData
},
yAxis: {
type: 'value'
},
series: [
{
type: 'line',
data: yDataBack,
lineStyle: {
normal: {
color: '#32c5ff'
}
},
itemStyle : {
normal : {
color:'#32c5ff',
}
}
},
{
type: 'line',
data: yDataError,
lineStyle: {
normal: {
color: '#ffaa44'
}
},
itemStyle : {
normal : {
color:'#ffaa44',
}
}
},
]
};
this.echartData.setOption(option)
},
toHealth(){
uni.navigateTo({
url:`./Health`
})
},
toBack(){
uni.navigateTo({
url:`./BackUserList`
})
},
},
}
</script>
<style lang="scss" scoped>
.AppEpidemicSituation {
.header {
position: relative;
img {
width: 100%;
height: 504px;
}
.content-info {
width: calc(100% - 60px);
background: #fff;
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.12);
border-radius: 8px;
position: absolute;
top: 368px;
left: 30px;
z-index: 99;
margin-bottom: 32px;
.title {
display: flex;
justify-content: space-between;
padding: 32px 32px 32px 48px;
h2 {
font-size: 36px;
font-family: PingFang-SC-Heavy, PingFang-SC;
font-weight: 800;
color: #333;
line-height: 50px;
}
div {
font-size: 26px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 36px;
}
}
.tab-content {
padding-bottom: 20px;
.tab-item {
display: inline-block;
width: 33%;
text-align: center;
margin-bottom: 32px;
h2 {
font-size: 52px;
font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold;
line-height: 60px;
margin-bottom: 10px;
letter-spacing: -4px;
}
p {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 40px;
}
.color-5AAD6A {
color: #5aad6a;
}
.color-4185F5 {
color: #4185f5;
}
.color-CD413A {
color: #cd413a;
}
}
}
}
}
.banner {
width: 100%;
padding: 0 26px;
box-sizing: border-box;
margin: 306px 0 32px 0;
img {
width: calc(50% - 18px);
height: 136px;
}
.mar-r18 {
margin-right: 18px;
}
}
.echart-content {
width: 100%;
background-color: #fff;
padding: 0 32px 38px;
box-sizing: border-box;
.title {
font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333;
line-height: 96px;
margin-bottom: 16px;
}
.echart {
width: 100%;
height: 464px;
background: #f9f9f9;
border-radius: 8px;
margin-bottom: 32px;
}
.type-text {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #666;
line-height: 40px;
text-align: center;
.tips {
display: inline-block;
width: 16px;
height: 16px;
border-radius: 2px;
margin-right: 20px;
}
.bg-32C5FF {
background: #32c5ff;
}
.bg-FFAA44 {
background: #ffaa44;
margin-left: 80px;
}
}
}
}
</style>

View File

@@ -0,0 +1,258 @@
<template>
<div class="BackUserList">
<AiTopFixed>
<div class="header">
<div class="tab-item">
<h2 style="color:#2C51CE;">{{totalInfo.total}}</h2>
<p>返乡人员</p>
</div>
<div class="tab-item">
<h2 style="color:#5AAD6A;">{{totalInfo.today}}</h2>
<p>今日返乡</p>
</div>
<div class="tab-item">
<h2 style="color:#F5A319;">{{totalInfo.todayUnusual}}</h2>
<p>今日异常</p>
</div>
<div class="tab-item">
<h2 style="color:#CD413A;border-right:0;">{{totalInfo.release}}</h2>
<p>异常处理</p>
</div>
</div>
<div class="search">
<div class="left">
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666">
<u-icon name="map-fill" color="#3192F4" size="20px" style="vertical-align: text-bottom"></u-icon>
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
<span v-else>请选择</span>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
</AiAreaPicker>
</div>
<u-search v-model="name" :clearabled="true" placeholder="请输入姓名" :show-action="false" bg-color="#F5F5F5" search-icon-color="#999" color="#999" height="58" @search="getListInit" @clear="name='',getListInit"></u-search>
</div>
<div class="tab-select">
<div class="item" :class="!tabIndex ? 'active' : ''" @click="tabClick(0)">返乡人员<span></span></div>
<div class="item" :class="tabIndex ? 'active' : ''" @click="tabClick(1)">异常人员<span></span></div>
</div>
</AiTopFixed>
<div class="user-list">
<div class="item" @click="toUser(item)" v-for="(item,index) in list" :key="index">
<h2 class="name">{{item.name}}<span class="status" v-if="item.status == 0">有异常</span></h2>
<p class="color-999">{{item.idNumber}}</p>
<p><img src="./components/img/org-icon.png" alt=""><span class="start-name">{{item.startAreaName}}</span></p>
<p><img src="./components/img/blue-icon.png" alt=""><span class="start-name">{{item.arriveAreaName}}</span></p>
<p><img src="./components/img/time-icon.png" alt="">{{item.createTime}}</p>
</div>
</div>
<AiEmpty v-if="!list.length"></AiEmpty>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
data() {
return {
areaId: '',
areaName: '',
tabIndex: 0,
current: 1,
list: [],
name: '',
totalInfo: {}
}
},
computed: { ...mapState(['user']) },
onShow() {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
document.title = '返乡登记'
this.getList()
this.getTotal()
uni.$on('updateList', () => {
this.getListInit()
})
},
methods: {
areaSelect(e) {
this.areaId =e
this.$nextTick(() => {
this.getListInit()
})
this.getTotal()
},
tabClick(index) {
this.tabIndex = index
this.getListInit()
},
getListInit() {
this.current = 1
this.list = []
this.getList()
},
getList() {
var status = ''
if(this.tabIndex == 1) {
status = 0
}
this.$http.post(`/app/appepidemicbackhomerecord/list?current=${this.current}&size=10&status=${status}&name=${this.name}&arriveAreaId=${this.areaId}`)
.then((res) => {
if (res.code == 0) {
res.data.records.map((item) => {
item.idNumber = item.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
})
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
}
})
},
getTotal() {
this.$http.post(`/app/appepidemicbackhomerecord/statistic?areaId=${this.areaId}`).then((res) => {
if (res.code == 0) {
this.totalInfo = res.data
}
})
},
toUser(row) {
uni.navigateTo({url: `./UserInfo?id=${row.id}`})
}
},
onReachBottom() {
this.current ++
this.getList()
}
}
</script>
<style lang="scss" scoped>
.BackUserList {
.header{
padding: 54px 32px 48px 32px;
display: flex;
background-color: #fff;
margin-bottom: 4px;
.tab-item{
flex: 1;
text-align: center;
h2{
font-size: 52px;
font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold;
height: 80px;
margin-bottom: 8px;
letter-spacing: -4px;
border-right: 1px solid #ddd;
line-height: 44px;
}
p{
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 40px;
margin-top: -22px;
}
}
.tab-item:nth-last-of-type(1) {
border-right: 0;
}
}
.search{
width: 100%;
height: 112px;
padding: 32px;
box-sizing: border-box;
background: #FFF;
display: flex;
margin-bottom: 8px;
.left{
width: calc(100% - 402px);
}
}
.tab-select{
width: 100%;
height: 96px;
background: #FFF;
display: flex;
margin-bottom: 4px;
.item{
flex: 1;
font-size: 32px;
line-height: 96px;
font-family: PingFangSC-Regular, PingFang SC;
color: #333;
text-align: center;
}
.active{
color: #135AB8;
position: relative;
span{
position: absolute;
bottom: 0;
left: 50%;
width: 192px;
margin-left: -96px;
border-bottom: 4px solid #135AB8;
}
}
}
.user-list{
.item{
padding: 32px 64px 24px;
background-color: #fff;
margin-bottom: 8px;
.name{
font-size: 36px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333;
line-height: 50px;
margin-bottom: 8px;
.status{
float: right;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #FF4466;
line-height: 40px;
}
}
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;
}
}
.start-name{
display: inline-block;
width: calc(100% - 50px);
}
.color-999{
margin-bottom: 24px;
color: #999;
}
}
}
::v-deep .AiTopFixed {
.placeholder {
.content {
padding: 0 !important;
}
}
.fixed {
margin: 0 !important;
background-color: #f5f5f5!important;
.content {
padding: 0 !important;
}
}
}
}
</style>

View File

@@ -0,0 +1,365 @@
<template>
<div class="ErrorDetail">
<div class="header">
<div class="name">
{{ userList.name }}<span>{{ userList.phone }}</span
><img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(userList.phone)" class="phone-icon" />
</div>
<p>身份证号</p>
<p class="mar-b8" style="color: #333">{{ userList.idNumber && userList.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2') }}</p>
<p>异常情况</p>
<div v-if="datas.length">
<div v-for="(item, index) in datas" :key="index" style="color: #ff4466">
<span style="color: #666" v-if="item.status == 0">{{ item.checkTime && item.checkTime.substring(0, 10) }}:</span>
<div v-if="item.temperature * 1 >= 37.3">
<span>当前体温</span>
<span style="margin-left: 10px">{{ item.temperature }}</span>
</div>
<div v-if="item.touchInFourteen * 1 !== 0">
<span>14天内是否接触新冠确诊或疑似患者</span>
<span style="margin-left: 10px">
{{ $dict.getLabel('epidemicTouchInFourteen', item.touchInFourteen) }}
</span>
</div>
<div v-if="item.health !== '0'">
<span>当前健康状况</span>
<div class="healths">
<span v-for="(items, index) in item.health && item.health.split(',')" :key="index">
<span v-if="index > 0"> ; </span>
<span>
{{ $dict.getLabel('epidemicRecentHealth', items) }}
</span>
</span>
</div>
</div>
<div v-if="item.checkResult != 0">
<span>核酸检测结果</span>
<span style="margin-left: 10px">
{{ $dict.getLabel('epidemicRecentTestResult', item.checkResult) }}
</span>
</div>
<div v-if="item.healthCode == 2 || item.healthCode == 3 || item.healthCode == 4">
<span>健康码</span>
<span style="margin-left: 10px">
{{ $dict.getLabel('epidemicHealthCode', item.healthCode) }}
</span>
</div>
</div>
</div>
<p style="color: #333" v-else>暂无异常情况</p>
</div>
<div class="info" v-if="data.length">
<div class="title">异常情况记录</div>
<div class="error-list" v-if="data.length">
<div class="itemes" v-for="(item, i) in data" :key="i">
<p>{{ item.content }}</p>
<div>
<span>{{ item.createTime }}</span>
<span class="names">{{ item.createUserName }}</span>
</div>
</div>
</div>
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div>
<!-- <div class="bg-line"></div> -->
<div class="footer">
<div class="add" @click="show = true">新增记录</div>
<div class="confirm" @click="cancel">解除异常</div>
</div>
<u-popup v-model="show" mode="bottom">
<div class="textarea">
<u-input v-model="value" type="textarea" :height="120" :auto-height="true" placeholder="异常情况记录" :clearable="false" maxlength="1000" />
<p>字数{{ value.length }}/1000</p>
</div>
<div class="btn">
<span @click="value = ''">清空内容</span>
<span class="confirm" @click="confirm">保存</span>
</div>
</u-popup>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
components: {},
props: {},
data() {
return {
show: false,
value: '',
userList: [],
data: [],
datas: [],
size: 10,
current: 1,
}
},
computed: {
...mapState(['user']),
},
onLoad(o) {
console.log(o)
this.$dict.load('epidemicMemberType', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicRecentTestResult', 'epidemicRecentHealth', 'epidemicHealthCode').then(() => {
if (o) {
this.id = o.id
this.getUser()
this.getRecord()
this.getErrThing()
}
})
},
onShow() {
document.title = '异常情况处理'
},
methods: {
getUser() {
this.$http.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`).then((res) => {
if (res.code == 0) {
this.userList = res.data
}
})
},
// 异常情况
getErrThing() {
this.$http.post(`/app/appepidemichealthreport/list?memberId=${this.id}`).then((res) => {
if (res.code == 0) {
this.datas = res.data.records
}
})
},
// 异常情况记录
getRecord() {
this.$http
.post(`/app/appepidemicunusuallog/list`, null, {
params: {
recordId: this.id,
size: this.size,
current: this.current,
},
})
.then((res) => {
if (res.code == 0) {
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
}
})
},
// 新增记录
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.getUser()
this.getRecord()
}
})
},
cancel() {
this.$confirm(`是否解除该条异常信息?`).then(() => {
this.$http.post('/app/appepidemicreportmember/release', { id: this.id }).then((res) => {
if (res.code == 0) {
this.$u.toast('解除成功!')
uni.$emit('updateDetails')
uni.$emit('updateLists')
setTimeout(() => {
uni.navigateBack()
}, 600)
}
})
})
},
callPhone(phone) {
uni.makePhoneCall({ phoneNumber: phone })
},
},
onReachBottom() {
this.current++
this.getRecord()
},
}
</script>
<style scoped lang="scss">
.ErrorDetail {
height: 100%;
.header {
padding: 32px 48px;
box-sizing: border-box;
background-color: #fff;
margin-bottom: 24px;
.name {
font-size: 36px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333;
line-height: 50px;
margin-bottom: 16px;
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: 30px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 42px;
color: #999;
}
.mar-b8 {
margin-bottom: 8px;
}
}
.info {
padding-bottom: 112px;
.title {
padding: 0 32px;
font-size: 38px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333;
line-height: 116px;
background-color: #fff;
}
.error-list {
background-color: #fff !important;
padding-bottom: 24px;
.itemes {
margin: 0 32px;
background: #f4f7fe;
border-radius: 8px;
padding: 24px 24px 18px 24px;
box-sizing: border-box;
margin-bottom: 16px;
span {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
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:last-child {
display: inline-block;
margin-left: 32px;
}
}
}
}
}
.footer {
position: fixed;
bottom: 0;
left: 0;
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;
}
}
.bg-line {
width: 100%;
height: 130px;
}
.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;
}
}
}
</style>

View File

@@ -0,0 +1,272 @@
<template>
<div class="ErrorInfo">
<div class="header">
<div 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" /></div>
<p>身份证号</p>
<p class="mar-b8" style="color: #333">{{info.idNumber}}</p>
<p>异常情况</p>
<p style="color: #ff4466">
<span>{{info.unusual}}</span>
</p>
</div>
<div class="info" v-if="list.length">
<div class="title">异常情况记录</div>
<div class="error-list">
<div class="item" v-for="(item, index) in list" :key="index">
<p>{{item.content}}</p>
<div>{{item.createTime}}
<span>{{item.createUserName}}</span>
</div>
</div>
</div>
</div>
<div class="bg-line"></div>
<div class="footer">
<div class="add" @click="show = true">新增记录</div>
<div class="confirm" @click="cancel()">解除异常</div>
</div>
<u-popup v-model="show" mode="bottom">
<div class="textarea">
<u-input v-model="value" type="textarea" :height="120" :auto-height="true" placeholder="异常情况记录" :clearable="false" maxlength="1000" />
<p>字数{{value.length}}/1000</p>
</div>
<div class="btn">
<span @click="value=''">清空内容</span>
<span class="confirm" @click="confirm">保存</span>
</div>
</u-popup>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
components: {},
props: {},
data() {
return {
show: false,
value: '',
id: '',
list: [],
info: {}
}
},
computed: {
...mapState(['user']),
},
onShow() {
document.title = '异常情况处理'
},
onLoad(option) {
this.id = option.id
this.$dict.load('epidemicRecentHealth').then(() => {
this.getDetail()
})
this.getList()
},
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) => {
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()
}
})
},
callPhone(phone) {
uni.makePhoneCall({phoneNumber: phone})
},
},
}
</script>
<style scoped lang="scss">
.ErrorInfo {
height: 100%;
.header {
padding: 32px 48px;
box-sizing: border-box;
background-color: #fff;
margin-bottom: 24px;
.name {
font-size: 36px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333;
line-height: 50px;
margin-bottom: 16px;
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: 30px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 42px;
color: #999;
}
.mar-b8 {
margin-bottom: 8px;
}
}
.info {
padding: 0 32px 32px;
background-color: #fff;
.title {
font-size: 38px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333;
line-height: 116px;
}
.error-list {
.item {
width: 100%;
background: #f4f7fe;
border-radius: 8px;
padding: 24px 24px 18px 24px;
box-sizing: border-box;
margin-bottom: 16px;
p {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
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;
margin-left: 32px;
}
}
}
}
}
.footer {
position: fixed;
bottom: 0;
left: 0;
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;
}
}
.bg-line {
width: 100%;
height: 130px;
}
.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;
}
}
}
</style>

View File

@@ -0,0 +1,346 @@
<template>
<div class="Health">
<AiTopFixed>
<div class="header">
<div class="tab-item">
<h2 style="color: #2c51ce">{{ userList.total }}</h2>
<p>上报人员</p>
</div>
<div class="tab-item">
<h2 style="color: #5aad6a">{{ userList.today }}</h2>
<p>今日上报</p>
</div>
<div class="tab-item">
<h2 style="color: #f5a319">{{ userList.unReport }}</h2>
<p>今日未报</p>
</div>
<div class="tab-item">
<h2 style="color: #cd413a; border-right: 0">{{ userList.unusual }}</h2>
<p>今日异常</p>
</div>
</div>
<div class="line1"></div>
<div class="middle">
<div class="left">
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666">
<u-icon name="map-fill" color="#3192F4" size="20px" style="vertical-align: text-bottom"></u-icon>
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
<span v-else>请选择</span>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
</AiAreaPicker>
</div>
<u-search v-model="keyword" :clearabled="true" placeholder="请输入姓名" :show-action="false" bg-color="#F5F5F5" search-icon-color="#999" color="#999" height="58" @search="handerSearch" @clear="handerClear"></u-search>
</div>
<div class="line2"></div>
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#fff" inactive-color="#333" bar-width="192" active-color="#135AB8 " @change="change"></u-tabs>
<div class="line3"></div>
</AiTopFixed>
<div class="bottoms">
<template v-if="data.length">
<div class="templates" v-for="(item, i) in data" :key="i" @click="goDetail(item)">
<img :src="item.avatar" alt="" v-if="item.avatar" />
<img src="./components/img/user-img.png" alt="" v-else />
<div class="rightCont">
<div class="rightContLeft">
<div class="nameLeft">
<div class="nameTop">
<div class="names">{{ item.name }}</div>
<div class="types" v-if="item.status == '0'">异常</div>
</div>
<div class="nameBottom">
<span>上报第</span>
<span class="num">{{ item.diffNum }}</span>
<span></span>
</div>
</div>
<div class="typeRight2" v-if="item.today == '0'">今日未上报</div>
<div class="typeRight1" v-else>今日已上报</div>
</div>
<u-icon name="arrow-right" color="#ccc"></u-icon>
</div>
</div>
</template>
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
name: 'Health',
components: {},
props: {},
data() {
return {
keyword: '',
areaId: '',
areaName: '',
current: 1,
size: 10,
tabList: [
{
name: '上报人员',
},
{
name: '异常人员',
},
],
currentTabs: 0,
userList: [],
data: [],
}
},
computed: {
...mapState(['user']),
},
watch: {},
onLoad() {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
this.getList()
this.getUserList()
uni.$on('updateLists', () => {
this.current = 1
this.getList()
this.getUserList()
})
},
onShow() {
this.areaId = this.user.areaId
document.title = '健康上报'
},
methods: {
getList() {
this.$http
.post('/app/appepidemicreportmember/list', null, {
params: { size: this.size, current: this.current, status: this.currentTabs == 1 ? '0' : '', areaId: this.areaId, name: this.keyword },
})
.then((res) => {
if (res.code == 0) {
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
this.$forceUpdate()
}
})
.catch(() => {
this.$forceUpdate()
})
.finally(() => {
this.$forceUpdate()
})
},
getUserList() {
this.$http.post(`/app/appepidemicreportmember/statistic?areaId=${this.areaId}`).then((res) => {
if (res.code == 0) {
this.userList = res.data
}
})
},
goDetail(item) {
uni.navigateTo({
url: `./HealthDetail?id=${item.id}&diffNum=${item.diffNum}&today=${item.today}`,
})
},
areaSelect(e) {
this.areaId = e
this.getList()
this.getUserList()
},
change(index) {
this.data = []
// this.areaId = this.user.areaId
this.keyword = ''
this.currentTabs = index
this.current = 1
this.getList()
},
handerSearch(e) {
this.keyword = e
this.current = 1
this.getList()
},
handerClear() {
this.keyword = ''
this.current = 1
this.getList()
},
},
onReachBottom() {
this.current++
this.getList()
},
}
</script>
<style scoped lang="scss">
.Health {
height: 100%;
::v-deep .AiTopFixed {
.placeholder {
.content {
padding: 0 !important;
}
}
.fixed {
margin: 0 !important;
.content {
padding: 0 !important;
}
}
}
.header {
padding: 54px 32px 48px 32px;
display: flex;
background-color: #fff;
margin-bottom: 4px;
.tab-item {
flex: 1;
text-align: center;
h2 {
font-size: 52px;
font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold;
height: 80px;
margin-bottom: 8px;
letter-spacing: -4px;
border-right: 1px solid #ddd;
line-height: 44px;
}
p {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 40px;
margin-top: -22px;
}
}
.tab-item:nth-last-of-type(1) {
border-right: 0;
}
}
.line1 {
height: 4px;
background: #f5f5f5;
}
.middle {
display: flex;
padding: 24px 32px;
.left {
width: 40%;
display: flex;
align-items: center;
img {
width: 48px;
height: 48px;
}
}
.u-search {
margin-bottom: 0 !important;
}
}
.line2 {
height: 8px;
background: #f5f5f5;
}
.line3 {
height: 6px;
background: #f5f5f5;
}
.bottoms {
.templates {
display: flex;
align-items: center;
padding: 32px;
box-shadow: inset 0px -1px 0px 0px #dddddd;
background: #fff;
img {
width: 128px;
height: 128px;
// border-radius: 50%;
// border: 1px solid #cccccc;
}
.rightCont {
display: flex;
justify-content: space-between;
margin-left: 32px;
width: 100%;
.rightContLeft {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
.nameLeft {
.nameTop {
display: flex;
.names {
font-size: 32px;
font-weight: 500;
color: #333333;
}
.types {
margin-left: 16px;
padding: 4px 16px 8px 16px;
background: #faeceb;
border-radius: 20px;
font-size: 24px;
color: #cd413a;
}
}
.nameBottom {
margin-top: 12px;
font-size: 28px;
color: #999999;
.num {
color: #135ab8;
}
}
}
.typeRight1 {
font-size: 28px;
color: #999999;
}
.typeRight2 {
font-size: 28px;
color: #f5a319;
}
}
}
}
.emptyWrap {
margin-top: 0;
background: #f5f5f5;
}
}
}
</style>

View File

@@ -0,0 +1,269 @@
<template>
<div class="HealthDetail">
<div class="top">
<div class="templates">
<img :src="userList.avatar" alt="" v-if="userList.avatar" />
<img src="./components/img/user-img.png" alt="" v-else />
<div class="rightCont">
<div class="rightContLeft">
<div class="nameLeft">
<div class="nameTop">
<div class="names">{{ userList.name }}</div>
<div class="types" v-if="userList.status == '0'">异常</div>
</div>
<div class="nameBottom">
<span>上报第</span>
<span class="num">{{ diffNum }}</span>
<span></span>
</div>
</div>
</div>
<div class="rightContRight" @click.stop="callPhone(userList.phone)">
<img src="./components/img/phone2@.png" alt="" />
<span class="call">拨打电话</span>
</div>
</div>
</div>
</div>
<div class="middle">
<div class="record">异常情况记录</div>
<template v-if="data.length">
<div class="templatess" v-for="(item, i) in data" :key="i" @click="toUserDetail(item)">
<div class="left">
<div class="recordType recordType1" v-if="item.status == 1">正常</div>
<div class="recordType recordType2" v-if="item.status == 0">异常</div>
</div>
<div class="right">
<div class="times">{{ item.createTime }}</div>
<u-icon name="arrow-right" color="#CCCCCC"></u-icon>
</div>
</div>
</template>
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div>
<div class="fixedBtn" @click="toErr" v-if="userList.status == '0' && today == '1'">异常情况处理</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
name: 'HealthDetail',
components: {},
props: {},
data() {
return {
data: [],
id: '',
name: '',
userList: [],
diffNum: '',
today: '',
size: 10,
current: 1,
}
},
computed: {
...mapState(['user']),
},
watch: {},
onLoad(o) {
console.log(o)
if (o.id) {
this.name = o.name
this.id = o.id
this.phone = o.phone
this.diffNum = o.diffNum
this.today = o.today
this.getUser()
}
this.getRecord()
uni.$on('updateDetails', () => {
this.getUser()
this.getRecord()
})
},
onShow() {
document.title = '健康上报'
},
methods: {
getUser() {
this.$http.post(`/app/appepidemicreportmember/queryDetailById?id=${this.id}`).then((res) => {
if (res.code == 0) {
this.userList = res.data
}
})
},
getRecord() {
this.$http
.post(`/app/appepidemichealthreport/list`, null, {
params: {
memberId: this.id,
size: this.size,
current: this.current,
},
})
.then((res) => {
if (res.code == 0) {
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
}
})
},
callPhone(phone) {
uni.makePhoneCall({ phoneNumber: phone })
},
toUserDetail(item) {
uni.navigateTo({
url: `./UserDetail?id=${item.id}&temperature=${item.temperature}&touchInFourteen=${item.touchInFourteen}&health=${item.health}&checkTime=${item.checkTime}&checkResult=${item.checkResult}&checkPhoto=${item.checkPhoto}&status=${item.status}&memberId=${this.id}&vaccine=${item.vaccine}&healthCode=${item.healthCode}&releaseName=${this.userList.releaseName ? this.userList.releaseName : ''}&releaseTime=${this.userList.releaseTime ? this.userList.releaseTime : ''}&statuses=${this.userList.status}`,
})
},
toErr() {
uni.navigateTo({
url: `./ErrorDetail?id=${this.id}`,
})
},
},
onReachBottom() {
this.current++
this.getRecord()
},
}
</script>
<style scoped lang="scss">
uni-page-body {
height: 100%;
}
.HealthDetail {
height: 100%;
background: #f5f5f5 !important;
.top {
.templates {
display: flex;
align-items: center;
padding: 32px;
box-shadow: inset 0px -1px 0px 0px #dddddd;
background: #fff;
img {
width: 128px;
height: 128px;
// border-radius: 50%;
// border: 1px solid #cccccc;
}
.rightCont {
display: flex;
justify-content: space-between;
margin-left: 32px;
width: 100%;
.rightContLeft {
// display: flex;
// justify-content: space-between;
// align-items: center;
// width: 100%;
.nameLeft {
.nameTop {
display: flex;
.names {
font-size: 32px;
font-weight: 500;
color: #333333;
}
.types {
margin-left: 16px;
padding: 4px 16px 8px 16px;
background: #faeceb;
border-radius: 20px;
font-size: 24px;
color: #cd413a;
}
}
.nameBottom {
margin-top: 12px;
font-size: 28px;
color: #999999;
.num {
color: #135ab8;
}
}
}
}
.rightContRight {
display: flex;
flex-direction: column;
align-items: center;
width: 25%;
img {
width: 64px;
height: 64px;
}
.call {
font-size: 24px;
color: #3d94fb;
}
}
}
}
}
.middle {
margin-top: 16px;
background: #fff;
.record {
padding: 26px 0 26px 32px;
box-shadow: inset 0px -1px 0px 0px #dddddd;
}
.templatess {
display: flex;
justify-content: space-between;
padding: 28px 32px;
box-shadow: inset 0px -1px 0px 0px #dddddd;
.left,
.right {
display: flex;
.recordType {
font-size: 28px;
font-weight: 500;
}
.recordType1 {
color: #5aad6a;
}
.recordType2 {
color: #cd413a;
}
}
}
.emptyWrap {
background: #f5f5f5;
margin-top: 0 !important;
}
}
.fixedBtn {
position: fixed;
bottom: 0;
width: 100%;
padding: 34px 0;
text-align: center;
background: #1365dd;
box-sizing: border-box;
font-size: 32px;
font-weight: 500;
color: #ffffff;
}
}
</style>

View File

@@ -0,0 +1,310 @@
<template>
<div class="UserDetail">
<div class="info">
<div class="title">基本信息</div>
<div class="item-flex">
<div class="label">姓名</div>
<div class="value">{{ data.name }}</div>
</div>
<div class="item-flex">
<div class="label">身份证号</div>
<div class="value">{{ data.idNumber }}</div>
</div>
<div class="item-flex">
<div class="label">联系方式</div>
<div class="value" style="color: #4181ff">
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(data.phone)" class="phone-icon" />
{{ data.phone }}
</div>
</div>
<div class="item-flex">
<div class="label">本地地区</div>
<div class="value">{{ data.areaName }}</div>
</div>
<div class="item-flex">
<div class="label">本地地址</div>
<div class="value">{{ data.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 temperature" :style="{ color: userList.temperature * 1 >= 37.3 ? '#FF4466' : '#42D784' }">{{ userList.temperature }}</div>
</div>
<div class="item-flex">
<div class="label" style="width: 360px">14天内是否接触新冠确诊或疑似患者</div>
<div class="value" :style="userList.touchInFourteen == 0 ? 'color:#42D784;' : userList.touchInFourteen == 1 ? 'color:#FF4466' : 'color:#4181FF'">{{ $dict.getLabel('epidemicTouchInFourteen', userList.touchInFourteen) }}</div>
</div>
<div class="item-flexs">
<div class="label">当前健康状况</div>
<div class="healths">
<span v-for="(item, index) in userList.health" :key="index" :style="item != 0 ? 'color:#FF4466;' : ''">
<span v-if="index > 0"> ; </span>
<span>
{{ $dict.getLabel('epidemicRecentHealth', item) }}
</span>
</span>
</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">{{ userList.checkTime && userList.checkTime.substring(0, 10) }}</div>
</div>
<div class="item-flex">
<div class="label">核酸检测结果</div>
<div class="value" :style="userList.checkResult == 1 ? 'color:#f46;' : 'color:#42D784;'">{{ $dict.getLabel('epidemicRecentTestResult', userList.checkResult) }}</div>
</div>
<div class="item-flex">
<div class="label">健康码</div>
<div class="value" :style="{ color: userList.healthCode == '0' || userList.healthCode == '1' ? '#42D784' : '#FF4466' }">{{ $dict.getLabel('epidemicHealthCode', userList.healthCode) }}</div>
</div>
<div class="item-flex">
<div class="label">已接种试剂</div>
<div class="value">{{ userList.vaccine }}</div>
</div>
<div class="item-flex checkPhotos">
<div style="color: #999">本人健康码截图或核酸检测报告</div>
</div>
<div class="img-list">
<img :src="item.url" alt="" v-for="(item, index) in userList.checkPhoto" :key="index" @click="previewImage(userList.checkPhoto, item.url)" />
</div>
</div>
<div class="line-bg" v-if="userList.status == 0 && userList.statuses == 1"></div>
<div class="info" v-if="userList.status == 0 && userList.statuses == 1">
<div class="title">异常处理情况</div>
<div class="item-record">
<div class="label">异常情况记录</div>
<div class="error-list" v-if="datas.length">
<div class="records" v-for="(item, index) in datas" :key="index">
<p>{{ item.content }}</p>
<div>
<span>{{ item.createTime }}</span>
<span class="names">{{ item.createUserName }}</span>
</div>
</div>
</div>
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
</div>
<div class="item-flex">
<div class="label">异常解除人</div>
<div class="value">{{ userList.releaseName }}</div>
</div>
<div class="item-flex">
<div class="label">异常解除时间</div>
<div class="value">{{ userList.releaseTime && userList.releaseTime.substring(0, 10) }}</div>
</div>
</div>
<div class="line-bg"></div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
name: 'UserDetail',
components: {},
props: {},
data() {
return {
id: '',
userList: {},
data: [],
datas: [],
}
},
computed: {
...mapState(['user']),
},
onLoad(o) {
console.log(o)
this.$dict.load('epidemicMemberType', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicRecentTestResult', 'epidemicRecentHealth', 'epidemicHealthCode').then(() => {
this.id = o.id
this.userList = o
this.userList.checkPhoto = JSON.parse(o.checkPhoto)
this.userList.health = o.health.split(',')
this.userList.releaseName = o.releaseName
this.getUser()
if (this.userList.releaseName) {
this.getRecord()
}
})
},
onShow() {
document.title = '健康上报'
},
methods: {
getUser() {
this.$http.post(`/app/appepidemicreportmember/queryDetailById?id=${this.userList.memberId}`).then((res) => {
if (res.code == 0) {
this.data = res.data
this.data.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/, '$1********$2')
}
})
},
// 异常情况记录
getRecord() {
this.$http.post(`/app/appepidemicunusuallog/list?recordId=${this.userList.memberId}`).then((res) => {
if (res.code == 0) {
this.datas = res.data.records
}
})
},
callPhone(phone) {
uni.makePhoneCall({ phoneNumber: phone })
},
previewImage(images, img) {
uni.previewImage({
urls: images.map((v) => v.url),
current: img,
})
},
},
}
</script>
<style scoped lang="scss">
.UserDetail {
background: #f3f6f9;
.info {
background-color: #fff;
padding: 0 32px;
.title {
line-height: 116px;
background: #fff;
font-size: 38px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333;
}
.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;
.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;
}
}
}
.checkPhotos {
border-bottom: none !important;
}
.error-list {
background-color: #fff !important;
padding-bottom: 24px;
margin-top: 10px;
border-bottom: 1px solid #ddd;
.records {
background: #f4f7fe;
border-radius: 8px;
padding: 24px 24px 18px 24px;
box-sizing: border-box;
margin-bottom: 16px;
p {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
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:last-child {
display: inline-block;
margin-left: 32px;
}
}
}
}
.item-flexs {
display: flex;
justify-content: space-between;
padding: 34px 0;
border-bottom: 1px solid #ddd;
font-size: 32px;
.label {
width: 32%;
color: #999;
}
.healths {
width: 68%;
word-break: break-all;
text-align: right;
}
}
.img-list {
padding-bottom: 48px;
img {
width: 320px;
height: 320px;
}
}
.item-flex:nth-last-of-type(1) {
border-bottom: 0;
}
}
.line-bg {
width: 100%;
height: 24px;
background-color: #f3f6f9;
}
.footer {
width: 100%;
height: 112px;
line-height: 112px;
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;
}
}
</style>

View File

@@ -0,0 +1,351 @@
<template>
<div class="BackUserList">
<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.createTime}}</p>
</div>
</div>
<div class="info">
<div class="title">基本信息</div>
<div class="item-flex">
<div class="label">姓名</div>
<div class="value">{{info.name}}</div>
</div>
<div class="item-flex">
<div class="label">身份证号</div>
<div class="value">{{info.idNumber}}</div>
</div>
<div class="item-flex">
<div class="label">联系方式</div>
<div class="value" style="color:#4181FF;" @click="callPhone(info.phone)">
<img :src="$cdn + 'common/phone.png'" alt="" class="phone-icon" >
{{info.phone}}</div>
</div>
<div class="item-flex">
<div class="label">人员类别</div>
<div class="value" :style="info.type == 0 ? 'color:#42D784;' : 'color:#f46;'">{{$dict.getLabel('epidemicMemberType', info.type)}}</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">{{$dict.getLabel('epidemicRecentTravel', info.travelType)}}</div>
</div>
<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>
<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="value">{{info.arriveTime.substring(0, 16)}}</div>
</div>
<div class="item-flex">
<div class="label">返乡地区</div>
<div class="value">{{info.arriveAreaName}}</div>
</div>
<div class="item-flex">
<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>
<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>
<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>
</div>
</div>
</div>
<div class="line-bg"></div>
<div class="info" v-if="list.length">
<div class="title">异常处理情况</div>
<div class="error-list">
<div class="item" v-for="(item, index) in list" :key="index">
<p>{{item.content}}</p>
<div>{{item.createTime}}
<span>{{item.createUserName}}</span>
</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>
</template>
<script>
import { mapState } from 'vuex'
export default {
data() {
return {
id: '',
info: {},
list: []
}
},
computed: { ...mapState(['user']) },
onShow() {
document.title = '返乡人员信息'
},
onLoad(option) {
this.$dict.load('epidemicMemberType', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicRecentTestResult', 'epidemicRecentHealth').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) => {
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")
}
})
},
callPhone(phone) {
uni.makePhoneCall({phoneNumber: phone})
},
previewImage(images, img) {
uni.previewImage({
urls: images.map(v => v.url),
current: img
})
},
toError() {
uni.navigateTo({url: `./ErrorInfo?id=${this.id}`})
}
},
}
</script>
<style lang="scss" scoped>
.BackUserList {
.user-list{
margin-bottom: 24px;
.item{
padding: 32px 64px 24px;
background-color: #fff;
.name{
font-size: 36px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333;
line-height: 50px;
margin-bottom: 8px;
.status{
float: right;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #FF4466;
line-height: 40px;
}
}
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{
background-color: #fff;
padding: 0 32px;
.title{
line-height: 116px;
background: #FFF;
font-size: 38px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333;
}
.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;
.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: 24px 24px 18px 24px;
box-sizing: border-box;
margin-bottom: 16px;
p {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
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;
margin-left: 32px;
}
}
}
}
.text-p{
line-height: 44px;
color: #333;
padding-bottom: 16px;
}
}
.line-bg{
width: 100%;
height: 24px;
background-color: #F3F6F9;
}
.footer{
width: 100%;
height: 112px;
line-height: 112px;
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;
}
.border-none{
border-bottom: 0!important;
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB