卡口登记编辑

This commit is contained in:
liuye
2022-11-23 18:13:16 +08:00
parent bb1d9b6e1f
commit 8fdd56b0c9
4 changed files with 688 additions and 40 deletions

View File

@@ -1,27 +1,54 @@
<template>
<div class="AppCommunityManagement">
<AiTopFixed>
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6"
<u-tabs :list="tabList" :is-scroll="false" :current="currentTabs" height="96" bg-color="#3975C6"
inactive-color="#A1C1E8" :bar-style="barStyle" :active-item-style="activeStyle" active-color="#ffffff " @change="change">
</u-tabs>
<div class="top-search">
<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="getListInit">
</u-search>
<div class="header">
<div class="tab-item">
<h2 style="color:#5AAD6A;">{{totalInfo['今日登记']}}</h2>
<p>今日返乡</p>
</div>
<div class="tab-item">
<h2 style="color:#F5A319;">{{totalInfo['今日风险']}}</h2>
<p>今日新增</p>
</div>
<div class="tab-item">
<h2 style="color:#CD413A;border-right:0;">{{totalInfo['风险处理']}}</h2>
<p>新增风险</p>
</div>
</div>
<div class="top-select">
<div class="item">
<div class="top-search">
<div class="left">
<AiAreaPicker v-model="areaId" :areaId="cropAreaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
<span v-else style="color:#999;">地区选择</span>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
</AiAreaPicker>
</div>
<!-- <div class="item" @click="showTypeSelect=true">
<span v-if="infoType === ''" style="color:#999;">数据类型</span>
<span v-else>{{ $dict.getLabel('EP_registerInfoType', infoType) }}</span>
<div class="right">
<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="getListInit">
</u-search>
</div>
</div>
<div class="top-select">
<div class="item" @click="showDate=true">
<!-- <AiAreaPicker v-model="areaId" :areaId="cropAreaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
<span v-else style="color:#999;">地区选择</span>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
</AiAreaPicker> -->
<span v-if="!dateList.length" style="color:#999;">选择日期</span>
<span v-else>{{ dateList[0] }}-{{dateList[1]}}</span>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
</div> -->
<u-calendar v-model="showDate" mode="range" @change="changeDate"></u-calendar>
</div>
<div class="item" @click="showTypeSelect=true">
<span v-if="infoType === ''" style="color:#999;">处置意见</span>
<span v-else>{{ $dict.getLabel('EP_handleType', infoType) }}</span>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
</div>
</div>
</AiTopFixed>
<div class="data-list" v-if="list && list.length">
@@ -30,7 +57,7 @@
<div class="title">
<div class="name">
{{item.name}}
<!-- <span class="type">{{$dict.getLabel('EP_registerInfoType', item.infoType)}}</span> -->
<span class="type">{{$dict.getLabel('EP_registerInfoType', item.infoType)}}</span>
</div>
<div class="status" :class="item.nucleicAcidSamplingCount >0 ? 'status1' : 'status0'">
<span class="cir"></span>
@@ -39,13 +66,17 @@
</div>
</div>
<p> {{item.idNumberText}}</p>
<p> {{item.phone}}</p>
<p>{{item.phone}}</p>
<p> 出发地-目的地</p>
<p> 处置意见<span :class="'type-'+item.lastRiskDisposal.handleType">{{$dict.getLabel('EP_handleType', item.lastRiskDisposal.handleType)}}</span></p>
<div class="btn" v-if="item.status != 2" @click.stop="toEdit(item.id)">排查</div>
<div class="btn" v-if="item.status != 2" @click.stop="toEdit(item.id)">管理</div>
<img src="./components/img/status-img.png" alt="" class="status-img" v-else>
</div>
<div class="bottom">
<div class="text">管控人<span> {{item.controllerUserName}}</span> {{item.createTime}}</div>
<div class="text">
<!-- 管控人<span> {{item.controllerUserName}}</span> -->
抵平时间{{item.createTime}}
</div>
</div>
</div>
</div>
@@ -73,7 +104,7 @@ export default {
name: '待管理',
},
{
name: '管理',
name: '管理',
},
{
name: '已解除',
@@ -81,7 +112,7 @@ export default {
],
barStyle: {
'width': '24px',
'height': '2px',
'height': '2px',
'border-radius': '0',
'bottom': '5px'
},
@@ -90,7 +121,10 @@ export default {
},
list: [],
registerTypeList: [],
cropAreaId: ''
cropAreaId: '',
totalInfo: {},
showDate: false,
dateList: []
}
},
computed: {
@@ -100,12 +134,14 @@ export default {
// this.areaId = this.user.areaId
// this.areaName = this.user.areaName
this.$dict.load('EP_CM_status', 'EP_registerInfoType', 'EP_handleType').then(() => {
this.registerTypeList = this.$dict.getDict('EP_registerInfoType')
this.registerTypeList = this.$dict.getDict('EP_handleType')
this.registerTypeList.unshift({dictValue: '', dictName: '全部'})
this.getListInit()
this.getTotal()
})
uni.$on('updateList', () => {
this.getListInit()
this.getTotal()
})
this.getCropAreaId()
},
@@ -127,8 +163,17 @@ export default {
this.getList()
},
getList() {
this.$http.post('/app/appepidemicpreventioncommunitymanagement/list', null, {
params: { size: 10, current: this.current, status: this.currentTabs, areaId: this.areaId, name: this.keyword, infoType: this.infoType },
var startDate = this.dateList[0] + ' 00:00:00'
var endDate = this.dateList[1] + ' 00:00:00'
this.$http.post('/app/appepidemicpreventioncommunitymanagement/list', null, {
params: {
size: 10,
current: this.current,
status: this.currentTabs,
areaId: this.areaId, name:
this.keyword,
infoType: this.infoType
},
}).then((res) => {
if (res.code == 0) {
res.data.records.map((item) => {
@@ -156,7 +201,21 @@ export default {
typeConfirm(e) {
this.infoType = e[0].value
this.getListInit()
}
},
getTotal() {
this.$http.post(`/app/appepidemicpreventionregisterinfo/listStatistics?areaId=${this.areaId}&infoType=0`).then((res) => {
if (res.code == 0) {
this.totalInfo = res.data
}
})
},
changeDate(e) {
console.log(e)
this.dateList = [e.startDate, e.endDate]
this.getListInit()
},
},
onReachBottom() {
this.current++
@@ -181,8 +240,46 @@ export default {
}
}
}
.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;
}
}
.top-search {
padding: 20px 32px;
display: flex;
.left {
width: 240px;
}
.right {
width: calc(100% - 240px);
}
}
.top-select {
display: flex;