平昌-积分代兑换

This commit is contained in:
liuye
2023-05-22 17:38:47 +08:00
parent 0a9e84b6dd
commit 5a13ff7dc5
22 changed files with 62 additions and 1831 deletions

View File

@@ -9,8 +9,8 @@
<div class="btn" @click="toMyOrder">ta的订单</div>
</div>
<div class="search">
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="76" font-size="28" bg-color="#fff" inactive-color="#8891A1"
active-color="#1D2229 " :bar-style="barStyle" @change="changeTab" ></u-tabs>
<!-- <u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="76" font-size="28" bg-color="#fff" inactive-color="#8891A1"
active-color="#1D2229 " :bar-style="barStyle" @change="changeTab" ></u-tabs> -->
<div class="type-select">
<div :class="currentType == index ? 'item active' : 'item'" v-for="(item, index) in typeList" :key="index" @click="typeClick(index)">
{{item}}
@@ -28,7 +28,7 @@
<div class="list-info" v-for="(item, index) in leftList" :key="index" v-if="goodsList.length">
<div class="item" @click="toProductDetail(item)">
<img :src="item.picUrl" alt="">
<div class="type" :class="`type`+item.type">{{ $dict.getLabel('integralSGType', item.type) }}</div>
<div class="type" :class="`type`+item.typeText">{{ $dict.getLabel('integralSGTypeText', item.typeText) }}</div>
<div class="content">
<p class="text">{{item.title}}</p>
<div class="item-money">
@@ -51,7 +51,7 @@
<div class="list-info" v-for="(item, index) in rightList" :key="index" v-if="goodsList.length">
<div class="item" @click="toProductDetail(item)">
<img :src="item.picUrl" alt="">
<div class="type" :class="`type`+item.type">{{ $dict.getLabel('integralSGType', item.type) }}</div>
<div class="type" :class="`type`+item.typeText">{{ $dict.getLabel('integralSGTypeText', item.typeText) }}</div>
<div class="content">
<p class="text">{{item.title}}</p>
<div class="item-money">
@@ -83,7 +83,7 @@ export default {
data() {
return {
tabList: [{name: '全部'}, {name: '免费兑'}, {name: '京东低价商品'}],
currentTabs: 0,
currentTabs: 1,
barStyle: {
'width': '20px',
'height': '3px',
@@ -113,7 +113,7 @@ export default {
this.userId = option.userId
this.integralUserId = option.integralUserId
this.getTotal()
this.$dict.load(['integralSGType']).then(() => {
this.$dict.load(['integralSGTypeText']).then(() => {
this.getList()
})
},
@@ -151,6 +151,7 @@ export default {
if (res.code === 0) {
this.goodsList = this.current == 1 ? res.data.records : [...this.goodsList, ...res.data.records]
res.data.records.map((item, index) => {
item.typeText = item.type == 0 ? 0 : 1
if(index%2 ==0) {
this.leftList.push(item)
}else {

View File

@@ -12,19 +12,19 @@
</div>
<div class="flex">
<img :src="item.goodsPicUrl" alt="">
<div class="type" :class="`type`+item.goodsType">{{ $dict.getLabel('integralSGType', item.goodsType) }}</div>
<div class="type" :class="`type`+item.goodsTypeText">{{ $dict.getLabel('integralSGTypeText', item.goodsTypeText) }}</div>
<div class="flex-right">
<p>{{item.goodsTitle}}</p>
<div class="num-flex">
<h3>{{item.usedIntegral}}积分<span v-if="item.goodsType == 1">+{{item.payMoney}}</span></h3>
<h3>{{item.usedIntegral}}积分<span v-if="item.goodsType == 2">+{{item.payMoney}}</span></h3>
<div>x {{item.quantity}}</div>
</div>
</div>
</div>
<p class="tips" v-if="item.goodsType == 1"><span>兑换成功后点击去购买前往京东低价购买</span></p>
<p class="tips" v-if="item.goodsType == 2"><span>兑换成功后点击去购买前往京东低价购买</span></p>
<p class="tips" v-else>免费兑换商品可到固定的兑换点进行核销兑换</p>
<p class="remark" v-if="item.remarks">备注{{item.remarks}}</p>
<div class="flex-btn" v-if="item.goodsType == 1 && item.status != 2">
<div class="flex-btn" v-if="item.goodsType == 2 && item.status != 2">
<p></p>
<div class="btn confirm" @click="openJd(item)">去购买</div>
</div>
@@ -65,7 +65,7 @@ export default {
},
onLoad(option) {
this.userId = option.userId
this.$dict.load(['integralSGOStatus', 'integralSGType']).then(() => {
this.$dict.load(['integralSGOStatus', 'integralSGTypeText']).then(() => {
this.getList()
})
},
@@ -87,12 +87,22 @@ export default {
}
}).then(res => {
if (res.code === 0) {
res.data.records.map((item) => {
item.goodsTypeText = item.goodsType == 0 ? 0 : 1
})
this.list = this.current == 1 ? res.data.records : [...this.list, ...res.data.records]
}
})
},
openJd(item) {
uni.navigateTo({url: `./jdH5?goodsJdUrl=${item.goodsJdUrl}`})
if(item.goodsType == 1) {
uni.navigateTo({url: `./jdH5?goodsJdUrl=${item.goodsJdUrl}`})
}else {
uni.navigateToMiniProgram({
appId: item.goodsJdAppid,
path: item.goodsJdUrl
})
}
},
cancel(item) {
uni.showModal({

View File

@@ -3,16 +3,16 @@
<div class="header-info">
<div class="flex">
<img :src="goodsInfo.picUrl" alt="">
<div class="type" :class="`type`+goodsInfo.type">{{ $dict.getLabel('integralSGType', goodsInfo.type) }}</div>
<div class="type" :class="`type`+goodsInfo.typeText">{{ $dict.getLabel('integralSGTypeText', goodsInfo.typeText) }}</div>
<div class="flex-right">
<p>{{goodsInfo.title}}</p>
<div>
<u-number-box v-model="goodsNum" @change="valChange" input-height="44" size="24" :min="1" :max="goodsInfo.stock"></u-number-box>
</div>
<h3>{{goodsInfo.integralPrice}}积分<span v-if="goodsInfo.type == 1">+{{goodsInfo.payMoney}}.00</span></h3>
<h3>{{goodsInfo.integralPrice}}积分<span v-if="goodsInfo.type == 2">+{{goodsInfo.payMoney}}.00</span></h3>
</div>
</div>
<p class="tips" v-if="goodsInfo.type == 1">兑换成功后点击去购买前往京东低价购买</p>
<p class="tips" v-if="goodsInfo.type == 2">兑换成功后点击去购买前往京东低价购买</p>
<p class="tips" v-else>免费兑换商品可到固定的兑换点进行核销兑换</p>
</div>
<div class="content">
@@ -28,7 +28,7 @@
<div class="label">支付积分</div>
<div class="value">{{(goodsNum*goodsInfo.integralPrice).toFixed(2)}}积分</div>
</div>
<div class="item-flex" v-if="goodsInfo.type == 1">
<div class="item-flex" v-if="goodsInfo.type == 2">
<div class="label">京东支付</div>
<div class="value color-999">¥{{(goodsNum*goodsInfo.payMoney).toFixed(2)}}</div>
</div>
@@ -74,7 +74,7 @@ export default {
this.shopGoodsId = option.shopGoodsId
this.total = option.total
this.backLevel = option.backLevel
this.$dict.load(['integralSGType']).then(() => {
this.$dict.load(['integralSGTypeText']).then(() => {
this.getDetail()
})
},
@@ -86,6 +86,7 @@ export default {
this.$http.post(`/app/appintegralsupermarketshop/queryGoodsInfoXCX?shopGoodsId=${this.shopGoodsId}`).then(res => {
if (res.code === 0) {
this.goodsInfo = res.data
this.goodsInfo.typeText = this.goodsInfo.type == 0 ? 0 : 1
}
})
},
@@ -110,7 +111,7 @@ export default {
},
toSuccess() {
var integralPrice = this.goodsNum*this.goodsInfo.integralPrice
uni.navigateTo({url: `./successOrder?isFree=${this.goodsInfo.type}&integralPrice=${integralPrice}&backLevel=${this.backLevel}&goodsJdUrl=${this.goodsInfo.jdUrl}`})
uni.navigateTo({url: `./successOrder?shopGoodsId=${this.goodsInfo.shopGoodsId}&integralPrice=${integralPrice}&backLevel=${this.backLevel}`})
}
},
}

View File

@@ -1,12 +1,12 @@
<template>
<div class="productDetails" v-if="goodsInfo.picUrl">
<img :src="goodsInfo.picUrl" alt="">
<div class="type" :class="`type`+goodsInfo.type">{{ $dict.getLabel('integralSGType', goodsInfo.type) }}</div>
<div class="type" :class="`type`+goodsInfo.typeText">{{ $dict.getLabel('integralSGTypeText', goodsInfo.typeText) }}</div>
<div class="product-info">
<p>{{goodsInfo.title}}</p>
<h3>{{goodsInfo.integralPrice}}积分<span v-if="goodsInfo.type == 1">+¥{{goodsInfo.payMoney}}<span v-if="goodsInfo.type == 1">兑换后再付</span></span></h3>
<h3>{{goodsInfo.integralPrice}}积分<span v-if="goodsInfo.type == 2">+¥{{goodsInfo.payMoney}}<span v-if="goodsInfo.type == 2">兑换后再付</span></span></h3>
<div>零售单价¥{{goodsInfo.retailPrice}}</div>
<span class="tips" v-if="goodsInfo.type == 1">兑换成功后点击去购买前往京东低价购买</span>
<span class="tips" v-if="goodsInfo.type == 2">兑换成功后点击去购买前往京东低价购买</span>
<span class="tips" v-else>免费兑换商品可到固定的兑换点进行核销兑换</span>
</div>
<div class="product-content">
@@ -44,7 +44,7 @@ export default {
this.shopGoodsId = option.shopGoodsId
this.userId = option.userId
this.total = option.total
this.$dict.load(['integralSGType']).then(() => {
this.$dict.load(['integralSGTypeText']).then(() => {
this.getDetail()
})
},
@@ -56,6 +56,7 @@ export default {
this.$http.post(`/app/appintegralsupermarketshop/queryGoodsInfoXCX?shopGoodsId=${this.shopGoodsId}`).then(res => {
if (res.code === 0) {
this.goodsInfo = res.data
this.goodsInfo.typeText = this.goodsInfo.type == 0 ? 0 : 1
}
})
},

View File

@@ -1,15 +1,7 @@
<template>
<div class="successOrder">
<img src="./img/success.png" alt="">
<div v-if="isFree == 1">
<h3>兑换成功</h3>
<p>提交京东低价商品订单成功扣减 <span>{{integralPrice}}积分</span>
可点击下方按钮前往京东商城进行低价购买
</p>
<div class="btn" @click="openJd">去购买</div>
</div>
<div v-else>
<div v-if="goodsInfo.type == 0">
<h3>提交成功</h3>
<p>提交免费兑订单成功扣减 <span>{{integralPrice}}积分</span></p>
<div class="btn-flex">
@@ -17,6 +9,13 @@
<div @click="toOrderList">查看订单</div>
</div>
</div>
<div v-else>
<h3>兑换成功</h3>
<p>提交京东低价商品订单成功扣减 <span>{{integralPrice}}积分</span>
可点击下方按钮前往京东商城进行低价购买
</p>
<div class="btn" @click="openJd">去购买</div>
</div>
</div>
</template>
@@ -28,27 +27,41 @@ export default {
appName: '提交订单',
data() {
return {
isFree: 0, // 0免费 1京东
integralPrice: 0,
backLevel: 1,
goodsJdUrl: ''
shopGoodsId: '',
goodsInfo: {}
}
},
computed: {
...mapState(['user']),
},
onLoad(option) {
this.isFree = option.isFree
this.integralPrice = option.integralPrice
this.backLevel = option.backLevel
this.goodsJdUrl = option.goodsJdUrl
this.shopGoodsId = option.shopGoodsId
this.getDetail()
},
onShow() {
document.title = '提交订单'
},
methods: {
getDetail() {
this.$http.post(`/app/appintegralsupermarketshop/queryGoodsInfoXCX?shopGoodsId=${this.shopGoodsId}`).then(res => {
if (res.code === 0) {
this.goodsInfo = res.data
}
})
},
openJd() {
uni.navigateTo({url: `./jdH5?goodsJdUrl=${this.goodsJdUrl}`})
if(this.goodsInfo.type == 1) {
uni.navigateTo({url: `./jdH5?goodsJdUrl=${this.goodsInfo.jdUrl}`})
}else {
uni.navigateToMiniProgram({
appId: this.goodsInfo.jdAppid,
path: this.goodsInfo.jdUrl
})
}
},
back() {
uni.navigateBack({delta: Number(this.backLevel)})

View File

@@ -1,415 +0,0 @@
<template>
<div class="AppReturnHomeReporting">
<AiTopFixed>
<div class="header">
<div class="tab-item">
<h2 style="color:#2C51CE;">{{totalInfo['登记人数']}}</h2>
<p>报备人员</p>
</div>
<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:#CD413A;border-right:0;">{{totalInfo['风险处理']}}</h2>
<p>风险处理</p>
</div>
</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>
<div class="search">
<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="getListInit" @clear="name='',getListInit"></u-search>
</div>
</AiTopFixed>
<div class="user-list" v-if="list.length">
<div class="item" v-for="(item,index) in list" :key="index" @click="toUser(item)">
<div class="top">
<h2 class="name">{{item.name}}
<div class="status" :class="'status'+item.riskLevel">{{ $dict.getLabel('EP_riskLevel', item.riskLevel) }} </div>
</h2>
<p class="color-999 idnumber-flex">
<span>{{item.idNumber}}</span>
<span class="del-btn" @click.stop="del(item.id)"> <u-icon name="trash" color="#f46" size="40" /></span>
</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.arriveTime}}</p>
<img :src="statusImgList[item.lastCommunityHandleType]" alt="" class="status-img" v-if="item.lastCommunityHandleType != null">
</div>
<div class="bottom" v-if="item.handleUserName">
<div class="text">处置人<span>{{item.handleUserName}}</span></div>
</div>
</div>
</div>
<AiEmpty v-if="!list.length"></AiEmpty>
<u-select v-model="showGateSelect" :list="gateList" label-name="name" value-name="id" @confirm="gatewayconfirm"></u-select>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
name: 'AppReturnHomeReporting',
appName: '返乡报备',
data() {
return {
cropAreaId: '',
areaId: '',
areaName: '',
tabIndex: 0,
current: 1,
pages: 2,
list: [],
totalInfo: {},
keyword: '',
gatewayId: '',
gatewayName: '',
showGateSelect: false,
gateList: [],
statusImgList: [
require('./components/img/status0.png'),
require('./components/img/status1.png'),
require('./components/img/status2.png'),
],
options: [
{
text: '删除',
style: {
backgroundColor: '#dd524d'
}
}
]
}
},
computed: { ...mapState(['user']) },
created() {
// this.areaId = this.user.areaId
// this.areaName = this.user.areaName
this.getCropAreaId()
this.$dict.load(['EP_handleType', 'EP_riskLevel']).then(() => {
this.getList()
this.getTotal()
})
},
onShow() {
document.title = '返乡报备'
uni.$on('updateList', () => {
this.getListInit()
})
},
methods: {
getCropAreaId() {
this.$http.post(`/app/appdvcpconfig/getCorpArea`).then((res) => {
if (res.code == 0) {
this.areaId = res.data
this.cropAreaId = res.data
}
})
},
getListInit() {
this.current = 1
this.list = []
this.getList()
},
getList() {
this.$http.post(`/app/appepidemicpreventionregisterinfo/list?infoType=1&current=${this.current}&size=10&listType=${this.tabIndex}&gatewayId=${this.gatewayId}&name=${this.keyword}&arriveAreaId=${this.areaId}`)
.then((res) => {
if (res.code == 0) {
this.list = this.current > 1 ? [...this.list, ...res.data.records.map(v => {
return {
...v,
show: false,
idNumber: v.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
}
})] : res.data.records.map(v => {
return {
...v,
show: false,
idNumber: v.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
}
})
this.pages = res.data.pages
}
})
},
del(id) {
this.$confirm(`确认删除该数据`).then(() => {
this.$http.post(`/app/appepidemicpreventionregisterinfo/delete?id=${id}`).then((res) => {
if (res.code == 0) {
this.$u.toast('删除成功')
this.getListInit()
}else {
this.$u.toast(res.msg)
}
}).catch((err) => {
this.$u.toast(err)
})
})
},
getTotal() {
this.$http.post(`/app/appepidemicpreventionregisterinfo/listStatistics?areaId=${this.areaId}&infoType=1`).then((res) => {
if (res.code == 0) {
this.totalInfo = res.data
}
})
},
areaSelect(e) {
this.areaId =e
this.$nextTick(() => {
this.getListInit()
})
this.getTotal()
},
tabClick(index) {
this.tabIndex = index
this.getListInit()
},
toUser(row) {
uni.navigateTo({url: `./UserInfo?id=${row.id}`})
},
onClick(index) {
this.del(this.list[index].id)
},
},
onReachBottom() {
this.current ++
this.getList()
}
}
</script>
<style lang="scss" scoped>
.AppReturnHomeReporting {
.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;
}
}
}
.top-search {
padding: 20px 32px;
background-color: #fff;
}
.top-select {
display: flex;
padding: 28px 0;
background-color: #fff;
.item {
flex: 1;
padding: 0 8px;
text-align: center;
span {
display: inline-block;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28px;
color: #666;
line-height: 40px;
}
}
}
.user-list{
background-color: #F3F6F9;
padding: 32px 32px 0;
.item{
background-color: #fff;
border-radius: 16px;
margin-bottom: 24px;
.top {
padding: 32px 32px 24px;
position: relative;
.status-img{
width: 200px;
height: 200px;
position: absolute;
bottom: 0;
right: 0;
}
.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;
line-height: 40px;
}
.status0 {
color: #00D25D;
}
.status1 {
color: #FF6300;
}
.status2 {
color: #f46;
}
}
p{
width: calc(100% - 200px);
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;
}
}
.idnumber-flex {
width: 100%;
display: flex;
justify-content: space-between;
.del-btn {
display: inline-block;
padding: 8px;
}
}
.start-name{
display: inline-block;
width: calc(100% - 50px);
}
.color-999{
margin-bottom: 24px;
color: #999;
}
}
.bottom {
border-top: 2px solid #D8DDE6;
padding: 32px;
.text {
line-height: 40px;
font-family: PingFangSC-Regular;
font-size: 28px;
color: #666;
letter-spacing: 0.58px;
}
span {
display: inline-block;
color: #3975C6;
margin-right: 32px;
}
}
}
}
::v-deep .AiTopFixed {
.placeholder {
.content {
padding: 0 !important;
}
}
.fixed {
margin: 0 !important;
background-color: #f5f5f5!important;
.content {
padding: 0 !important;
}
}
}
.gateway-name {
max-width: calc(100% - 48px);
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28px;
color: #666;
line-height: 40px;
}
.gateway-type {
display: flex;
justify-content: center;
}
}
</style>

View File

@@ -1,326 +0,0 @@
<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="info.riskDesc ? 'color:#f46;' : ''">{{info.riskDesc || '无风险'}}</div>
</div>
</div>
<div class="line-bg"></div>
<div class="info" v-if="info.riskDisposalList.length">
<div class="title">风险处置意见</div>
<div class="error-list">
<div class="item" v-for="(item, index) in info.riskDisposalList" :key="index">
<p>{{item.remarks}}</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="add" @click="toContent">社区初排</div>
<div class="confirm" @click="showText(7)">新增风险记录</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: '',
info: {},
handleType: '', //5解除风险 7新增风险记录
}
},
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/appepidemicpreventionregisterinfo/queryDetailById?id=${this.id}`).then((res) => {
if (res.code == 0) {
this.info = res.data
this.info.travelTypeList = this.info.travelType.split(',')
this.info.idNumberText = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
}
})
},
cancel() {
if(!this.value) {
return this.$u.toast('请输入风险解除说明')
}
this.$confirm(`是否解除该条风险信息?`).then(() => {
var params = {
"remarks": this.value,
"handleType": 5,
"registerId": this.id,
"registerIdNumber": this.info.idNumber,
}
this.$http.post("/app/appepidemicpreventionregisterinfo/riskDisposal", 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 = {
"remarks": this.value,
"registerId": this.id,
"registerIdNumber": this.info.idNumber,
"handleType": 7
}
this.$http.post("/app/appepidemicpreventionregisterinfo/riskDisposal", 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 {
color: #333;
}
.confirm {
color: #fff;
background: #1365dd;
}
div {
flex: 1;
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>

View File

@@ -1,613 +0,0 @@
<template>
<div class="RiskContent">
<div class="user-info">
<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.arriveTime}}</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.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 class="item-flex">
<div class="label">高危行业</div>
<div class="value">{{$dict.getLabel('EP_highRiskIndustries', info.highRiskIndustries)}}</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">
<span v-for="(item, index) in info.travelTypeList" :key="index"><span v-if="index>0">;</span>{{$dict.getLabel('EP_travelType',item)}}</span>
</div>
</div>
<div class="item-flex border-none" v-if="info.trainNo">
<div style="color:#999;">车次/车牌/航班</div>
</div>
<p class="line-text" v-if="info.trainNo">{{info.trainNo}}</p>
<div class="item-flex">
<div class="label">出发时间</div>
<div class="value" v-if="info.startTime">{{info.startTime.substring(0, 16)}}</div>
</div>
<div class="item-flex">
<div class="label">出发地</div>
<div class="value" :class="`address-color`+info.riskLevel">{{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.description}}</div>
</div>
<div class="item-flex">
<div class="label">抵平时间</div>
<div class="value" v-if="info.arriveTime">{{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>
<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.fromHighRiskArea == 1 ? 'color:#f46;' : ''">{{$dict.getLabel('yesOrNo', info.fromHighRiskArea)}}</div>
</div>
<div class="item-flex">
<div class="label" style="width:360px;">7天内是否接触新冠确诊或疑似患者</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" v-if="info.companionList && info.companionList.length">
<div class="title">同行情况<span>{{info.companionCount}}人同行</span></div>
<div class="table-content">
<div class="item table-header">
<div>姓名</div>
<div>手机号码</div>
</div>
<div class="item" v-for="(item, index) in info.companionList" :key="index">
<div>{{item.name}}</div>
<div>{{item.phone}}</div>
</div>
</div>
</div>
</div>
<div class="form-info" v-if="operation != 'empty'">
<div class="info mar-b16">
<div class="item">
<div class="label">
<span class="tips">*</span>处置意见
</div>
</div>
<div class="type-select">
<div class="type-item" :class="form.communityHandleType == item.dictValue ? 'active' : ''" v-for="(item, index) in handleTypeList" :key="index" @click="handleTypeClick(item.dictValue)">{{item.dictName}}</div>
</div>
</div>
<div class="info mar-b16" v-if="form.communityHandleType == 1">
<div class="item solid">
<div class="label">
<span class="tips">*</span>居家状态
</div>
<div class="value" @click="dictSelectClick('EP_homeStatus2', 'homeStatus')">
<span :class="form.homeStatus === '' ? 'color-999' : ''">{{ $dict.getLabel('EP_homeStatus2', form.homeStatus) || '请选择'}}</span>
<u-icon name="arrow-right" color="#999" size="16" style="margin-left: 4px" />
</div>
</div>
<div class="item solid">
<div class="label">
<span class="tips">*</span>隔离时间
</div>
<div class="value" @click="showDateSelect=true">
<span class="color-999" v-if="!form.quarantineBeginTime">请选择</span>
<span v-else>{{form.quarantineBeginTime}}{{form.quarantineEndTime}}</span>
<u-icon name="arrow-right" color="#999" size="16" style="margin-left: 4px" />
</div>
</div>
<div class="item solid">
<div class="label">
<span class="tips">*</span>隔离策略
</div>
<div class="value" @click="dictSelectClick('EP_quarantineStrategy', 'quarantineStrategy')">
<span :class="form.quarantineStrategy === '' ? 'color-999' : ''">{{ $dict.getLabel('EP_quarantineStrategy', form.quarantineStrategy) || '请选择'}}</span>
<u-icon name="arrow-right" color="#999" size="16" style="margin-left: 4px" />
</div>
</div>
<div class="item solid">
<div class="label">
<span class="tips">*</span>管控方式
</div>
<div class="value" @click="dictSelectClick('EP_controlMethod', 'controlMethod')">
<span :class="form.controlMethod === '' ? 'color-999' : ''">{{ $dict.getLabel('EP_controlMethod', form.controlMethod) || '请选择'}}</span>
<u-icon name="arrow-right" color="#999" size="16" style="margin-left: 4px" />
</div>
</div>
<div class="item">
<div class="label">
<span class="tips"></span>附件上传
</div>
</div>
<div style="padding: 0 16px 24px 0;" class="solid">
<AiUploader :def.sync="form.fileList" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
</div>
<div class="item">
<div class="label">
<span class="tips"></span>备注
</div>
</div>
<div class="item-textarea">
<u-input v-model="form.remarks" type="textarea" placeholder="请输入备注" height="200" :custom-style="{'font-size': '17px'}" maxlength="500" />
</div>
</div>
<div class="info mar-b16" v-if="form.communityHandleType == 2">
<div class="item">
<div class="label" style="width:100%;">
<span class="tips">*</span>核酸阴性证明图片
</div>
</div>
<div style="padding: 0 16px 24px 0;" class="solid">
<AiUploader :def.sync="form.proveFileList" multiple placeholder="上传核酸阴性证明" :limit="1" action="/admin/file/add2"></AiUploader>
</div>
</div>
</div>
<div class="btn-height" v-if="operation != 'empty'"></div>
<div class="footer" @click="submit" v-if="operation != 'empty'">提交</div>
<u-calendar v-model="showDateSelect" mode="range" min-year="2020" max-date="2050-12-31" @change="dateConfirm"></u-calendar>
<u-select v-model="showDictSelect" :list="$dict.getDict(selectDictName)" label-name="dictName" value-name="dictValue" @confirm="dictConfirm"></u-select>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
data() {
return {
id: '',
info: {},
form: {
controlMethod: '',
communityHandleType: '',
homeStatus: '',
quarantineBeginTime: '',
quarantineEndTime: '',
quarantineStrategy: '',
fileList: [],
remarks: '',
proveFileList: []
},
handleTypeList: [],
showDateSelect: false,
showDictSelect: false,
selectDictName: '',
selectFormName: '',
operation: '', //empty只能看无操作权限
}
},
computed: {
...mapState(['user']),
},
onLoad(option) {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
this.$dict.load('yesOrNo', 'EP_registerPersonType', 'EP_travelType', 'EP_abnormalType', 'epidemicTouchInFourteen',
'EP_homeStatus2', 'EP_quarantineStrategy', 'EP_communityHandleType', 'EP_highRiskIndustries', 'EP_controlMethod').then(() => {
this.id = option.id
this.operation = option.operation
this.handleTypeList = this.$dict.getDict('EP_communityHandleType')
this.getDetail()
})
},
onShow() {
document.title = '社区初排'
},
methods: {
submit() {
if(this.form.communityHandleType === '') {
return this.$u.toast('请选择处置意见')
}
if(this.form.communityHandleType == 1 && this.form.homeStatus === '') {
return this.$u.toast('请选择居家状态')
}
if(this.form.communityHandleType == 1 && !this.form.quarantineBeginTime) {
return this.$u.toast('请选择隔离时间')
}
if(this.form.communityHandleType == 1 && this.form.quarantineStrategy === '') {
return this.$u.toast('请选择隔离策略')
}
if(this.form.communityHandleType == 2 && !this.form.proveFileList && !this.form.proveFileList.length) {
return this.$u.toast('请上传核酸证明图片')
}
if(!this.form.quarantineBeginTime) {
this.form.quarantineBeginTime = null
this.form.quarantineEndTime = null
}
this.form.registerId = this.info.id
this.form.registerIdNumber = this.info.idNumber
this.form.handleType = 7
this.$http.post(`/app/appepidemicpreventionregisterinfo/cmAdvanceDisposal`, this.form).then((res) => {
if (res.code == 0) {
this.$u.toast('提交成功')
uni.$emit('updateDetail')
uni.$emit('updateList')
setTimeout(() => {
uni.navigateBack({delta: 3})
}, 600)
}
}).catch((err) => {
this.$u.toast(err)
})
},
handleTypeClick(status) {
this.form.communityHandleType = status
},
getDetail() {
this.$http.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${this.id}`).then((res) => {
if (res.code == 0) {
this.info = res.data
this.info.travelTypeList = this.info.travelType.split(',')
this.info.idNumberText = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
if(res.data.cmAdvanceDisposal && res.data.cmAdvanceDisposal.homeStatus) {
this.form = {...res.data.cmAdvanceDisposal}
this.form.quarantineBeginTime = res.data.cmAdvanceDisposal.quarantineBeginTime.substring(0, 10)
this.form.quarantineEndTime = res.data.cmAdvanceDisposal.quarantineEndTime.substring(0, 10)
}
}
})
},
dateConfirm(e) {
this.form.quarantineBeginTime = e.startDate
this.form.quarantineEndTime = e.endDate
},
dictSelectClick(dictName, formName) {
this.selectDictName = dictName
this.selectFormName = formName
this.showDictSelect = true
},
dictConfirm(e) {
this.form[this.selectFormName] = e[0].value
}
},
}
</script>
<style scoped lang="scss">
.RiskContent {
background-color: #F3F6F9;
padding-top: 16px;
.user-info {
.user-list{
margin-bottom: 24px;
.item{
padding: 32px 32px 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;
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;
}
.address-color2 {
color: #f46;
}
.address-color1 {
color: #ff6200;
}
}
.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;
}
.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;
}
}
.item-textarea {
width: calc(100% - 32px);
}
.type-select {
.type-item {
display: inline-block;
width: calc(50% - 16px);
height: 80px;
line-height: 80px;
text-align: center;
background: #FFF;
border: 1px solid #CCC;
border-radius: 16px;
font-family: PingFangSC-Regular;
font-size: 28px;
color: #333;
margin: 0 16px 16px 0;
box-sizing: border-box;
}
.active {
background: #4181FF;
border: none;
color: #fff;
}
}
::v-deep uni-textarea{
width: calc(100% - 32px);
}
.form-info {
.info {
padding-left: 32px;
background-color: #fff;
.item {
padding-left: 0;
}
.solid {
border-bottom: 1px solid #ddd;
box-sizing: border-box;
}
}
.item {
background-color: #fff;
display: flex;
padding: 40px 0 40px 32px;
.label {
width: 220px;
line-height: 48px;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 34px;
color: #666;
.tips {
display: inline-block;
font-family: PingFangSC-Medium;
font-weight: 700;
font-size: 34px;
color: #F46;
margin-right: 8px;
vertical-align: text-top;
}
}
.value {
width: calc(100% - 220px);
padding-right: 32px;
text-align: right;
font-family: PingFangSC-Regular;
font-size: 34px;
color: #333;
.color-999 {
color: #999;
font-size: 30px;
}
}
textarea {
width: 100%;
}
}
}
.mar-b16 {
margin-bottom: 16px;
}
.btn-height{
height: 130px;
}
.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;
}
}
</style>

