diff --git a/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue b/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue index 1e8cc35c..e10f7cb1 100644 --- a/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue +++ b/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue @@ -3,44 +3,58 @@
-

{{totalInfo.today}}

+

{{totalInfo['今日登记']}}

今日返乡

-

{{totalInfo.todayUnusual}}

+

{{totalInfo['今日风险']}}

今日风险

-

{{totalInfo.release}}

+

{{totalInfo['风险处理']}}

风险处理

-
返乡人员
异常人员
+ +
+
+ + {{ areaName }} + 地区选择 + + +
+
+ {{gatewayName || '卡口选择'}} + +
+
-

{{item.name}}有异常

-

{{item.idNumber}}

-

{{item.startAreaName}}

-

{{item.arriveAreaName}}

-

{{item.arriveTime}}

+
+

{{item.name}}{{ $dict.getLabel('EP_riskLevel', item.riskLevel) }}

+

{{item.idNumber}}

+

{{item.startAreaName}}

+

{{item.arriveAreaName}}

+

{{item.arriveTime}}

+ +
+
+
管控人:{{item.handleUserName}}
+
+ @@ -57,24 +71,70 @@ export default { tabIndex: 0, current: 1, list: [], - name: '', - totalInfo: {} + totalInfo: {}, + keyword: '', + gatewayId: '', + gatewayName: '', + showGateSelect: false, + gateList: [], + statusImgList: [ + require('./components/img/status0.png'), + require('./components/img/status1.png'), + require('./components/img/status2.png'), + require('./components/img/status3.png'), + require('./components/img/status4.png'), + require('./components/img/status5.png'), + require('./components/img/status6.png'), + ] } }, computed: { ...mapState(['user']) }, created() { - this.areaId = this.user.areaId - this.areaName = this.user.areaName + // this.areaId = this.user.areaId + // this.areaName = this.user.areaName + this.getGatewayList() + this.$dict.load(['EP_handleType', 'EP_riskLevel']).then(() => { + this.getList() + this.getTotal() + }) }, onShow() { document.title = '卡口登记' - this.getList() - this.getTotal() uni.$on('updateList', () => { this.getListInit() }) }, methods: { + getListInit() { + this.current = 1 + this.list = [] + this.getList() + }, + getList() { + this.$http.post(`/app/appepidemicpreventionregisterinfo/list?infoType=0¤t=${this.current}&size=10&listType=${this.tabIndex}&gatewayId=${this.gatewayId}&name=${this.keyword}&startAreaId=${this.areaId}`) + .then((res) => { + if (res.code == 0) { + res.data.records.map((item) => { + item.idNumber = item.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") + }) + this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records + } + }) + }, + getTotal() { + this.$http.post(`/app/appepidemicpreventionregisterinfo/listStatistics?areaId=${this.areaId}`).then((res) => { + if (res.code == 0) { + this.totalInfo = res.data + } + }) + }, + getGatewayList() { + this.$http.post(`/app/appepidemicpreventiongateway/list?size=300&status=0`).then((res) => { + if (res.code == 0) { + this.gateList = res.data.records + } + }) + }, areaSelect(e) { this.areaId =e this.$nextTick(() => { @@ -86,36 +146,14 @@ export default { this.tabIndex = index this.getListInit() }, - getListInit() { - this.current = 1 - this.list = [] - this.getList() - }, - getList() { - var status = '' - if(this.tabIndex == 1) { - status = 0 - } - this.$http.post(`/app/appepidemicbackhomerecord/list?current=${this.current}&size=10&status=${status}&name=${this.name}&arriveAreaId=${this.areaId}`) - .then((res) => { - if (res.code == 0) { - res.data.records.map((item) => { - item.idNumber = item.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") - }) - this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records - } - }) - }, - getTotal() { - this.$http.post(`/app/appepidemicbackhomerecord/statistic?areaId=${this.areaId}`).then((res) => { - if (res.code == 0) { - this.totalInfo = res.data - } - }) + gatewayconfirm(e) { + this.gatewayName = e[0].label + this.gatewayId = e[0].value + this.getListInit() }, toUser(row) { uni.navigateTo({url: `./UserInfo?id=${row.id}`}) - } + }, }, onReachBottom() { this.current ++ @@ -196,47 +234,106 @@ export default { } } } - .user-list{ - background-color: #f5f5f5; - .item{ - padding: 32px 64px 24px; - background-color: #fff; - margin-bottom: 8px; - .name{ - font-size: 36px; - font-family: PingFangSC-Medium, PingFang SC; + .top-search { + padding: 20px 32px; + background-color: #fff; + } + .top-select { + display: flex; + padding: 28px 0; + background-color: #fff; + .item { + flex: 1; + padding: 0 8px; + text-align: center; + span { + display: inline-block; + font-family: PingFangSC-Medium; font-weight: 500; - color: #333; - line-height: 50px; - margin-bottom: 8px; - .status{ - float: right; + font-size: 28px; + color: #666; + line-height: 40px; + } + } + } + .user-list{ + background-color: #F3F6F9; + padding: 32px 32px 0; + .item{ + background-color: #fff; + margin-bottom: 24px; + border-radius: 16px; + .top { + padding: 32px 32px 24px; + position: relative; + .status-img{ + width: 200px; + height: 200px; + position: absolute; + bottom: 0; + right: 0; + } + .name{ + font-size: 36px; + font-family: PingFangSC-Medium, PingFang SC; + font-weight: 500; + color: #333; + line-height: 50px; + margin-bottom: 8px; + .status{ + float: right; + font-size: 28px; + font-family: PingFangSC-Regular, PingFang SC; + line-height: 40px; + } + .status0 { + color: #00D25D; + } + .status1 { + color: #FF6300; + } + .status2 { + color: #f46; + } + } + p{ + width: calc(100% - 200px); font-size: 28px; font-family: PingFangSC-Regular, PingFang SC; - color: #FF4466; + color: #333; line-height: 40px; + margin-bottom: 8px; + img{ + width: 32px; + height: 32px; + margin-right: 18px; + vertical-align: top; + } + } + .start-name{ + display: inline-block; + width: calc(100% - 50px); + } + .color-999{ + margin-bottom: 24px; + color: #999; } } - 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; + .bottom { + border-top: 2px solid #D8DDE6; + padding: 32px; + .text { + line-height: 40px; + font-family: PingFangSC-Regular; + font-size: 28px; + color: #666; + letter-spacing: 0.58px; + } + span { + display: inline-block; + color: #3975C6; + margin-right: 32px; } - } - .start-name{ - display: inline-block; - width: calc(100% - 50px); - } - .color-999{ - margin-bottom: 24px; - color: #999; } } } diff --git a/src/project/pingchang/AppCheckpointRegistration/ErrorInfo.vue b/src/project/pingchang/AppCheckpointRegistration/ErrorInfo.vue deleted file mode 100644 index c094efe0..00000000 --- a/src/project/pingchang/AppCheckpointRegistration/ErrorInfo.vue +++ /dev/null @@ -1,272 +0,0 @@ - - - - - diff --git a/src/project/pingchang/AppCheckpointRegistration/ManagementContent.vue b/src/project/pingchang/AppCheckpointRegistration/ManagementContent.vue new file mode 100644 index 00000000..ed447e7e --- /dev/null +++ b/src/project/pingchang/AppCheckpointRegistration/ManagementContent.vue @@ -0,0 +1,368 @@ + + + + + diff --git a/src/project/pingchang/AppCheckpointRegistration/ManagementHistory.vue b/src/project/pingchang/AppCheckpointRegistration/ManagementHistory.vue new file mode 100644 index 00000000..8cc2593b --- /dev/null +++ b/src/project/pingchang/AppCheckpointRegistration/ManagementHistory.vue @@ -0,0 +1,295 @@ + + + + + diff --git a/src/project/pingchang/AppCheckpointRegistration/RiskContent.vue b/src/project/pingchang/AppCheckpointRegistration/RiskContent.vue new file mode 100644 index 00000000..6c486329 --- /dev/null +++ b/src/project/pingchang/AppCheckpointRegistration/RiskContent.vue @@ -0,0 +1,489 @@ + + + + + \ No newline at end of file diff --git a/src/project/pingchang/AppCheckpointRegistration/UserInfo.vue b/src/project/pingchang/AppCheckpointRegistration/UserInfo.vue index 1c99f9d6..96f0f11f 100644 --- a/src/project/pingchang/AppCheckpointRegistration/UserInfo.vue +++ b/src/project/pingchang/AppCheckpointRegistration/UserInfo.vue @@ -1,11 +1,12 @@ @@ -135,42 +118,31 @@ export default { return { id: '', info: {}, - list: [] } }, computed: { ...mapState(['user']) }, onShow() { - document.title = '返乡人员信息' + document.title = '卡口登记详情' }, onLoad(option) { - this.$dict.load('epidemicRecentPersonType', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicRecentTestResult', 'epidemicRecentHealth').then(() => { + this.$dict.load('yesOrNo', 'EP_registerPersonType', 'EP_travelType', 'EP_abnormalType').then(() => { this.id = option.id this.getDetail() - this.getList() }) uni.$on('updateDetail', () => { - this.getList() this.getDetail() }) }, methods: { - getList() { - this.$http.post(`/app/appepidemicunusuallog/list?recordId=${this.id}`).then((res) => { - if (res.code == 0) { - this.list = res.data.records - } - }) - }, getDetail() { - this.$http.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${this.id}`).then((res) => { + this.$http.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${this.id}`).then((res) => { if (res.code == 0) { if(res.data.checkTime) { res.data.checkTime = res.data.checkTime.substring(0, 10) } this.info = res.data - this.info.checkPhoto = JSON.parse(this.info.checkPhoto) - this.info.health = this.info.health.split(',') - this.info.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") + this.info.travelTypeList = this.info.travelType.split(',') + this.info.idNumberText = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") } }) }, @@ -183,19 +155,19 @@ export default { current: img }) }, - toError() { - uni.navigateTo({url: `./ErrorInfo?id=${this.id}`}) + toContent() { + uni.navigateTo({url: `./ManagementContent?id=${this.id}&idNumber=${this.info.idNumber}&haveHomeQuarantineBtn=${this.info.haveHomeQuarantineBtn}`}) } }, } diff --git a/src/project/pingchang/AppCheckpointRegistration/components/img/point-icon.png b/src/project/pingchang/AppCheckpointRegistration/components/img/point-icon.png new file mode 100644 index 00000000..0b1024b8 Binary files /dev/null and b/src/project/pingchang/AppCheckpointRegistration/components/img/point-icon.png differ diff --git a/src/project/pingchang/AppCheckpointRegistration/components/img/status0.png b/src/project/pingchang/AppCheckpointRegistration/components/img/status0.png new file mode 100644 index 00000000..6e61e051 Binary files /dev/null and b/src/project/pingchang/AppCheckpointRegistration/components/img/status0.png differ diff --git a/src/project/pingchang/AppCheckpointRegistration/components/img/status1.png b/src/project/pingchang/AppCheckpointRegistration/components/img/status1.png new file mode 100644 index 00000000..f64e8c8a Binary files /dev/null and b/src/project/pingchang/AppCheckpointRegistration/components/img/status1.png differ diff --git a/src/project/pingchang/AppCheckpointRegistration/components/img/status2.png b/src/project/pingchang/AppCheckpointRegistration/components/img/status2.png new file mode 100644 index 00000000..c4e99d04 Binary files /dev/null and b/src/project/pingchang/AppCheckpointRegistration/components/img/status2.png differ diff --git a/src/project/pingchang/AppCheckpointRegistration/components/img/status3.png b/src/project/pingchang/AppCheckpointRegistration/components/img/status3.png new file mode 100644 index 00000000..6ebc8e14 Binary files /dev/null and b/src/project/pingchang/AppCheckpointRegistration/components/img/status3.png differ diff --git a/src/project/pingchang/AppCheckpointRegistration/components/img/status4.png b/src/project/pingchang/AppCheckpointRegistration/components/img/status4.png new file mode 100644 index 00000000..96a07851 Binary files /dev/null and b/src/project/pingchang/AppCheckpointRegistration/components/img/status4.png differ diff --git a/src/project/pingchang/AppCheckpointRegistration/components/img/status5.png b/src/project/pingchang/AppCheckpointRegistration/components/img/status5.png new file mode 100644 index 00000000..e28e4976 Binary files /dev/null and b/src/project/pingchang/AppCheckpointRegistration/components/img/status5.png differ diff --git a/src/project/pingchang/AppCheckpointRegistration/components/img/status6.png b/src/project/pingchang/AppCheckpointRegistration/components/img/status6.png new file mode 100644 index 00000000..3e9c12a0 Binary files /dev/null and b/src/project/pingchang/AppCheckpointRegistration/components/img/status6.png differ diff --git a/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue b/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue index b4dab0ae..0dceec88 100644 --- a/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue +++ b/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue @@ -5,8 +5,8 @@ inactive-color="#A1C1E8" :bar-style="barStyle" :active-item-style="activeStyle" active-color="#ffffff " @change="change">
@@ -54,6 +54,7 @@ export default { appName: '社区管理', data() { return { + current: 1, keyword: '', currentTabs: 0, tabList: [ @@ -90,17 +91,20 @@ export default { document.title = '社区管理' }, methods: { + getListInit() { + this.current = 1 + this.data = [] + this.getList() + }, getList() { - this.$http.post('/app/appepidemicreportmember/list', null, { - params: { size: this.size, current: this.current, status: this.currentTabs == 1 ? '0' : '', areaId: this.areaId, name: this.keyword }, + this.$http.post('/app/appepidemicpreventioncommunitymanagement/list', null, { + params: { size: 10, current: this.current, status: this.currentTabs, areaId: this.areaId, name: this.keyword }, }).then((res) => { if (res.code == 0) { this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records } }) }, - - toAdd() { uni.navigateTo({url: './Add'}) }, @@ -110,19 +114,7 @@ export default { }, areaSelect(e) { this.areaId = e - this.getList() - }, - - handerSearch(e) { - this.keyword = e - this.current = 1 - this.getList() - }, - - handerClear() { - this.keyword = '' - this.current = 1 - this.getList() + this.getListInit() }, }, onReachBottom() {