卡口登记

This commit is contained in:
yanran200730
2022-09-26 17:07:59 +08:00
parent 43527038aa
commit b631420500
5 changed files with 124 additions and 210 deletions

View File

@@ -403,7 +403,7 @@
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
&:hover { &:hover {
border-color: #26f; border-color: $placeholderColor;
} }
i { i {

View File

@@ -1,5 +1,5 @@
<template> <template>
<div class="doc-circulation ailist-wrapper"> <div class="doc-circulation">
<keep-alive :include="['List']"> <keep-alive :include="['List']">
<component ref="component" :is="component" @change="onChange" :params="params" :instance="instance" :dict="dict"></component> <component ref="component" :is="component" @change="onChange" :params="params" :instance="instance" :dict="dict"></component>
</keep-alive> </keep-alive>
@@ -11,8 +11,8 @@
import Detail from './components/Detail' import Detail from './components/Detail'
export default { export default {
name: 'AppRiskArea', name: 'AppBayonetRegistration',
label: 'AppBayonetRegistration', label: '卡口登记',
props: { props: {
instance: Function, instance: Function,
@@ -39,7 +39,7 @@
this.params = data.params this.params = data.params
} }
if (data.type === 'list') { if (data.type === 'List') {
this.component = 'List' this.component = 'List'
this.params = data.params this.params = data.params

View File

@@ -15,9 +15,9 @@
<ai-info-item label="填报时间" :value="info.createTime"></ai-info-item> <ai-info-item label="填报时间" :value="info.createTime"></ai-info-item>
<ai-info-item label="身份证号" :value="info.idNumber"></ai-info-item> <ai-info-item label="身份证号" :value="info.idNumber"></ai-info-item>
<ai-info-item label="手机号码" :value="info.phone"></ai-info-item> <ai-info-item label="手机号码" :value="info.phone"></ai-info-item>
<ai-info-item label="人员类别" isLine> <ai-info-item label="人员类别" :value="dict.getLabel('EP_registerPersonType', info.type)"></ai-info-item>
<span :style="(info.type == 0 || info.type == 3 || info.type ==6 || info.type == 9)? 'color:#42D784;' : 'color:#f46;'">{{dict.getLabel('epidemicRecentPersonType', info.type)}}</span> <ai-info-item label="是否从事高危行业" :value="dict.getLabel('EP_highRiskIndustries', info.highRiskIndustries)"></ai-info-item>
</ai-info-item> <ai-info-item label="登记卡口" isLine :value="info.gatewayName"></ai-info-item>
</ai-wrapper> </ai-wrapper>
</template> </template>
</ai-card> </ai-card>
@@ -30,9 +30,10 @@
<span :style="{color: info.denger == 1 ? '#FF4466' : '#333'}">{{info.startAreaName}} </span> <span :style="{color: info.denger == 1 ? '#FF4466' : '#333'}">{{info.startAreaName}} </span>
</ai-info-item> </ai-info-item>
<ai-info-item label="出发地址" isLine :value="info.startAddress"></ai-info-item> <ai-info-item label="出发地址" isLine :value="info.startAddress"></ai-info-item>
<ai-info-item label="出行方式" :value="dict.getLabel('epidemicRecentTravel', info.travelType)"></ai-info-item> <ai-info-item label="出行方式" :value="info.travelTypeNames"></ai-info-item>
<ai-info-item label="车次/航班" isLine :value="info.trainNo"></ai-info-item>
<ai-info-item label="行程描述" isLine :value="info.description"></ai-info-item> <ai-info-item label="行程描述" isLine :value="info.description"></ai-info-item>
<ai-info-item label="到达时间" :value="info.arriveTime"></ai-info-item> <ai-info-item label="抵平时间" :value="info.arriveTime"></ai-info-item>
<ai-info-item label="到达地区" :value="info.arriveAreaName"></ai-info-item> <ai-info-item label="到达地区" :value="info.arriveAreaName"></ai-info-item>
<ai-info-item label="返乡地址" isLine :value="info.arriveAddress"></ai-info-item> <ai-info-item label="返乡地址" isLine :value="info.arriveAddress"></ai-info-item>
</ai-wrapper> </ai-wrapper>
@@ -42,41 +43,27 @@
<template #content> <template #content>
<ai-wrapper <ai-wrapper
label-width="120px"> label-width="120px">
<ai-info-item label="当前体温"> <ai-info-item label="是否有风险旅居史" :value="dict.getLabel('yesOrNo', info.fromHighRiskArea)"></ai-info-item>
<span :style="info.temperature >= 37.3 ? 'color:#f46;' : ''">{{ info.temperature + '℃' }}</span> <ai-info-item label="7天内是否接触新冠确诊或疑似患者" :value="dict.getLabel('yesOrNo', info.contactPatients)"></ai-info-item>
</ai-info-item> <ai-info-item label="当前健康状况" :value="dict.getLabel('yesOrNo', info.abnormalHealth)"></ai-info-item>
<ai-info-item label="14天内是否接触新冠确诊或疑似患者">
<span :class="'color-'+info.touchInFourteen">{{$dict.getLabel('epidemicTouchInFourteen', info.touchInFourteen)}}</span>
</ai-info-item>
<ai-info-item label="当前健康状况">
<span></span>
<span v-for="(item, index) in info.health" :key="index" :style="item != 0 ? 'color:#FF4466;' : ''"><span v-if="index>0">;</span>{{$dict.getLabel('epidemicRecentHealth', item)}}</span>
</ai-info-item>
</ai-wrapper> </ai-wrapper>
</template> </template>
</ai-card> </ai-card>
<ai-card title="核酸检测"> <ai-card title="同行情况">
<template #content> <template #content>
<ai-wrapper <ai-table
label-width="120px"> :isShowPagination="false"
<ai-info-item label="检测日期" :value="info.checkTime && info.checkTime.split(' ')[0]"></ai-info-item> tableSize="small"
<ai-info-item label="检测结果"> border
<span :style="info.checkResult == 1 ? 'color:#f46;' : 'color:#42D784;'">{{$dict.getLabel('epidemicRecentTestResult', info.checkResult)}}</span> :tableData="info.companionList"
</ai-info-item> :col-configs="colConfigs"
<ai-info-item label="本人健康码截图" isLine> @getList="() => {}">
<ai-uploader </ai-table>
:instance="instance"
v-model="info.checkPhoto"
disabled
:limit="9">
</ai-uploader>
</ai-info-item>
</ai-wrapper>
</template> </template>
</ai-card> </ai-card>
</div> </div>
<div v-show="currIndex === 1"> <div v-show="currIndex === 1">
<ai-card title="异常处理"> <ai-card title="风险处置">
<template #right> <template #right>
<el-button type="primary" v-if="info.status === '0'" @click="release">解除异常</el-button> <el-button type="primary" v-if="info.status === '0'" @click="release">解除异常</el-button>
</template> </template>
@@ -87,49 +74,38 @@
<ai-info-item label="填报时间" :value="info.createTime"></ai-info-item> <ai-info-item label="填报时间" :value="info.createTime"></ai-info-item>
<ai-info-item label="身份证号" :value="info.idNumber"></ai-info-item> <ai-info-item label="身份证号" :value="info.idNumber"></ai-info-item>
<ai-info-item label="手机号码" :value="info.phone"></ai-info-item> <ai-info-item label="手机号码" :value="info.phone"></ai-info-item>
<ai-info-item label="人员类别" isLine :value="dict.getLabel('epidemicRecentPersonType', info.type)"></ai-info-item> <ai-info-item label="人员类别" :value="dict.getLabel('EP_registerPersonType', info.type)"></ai-info-item>
<ai-info-item label="异常状况" isLine>
<span :style="{color: info.unusual ? 'red' : '#333'}">{{ info.unusual || '-' }}</span>
</ai-info-item>
<ai-info-item label="异常解除人" v-if="info.releaseName && info.status === '1'" :value="info.releaseName"></ai-info-item>
<ai-info-item label="异常解除时间" v-if="info.releaseTime && info.status === '1'" :value="info.releaseTime"></ai-info-item>
</ai-wrapper> </ai-wrapper>
</template> </template>
</ai-card> </ai-card>
<ai-card title="异常情况记录"> <ai-card title="处理意见">
<template #right>
<el-button type="primary" v-if="info.status === '0'" @click="isShow = true">添加记录</el-button>
</template>
<template #content> <template #content>
<ai-table <ai-wrapper
:tableData="tableData" style="margin-bottom: 20px;"
:col-configs="colConfigs" v-for="item in info.riskDisposalList"
:total="total" :key="item.id"
:current.sync="search.current" label-width="120px">
:size.sync="search.size" <ai-info-item label="处理意见" :value="dict.getLabel('EP_handleType', item.handleType)"></ai-info-item>
@getList="getList"> <ai-info-item v-if="item.handleType === '2'" label="集中隔离地" :value="dict.getLabel('EP_quarantineAddress', item.quarantineAddress)"></ai-info-item>
<el-table-column slot="options" width="120px" fixed="right" label="操作" align="center"> <ai-info-item v-if="item.handleType === '3'" label="居家状态" :value="dict.getLabel('EP_homeStatus', item.homeStatus)"></ai-info-item>
<template slot-scope="{ row }"> <ai-info-item v-if="item.handleType === '6'" label="移交对象" :value="dict.getLabel('EP_handoverObject', item.handoverObject)"></ai-info-item>
<div class="table-options"> <ai-info-item v-if="item.handleType === '6'" label="移交方式" :value="dict.getLabel('EP_handoverMethod', item.handoverMethod)"></ai-info-item>
<el-button type="text" @click="remove(row.id)">删除</el-button> <ai-info-item v-if="item.handleType === '6'" label="交接人员姓名" :value="info.handoverPersonName"></ai-info-item>
</div> <ai-info-item v-if="item.handleType === '6'" label="手机号" :value="info.handoverPersonPhone"></ai-info-item>
</template> <ai-info-item v-if="['2', '3'].includes(item.handleType)" label="隔离时间" :value="item.quarantineBeginTime + '至' + item.quarantineEndTime"></ai-info-item>
</el-table-column> <ai-info-item v-if="['2', '3'].includes(item.handleType)" label="隔离策略" :value="dict.getLabel('EP_quarantineStrategy', item.quarantineStrategy)"></ai-info-item>
</ai-table> <ai-info-item v-if="['3'].includes(item.handleType)" label="管控方式" :value="dict.getLabel('EP_controlMethod', item.controlMethod)"></ai-info-item>
<ai-info-item label="图片" isLine v-if="['3', '6'].includes(item.handleType)">
<ai-uploader
:instance="instance"
:value="item.fileList"
disabled
:limit="9">
</ai-uploader>
</ai-info-item>
</ai-wrapper>
</template> </template>
</ai-card> </ai-card>
<ai-dialog
:visible.sync="isShow"
width="800px"
@close="form.content = ''"
title="添加异常记录"
@onConfirm="onConfirm">
<el-form class="ai-form" label-width="120px" :model="form" ref="form">
<el-form-item label="异常记录" prop="content" style="width: 100%;" :rules="[{ required: true, message: '请输入异常记录' }]">
<el-input type="textarea" :rows="5" :maxlength="500" v-model="form.content" clearable placeholder="请输入异常记录" show-word-limit></el-input>
</el-form-item>
</el-form>
</ai-dialog>
</div> </div>
</template> </template>
</ai-detail> </ai-detail>
@@ -147,111 +123,38 @@
data () { data () {
return { return {
total: 0,
info: {}, info: {},
id: '',
search: {
current: 1,
size: 10
},
form: {
content: ''
},
isShow: false, isShow: false,
currIndex: 0, currIndex: 0,
tableData: [], tableData: [],
colConfigs: [ colConfigs: [
{prop: 'content', label: '异常记录', align: 'center' }, {prop: 'createUserName', label: '姓名', align: 'center' },
{prop: 'createTime', label: '创建时间', align: 'center'}, {prop: 'phone', label: '手机号', align: 'center'}
{prop: 'createUserName', label: '记录人', align: 'center' }
], ],
tabList: ['基本信息', '异常处理'] tabList: ['基本信息', '风险处置']
} }
}, },
created () { created () {
if (this.params && this.params.id) { if (this.params && this.params.id) {
this.id = this.params.id this.id = this.params.id
this.$dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicRecentPersonType', 'epidemicRecentTestResult']).then(() => { this.$dict.load(['EP_riskLevel', 'EP_handleType', 'EP_registerPersonType', 'EP_highRiskIndustries', 'EP_travelType', 'yesOrNo', 'EP_handoverObject',
'EP_handleType', 'EP_quarantineAddress', 'EP_homeStatus', 'EP_quarantineStrategy', 'EP_controlMethod', 'EP_handoverMethod']).then(() => {
this.getInfo(this.params.id) this.getInfo(this.params.id)
}) })
this.getList()
} }
}, },
methods: { methods: {
getInfo (id) { getInfo (id) {
this.instance.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${id}`).then(res => { this.instance.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.info = res.data this.info = res.data
this.info.checkPhoto = res.data.checkPhoto ? JSON.parse(res.data.checkPhoto) : [] this.info.checkPhoto = res.data.checkPhoto ? JSON.parse(res.data.checkPhoto) : []
let healthName = ''
this.info.isHealth = false
res.data.health.split(',').forEach(v => {
if (v > 0) {
this.info.isHealth = true
}
healthName = healthName + this.$dict.getLabel('epidemicRecentHealth', v)
})
this.info.healthName = healthName
this.info.health = this.info.health.split(',')
}
})
},
release () { this.info.travelTypeNames = res.data.travelType.split(',').map(v => {
this.$confirm('确定解除异常?').then(() => { return this.dict.getLabel('EP_travelType', v)
this.instance.post(`/app/appepidemicbackhomerecord/release?recordId=${this.params.id}`, { }).join('')
id: this.params.id
}).then(res => {
if (res.code == 0) {
this.$message.success('解除异常成功!')
this.currIndex = 0
this.getInfo(this.params.id)
}
})
})
},
remove(id) {
this.$confirm('确定删除该数据?').then(() => {
this.instance.post(`/app/appepidemicunusuallog/delete?ids=${id}`).then(res => {
if (res.code == 0) {
this.$message.success('删除成功!')
this.getList()
}
})
})
},
onConfirm() {
this.$refs.form.validate(v => {
if (v) {
this.instance.post('/app/appepidemicunusuallog/addOrUpdate', {
...this.form,
recordId: this.params.id
}).then(res => {
if (res?.code == 0) {
this.isShow = false
this.getList()
this.$message.success('添加成功!')
}
})
}
})
},
getList () {
this.instance.post(`/app/appepidemicunusuallog/list`, null, {
params: {
...this.search,
recordId: this.params.id
}
}).then(res => {
if (res.code == 0) {
this.tableData = res.data.records
this.total = res.data.total
} }
}) })
}, },

View File

@@ -1,38 +1,51 @@
<template> <template>
<ai-list class="list" isTabs> <ai-list class="list">
<ai-title slot="title" title="卡口登记" isShowBottomBorder></ai-title>
<template slot="content"> <template slot="content">
<div class="statistics-top"> <div class="statistics-top">
<div class="statistics-top__item"> <div class="statistics-top__item">
<span>返乡人数</span> <span>登记人数</span>
<h2 style="color: #2266FF;">{{ info.total }}</h2> <h2 style="color: #2266FF;">{{ info['登记人数'] }}</h2>
</div> </div>
<div class="statistics-top__item"> <div class="statistics-top__item">
<span>今日新增返乡</span> <span>今日登记</span>
<h2 style="color: #22AA99;">{{ info.today }}</h2> <h2 style="color: #22AA99;">{{ info['今日登记'] }}</h2>
</div> </div>
<div class="statistics-top__item"> <div class="statistics-top__item">
<span>异常人数</span> <span>原路返回</span>
<h2 style="color: #F8B425">{{ info.unusual }}</h2> <h2 style="color: #F8B425">{{ info['原路返回'] }}</h2>
</div> </div>
<div class="statistics-top__item"> <div class="statistics-top__item">
<span>今日异常人数</span> <span>居家隔离</span>
<h2 style="color: red">{{ info.todayUnusual }}</h2> <h2 style="color: red">{{ info['居家隔离'] }}</h2>
</div>
<div class="statistics-top__item">
<span>异常处理</span>
<h2 style="color: red">{{ info.release }}</h2>
</div> </div>
</div> </div>
<div class="content"> <div class="content">
<ai-search-bar bottomBorder> <ai-search-bar bottomBorder>
<template #left> <template #left>
<ai-select <ai-select
v-model="search.status" v-model="search.gatewayName"
clearable clearable
placeholder="请选择健康状态" placeholder="请选择卡口"
:selectList="dictList" :selectList="dictList"
@change="search.current = 1, getList()"> @change="search.current = 1, getList()">
</ai-select> </ai-select>
<el-date-picker
v-model="search.createTime"
type="date"
size="small"
value-format="yyyy-MM-DD"
placeholder="选择开始日期"
@change="search.current = 1, getList()">
</el-date-picker>
<el-date-picker
v-model="search.createTime"
type="date"
size="small"
value-format="yyyy-MM-DD"
placeholder="选择结束日期"
@change="search.current = 1, getList()">
</el-date-picker>
<ai-download :instance="instance" url="/app/appepidemicbackhomerecord/export" :params="param" fileName="返乡登记" :disabled="tableData.length == 0"> <ai-download :instance="instance" url="/app/appepidemicbackhomerecord/export" :params="param" fileName="返乡登记" :disabled="tableData.length == 0">
<el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button> <el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button>
</ai-download> </ai-download>
@@ -41,7 +54,7 @@
<el-input <el-input
v-model="search.name" v-model="search.name"
size="small" size="small"
placeholder="请输入姓名" placeholder="请输入姓名、手机号"
clearable clearable
v-throttle="() => {search.current = 1, getList()}" v-throttle="() => {search.current = 1, getList()}"
@clear="search.current = 1, search.name = '', getList()" @clear="search.current = 1, search.name = '', getList()"
@@ -89,44 +102,29 @@
current: 1, current: 1,
size: 10, size: 10,
name: '', name: '',
status: '' gatewayName: '',
status: '',
createTime: ''
}, },
dictList: [{ dictList: [],
dictName: '异常',
dictValue: '0'
}, {
dictName: '正常',
dictValue: '1'
}],
info: {}, info: {},
colConfigs: [ colConfigs: [
{ prop: 'name', label: '姓名' }, { prop: 'name', label: '姓名' },
{ prop: 'phone', align: 'center', label: '手机号码' }, { prop: 'phone', align: 'center', label: '手机号码' },
{ prop: 'startTime', align: 'center', label: '出发时间', formart: v => v.substr(0, v.length - 3) }, { prop: 'arriveAreaName', align: 'center', label: '返乡地区' },
{ {
prop: 'startAreaName', prop: 'arriveTime',
align: 'center', align: 'center',
label: '出发地区' label: '抵平时间'
}, },
{ prop: 'arriveTime', align: 'center', label: '到达时间', formart: v => v.substr(0, v.length - 3) }, { prop: 'companionCount', align: 'center', label: '同行人数' },
{ {
prop: 'arriveAreaName', prop: 'riskLevel',
align: 'center', align: 'center',
label: '到达地区' label: '风险等级',
formart: v => this.dict.getLabel('EP_riskLevel', v)
}, },
{ prop: 'checkTime', align: 'center', label: '核酸日期', formart: v => v.split(' ')[0] }, { prop: 'handleType', align: 'center', label: '处理意见', formart: v => this.dict.getLabel('EP_handleType', v) }
{
prop: 'status',
align: 'center',
label: '健康状态',
render: (h, {row}) => {
return h('span', {
style: {
color: row.status === '0' ? 'red' : '#333'
}
}, row.status === '0' ? '异常' : '正常')
}
}
], ],
ids: [], ids: [],
tableData: [], tableData: [],
@@ -147,14 +145,30 @@
created () { created () {
this.disabledLevel = this.user.info.areaList.length - 1 this.disabledLevel = this.user.info.areaList.length - 1
this.loading = true this.loading = true
this.dict.load(['marriageType', 'marriagePersonType', 'modeType']).then(() => {
this.getTotalInfo()
this.getDictList()
this.dict.load(['EP_riskLevel', 'EP_handleType', 'modeType']).then(() => {
this.getList() this.getList()
}) })
}, },
methods: { methods: {
getDictList () {
this.instance.post(`/app/appepidemicpreventiongateway/list?size=10000`).then(res => {
if (res.code == 0) {
this.dictList = res.data.records.map(v => {
return {
dictName: v.name,
dictValue: v.id
}
})
}
})
},
getList () { getList () {
this.instance.post(`/app/appepidemicbackhomerecord/list`, null, { this.instance.post(`/app/appepidemicpreventionregisterinfo/list`, null, {
params: { params: {
...this.search, ...this.search,
arriveAreaId: this.areaId arriveAreaId: this.areaId
@@ -170,8 +184,6 @@
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
}) })
this.getTotalInfo()
}, },
toDetail (id) { toDetail (id) {
@@ -194,7 +206,7 @@
remove(id) { remove(id) {
this.$confirm('确定删除该数据?').then(() => { this.$confirm('确定删除该数据?').then(() => {
this.instance.post(`/app/appepidemicbackhomerecord/delete?ids=${id}`).then(res => { this.instance.post(`/app/appepidemicpreventionregisterinfo/delete?id=${id}`).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$message.success('删除成功!') this.$message.success('删除成功!')
this.getTotalInfo() this.getTotalInfo()
@@ -206,7 +218,7 @@
getTotalInfo () { getTotalInfo () {
this.instance.post(`/app/appepidemicbackhomerecord/statistic`, null, { this.instance.post(`/app/appepidemicpreventionregisterinfo/listStatistics`, null, {
params: { params: {
areaId: this.search.arriveAreaId areaId: this.search.arriveAreaId
} }
@@ -223,8 +235,6 @@
<style scoped lang="scss"> <style scoped lang="scss">
.list { .list {
::v-deep .ai-list__content { ::v-deep .ai-list__content {
padding: 0!important;
.ai-list__content--right-wrapper { .ai-list__content--right-wrapper {
background: transparent!important; background: transparent!important;
box-shadow: none!important; box-shadow: none!important;

View File

@@ -16,8 +16,8 @@
<ai-select <ai-select
v-model="search.status" v-model="search.status"
clearable clearable
placeholder="请选择现实状态" placeholder="请选择管理状态"
:selectList="dict.getDict('epidemicDangerousAreaLevel')" :selectList="dict.getDict('EP_CM_status')"
@change="search.current = 1, getList()"> @change="search.current = 1, getList()">
</ai-select> </ai-select>
<ai-user-selecter :instance="instance" @change="onUserChange" :isMultiple="false" v-model="user"> <ai-user-selecter :instance="instance" @change="onUserChange" :isMultiple="false" v-model="user">
@@ -79,6 +79,7 @@
size: 10, size: 10,
name: '', name: '',
infoType: '', infoType: '',
status: '',
controllerUserId: '' controllerUserId: ''
}, },
user: [], user: [],
@@ -162,7 +163,7 @@
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
&:hover { &:hover {
border-color: #26f; border-color: $placeholderColor;
} }
i { i {