View File

@@ -1,441 +0,0 @@
<template>
<div class="UserInfo">
<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.arriveTime}}</p>
<p v-if="info.gatewayName"><img src="./components/img/point-icon.png" alt="">{{info.gatewayName}}</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.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 class="item-flex">
<div class="label">高危行业</div>
<div class="value">{{$dict.getLabel('EP_highRiskIndustries', info.highRiskIndustries)}}</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">
<span v-for="(item, index) in info.travelTypeList" :key="index"><span v-if="index>0">;</span>{{$dict.getLabel('EP_travelType',item)}}</span>
</div>
</div>
<div class="item-flex border-none" v-if="info.trainNo">
<div style="color:#999;">车次/车牌/航班</div>
</div>
<p class="line-text" v-if="info.trainNo">{{info.trainNo}}</p>
<div class="item-flex">
<div class="label">出发时间</div>
<div class="value" v-if="info.startTime">{{info.startTime.substring(0, 16)}}</div>
</div>
<div class="item-flex">
<div class="label">出发地</div>
<div class="value" :class="`address-color`+info.riskLevel">{{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.description}}</div>
</div>
<div class="item-flex">
<div class="label">抵平时间</div>
<div class="value" v-if="info.arriveTime">{{info.arriveTime.substring(0, 16)}}</div>
</div>
<div class="item-flex">
<div class="label">抵平卡口</div>
<div class="value" v-if="info.gatewayName">{{info.gatewayName}}</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>
<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.fromHighRiskArea != 1"></div>
<div class="value" style="color:#f46;" v-else>{{info.highRiskAreaName}}</div>
</div>
<div class="item-flex">
<div class="label" style="width:360px;">7天内是否接触新冠确诊或疑似患者</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" v-if="info.companionList && info.companionList.length"></div>
<div class="info" v-if="info.companionList && info.companionList.length">
<div class="title">同行情况<span>{{info.companionCount}}人同行</span></div>
<div class="table-content">
<div class="item table-header">
<div>姓名</div>
<div>手机号码</div>
</div>
<div class="item" v-for="(item, index) in info.companionList" :key="index">
<div>{{item.name}}</div>
<div>{{item.phone}}</div>
</div>
</div>
</div>
<div class="line-bg" v-if="info.handleType != 0 && info.riskDisposalList && info.riskDisposalList.length"></div>
<div class="info" v-if="info.handleType != 0 && info.riskDisposalList && info.riskDisposalList.length">
<div class="title">风险处置记录</div>
<div class="error-list">
<div class="item" v-for="(item, index) in info.riskDisposalList" :key="index">
<p>{{item.remarks}}</p>
<div>{{item.createTime}}
<span>{{item.createUserName}}</span>
</div>
</div>
</div>
<div style="height:16px;"></div>
</div>
<div class="line-bg" v-if="info.cmAdvanceDisposal"></div>
<div class="info" v-if="info.cmAdvanceDisposal">
<div class="title">社区初排</div>
<div class="item-flex" :class="info.cmAdvanceDisposal.communityHandleType == 0 ? 'border-none' : ''">
<div class="label">处置意见</div>
<div class="value">{{$dict.getLabel('EP_communityHandleType', info.cmAdvanceDisposal.communityHandleType)}}</div>
</div>
<div v-if="info.cmAdvanceDisposal.communityHandleType == 1">
<div class="item-flex">
<div class="label">居家状态</div>
<div class="value">{{ $dict.getLabel('EP_homeStatus2', info.cmAdvanceDisposal.homeStatus) }}</div>
</div>
<div class="item-flex">
<div class="label">隔离时间</div>
<div class="value">{{info.cmAdvanceDisposal.quarantineBeginTime.substring(0, 10)}}{{info.cmAdvanceDisposal.quarantineEndTime.substring(0, 10)}}</div>
</div>
<div class="item-flex">
<div class="label">隔离策略</div>
<div class="value">{{ $dict.getLabel('EP_quarantineStrategy', info.cmAdvanceDisposal.quarantineStrategy) }}</div>
</div>
<div class="item-flex">
<div class="label">管控方式</div>
<div class="value">{{ $dict.getLabel('EP_controlMethod', info.cmAdvanceDisposal.controlMethod) }}</div>
</div>
<div class="item-flex border-none" v-if="info.cmAdvanceDisposal.fileList && info.cmAdvanceDisposal.fileList.length">
<div style="color:#999;">附件</div>
</div>
<div class="img-list solid" v-if="info.cmAdvanceDisposal.fileList && info.cmAdvanceDisposal.fileList.length">
<img :src="items.url" alt="" v-for="(items, indexs) in info.cmAdvanceDisposal.fileList" :key="indexs" @click="previewImage(info.cmAdvanceDisposal.fileList, items.url)">
</div>
<div class="item-flex border-none" v-if="info.cmAdvanceDisposal.remarks">
<div style="color:#999;">备注</div>
</div>
<p style="padding-bottom: 12px;" v-if="info.cmAdvanceDisposal.remarks">{{info.cmAdvanceDisposal.remarks}}</p>
</div>
<div v-if="info.cmAdvanceDisposal.communityHandleType == 2">
<div class="item-flex border-none">
<div style="color:#999;">核酸阴性证明图片</div>
</div>
<div class="img-list">
<img :src="items.url" alt="" v-for="(items, indexs) in info.cmAdvanceDisposal.proveFileList" :key="indexs" @click="previewImage(info.cmAdvanceDisposal.proveFileList, items.url)">
</div>
</div>
</div>
<div class="line-bg" style="padding-bottom: 56px;"></div>
<div class="footer" v-if="info.riskStatus != 2 && info.cmAdvanceDisposal == null" @click="toError">风险处置</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
data() {
return {
id: '',
info: {},
}
},
computed: { ...mapState(['user']) },
onShow() {
document.title = '返乡登记详情'
},
onLoad(option) {
this.$dict.load('yesOrNo', 'EP_registerPersonType', 'EP_travelType', 'EP_abnormalType', 'epidemicTouchInFourteen', 'EP_highRiskIndustries', 'EP_handleType',
'EP_quarantineAddress', 'EP_homeStatus2', 'EP_quarantineStrategy', 'EP_controlMethod', 'EP_handoverObject', 'EP_handoverMethod', 'EP_communityHandleType').then(() => {
this.id = option.id
this.getDetail()
})
uni.$on('updateDetail', () => {
this.getDetail()
})
uni.$emit('updateList')
},
methods: {
getDetail() {
this.$http.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${this.id}`).then((res) => {
if (res.code == 0) {
this.info = res.data
this.info.travelTypeList = this.info.travelType.split(',')
this.info.idNumberText = 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>
.UserInfo {
.user-list{
margin-bottom: 24px;
.item{
padding: 32px 32px 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;
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;
}
.address-color2 {
color: #f46;
}
.address-color1 {
color: #ff6200;
}
}
.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;
}
.solid {
border-bottom: 1px solid #ddd;
}
}
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB