持续集成分支
This commit is contained in:
346
library/project/pingchang/AppHealthReport/AppHealthReport.vue
Normal file
346
library/project/pingchang/AppHealthReport/AppHealthReport.vue
Normal file
@@ -0,0 +1,346 @@
|
||||
<template>
|
||||
<div class="AppHealthReport">
|
||||
<AiTopFixed>
|
||||
<div class="header">
|
||||
<div class="tab-item">
|
||||
<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: #2c51ce">{{ totalInfo['今日风险'] }}</h2>
|
||||
<p>今日风险</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="line1"></div>
|
||||
|
||||
<div class="middle">
|
||||
<div class="left">
|
||||
<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>
|
||||
<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="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 == '1'">异常</div>
|
||||
</div>
|
||||
<div class="nameBottom">
|
||||
上报第{{item.reportCount}}天
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding-right: 8px;">
|
||||
<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>
|
||||
</template>
|
||||
|
||||
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
appName: '健康上报',
|
||||
data() {
|
||||
return {
|
||||
keyword: '',
|
||||
areaId: '',
|
||||
areaName: '',
|
||||
current: 1,
|
||||
size: 10,
|
||||
tabList: [
|
||||
{
|
||||
name: '上报记录',
|
||||
},
|
||||
{
|
||||
name: '风险人员',
|
||||
},
|
||||
],
|
||||
currentTabs: 0,
|
||||
totalInfo: {},
|
||||
data: [],
|
||||
cropAreaId: ''
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getCropAreaId()
|
||||
|
||||
uni.$on('updateList', () => {
|
||||
this.current = 1
|
||||
this.getList()
|
||||
this.getTotal()
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
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/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()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
getTotal() {
|
||||
this.$http.post(`/app/appepidemicpreventionhealthreportinfo/listStatistics?areaId=${this.areaId}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.totalInfo = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
toUserList(item) {
|
||||
uni.navigateTo({
|
||||
url: `./UserList?id=${item.id}&name=${item.name}&phone=${item.phone}`,
|
||||
})
|
||||
},
|
||||
|
||||
areaSelect(e) {
|
||||
this.areaId = e
|
||||
this.getList()
|
||||
this.getTotal()
|
||||
},
|
||||
|
||||
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">
|
||||
.AppHealthReport {
|
||||
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;
|
||||
border-bottom: 1px solid #ddd;
|
||||
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;
|
||||
}
|
||||
.day-info{
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
line-height: 44px;
|
||||
margin-bottom: 12px;
|
||||
text-align: right;
|
||||
span{
|
||||
color: #5AAD6A;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.emptyWrap {
|
||||
margin-top: 0;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
311
library/project/pingchang/AppHealthReport/Detail.vue
Normal file
311
library/project/pingchang/AppHealthReport/Detail.vue
Normal file
@@ -0,0 +1,311 @@
|
||||
<template>
|
||||
<div class="Detail">
|
||||
<div class="info">
|
||||
<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="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">{{$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 solid">
|
||||
<img :src="info.jkmUrl" alt="" @click="previewImage(info.jkmUrl)">
|
||||
</div>
|
||||
<div class="item-flex border-none">
|
||||
<div class="label" style="width:100%;">核酸检测报告</div>
|
||||
</div>
|
||||
<div class="img-list">
|
||||
<img :src="info.nucleicAcidUrl" alt="" @click="previewImage(info.nucleicAcidUrl)">
|
||||
</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">
|
||||
<div v-if="!item.riskRelief">
|
||||
<p>{{item.content}}</p>
|
||||
<div>{{item.createTime}}
|
||||
<span>{{item.createUserName}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<p>风险解除人:{{item.createUserName}}</p>
|
||||
<div>解除时间:{{item.createTime}}</div>
|
||||
</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>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
info: {},
|
||||
userName: '',
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
onShow() {
|
||||
document.title = this.userName + '的上报'
|
||||
},
|
||||
onLoad(option) {
|
||||
this.$dict.load('EP_abnormalType', 'epidemicTouchInFourteen', 'EP_nucleicAcidResult', 'EP_jkmType', 'EP_vaccinationCount').then(() => {
|
||||
this.id = option.id
|
||||
this.getDetail()
|
||||
})
|
||||
uni.$on('updateDetail', () => {
|
||||
this.getDetail()
|
||||
})
|
||||
uni.$emit('updateList')
|
||||
this.userName = option.name
|
||||
},
|
||||
methods: {
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appepidemicpreventionhealthreportinfo/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.info = res.data
|
||||
this.info.reportUser.idNumberText = this.info.reportUser.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||
}
|
||||
})
|
||||
},
|
||||
callPhone(phone) {
|
||||
uni.makePhoneCall({phoneNumber: phone})
|
||||
},
|
||||
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 lang="scss" scoped>
|
||||
.Detail {
|
||||
.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: #999;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
.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;
|
||||
}
|
||||
}
|
||||
.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: #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;
|
||||
}
|
||||
.line-text {
|
||||
line-height: 80px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 32px;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
336
library/project/pingchang/AppHealthReport/ErrorInfo.vue
Normal file
336
library/project/pingchang/AppHealthReport/ErrorInfo.vue
Normal file
@@ -0,0 +1,336 @@
|
||||
<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" style="color:#f46;" v-if="info.riskDescList && info.riskDescList.length">
|
||||
<span v-for="(item, index) in info.riskDescList" :key="index"><span v-if="index > 0">,</span>{{item}}</span>
|
||||
</div>
|
||||
<div class="value" v-else>无风险</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">
|
||||
<div v-if="!item.riskRelief">
|
||||
<p>{{item.content}}</p>
|
||||
<div>{{item.createTime}}
|
||||
<span>{{item.createUserName}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<p>风险解除人:{{item.createUserName}}</p>
|
||||
<div>解除时间:{{item.createTime}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height:16px;"></div>
|
||||
</div>
|
||||
<div class="bg-line"></div>
|
||||
<div class="footer" v-if="info.status == 1">
|
||||
<div class="add" @click="showText(7)">新增记录</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 {
|
||||
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")
|
||||
this.info.riskDescList = []
|
||||
if(this.info.reportInfos && this.info.reportInfos.length) {
|
||||
this.info.reportInfos.map((item) => {
|
||||
if(item.riskDesc) {
|
||||
this.info.riskDescList.push(item.riskDesc)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
cancel() {
|
||||
this.$confirm(`是否解除该条风险信息?`).then(() => {
|
||||
var params = {
|
||||
"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({delta: 2})
|
||||
}, 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
library/project/pingchang/AppHealthReport/UserList.vue
Normal file
204
library/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>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 494 B |
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
Reference in New Issue
Block a user