健康上报
This commit is contained in:
@@ -3,20 +3,16 @@
|
||||
<AiTopFixed>
|
||||
<div class="header">
|
||||
<div class="tab-item">
|
||||
<h2 style="color: #5aad6a">{{ userList.today }}</h2>
|
||||
<h2 style="color: #5aad6a">{{ totalInfo['上报人员'] }}</h2>
|
||||
<p>上报人员</p>
|
||||
</div>
|
||||
<div class="tab-item">
|
||||
<h2 style="color: #f5a319">{{ totalInfo['今日上报'] }}</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: #2c51ce">{{ userList.total }}</h2>
|
||||
<p>当前正常</p>
|
||||
</div>
|
||||
<div class="tab-item">
|
||||
<h2 style="color: #cd413a; border-right: 0">{{ userList.unusual }}</h2>
|
||||
<p>当前异常</p>
|
||||
<h2 style="color: #2c51ce">{{ totalInfo['今日风险'] }}</h2>
|
||||
<p>今日风险</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -24,7 +20,7 @@
|
||||
|
||||
<div class="middle">
|
||||
<div class="left">
|
||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
||||
<AiAreaPicker v-model="areaId" :areaId="cropAreaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
||||
<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>
|
||||
@@ -44,30 +40,25 @@
|
||||
|
||||
<div class="bottoms">
|
||||
<template v-if="data.length">
|
||||
<div class="templates" v-for="(item, i) in data" :key="i" @click="goDetail(item)">
|
||||
<div class="templates" v-for="(item, i) in data" :key="i" @click="toUserList(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 class="types" v-if="item.status == '1'">异常</div>
|
||||
</div>
|
||||
|
||||
<div class="nameBottom">
|
||||
登记时间: 2022-05-19
|
||||
上报第{{item.reportCount}}天
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding-right: 8px;">
|
||||
<div class="day-info"><span>7</span>/14</div>
|
||||
<div class="typeRight2" v-if="item.today == '0'">今日未上报</div>
|
||||
<div class="typeRight2" v-if="!item.todayReport">今日未上报</div>
|
||||
<div class="typeRight1" v-else>今日已上报</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<u-icon name="arrow-right" color="#ccc"></u-icon>
|
||||
</div>
|
||||
</div>
|
||||
@@ -79,8 +70,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
|
||||
export default {
|
||||
appName: '健康上报',
|
||||
data() {
|
||||
@@ -95,23 +84,17 @@ export default {
|
||||
name: '上报记录',
|
||||
},
|
||||
{
|
||||
name: '历史数据',
|
||||
name: '风险人员',
|
||||
},
|
||||
],
|
||||
currentTabs: 0,
|
||||
totalInfo: {},
|
||||
data: [],
|
||||
cropAreaId: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
},
|
||||
watch: {},
|
||||
onLoad() {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
this.getList()
|
||||
this.getTotal()
|
||||
this.getCropAreaId()
|
||||
|
||||
uni.$on('updateLists', () => {
|
||||
this.current = 1
|
||||
@@ -123,36 +106,46 @@ export default {
|
||||
document.title = '健康上报'
|
||||
},
|
||||
methods: {
|
||||
getCropAreaId() {
|
||||
this.$http.post(`/app/appdvcpconfig/getCorpArea`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.areaId = res.data
|
||||
this.cropAreaId = res.data
|
||||
this.getList()
|
||||
this.getTotal()
|
||||
}
|
||||
})
|
||||
},
|
||||
getList() {
|
||||
this.$http
|
||||
.post('/app/appepidemicpreventionhealthreportinfo/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.$http.post('/app/appepidemicpreventionhealthreportinfo/reportUserList', null, {
|
||||
params: {
|
||||
size: this.size,
|
||||
current: this.current,
|
||||
status: this.currentTabs == 1 ? '1' : '',
|
||||
areaId: this.areaId,
|
||||
name: this.keyword,
|
||||
// reportUserId: this.user.id
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
||||
this.$forceUpdate()
|
||||
})
|
||||
.finally(() => {
|
||||
this.$forceUpdate()
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
getTotal() {
|
||||
this.$http.post(`/app/appepidemicpreventionhealthreportinfo/listStatistics?areaId=${this.areaId}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
// this.userList = res.data
|
||||
this.totalInfo = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
goDetail(item) {
|
||||
toUserList(item) {
|
||||
uni.navigateTo({
|
||||
url: `./Detail?id=${item.id}&diffNum=${item.diffNum}&today=${item.today}`,
|
||||
url: `./UserList?id=${item.id}&name=${item.name}&phone=${item.phone}`,
|
||||
})
|
||||
},
|
||||
|
||||
@@ -277,7 +270,7 @@ export default {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 32px;
|
||||
box-shadow: inset 0px -1px 0px 0px #dddddd;
|
||||
border-bottom: 1px solid #ddd;
|
||||
background: #fff;
|
||||
img {
|
||||
width: 128px;
|
||||
|
||||
@@ -1,482 +0,0 @@
|
||||
<template>
|
||||
<div class="album">
|
||||
<div class="form-item__group">
|
||||
<div class="form-item form-item__imgs">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>个人健康状况(可多选)</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<AiCheckbox
|
||||
style="width: 100%"
|
||||
v-model="form.health"
|
||||
dict="epidemicRecentHealth"
|
||||
></AiCheckbox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i>*</i>
|
||||
<h2>当前状态</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<AiSelect
|
||||
dict="epidemicRecentTravel"
|
||||
v-model="form.travelType"
|
||||
class="select"
|
||||
></AiSelect>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item__group">
|
||||
<div class="form-item form-item__textarea">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="form-item__title">
|
||||
<i></i>
|
||||
<h2>备注说明</h2>
|
||||
</div>
|
||||
<div class="form-item__right">
|
||||
<textarea
|
||||
auto-height
|
||||
style="height: 180px"
|
||||
v-model="form.description"
|
||||
:maxlength="500"
|
||||
placeholder="请输入备注说明"
|
||||
placeholder-style="font-size: 16px"
|
||||
></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">确认</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from "vuex";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isShowType: false,
|
||||
isShowEndTime: false,
|
||||
isShowStartTime: false,
|
||||
isShowDate: false,
|
||||
params: {
|
||||
year: true,
|
||||
month: true,
|
||||
day: true,
|
||||
hour: true,
|
||||
minute: true,
|
||||
},
|
||||
dataParams: {
|
||||
year: true,
|
||||
month: true,
|
||||
day: true,
|
||||
},
|
||||
form: {
|
||||
arriveAddress: "",
|
||||
arriveAreaId: "",
|
||||
arriveAreaName: "",
|
||||
arriveTime: "",
|
||||
checkPhoto: [],
|
||||
checkResult: "",
|
||||
checkTime: "",
|
||||
description: "",
|
||||
health: [],
|
||||
idNumber: "",
|
||||
name: "",
|
||||
phone: "",
|
||||
startAddress: "",
|
||||
startAreaId: "",
|
||||
startAreaName: "",
|
||||
startTime: "",
|
||||
temperature: "",
|
||||
touchInFourteen: "",
|
||||
travelType: "",
|
||||
type: "",
|
||||
unusual: "",
|
||||
arriveGirdId: '',
|
||||
arriveGirdName: '',
|
||||
corpId: '',
|
||||
},
|
||||
dictList: [],
|
||||
arr: [],
|
||||
gridList: [[], [], []],
|
||||
flag: false,
|
||||
areaId: "",
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
computed: {
|
||||
...mapState(["user"]),
|
||||
},
|
||||
|
||||
onLoad(option) {
|
||||
this.areaId = this.user.areaId;
|
||||
document.title = '返乡登记'
|
||||
if (option.corpId) {
|
||||
this.form.corpId = option.corpId
|
||||
}
|
||||
this.form.arriveGirdId = option.arriveGirdId
|
||||
this.form.arriveGirdName = decodeURIComponent(option.arriveGirdName)
|
||||
},
|
||||
|
||||
methods: {
|
||||
onDateChange(e) {
|
||||
this.form.checkTime = `${e.year}-${e.month}-${e.day}`;
|
||||
},
|
||||
|
||||
onStartChange(e) {
|
||||
this.form.startTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}`;
|
||||
},
|
||||
|
||||
onEndChange(e) {
|
||||
this.form.arriveTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}`;
|
||||
},
|
||||
|
||||
submit() {
|
||||
if (!this.form.name) {
|
||||
return this.$u.toast("请输入返乡人员姓名");
|
||||
}
|
||||
|
||||
if (!this.form.idNumber) {
|
||||
return this.$u.toast("请输入返乡人员身份证号");
|
||||
}
|
||||
|
||||
if (
|
||||
!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.form.idNumber)
|
||||
) {
|
||||
return this.$u.toast("请输入正确的身份证账号");
|
||||
}
|
||||
|
||||
if (!this.form.phone) {
|
||||
return this.$u.toast("请输入返乡人员手机号码");
|
||||
}
|
||||
|
||||
if (!/^1[0-9]{10,10}$/.test(this.form.phone)) {
|
||||
return this.$u.toast("请输入正确的手机号码");
|
||||
}
|
||||
|
||||
if (!this.form.type) {
|
||||
return this.$u.toast("请选择人员类别");
|
||||
}
|
||||
|
||||
if (!this.form.travelType) {
|
||||
return this.$u.toast("请选择出行方式");
|
||||
}
|
||||
|
||||
if (!this.form.startTime) {
|
||||
return this.$u.toast("请选择出发时间");
|
||||
}
|
||||
|
||||
if (
|
||||
new Date(this.form.startTime.replace(/-/g, "/")).getTime() >
|
||||
new Date().getTime()
|
||||
) {
|
||||
return this.$u.toast("出发时间不得晚于当前时间");
|
||||
}
|
||||
|
||||
if (!this.form.startAreaName) {
|
||||
return this.$u.toast("请选择出发地区");
|
||||
}
|
||||
|
||||
if (
|
||||
this.form.startAreaId.substr(this.form.startAreaId.length - 3, 3) ===
|
||||
"000"
|
||||
) {
|
||||
return this.$u.toast("出发地区必须选到村或社区");
|
||||
}
|
||||
if (!this.form.startAddress) {
|
||||
return this.$u.toast("请输入出发详细地址");
|
||||
}
|
||||
|
||||
if (!this.form.arriveTime) {
|
||||
return this.$u.toast("请选择到达时间");
|
||||
}
|
||||
|
||||
if (
|
||||
new Date(this.form.startTime.replace(/-/g, "/")).getTime() >=
|
||||
new Date(this.form.arriveTime.replace(/-/g, "/")).getTime()
|
||||
) {
|
||||
return this.$u.toast("到达时间不得早于出发时间");
|
||||
}
|
||||
|
||||
if (!this.form.arriveAreaName) {
|
||||
return this.$u.toast("请选择到达地区");
|
||||
}
|
||||
if (
|
||||
this.form.arriveAreaId.substr(this.form.arriveAreaId.length - 3, 3) ===
|
||||
"000"
|
||||
) {
|
||||
return this.$u.toast("到达地区必须选到村或社区");
|
||||
}
|
||||
if (!this.form.arriveAddress) {
|
||||
return this.$u.toast("请输入返乡地址");
|
||||
}
|
||||
|
||||
if (!this.form.description) {
|
||||
return this.$u.toast("请输入行程描述");
|
||||
}
|
||||
if (!this.form.checkTime) {
|
||||
return this.$u.toast("请选择核酸检测日期");
|
||||
}
|
||||
if (!this.form.checkPhoto.length) {
|
||||
return this.$u.toast("请上传本人健康码截图或核酸检测报告");
|
||||
}
|
||||
|
||||
if (!this.form.checkResult) {
|
||||
return this.$u.toast("请选择核酸检测结果");
|
||||
}
|
||||
if (!this.form.temperature) {
|
||||
return this.$u.toast("请输入当前体温");
|
||||
}
|
||||
if (!this.form.touchInFourteen) {
|
||||
return this.$u.toast("请选择14天内是否接触新冠确诊或疑似患者");
|
||||
}
|
||||
|
||||
if (!this.form.health.length) {
|
||||
return this.$u.toast("请选择当前健康状况");
|
||||
}
|
||||
if (this.flag) return;
|
||||
this.flag = true;
|
||||
|
||||
this.$loading();
|
||||
this.$http
|
||||
.post(`/app/appepidemicbackhomerecord/addOrUpdate`, {
|
||||
...this.form,
|
||||
startTime: this.form.startTime + ":00",
|
||||
arriveTime: this.form.arriveTime + ":00",
|
||||
checkTime: this.form.checkTime + " 00:00:00",
|
||||
health: this.form.health.join(","),
|
||||
checkPhoto: JSON.stringify(this.form.checkPhoto),
|
||||
})
|
||||
.then((res) => {
|
||||
this.$hideLoading();
|
||||
this.flag = false;
|
||||
if (res.code == 0) {
|
||||
uni.$emit("updateBackList");
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({url: `./Success?status=1&corpId=${this.form.corpId}`})
|
||||
}, 400);
|
||||
}
|
||||
}).catch((err) => {
|
||||
console.log(err)
|
||||
uni.$emit("updateBackList");
|
||||
uni.navigateTo({url: `./Success?status=1&corpId=${this.form.corpId}`})
|
||||
})
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.album {
|
||||
padding-bottom: 140px;
|
||||
|
||||
.tips {
|
||||
line-height: 1.3;
|
||||
padding: 32px 32px;
|
||||
color: #ff883c;
|
||||
font-size: 30px;
|
||||
text-align: justify;
|
||||
background: #fff8f3;
|
||||
}
|
||||
|
||||
.form-item__group {
|
||||
margin-bottom: 24px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.form-item {
|
||||
padding-left: 32px;
|
||||
|
||||
.form-item__checkbox {
|
||||
width: 100%;
|
||||
|
||||
div {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
margin-bottom: 24px;
|
||||
text-align: center;
|
||||
background: #ffffff;
|
||||
border-radius: 16px;
|
||||
color: #333333;
|
||||
font-size: 28px;
|
||||
border: 1px solid #cccccc;
|
||||
|
||||
&.active {
|
||||
background: #4181ff;
|
||||
color: #fff;
|
||||
border-color: #4181ff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form-item__radio {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
|
||||
div {
|
||||
width: 212px;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
margin-right: 16px;
|
||||
margin-bottom: 8px;
|
||||
text-align: center;
|
||||
background: #ffffff;
|
||||
border-radius: 16px;
|
||||
color: #333333;
|
||||
font-size: 28px;
|
||||
border: 1px solid #cccccc;
|
||||
|
||||
&:nth-of-type(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: #4181ff;
|
||||
color: #fff;
|
||||
border-color: #4181ff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ai-area__wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-left: 100px;
|
||||
|
||||
span {
|
||||
color: #333;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
i {
|
||||
color: #999;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
image {
|
||||
width: 16px;
|
||||
height: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.form-item__wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 128px;
|
||||
padding-right: 28px;
|
||||
|
||||
input {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
text-align: right;
|
||||
color: #333;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.form-item__right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 32px;
|
||||
|
||||
.select {
|
||||
._i {
|
||||
padding-left: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
max-width: 400px;
|
||||
margin-right: 8px;
|
||||
color: #333333;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
i {
|
||||
margin-right: 8px;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
.form-item__wrapper {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.form-item__title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
i {
|
||||
font-size: 32px;
|
||||
color: #ff4466;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 28px;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
h2 {
|
||||
padding: 0 4px;
|
||||
font-weight: 600;
|
||||
font-size: 32px;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
|
||||
&.form-item__imgs,
|
||||
&.form-item__textarea {
|
||||
.form-item__wrapper {
|
||||
display: block;
|
||||
height: auto;
|
||||
padding-bottom: 32px;
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 100%;
|
||||
height: 90px;
|
||||
}
|
||||
|
||||
.form-item__title {
|
||||
padding: 32px 0;
|
||||
}
|
||||
|
||||
.form-item__right {
|
||||
padding-left: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footer{
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
box-shadow: inset 0px 1px 0px 0px #EEEEEE;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: #1365DD;
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -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>
|
||||
|
||||
323
src/project/pingchang/AppHealthReport/ErrorInfo.vue
Normal file
323
src/project/pingchang/AppHealthReport/ErrorInfo.vue
Normal file
@@ -0,0 +1,323 @@
|
||||
<template>
|
||||
<div class="ErrorInfo">
|
||||
<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.idNumberText}}</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">{{$dict.getLabel('EP_registerPersonType', info.type)}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line-bg"></div>
|
||||
<div class="info" v-if="info.handleLogs && info.handleLogs.length">
|
||||
<div class="title">风险处置意见</div>
|
||||
<div class="error-list">
|
||||
<div class="item" v-for="(item, index) in info.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="bg-line"></div>
|
||||
<div class="footer">
|
||||
<div :class="info.status != 1 ? 'confirm' : 'add'" @click="showText(7)">新增记录</div>
|
||||
<div class="confirm" @click="showText(5)" v-if="info.status == 1">解除风险</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 {
|
||||
data() {
|
||||
return {
|
||||
show: false,
|
||||
value: '',
|
||||
id: '',
|
||||
handleType: '', //5解除风险 7新增风险记录
|
||||
info: {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
},
|
||||
onShow() {
|
||||
document.title = '风险人员处置'
|
||||
},
|
||||
onLoad(option) {
|
||||
this.id = option.id
|
||||
this.$dict.load('epidemicRecentHealth').then(() => {
|
||||
this.getDetail()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
showText(status) {
|
||||
this.handleType = status
|
||||
this.show = true
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appepidemicpreventionhealthreportinfo/userDetailById?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.info = res.data
|
||||
this.info.idNumberText = this.info.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||
}
|
||||
})
|
||||
},
|
||||
cancel() {
|
||||
if(!this.value) {
|
||||
return this.$u.toast('请输入风险解除说明')
|
||||
}
|
||||
this.$confirm(`是否解除该条风险信息?`).then(() => {
|
||||
var params = {
|
||||
"content": this.value,
|
||||
"riskRelief": true,
|
||||
"reportUserId": this.id,
|
||||
}
|
||||
this.$http.post("/app/appepidemicpreventionhealthreportinfo/addReportHandle", params).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast("解除成功!")
|
||||
uni.$emit('updateDetail')
|
||||
uni.$emit('updateList')
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 600);
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
confirm() {
|
||||
if(this.handleType == 5) { //解除风险
|
||||
this.cancel()
|
||||
}else {
|
||||
this.addConfirm()
|
||||
}
|
||||
},
|
||||
addConfirm() {
|
||||
if(!this.value) {
|
||||
return this.$u.toast('请输入风险情况')
|
||||
}
|
||||
var params = {
|
||||
"content": this.value,
|
||||
"reportUserId": this.id,
|
||||
"riskRelief": false
|
||||
}
|
||||
this.$http.post("/app/appepidemicpreventionhealthreportinfo/addReportHandle", params).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.getDetail()
|
||||
this.$u.toast("新增成功!")
|
||||
this.show = false
|
||||
this.value = ''
|
||||
uni.$emit('updateDetail')
|
||||
uni.$emit('updateList')
|
||||
}
|
||||
})
|
||||
},
|
||||
callPhone(phone) {
|
||||
uni.makePhoneCall({phoneNumber: phone})
|
||||
},
|
||||
toContent() {
|
||||
uni.navigateTo({url: `./RiskContent?id=${this.id}`})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.ErrorInfo {
|
||||
height: 100%;
|
||||
.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;
|
||||
overflow: hidden;
|
||||
span {
|
||||
float: right;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 32px;
|
||||
color: #1365DD;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
.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;
|
||||
}
|
||||
}
|
||||
.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;
|
||||
}
|
||||
}
|
||||
.line-bg{
|
||||
width: 100%;
|
||||
height: 24px;
|
||||
background-color: #F3F6F9;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
204
src/project/pingchang/AppHealthReport/UserList.vue
Normal file
204
src/project/pingchang/AppHealthReport/UserList.vue
Normal file
@@ -0,0 +1,204 @@
|
||||
<template>
|
||||
<div class="UserList">
|
||||
<div class="bottoms">
|
||||
<template v-if="list.length" class="list-content">
|
||||
<div class="templates" v-for="(item, i) in list" :key="i" @click="toDetail(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">每日上报</div>
|
||||
<div class="types" v-if="item.status == '1'">健康异常</div>
|
||||
</div>
|
||||
<div class="nameBottom" v-if="item.createTime">{{item.createTime.substring(0, 16)}}</div>
|
||||
</div>
|
||||
<div style="padding-right: 8px;">
|
||||
<div class="status-text" :class="'status'+item.status">{{item.status == '1' ? '异常' : '正常'}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div class="add" @click="callPhone()">电话联系</div>
|
||||
<div class="confirm" @click="toError()">风险情况处置</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
reportUserId: '',
|
||||
reportUserName: '',
|
||||
phone: '',
|
||||
list: [],
|
||||
current: 1
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
},
|
||||
onLoad(option) {
|
||||
this.reportUserId = option.id
|
||||
this.reportUserName = option.name
|
||||
this.phone = option.phone
|
||||
this.getList()
|
||||
},
|
||||
onShow() {
|
||||
document.title = this.reportUserName + '的上报'
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$http.post('/app/appepidemicpreventionhealthreportinfo/list', null, {
|
||||
params: {
|
||||
size: 10,
|
||||
current: this.current,
|
||||
reportUserId: this.reportUserId
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
this.$forceUpdate()
|
||||
}
|
||||
})
|
||||
},
|
||||
callPhone() {
|
||||
uni.makePhoneCall({phoneNumber: this.phone})
|
||||
},
|
||||
toDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: `./Detail?id=${item.id}&name=${this.reportUserName}`,
|
||||
})
|
||||
},
|
||||
toError() {
|
||||
uni.navigateTo({
|
||||
url: `./ErrorInfo?id=${this.reportUserId}`,
|
||||
})
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current++
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.UserList {
|
||||
height: 100%;
|
||||
.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;
|
||||
}
|
||||
.status-text{
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
line-height: 44px;
|
||||
margin-bottom: 12px;
|
||||
text-align: right;
|
||||
color: #5AAD6A;
|
||||
}
|
||||
.status1 {
|
||||
color: #cd413a;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.emptyWrap {
|
||||
margin-top: 0;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
}
|
||||
.list-content {
|
||||
padding: 128px;
|
||||
}
|
||||
.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 {
|
||||
color: #333;
|
||||
}
|
||||
.confirm {
|
||||
color: #fff;
|
||||
background: #1365dd;
|
||||
}
|
||||
div {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
<div class="line-bg"></div>
|
||||
<div class="info" v-if="info.riskDisposalList.length">
|
||||
<div class="title">异常情况记录</div>
|
||||
<div class="title">风险处置意见</div>
|
||||
<div class="error-list">
|
||||
<div class="item" v-for="(item, index) in info.riskDisposalList" :key="index">
|
||||
<p>{{item.remarks}}</p>
|
||||
@@ -56,8 +56,6 @@
|
||||
import { mapState } from 'vuex'
|
||||
|
||||
export default {
|
||||
components: {},
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
show: false,
|
||||
|
||||
@@ -135,7 +135,6 @@ export default {
|
||||
return {
|
||||
id: '',
|
||||
info: {},
|
||||
// haveHomeQuarantineBtn: false, // 是否重新处置 true屏蔽居家两种隔离
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
@@ -146,7 +145,6 @@ export default {
|
||||
this.$dict.load('yesOrNo', 'EP_registerPersonType', 'EP_travelType', 'EP_abnormalType', 'epidemicTouchInFourteen', 'EP_highRiskIndustries', 'EP_handleType',
|
||||
'EP_quarantineAddress', 'EP_homeStatus', 'EP_quarantineStrategy', 'EP_controlMethod', 'EP_handoverObject', 'EP_handoverMethod').then(() => {
|
||||
this.id = option.id
|
||||
// this.haveHomeQuarantineBtn = option.operation == 'reDisposal' ? true : false
|
||||
this.getDetail()
|
||||
})
|
||||
uni.$on('updateDetail', () => {
|
||||
|
||||
Reference in New Issue
Block a user