社区管理变更需求
This commit is contained in:
@@ -1,344 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="Add">
|
|
||||||
<div class="item mar-b16">
|
|
||||||
<div class="label">
|
|
||||||
<span class="tips"></span>区域选择
|
|
||||||
</div>
|
|
||||||
<div class="value">
|
|
||||||
<AiAreaPicker v-model="form.areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="form.areaName" style="color: #666" selectRoot>
|
|
||||||
<span style="margin-left: 4px" v-if="form.areaName">{{ form.areaName }}</span>
|
|
||||||
<span v-else class="color-999">请选择</span>
|
|
||||||
<u-icon name="arrow-right" color="#999" size="16" style="margin-left: 4px" />
|
|
||||||
</AiAreaPicker>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="info mar-b16">
|
|
||||||
<div class="item solid">
|
|
||||||
<div class="label">
|
|
||||||
<span class="tips">*</span>管控对象
|
|
||||||
</div>
|
|
||||||
<div class="value color-999">{{form.name}}</div>
|
|
||||||
</div>
|
|
||||||
<div class="item solid">
|
|
||||||
<div class="label">
|
|
||||||
<span class="tips">*</span>手机号
|
|
||||||
</div>
|
|
||||||
<div class="value color-999">{{form.phone}}</div>
|
|
||||||
</div>
|
|
||||||
<div class="item solid">
|
|
||||||
<div class="label">
|
|
||||||
<span class="tips">*</span>身份证号
|
|
||||||
</div>
|
|
||||||
<div class="value color-999">{{form.idNumber}}</div>
|
|
||||||
</div>
|
|
||||||
<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">
|
|
||||||
<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>
|
|
||||||
<div class="info mar-b16">
|
|
||||||
<div class="item solid">
|
|
||||||
<div class="label">
|
|
||||||
<span class="tips">*</span>管控人
|
|
||||||
</div>
|
|
||||||
<div class="value">
|
|
||||||
<AiPagePicker type="sysUser" single :selected.sync="form.controllerList" action="/app/wxcp/wxuser/list?status=1" nodeKey="id" @select="handleSelectUser">
|
|
||||||
<span style="margin-left: 4px" v-if="form.controllerList && form.controllerList.length">{{ form.controllerList[0].name }}</span>
|
|
||||||
<span v-else class="color-999">请选择</span>
|
|
||||||
<u-icon name="arrow-right" color="#999" size="16" style="margin-left: 4px" />
|
|
||||||
</AiPagePicker>
|
|
||||||
<!-- <u-input placeholder="请输入" input-align="right" height="32" maxlength="6" v-model="form.controllerUserName" :custom-style="{'font-size': '17px'}" /> -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item solid">
|
|
||||||
<div class="label">
|
|
||||||
<span class="tips">*</span>联系方式
|
|
||||||
</div>
|
|
||||||
<div class="value">
|
|
||||||
<u-input placeholder="请输入" type="number" input-align="right" height="32" maxlength="11" v-model="form.controllerUserPhone" :custom-style="{'font-size': '17px'}" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
<div class="label">
|
|
||||||
<span class="tips"></span>管控内容
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="item-textarea">
|
|
||||||
<u-input v-model="form.controllerContent" type="textarea" placeholder="请输入详细描述信息" height="200" :custom-style="{'font-size': '17px'}" maxlength="500" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="info mar-b16" style="padding-bottom: 24px;">
|
|
||||||
<div class="item">
|
|
||||||
<div class="label">
|
|
||||||
<span class="tips">*</span>图片
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div style="padding-right: 16px;">
|
|
||||||
<AiUploader :def.sync="form.fileList" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="info" style="padding-bottom: 24px;">
|
|
||||||
<div class="item">
|
|
||||||
<div class="label" style="width:100%;">
|
|
||||||
<span class="tips"></span>核酸阴性证明图片(解除管理必填)
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div style="padding-right: 16px;">
|
|
||||||
<AiUploader :def.sync="form.proveFileList" multiple placeholder="上传核酸阴性证明" :limit="1" action="/admin/file/add2"></AiUploader>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="btn-height"></div>
|
|
||||||
<div class="footer">
|
|
||||||
<div class="cancel" @click="submit('2')">解除管理</div>
|
|
||||||
<div class="confirm" @click="submit('1')">保存</div>
|
|
||||||
</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 {
|
|
||||||
areaId: '',
|
|
||||||
areaName: '',
|
|
||||||
files: [],
|
|
||||||
|
|
||||||
id: '',
|
|
||||||
form: {
|
|
||||||
homeStatus: '',
|
|
||||||
quarantineBeginTime: '',
|
|
||||||
quarantineStrategy: '',
|
|
||||||
controllerList: [],
|
|
||||||
proveFileList: []
|
|
||||||
},
|
|
||||||
showDateSelect: false,
|
|
||||||
showDictSelect: false,
|
|
||||||
selectDictName: '',
|
|
||||||
selectFormName: '',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
...mapState(['user']),
|
|
||||||
},
|
|
||||||
onLoad(option) {
|
|
||||||
this.id = option.id
|
|
||||||
this.$dict.load('EP_homeStatus2', 'EP_quarantineStrategy').then(() => {
|
|
||||||
this.id = option.id
|
|
||||||
this.getDetail()
|
|
||||||
})
|
|
||||||
},
|
|
||||||
onShow() {
|
|
||||||
document.title = '排查管理'
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
submit(status) {
|
|
||||||
if(this.form.homeStatus === '') {
|
|
||||||
return this.$u.toast('请选择居家状态')
|
|
||||||
}
|
|
||||||
if(!this.form.quarantineBeginTime) {
|
|
||||||
return this.$u.toast('请选择隔离时间')
|
|
||||||
}
|
|
||||||
if(this.form.quarantineStrategy === '') {
|
|
||||||
return this.$u.toast('请选择隔离策略')
|
|
||||||
}
|
|
||||||
if(!this.form.controllerUserName) {
|
|
||||||
return this.$u.toast('请输入管控人姓名')
|
|
||||||
}
|
|
||||||
if(!this.form.controllerUserPhone) {
|
|
||||||
return this.$u.toast('请输入联系方式')
|
|
||||||
}
|
|
||||||
if(this.form.controllerUserPhone && !/^1[0-9]{10,10}$/.test(this.form.controllerUserPhone)) {
|
|
||||||
return this.$u.toast("请输入正确的手机号码");
|
|
||||||
}
|
|
||||||
if( !this.form.fileList.length) {
|
|
||||||
return this.$u.toast('请上传图片')
|
|
||||||
}
|
|
||||||
if(status == 2 && !this.form.proveFileList.length) {
|
|
||||||
return this.$u.toast('请上传核酸阴性证明图片')
|
|
||||||
}
|
|
||||||
|
|
||||||
this.$confirm(status == 2 ? '确认解除管理该记录' : '确认保存该记录').then(() => {
|
|
||||||
this.confirmSubmit(status)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
confirmSubmit(status) {
|
|
||||||
this.form.status = status
|
|
||||||
this.form.id = this.id
|
|
||||||
|
|
||||||
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/troubleshooting`, this.form).then((res) => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.$u.toast('提交成功')
|
|
||||||
uni.$emit('updateDetail')
|
|
||||||
uni.$emit('updateList')
|
|
||||||
uni.navigateBack()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
getDetail() {
|
|
||||||
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/queryDetailById?id=${this.id}`).then((res) => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.form = {...res.data}
|
|
||||||
this.form.controllerList = []
|
|
||||||
if(!this.form.controllerUserName) {
|
|
||||||
this.form.controllerUserName = this.user.name
|
|
||||||
this.form.controllerUserId = this.user.id
|
|
||||||
this.form.controllerUserPhone = this.user.phone
|
|
||||||
}
|
|
||||||
var info = {
|
|
||||||
name: this.form.controllerUserName,
|
|
||||||
id: this.form.controllerUserId,
|
|
||||||
mobile: this.form.controllerUserPhone
|
|
||||||
}
|
|
||||||
this.form.controllerList.push(info)
|
|
||||||
if(this.form.homeStatus === null) {
|
|
||||||
this.form.homeStatus = ''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
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
|
|
||||||
},
|
|
||||||
areaSelect(e) {
|
|
||||||
this.form.areaId = e
|
|
||||||
},
|
|
||||||
handleSelectUser(e) {
|
|
||||||
console.log(e)
|
|
||||||
this.form.controllerUserPhone = e[0].mobile
|
|
||||||
this.form.controllerUserName = e[0].name
|
|
||||||
this.form.controllerUserId = e[0].id
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
|
||||||
.Add {
|
|
||||||
background-color: #F3F6F9;
|
|
||||||
padding-top: 16px;
|
|
||||||
overflow-x: hidden;
|
|
||||||
.item {
|
|
||||||
width: 100%;
|
|
||||||
background-color: #fff;
|
|
||||||
display: flex;
|
|
||||||
padding: 40px 0 40px 32px;
|
|
||||||
.label {
|
|
||||||
width: 200px;
|
|
||||||
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% - 200px);
|
|
||||||
padding-right: 32px;
|
|
||||||
text-align: right;
|
|
||||||
font-family: PingFangSC-Regular;
|
|
||||||
font-size: 34px;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
.color-999 {
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.item-textarea {
|
|
||||||
width: calc(100% - 32px);
|
|
||||||
}
|
|
||||||
.info {
|
|
||||||
padding-left: 32px;
|
|
||||||
background-color: #fff;
|
|
||||||
.item {
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
.solid {
|
|
||||||
border-bottom: 1px solid #ddd;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.mar-b16 {
|
|
||||||
margin-bottom: 16px;
|
|
||||||
}
|
|
||||||
.btn-height{
|
|
||||||
height: 130px;
|
|
||||||
}
|
|
||||||
.footer {
|
|
||||||
width: 100%;
|
|
||||||
height: 128px;
|
|
||||||
background: #FFF;
|
|
||||||
box-shadow: inset 0 0 0 0 #D4D4D4;
|
|
||||||
padding: 24px 32px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
display: flex;
|
|
||||||
position: fixed;
|
|
||||||
bottom: 0;
|
|
||||||
div {
|
|
||||||
flex: 1;
|
|
||||||
height: 80px;
|
|
||||||
line-height: 80px;
|
|
||||||
background: #FFF;
|
|
||||||
border-radius: 8px;
|
|
||||||
font-family: PingFangSC-Regular;
|
|
||||||
font-size: 32px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.cancel {
|
|
||||||
color: #f46;
|
|
||||||
line-height: 76px;
|
|
||||||
border: 1px solid #CCCCCC;
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin-right: 32px;
|
|
||||||
}
|
|
||||||
.confirm {
|
|
||||||
background-color: #1365DD;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -72,8 +72,8 @@
|
|||||||
<p>{{item.phone}}</p>
|
<p>{{item.phone}}</p>
|
||||||
<p>{{item.registerInfo.startAreaName}}-{{item.registerInfo.arriveAreaName}}</p>
|
<p>{{item.registerInfo.startAreaName}}-{{item.registerInfo.arriveAreaName}}</p>
|
||||||
<p> 处置意见:<span :class="'type-'+item.lastRiskDisposal.handleType">{{$dict.getLabel('EP_handleType', item.lastRiskDisposal.handleType)}}</span></p>
|
<p> 处置意见:<span :class="'type-'+item.lastRiskDisposal.handleType">{{$dict.getLabel('EP_handleType', item.lastRiskDisposal.handleType)}}</span></p>
|
||||||
<div class="btn" v-if="item.status == 0" @click.stop="toEdit(item.id)">管理</div>
|
<div class="btn" v-if="item.status == 0" @click.stop="toEdit(item.registerInfo.id)">管理</div>
|
||||||
<div class="btn" v-if="item.status == 1" @click.stop="toAdd(item.id)">排查</div>
|
<div class="btn" v-if="item.status == 1" @click.stop="toManage(item.id)">排查</div>
|
||||||
<img src="./components/img/status-img.png" alt="" class="status-img" v-if="item.status == 2">
|
<img src="./components/img/status-img.png" alt="" class="status-img" v-if="item.status == 2">
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
@@ -200,8 +200,8 @@ export default {
|
|||||||
toEdit(id) {
|
toEdit(id) {
|
||||||
uni.navigateTo({url: `./Edit?id=${id}&fromType=2`})
|
uni.navigateTo({url: `./Edit?id=${id}&fromType=2`})
|
||||||
},
|
},
|
||||||
toAdd(id) {
|
toManage(id) {
|
||||||
uni.navigateTo({url: `./Add?id=${id}`})
|
uni.navigateTo({url: `./ManageDetail?id=${id}`})
|
||||||
},
|
},
|
||||||
change(index) {
|
change(index) {
|
||||||
this.keyword = ''
|
this.keyword = ''
|
||||||
|
|||||||
@@ -1,88 +1,209 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="Detail">
|
<div class="Detail">
|
||||||
<div class="info">
|
<AiTopFixed>
|
||||||
<div class="title">基本信息<span class="title-right-text" @click="toNucleAcidDetail">点击查看核酸采样记录</span></div>
|
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#A1C1E8" :bar-style="barStyle"
|
||||||
<div class="item-flex">
|
:active-item-style="activeStyle" active-color="#ffffff " @change="change">
|
||||||
<div class="label">管理区域</div>
|
</u-tabs>
|
||||||
<div class="value">{{info.areaName}}</div>
|
</AiTopFixed>
|
||||||
|
<div class="user-info" v-if="currentTabs == 1">
|
||||||
|
<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><img src="./components/img/point-icon.png" alt="">{{info.gatewayName}}</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-flex">
|
<div class="info">
|
||||||
<div class="label">管理对象</div>
|
<div class="title">基本信息</div>
|
||||||
<div class="value">{{info.name}}</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">
|
||||||
|
<span>{{info.idNumberText}}</span>
|
||||||
|
</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>
|
||||||
<div class="item-flex">
|
<div class="line-bg"></div>
|
||||||
<div class="label">身份证号</div>
|
<div class="info">
|
||||||
<div class="value">{{info.idNumberText}}</div>
|
<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>
|
||||||
<div class="item-flex">
|
<div class="line-bg"></div>
|
||||||
<div class="label">手机号码</div>
|
<div class="info">
|
||||||
<div class="value" style="color:#4181FF;" @click="callPhone(info.phone)">
|
<div class="title">健康状况</div>
|
||||||
<img :src="$cdn + 'common/phone.png'" alt="" class="phone-icon" >
|
<div class="item-flex">
|
||||||
{{info.phone}}</div>
|
<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>
|
||||||
<div class="item-flex">
|
<div class="line-bg" v-if="info.companionList && info.companionList.length"></div>
|
||||||
<div class="label">处置意见</div>
|
<div class="info" v-if="info.companionList && info.companionList.length">
|
||||||
<div class="value" :class="'type-'+info.lastRiskDisposal.handleType">{{$dict.getLabel('EP_handleType', info.lastRiskDisposal.handleType)}}</div>
|
<div class="title">同行情况<span>共{{info.companionCount}}人同行</span></div>
|
||||||
</div>
|
<div class="table-content">
|
||||||
<div class="item-flex">
|
<div class="item table-header">
|
||||||
<div class="label">居家状态</div>
|
<div>姓名</div>
|
||||||
<div class="value">{{$dict.getLabel('EP_homeStatus2', info.homeStatus)}}</div>
|
<div>手机号码</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-flex">
|
<div class="item" v-for="(item, index) in info.companionList" :key="index">
|
||||||
<div class="label">隔离时间</div>
|
<div>{{item.name}}</div>
|
||||||
<div class="value" v-if="info.quarantineBeginTime">{{info.quarantineBeginTime.substring(0, 10)}} 至 {{info.quarantineEndTime.substring(0, 10)}}</div>
|
<div>{{item.phone}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-flex">
|
</div>
|
||||||
<div class="label">隔离策略</div>
|
|
||||||
<div class="value">{{$dict.getLabel('EP_quarantineStrategy', info.quarantineStrategy)}}</div>
|
|
||||||
</div>
|
|
||||||
<div class="item-flex" v-if="info.status != 0">
|
|
||||||
<div class="label">管控人</div>
|
|
||||||
<div class="value">{{info.controllerUserName}}</div>
|
|
||||||
</div>
|
|
||||||
<div class="item-flex" v-if="info.status != 0">
|
|
||||||
<div class="label">联系方式</div>
|
|
||||||
<div class="value">{{info.controllerUserPhone}}</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="line-bg"></div>
|
<div class="controll-info" v-else>
|
||||||
<div class="info" v-if="info.status != 0">
|
<div class="info">
|
||||||
<div v-if="info.controllerContent">
|
<div class="title">基本信息<span class="title-right-text" @click="toNucleAcidDetail">点击查看核酸采样记录</span></div>
|
||||||
<div class="item-flex border-none">
|
<div class="item-flex">
|
||||||
<div class="label">管控内容</div>
|
<div class="label">管理区域</div>
|
||||||
|
<div class="value">{{controllInfo.areaName}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-flex">
|
||||||
|
<div class="label">管理对象</div>
|
||||||
|
<div class="value">{{controllInfo.name}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-flex">
|
||||||
|
<div class="label">身份证号</div>
|
||||||
|
<div class="value">{{controllInfo.idNumberText}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-flex">
|
||||||
|
<div class="label">手机号码</div>
|
||||||
|
<div class="value" style="color:#4181FF;" @click="callPhone(controllInfo.phone)">
|
||||||
|
<img :src="$cdn + 'common/phone.png'" alt="" class="phone-icon" >
|
||||||
|
{{controllInfo.phone}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-flex">
|
||||||
|
<div class="label">处置意见</div>
|
||||||
|
<div class="value" :class="'type-'+controllInfo.lastRiskDisposal.handleType">{{$dict.getLabel('EP_handleType', controllInfo.lastRiskDisposal.handleType)}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-flex">
|
||||||
|
<div class="label">居家状态</div>
|
||||||
|
<div class="value">{{$dict.getLabel('EP_homeStatus2', controllInfo.homeStatus)}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-flex">
|
||||||
|
<div class="label">隔离时间</div>
|
||||||
|
<div class="value" v-if="info.quarantineBeginTime">{{controllInfo.quarantineBeginTime.substring(0, 10)}} 至 {{controllInfo.quarantineEndTime.substring(0, 10)}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-flex">
|
||||||
|
<div class="label">隔离策略</div>
|
||||||
|
<div class="value">{{$dict.getLabel('EP_quarantineStrategy', controllInfo.quarantineStrategy)}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-flex" v-if="info.status != 0">
|
||||||
|
<div class="label">管控人</div>
|
||||||
|
<div class="value">{{controllInfo.controllerUserName}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-flex" v-if="controllInfo.status != 0">
|
||||||
|
<div class="label">联系方式</div>
|
||||||
|
<div class="value" @click="callPhone(controllInfo.controllerUserPhone)">{{controllInfo.controllerUserPhone}}</div>
|
||||||
</div>
|
</div>
|
||||||
<p style="padding-bottom: 24px;">{{info.controllerContent}}</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="info.fileList && info.fileList.length">
|
<div class="line-bg"></div>
|
||||||
|
<div class="info" v-if="controllInfo.status != 0">
|
||||||
|
<div v-if="controllInfo.controllerContent">
|
||||||
|
<div class="item-flex border-none">
|
||||||
|
<div class="label">管控内容</div>
|
||||||
|
</div>
|
||||||
|
<p style="padding-bottom: 24px;">{{controllInfo.controllerContent}}</p>
|
||||||
|
</div>
|
||||||
|
<div v-if="controllInfo.fileList && controllInfo.fileList.length">
|
||||||
|
<div class="item-flex border-none" >
|
||||||
|
<div class="label">图片</div>
|
||||||
|
</div>
|
||||||
|
<div class="img-list" v-for="(item, index) in controllInfo.fileList" :key="index">
|
||||||
|
<img :src="item.accessUrl" alt="" @click="previewImage(controllInfo.fileList, item.accessUrl)">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="info" v-if="controllInfo.status == 2 && controllInfo.proveFileList.length">
|
||||||
<div class="item-flex border-none" >
|
<div class="item-flex border-none" >
|
||||||
<div class="label">图片</div>
|
<div class="label">核酸证明</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="img-list" v-for="(item, index) in info.fileList" :key="index">
|
<div class="img-list" v-for="(item, index) in controllInfo.proveFileList" :key="index">
|
||||||
<img :src="item.accessUrl" alt="" @click="previewImage(info.fileList, item.accessUrl)">
|
<img :src="item.accessUrl" alt="" @click="previewImage(controllInfo.proveFileList, item.accessUrl)">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="info" v-if="info.status == 2 && info.proveFileList.length">
|
<div class="info" v-if="controllInfo.lastRiskDisposal && controllInfo.lastRiskDisposal.remarks">
|
||||||
<div class="item-flex border-none" >
|
<div class="item-flex border-none">
|
||||||
<div class="label">核酸证明</div>
|
<div style="color:#999;">备注</div>
|
||||||
|
</div>
|
||||||
|
<p style="padding-bottom: 12px;">{{controllInfo.lastRiskDisposal.remarks}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="img-list" v-for="(item, index) in info.proveFileList" :key="index">
|
|
||||||
<img :src="item.accessUrl" alt="" @click="previewImage(info.proveFileList, item.accessUrl)">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="info" v-if="info.lastRiskDisposal && info.lastRiskDisposal.remarks">
|
<div class="line-bg" style="padding-bottom: 56px;"></div>
|
||||||
<div class="item-flex border-none">
|
<div class="footer">
|
||||||
<div style="color:#999;">备注</div>
|
<div class="confirm" @click="cancelRelieve">撤销解除</div>
|
||||||
</div>
|
</div>
|
||||||
<p style="padding-bottom: 12px;">{{info.lastRiskDisposal.remarks}}</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="line-bg" style="padding-bottom: 56px;" v-if="info.status == 1"></div>
|
|
||||||
<div class="footer" v-if="info.status == 1">
|
|
||||||
<div class="cancel" @click="toEdit()">编辑</div>
|
|
||||||
<div class="confirm" @click="changeStatus()">解除管理</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -94,7 +215,26 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
id: '',
|
id: '',
|
||||||
info: {},
|
controllInfo: {},
|
||||||
|
tabList: [
|
||||||
|
{
|
||||||
|
name: '排查管理',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '人员详情',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
barStyle: {
|
||||||
|
'width': '24px',
|
||||||
|
'height': '2px',
|
||||||
|
'border-radius': '0',
|
||||||
|
'bottom': '5px'
|
||||||
|
},
|
||||||
|
activeStyle: {
|
||||||
|
'font-weight' : '400',
|
||||||
|
},
|
||||||
|
currentTabs: 0,
|
||||||
|
info: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: { ...mapState(['user']) },
|
computed: { ...mapState(['user']) },
|
||||||
@@ -111,17 +251,23 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
change(index) {
|
||||||
|
this.currentTabs = index
|
||||||
|
},
|
||||||
getDetail() {
|
getDetail() {
|
||||||
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/queryDetailById?id=${this.id}`).then((res) => {
|
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/queryDetailById?id=${this.id}`).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.info = res.data
|
this.controllInfo = res.data
|
||||||
|
this.controllInfo.idNumberText = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||||
|
this.info = res.data.registerInfo
|
||||||
|
this.info.travelTypeList = this.info.travelType.split(',')
|
||||||
this.info.idNumberText = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
this.info.idNumberText = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
changeStatus() {
|
changeStatus() {
|
||||||
this.info.status = 2
|
this.controllInfo.status = 2
|
||||||
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/troubleshooting`, this.info).then((res) => {
|
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/troubleshooting`, this.controllInfo).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$u.toast('提交成功')
|
this.$u.toast('提交成功')
|
||||||
uni.$emit('updateList')
|
uni.$emit('updateList')
|
||||||
@@ -144,112 +290,328 @@ export default {
|
|||||||
toNucleAcidDetail() {
|
toNucleAcidDetail() {
|
||||||
uni.navigateTo({url: `../AppNucleicAcidSampling/Detail?id=${this.id}&isHideBtn=1`})
|
uni.navigateTo({url: `../AppNucleicAcidSampling/Detail?id=${this.id}&isHideBtn=1`})
|
||||||
},
|
},
|
||||||
|
cancelRelieve() {
|
||||||
|
this.$confirm(`是否撤销对${this.info.name}的风险解除`).then(() => {
|
||||||
|
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/cancel?id=${this.id}`, ).then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.$u.toast('撤销成功')
|
||||||
|
uni.$emit('updateList')
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
}, 600)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.Detail {
|
.Detail {
|
||||||
.info{
|
::v-deep .AiTopFixed {
|
||||||
background-color: #fff;
|
.placeholder {
|
||||||
padding: 0 32px;
|
.content {
|
||||||
.title{
|
padding: 0 !important;
|
||||||
line-height: 116px;
|
|
||||||
background: #FFF;
|
|
||||||
font-size: 38px;
|
|
||||||
font-family: PingFangSC-Semibold, PingFang SC;
|
|
||||||
font-weight: 600;
|
|
||||||
color: #333;
|
|
||||||
overflow: hidden;
|
|
||||||
.title-right-text {
|
|
||||||
color: #1365DD;
|
|
||||||
font-size: 28px;
|
|
||||||
float: right;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.item-flex{
|
.fixed {
|
||||||
padding: 34px 0;
|
margin: 0 !important;
|
||||||
border-bottom: 1px solid #ddd;
|
.content {
|
||||||
display: flex;
|
padding: 0 !important;
|
||||||
justify-content: space-between;
|
}
|
||||||
line-height: 44px;
|
}
|
||||||
font-size: 32px;
|
}
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
.user-info {
|
||||||
.label{
|
.user-list{
|
||||||
width: 206px;
|
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;
|
color: #999;
|
||||||
}
|
}
|
||||||
.value{
|
.start-name{
|
||||||
width: calc(100% - 206px);
|
display: inline-block;
|
||||||
word-break: break-all;
|
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;
|
color: #333;
|
||||||
text-align: right;
|
overflow: hidden;
|
||||||
.phone-icon{
|
span {
|
||||||
width: 40px;
|
float: right;
|
||||||
height: 40px;
|
font-family: PingFangSC-Regular;
|
||||||
vertical-align: middle;
|
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;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.color-0,
|
.item-flex:nth-last-of-type(1){
|
||||||
.type-1,
|
border-bottom: 0;
|
||||||
.type-5{
|
|
||||||
color: #42D784;
|
|
||||||
}
|
}
|
||||||
.color-1,
|
.error-list {
|
||||||
.type-2,
|
.item {
|
||||||
.type-3{
|
width: 100%;
|
||||||
color: #f46;
|
background: #f4f7fe;
|
||||||
}
|
border-radius: 8px;
|
||||||
.color-2{
|
padding: 24px 24px 18px 24px;
|
||||||
color: #1365DD;
|
box-sizing: border-box;
|
||||||
}
|
|
||||||
.type-4{
|
|
||||||
color: #FFA938;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.img-list{
|
|
||||||
padding-bottom: 32px;
|
|
||||||
img{
|
|
||||||
width: 320px;
|
|
||||||
height: 320px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.item-flex:nth-last-of-type(1){
|
|
||||||
border-bottom: 0;
|
|
||||||
}
|
|
||||||
.error-list {
|
|
||||||
padding-bottom: 48px;
|
|
||||||
.item {
|
|
||||||
width: 100%;
|
|
||||||
background: #f4f7fe;
|
|
||||||
border-radius: 8px;
|
|
||||||
padding: 24px 24px 18px 24px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin-bottom: 16px;
|
|
||||||
color: #343d65;
|
|
||||||
font-size: 28px;
|
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
|
||||||
line-height: 40px;
|
|
||||||
div {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
margin-bottom: 16px;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.text-p{
|
.table-content {
|
||||||
line-height: 44px;
|
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;
|
||||||
|
}
|
||||||
|
.line-text {
|
||||||
|
line-height: 80px;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 32px;
|
||||||
color: #333;
|
color: #333;
|
||||||
padding-bottom: 16px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.line-bg{
|
.controll-info {
|
||||||
width: 100%;
|
.info{
|
||||||
height: 24px;
|
background-color: #fff;
|
||||||
background-color: #F3F6F9;
|
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;
|
||||||
|
.title-right-text {
|
||||||
|
color: #1365DD;
|
||||||
|
font-size: 28px;
|
||||||
|
float: right;
|
||||||
|
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,
|
||||||
|
.type-1,
|
||||||
|
.type-5{
|
||||||
|
color: #42D784;
|
||||||
|
}
|
||||||
|
.color-1,
|
||||||
|
.type-2,
|
||||||
|
.type-3{
|
||||||
|
color: #f46;
|
||||||
|
}
|
||||||
|
.color-2{
|
||||||
|
color: #1365DD;
|
||||||
|
}
|
||||||
|
.type-4{
|
||||||
|
color: #FFA938;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.img-list{
|
||||||
|
padding-bottom: 32px;
|
||||||
|
img{
|
||||||
|
width: 320px;
|
||||||
|
height: 320px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.item-flex:nth-last-of-type(1){
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
.error-list {
|
||||||
|
padding-bottom: 48px;
|
||||||
|
.item {
|
||||||
|
width: 100%;
|
||||||
|
background: #f4f7fe;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 24px 24px 18px 24px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
color: #343d65;
|
||||||
|
font-size: 28px;
|
||||||
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
|
line-height: 40px;
|
||||||
|
div {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.text-p{
|
||||||
|
line-height: 44px;
|
||||||
|
color: #333;
|
||||||
|
padding-bottom: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.line-bg{
|
||||||
|
width: 100%;
|
||||||
|
height: 24px;
|
||||||
|
background-color: #F3F6F9;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 128px;
|
height: 128px;
|
||||||
|
|||||||
@@ -1,89 +1,250 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="ManageDetail">
|
<div class="ManageDetail">
|
||||||
<div class="info">
|
<AiTopFixed>
|
||||||
<div class="title">基本信息<span class="title-right-text" @click="toNucleAcidDetail">点击查看核酸采样记录</span></div>
|
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6" inactive-color="#A1C1E8" :bar-style="barStyle"
|
||||||
<div class="item-flex">
|
:active-item-style="activeStyle" active-color="#ffffff " @change="change">
|
||||||
<div class="label">管理区域</div>
|
</u-tabs>
|
||||||
<div class="value">{{info.areaName}}</div>
|
</AiTopFixed>
|
||||||
|
<div class="user-info" v-if="currentTabs == 1">
|
||||||
|
<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><img src="./components/img/point-icon.png" alt="">{{info.gatewayName}}</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-flex">
|
<div class="info">
|
||||||
<div class="label">管理对象</div>
|
<div class="title">基本信息</div>
|
||||||
<div class="value">{{info.name}}</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">
|
||||||
|
<span>{{info.idNumberText}}</span>
|
||||||
|
</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>
|
||||||
<div class="item-flex">
|
<div class="line-bg"></div>
|
||||||
<div class="label">身份证号</div>
|
<div class="info">
|
||||||
<div class="value">{{info.idNumberText}}</div>
|
<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>
|
||||||
<div class="item-flex">
|
<div class="line-bg"></div>
|
||||||
<div class="label">手机号码</div>
|
<div class="info">
|
||||||
<div class="value" style="color:#4181FF;" @click="callPhone(info.phone)">
|
<div class="title">健康状况</div>
|
||||||
<img :src="$cdn + 'common/phone.png'" alt="" class="phone-icon" >
|
<div class="item-flex">
|
||||||
{{info.phone}}</div>
|
<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>
|
||||||
<div class="item-flex">
|
<div class="line-bg" v-if="info.companionList && info.companionList.length"></div>
|
||||||
<div class="label">处置意见</div>
|
<div class="info" v-if="info.companionList && info.companionList.length">
|
||||||
<div class="value" :class="'type-'+info.lastRiskDisposal.handleType">{{$dict.getLabel('EP_handleType', info.lastRiskDisposal.handleType)}}</div>
|
<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="item-flex">
|
<div class="btn-height"></div>
|
||||||
<div class="label">居家状态</div>
|
<div class="footer">
|
||||||
<div class="value">{{$dict.getLabel('EP_homeStatus2', info.homeStatus)}}</div>
|
<div class="confirm" @click="toTransferUser">人员移交</div>
|
||||||
</div>
|
|
||||||
<div class="item-flex">
|
|
||||||
<div class="label">隔离时间</div>
|
|
||||||
<div class="value" v-if="info.quarantineBeginTime">{{info.quarantineBeginTime.substring(0, 10)}} 至 {{info.quarantineEndTime.substring(0, 10)}}</div>
|
|
||||||
</div>
|
|
||||||
<div class="item-flex">
|
|
||||||
<div class="label">隔离策略</div>
|
|
||||||
<div class="value">{{$dict.getLabel('EP_quarantineStrategy', info.quarantineStrategy)}}</div>
|
|
||||||
</div>
|
|
||||||
<div class="item-flex" v-if="info.status != 0">
|
|
||||||
<div class="label">管控人</div>
|
|
||||||
<div class="value">{{info.controllerUserName}}</div>
|
|
||||||
</div>
|
|
||||||
<div class="item-flex" v-if="info.status != 0">
|
|
||||||
<div class="label">联系方式</div>
|
|
||||||
<div class="value">{{info.controllerUserPhone}}</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="line-bg"></div>
|
<div class="form-info" v-else>
|
||||||
<div class="info" v-if="info.status != 0">
|
<div class="item mar-b16">
|
||||||
<div v-if="info.controllerContent">
|
<div class="label">
|
||||||
<div class="item-flex border-none">
|
<span class="tips"></span>区域选择
|
||||||
<div class="label">管控内容</div>
|
</div>
|
||||||
|
<div class="value">
|
||||||
|
<AiAreaPicker v-model="form.areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="form.areaName" style="color: #666" selectRoot>
|
||||||
|
<span style="margin-left: 4px" v-if="form.areaName">{{ form.areaName }}</span>
|
||||||
|
<span v-else class="color-999">请选择</span>
|
||||||
|
<u-icon name="arrow-right" color="#999" size="16" style="margin-left: 4px" />
|
||||||
|
</AiAreaPicker>
|
||||||
</div>
|
</div>
|
||||||
<p style="padding-bottom: 24px;">{{info.controllerContent}}</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="info.fileList && info.fileList.length">
|
<div class="info mar-b16">
|
||||||
<div class="item-flex border-none" >
|
<div class="item solid">
|
||||||
<div class="label">图片</div>
|
<div class="label">
|
||||||
|
<span class="tips">*</span>管控对象
|
||||||
|
</div>
|
||||||
|
<div class="value color-999">{{form.name}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="img-list" v-for="(item, index) in info.fileList" :key="index">
|
<div class="item solid">
|
||||||
<img :src="item.accessUrl" alt="" @click="previewImage(info.fileList, item.accessUrl)">
|
<div class="label">
|
||||||
|
<span class="tips">*</span>手机号
|
||||||
|
</div>
|
||||||
|
<div class="value color-999">{{form.phone}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="item solid">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>身份证号
|
||||||
|
</div>
|
||||||
|
<div class="value color-999">{{form.idNumber}}</div>
|
||||||
|
</div>
|
||||||
|
<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">
|
||||||
|
<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>
|
||||||
|
<div class="info mar-b16">
|
||||||
|
<div class="item solid">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>管控人
|
||||||
|
</div>
|
||||||
|
<div class="value">
|
||||||
|
<AiPagePicker type="sysUser" single :selected.sync="form.controllerList" action="/app/wxcp/wxuser/list?status=1" nodeKey="id" @select="handleSelectUser">
|
||||||
|
<span style="margin-left: 4px" v-if="form.controllerList && form.controllerList.length">{{ form.controllerList[0].name }}</span>
|
||||||
|
<span v-else class="color-999">请选择</span>
|
||||||
|
<u-icon name="arrow-right" color="#999" size="16" style="margin-left: 4px" />
|
||||||
|
</AiPagePicker>
|
||||||
|
<!-- <u-input placeholder="请输入" input-align="right" height="32" maxlength="6" v-model="form.controllerUserName" :custom-style="{'font-size': '17px'}" /> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item solid">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>联系方式
|
||||||
|
</div>
|
||||||
|
<div class="value">
|
||||||
|
<u-input placeholder="请输入" type="number" input-align="right" height="32" maxlength="11" v-model="form.controllerUserPhone" :custom-style="{'font-size': '17px'}" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips"></span>管控内容
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-textarea">
|
||||||
|
<u-input v-model="form.controllerContent" type="textarea" placeholder="请输入详细描述信息" height="200" :custom-style="{'font-size': '17px'}" maxlength="500" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="info mar-b16" style="padding-bottom: 24px;">
|
||||||
|
<div class="item">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>图片
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="padding-right: 16px;">
|
||||||
|
<AiUploader :def.sync="form.fileList" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="info" style="padding-bottom: 24px;">
|
||||||
|
<div class="item">
|
||||||
|
<div class="label" style="width:100%;">
|
||||||
|
<span class="tips"></span>核酸阴性证明图片(解除管理必填)
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="padding-right: 16px;">
|
||||||
|
<AiUploader :def.sync="form.proveFileList" multiple placeholder="上传核酸阴性证明" :limit="1" action="/admin/file/add2"></AiUploader>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="btn-height"></div>
|
||||||
|
<div class="footer">
|
||||||
|
<div class="cancel" @click="submit('2')">解除管理</div>
|
||||||
|
<div class="confirm" @click="submit('1')">保存</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="info" v-if="info.status == 2 && info.proveFileList.length">
|
<u-calendar v-model="showDateSelect" mode="range" min-year="2020" max-date="2050-12-31" @change="dateConfirm"></u-calendar>
|
||||||
<div class="item-flex border-none" >
|
<u-select v-model="showDictSelect" :list="$dict.getDict(selectDictName)" label-name="dictName" value-name="dictValue" @confirm="dictConfirm"></u-select>
|
||||||
<div class="label">核酸证明</div>
|
|
||||||
</div>
|
|
||||||
<div class="img-list" v-for="(item, index) in info.proveFileList" :key="index">
|
|
||||||
<img :src="item.accessUrl" alt="" @click="previewImage(info.proveFileList, item.accessUrl)">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="info" v-if="info.lastRiskDisposal && info.lastRiskDisposal.remarks">
|
|
||||||
<div class="item-flex border-none">
|
|
||||||
<div style="color:#999;">备注</div>
|
|
||||||
</div>
|
|
||||||
<p style="padding-bottom: 12px;">{{info.lastRiskDisposal.remarks}}</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="line-bg" style="padding-bottom: 56px;" v-if="info.status == 1"></div>
|
|
||||||
<div class="footer" v-if="info.status == 1">
|
|
||||||
<div class="cancel" @click="toEdit()">编辑</div>
|
|
||||||
<div class="confirm" @click="changeStatus()">解除管理</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -93,41 +254,152 @@ import { mapState } from 'vuex'
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
areaId: '',
|
||||||
|
areaName: '',
|
||||||
|
files: [],
|
||||||
id: '',
|
id: '',
|
||||||
info: {},
|
form: {
|
||||||
|
homeStatus: '',
|
||||||
|
quarantineBeginTime: '',
|
||||||
|
quarantineStrategy: '',
|
||||||
|
controllerList: [],
|
||||||
|
proveFileList: []
|
||||||
|
},
|
||||||
|
showDateSelect: false,
|
||||||
|
showDictSelect: false,
|
||||||
|
selectDictName: '',
|
||||||
|
selectFormName: '',
|
||||||
|
|
||||||
|
tabList: [
|
||||||
|
{
|
||||||
|
name: '排查管理',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '人员详情',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
barStyle: {
|
||||||
|
'width': '24px',
|
||||||
|
'height': '2px',
|
||||||
|
'border-radius': '0',
|
||||||
|
'bottom': '5px'
|
||||||
|
},
|
||||||
|
activeStyle: {
|
||||||
|
'font-weight' : '400',
|
||||||
|
},
|
||||||
|
currentTabs: 0,
|
||||||
|
info: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: { ...mapState(['user']) },
|
computed: {
|
||||||
onShow() {
|
...mapState(['user']),
|
||||||
document.title = '管理信息'
|
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.$dict.load('EP_homeStatus2', 'EP_quarantineStrategy', 'EP_handleType').then(() => {
|
this.id = option.id
|
||||||
|
this.$dict.load('EP_homeStatus2', 'EP_quarantineStrategy').then(() => {
|
||||||
this.id = option.id
|
this.id = option.id
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
})
|
})
|
||||||
uni.$on('updateDetail', () => {
|
},
|
||||||
this.getDetail()
|
onShow() {
|
||||||
})
|
document.title = '排查管理'
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
change(index) {
|
||||||
|
this.currentTabs = index
|
||||||
|
},
|
||||||
|
submit(status) {
|
||||||
|
if(this.form.homeStatus === '') {
|
||||||
|
return this.$u.toast('请选择居家状态')
|
||||||
|
}
|
||||||
|
if(!this.form.quarantineBeginTime) {
|
||||||
|
return this.$u.toast('请选择隔离时间')
|
||||||
|
}
|
||||||
|
if(this.form.quarantineStrategy === '') {
|
||||||
|
return this.$u.toast('请选择隔离策略')
|
||||||
|
}
|
||||||
|
if(!this.form.controllerUserName) {
|
||||||
|
return this.$u.toast('请输入管控人姓名')
|
||||||
|
}
|
||||||
|
if(!this.form.controllerUserPhone) {
|
||||||
|
return this.$u.toast('请输入联系方式')
|
||||||
|
}
|
||||||
|
if(this.form.controllerUserPhone && !/^1[0-9]{10,10}$/.test(this.form.controllerUserPhone)) {
|
||||||
|
return this.$u.toast("请输入正确的手机号码");
|
||||||
|
}
|
||||||
|
if( !this.form.fileList.length) {
|
||||||
|
return this.$u.toast('请上传图片')
|
||||||
|
}
|
||||||
|
if(status == 2 && !this.form.proveFileList.length) {
|
||||||
|
return this.$u.toast('请上传核酸阴性证明图片')
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$confirm(status == 2 ? '确认解除管理该记录' : '确认保存该记录').then(() => {
|
||||||
|
this.confirmSubmit(status)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
confirmSubmit(status) {
|
||||||
|
this.form.status = status
|
||||||
|
this.form.id = this.id
|
||||||
|
|
||||||
|
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/troubleshooting`, this.form).then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.$u.toast('提交成功')
|
||||||
|
uni.$emit('updateDetail')
|
||||||
|
uni.$emit('updateList')
|
||||||
|
uni.navigateBack()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getDetail() {
|
getDetail() {
|
||||||
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/queryDetailById?id=${this.id}`).then((res) => {
|
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/queryDetailById?id=${this.id}`).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.info = res.data
|
this.form = {...res.data}
|
||||||
|
this.form.controllerList = []
|
||||||
|
if(!this.form.controllerUserName) {
|
||||||
|
this.form.controllerUserName = this.user.name
|
||||||
|
this.form.controllerUserId = this.user.id
|
||||||
|
this.form.controllerUserPhone = this.user.phone
|
||||||
|
}
|
||||||
|
var info = {
|
||||||
|
name: this.form.controllerUserName,
|
||||||
|
id: this.form.controllerUserId,
|
||||||
|
mobile: this.form.controllerUserPhone
|
||||||
|
}
|
||||||
|
this.form.controllerList.push(info)
|
||||||
|
if(this.form.homeStatus === null) {
|
||||||
|
this.form.homeStatus = ''
|
||||||
|
}
|
||||||
|
|
||||||
|
this.info = res.data.registerInfo
|
||||||
|
this.info.travelTypeList = this.info.travelType.split(',')
|
||||||
this.info.idNumberText = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
this.info.idNumberText = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
changeStatus() {
|
dateConfirm(e) {
|
||||||
this.info.status = 2
|
this.form.quarantineBeginTime = e.startDate
|
||||||
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/troubleshooting`, this.info).then((res) => {
|
this.form.quarantineEndTime = e.endDate
|
||||||
if (res.code == 0) {
|
},
|
||||||
this.$u.toast('提交成功')
|
dictSelectClick(dictName, formName) {
|
||||||
uni.$emit('updateList')
|
this.selectDictName = dictName
|
||||||
this.getDetail()
|
this.selectFormName = formName
|
||||||
}
|
this.showDictSelect = true
|
||||||
})
|
},
|
||||||
|
dictConfirm(e) {
|
||||||
|
this.form[this.selectFormName] = e[0].value
|
||||||
|
},
|
||||||
|
areaSelect(e) {
|
||||||
|
this.form.areaId = e
|
||||||
|
},
|
||||||
|
handleSelectUser(e) {
|
||||||
|
console.log(e)
|
||||||
|
this.form.controllerUserPhone = e[0].mobile
|
||||||
|
this.form.controllerUserName = e[0].name
|
||||||
|
this.form.controllerUserId = e[0].id
|
||||||
|
},
|
||||||
|
toTransferUser() {
|
||||||
|
uni.navigateTo({url: `./TransferUser?id=${this.info.id}&idNumber=${this.info.idNumber}`})
|
||||||
},
|
},
|
||||||
callPhone(phone) {
|
callPhone(phone) {
|
||||||
uni.makePhoneCall({phoneNumber: phone})
|
uni.makePhoneCall({phoneNumber: phone})
|
||||||
@@ -138,117 +410,271 @@ export default {
|
|||||||
current: img
|
current: img
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
toEdit() {
|
|
||||||
uni.navigateTo({url: `./Add?id=${this.id}`})
|
|
||||||
},
|
|
||||||
toNucleAcidDetail() {
|
|
||||||
uni.navigateTo({url: `../AppNucleicAcidSampling/Detail?id=${this.id}&isHideBtn=1`})
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style scoped lang="scss">
|
||||||
.ManageDetail {
|
.ManageDetail {
|
||||||
.info{
|
background-color: #F3F6F9;
|
||||||
background-color: #fff;
|
padding-top: 16px;
|
||||||
padding: 0 32px;
|
overflow-x: hidden;
|
||||||
.title{
|
::v-deep .AiTopFixed {
|
||||||
line-height: 116px;
|
.placeholder {
|
||||||
background: #FFF;
|
.content {
|
||||||
font-size: 38px;
|
padding: 0 !important;
|
||||||
font-family: PingFangSC-Semibold, PingFang SC;
|
|
||||||
font-weight: 600;
|
|
||||||
color: #333;
|
|
||||||
overflow: hidden;
|
|
||||||
.title-right-text {
|
|
||||||
color: #1365DD;
|
|
||||||
font-size: 28px;
|
|
||||||
float: right;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.item-flex{
|
.fixed {
|
||||||
padding: 34px 0;
|
margin: 0 !important;
|
||||||
border-bottom: 1px solid #ddd;
|
.content {
|
||||||
display: flex;
|
padding: 0 !important;
|
||||||
justify-content: space-between;
|
}
|
||||||
line-height: 44px;
|
}
|
||||||
font-size: 32px;
|
}
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
.user-info {
|
||||||
.label{
|
.user-list{
|
||||||
width: 206px;
|
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;
|
color: #999;
|
||||||
}
|
}
|
||||||
.value{
|
.start-name{
|
||||||
width: calc(100% - 206px);
|
display: inline-block;
|
||||||
word-break: break-all;
|
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;
|
color: #333;
|
||||||
text-align: right;
|
overflow: hidden;
|
||||||
.phone-icon{
|
span {
|
||||||
width: 40px;
|
float: right;
|
||||||
height: 40px;
|
font-family: PingFangSC-Regular;
|
||||||
vertical-align: middle;
|
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;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.color-0,
|
.item-flex:nth-last-of-type(1){
|
||||||
.type-1,
|
border-bottom: 0;
|
||||||
.type-5{
|
|
||||||
color: #42D784;
|
|
||||||
}
|
}
|
||||||
.color-1,
|
.error-list {
|
||||||
.type-2,
|
.item {
|
||||||
.type-3{
|
width: 100%;
|
||||||
color: #f46;
|
background: #f4f7fe;
|
||||||
}
|
border-radius: 8px;
|
||||||
.color-2{
|
padding: 24px 24px 18px 24px;
|
||||||
color: #1365DD;
|
box-sizing: border-box;
|
||||||
}
|
|
||||||
.type-4{
|
|
||||||
color: #FFA938;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.img-list{
|
|
||||||
padding-bottom: 32px;
|
|
||||||
img{
|
|
||||||
width: 320px;
|
|
||||||
height: 320px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.item-flex:nth-last-of-type(1){
|
|
||||||
border-bottom: 0;
|
|
||||||
}
|
|
||||||
.error-list {
|
|
||||||
padding-bottom: 48px;
|
|
||||||
.item {
|
|
||||||
width: 100%;
|
|
||||||
background: #f4f7fe;
|
|
||||||
border-radius: 8px;
|
|
||||||
padding: 24px 24px 18px 24px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin-bottom: 16px;
|
|
||||||
color: #343d65;
|
|
||||||
font-size: 28px;
|
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
|
||||||
line-height: 40px;
|
|
||||||
div {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
margin-bottom: 16px;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.text-p{
|
.table-content {
|
||||||
line-height: 44px;
|
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;
|
||||||
|
}
|
||||||
|
.line-text {
|
||||||
|
line-height: 80px;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 32px;
|
||||||
color: #333;
|
color: #333;
|
||||||
padding-bottom: 16px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.line-bg{
|
.form-info{
|
||||||
width: 100%;
|
.item {
|
||||||
height: 24px;
|
width: 100%;
|
||||||
background-color: #F3F6F9;
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
padding: 40px 0 40px 32px;
|
||||||
|
.label {
|
||||||
|
width: 200px;
|
||||||
|
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% - 200px);
|
||||||
|
padding-right: 32px;
|
||||||
|
text-align: right;
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-size: 34px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
.color-999 {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.item-textarea {
|
||||||
|
width: calc(100% - 32px);
|
||||||
|
}
|
||||||
|
.info {
|
||||||
|
padding-left: 32px;
|
||||||
|
background-color: #fff;
|
||||||
|
.item {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
.solid {
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.mar-b16 {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
.btn-height{
|
||||||
|
height: 130px;
|
||||||
}
|
}
|
||||||
.footer {
|
.footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -271,7 +697,7 @@ export default {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.cancel {
|
.cancel {
|
||||||
color: #333;
|
color: #f46;
|
||||||
line-height: 76px;
|
line-height: 76px;
|
||||||
border: 1px solid #CCCCCC;
|
border: 1px solid #CCCCCC;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -282,8 +708,5 @@ export default {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.border-none{
|
|
||||||
border-bottom: 0!important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
270
src/project/pingchang/AppCommunityManagement/TransferUser.vue
Normal file
270
src/project/pingchang/AppCommunityManagement/TransferUser.vue
Normal file
@@ -0,0 +1,270 @@
|
|||||||
|
<template>
|
||||||
|
<div class="TransferUser">
|
||||||
|
<div class="info mar-b16">
|
||||||
|
<div class="item solid">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>移交对象
|
||||||
|
</div>
|
||||||
|
<div class="value" @click="dictSelectClick('EP_handoverObject', 'handoverObject')">
|
||||||
|
<span :class="form.handoverObject === '' ? 'color-999' : ''">{{ $dict.getLabel('EP_handoverObject', form.handoverObject) || '请选择'}}</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_handoverMethod', 'handoverMethod')">
|
||||||
|
<span :class="form.handoverMethod === '' ? 'color-999' : ''">{{ $dict.getLabel('EP_handoverMethod', form.handoverMethod) || '请选择'}}</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">
|
||||||
|
<u-input placeholder="请输入" input-align="right" height="32" maxlength="6" v-model="form.handoverPersonName" :custom-style="{'font-size': '17px'}" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item solid">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips"></span>手机号码
|
||||||
|
</div>
|
||||||
|
<div class="value">
|
||||||
|
<u-input placeholder="请输入" type="number" input-align="right" height="32" maxlength="11" v-model="form.handoverPersonPhone" :custom-style="{'font-size': '17px'}" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips">*</span>交接图片
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="padding: 0 16px 24px 0;">
|
||||||
|
<AiUploader :def.sync="form.fileList" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="info">
|
||||||
|
<div class="item">
|
||||||
|
<div class="label">
|
||||||
|
<span class="tips"></span>备注
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="solid">
|
||||||
|
<textarea placeholder="请输入备注" v-model="form.remarks" maxlength="500"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="btn-height"></div>
|
||||||
|
<div class="footer" @click="submit">提交</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 {
|
||||||
|
handlerTypeList: [],
|
||||||
|
form: {
|
||||||
|
registerId: '',
|
||||||
|
registerIdNumber: '',
|
||||||
|
handleType: '',
|
||||||
|
quarantineAddress: '',
|
||||||
|
quarantineBeginTime: '',
|
||||||
|
quarantineEndTime: '',
|
||||||
|
quarantineStrategy: '',
|
||||||
|
homeStatus: '',
|
||||||
|
controlMethod: '',
|
||||||
|
remarks: '',
|
||||||
|
handoverObject: '',
|
||||||
|
handoverMethod: '',
|
||||||
|
handoverPersonName: '',
|
||||||
|
handoverPersonPhone: '',
|
||||||
|
fileList: []
|
||||||
|
},
|
||||||
|
showDateSelect: false,
|
||||||
|
showDictSelect: false,
|
||||||
|
selectDictName: '',
|
||||||
|
selectFormName: '',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
},
|
||||||
|
onLoad(option) {
|
||||||
|
this.form.registerId = option.id
|
||||||
|
this.form.registerIdNumber = option.idNumber
|
||||||
|
this.$dict.load('EP_handleType', 'EP_quarantineAddress', 'EP_quarantineStrategy', 'EP_homeStatus', 'EP_controlMethod', 'EP_handoverObject', 'EP_handoverMethod').then(() => {
|
||||||
|
this.handlerTypeList = this.$dict.getDict('EP_handleType')
|
||||||
|
})
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
document.title = '人员移交'
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
submit() {
|
||||||
|
|
||||||
|
if(this.form.handoverObject === '') {
|
||||||
|
return this.$u.toast('请选择移交对象')
|
||||||
|
}
|
||||||
|
if(this.form.handoverMethod === '') {
|
||||||
|
return this.$u.toast('请选择移交方式')
|
||||||
|
}
|
||||||
|
if(!this.form.handoverPersonName) {
|
||||||
|
return this.$u.toast('请输入交接人姓名')
|
||||||
|
}
|
||||||
|
// if(this.form.handleType == 6 && this.form.handoverPersonPhone && !/^1[0-9]{10,10}$/.test(this.form.handoverPersonPhone)) {
|
||||||
|
// return this.$u.toast("请输入正确的手机号码");
|
||||||
|
// }
|
||||||
|
if(!this.form.fileList.length) {
|
||||||
|
return this.$u.toast('请上传交接图片')
|
||||||
|
}
|
||||||
|
|
||||||
|
this.form.quarantineBeginTime = null
|
||||||
|
this.form.quarantineEndTime = null
|
||||||
|
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/riskDisposal`, this.form).then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.$u.toast('移交成功')
|
||||||
|
uni.$emit('updateDetail')
|
||||||
|
uni.$emit('updateList')
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
}, 600)
|
||||||
|
}
|
||||||
|
}).catch((err) => {
|
||||||
|
this.$u.toast(err)
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
handleTypeClick(index) {
|
||||||
|
if(index == this.form.handleType) return
|
||||||
|
|
||||||
|
for(var i in this.form) {
|
||||||
|
if(i != 'registerId' && i != 'registerIdNumber') {
|
||||||
|
this.form[i] = ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.form.handleType = index
|
||||||
|
this.form.fileList = []
|
||||||
|
},
|
||||||
|
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">
|
||||||
|
.TransferUser {
|
||||||
|
background-color: #F3F6F9;
|
||||||
|
padding-top: 16px;
|
||||||
|
.type-select {
|
||||||
|
.type-item {
|
||||||
|
display: inline-block;
|
||||||
|
width: 218px;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
.type-item:nth-of-type(3n) {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
background: #4181FF;
|
||||||
|
border: none;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.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%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
::v-deep uni-textarea{
|
||||||
|
width: calc(100% - 32px);
|
||||||
|
}
|
||||||
|
.info {
|
||||||
|
padding-left: 32px;
|
||||||
|
background-color: #fff;
|
||||||
|
.item {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
.solid {
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.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>
|
||||||
Reference in New Issue
Block a user