From 7a8c6442ae80a2ebc5ca50638f65ffb1a559d932 Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 24 Nov 2022 15:42:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E5=8C=BA=E7=AE=A1=E7=90=86=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pingchang/AppCommunityManagement/Add.vue | 344 -------- .../AppCommunityManagement.vue | 8 +- .../AppCommunityManagement/Detail.vue | 670 +++++++++++---- .../AppCommunityManagement/ManageDetail.vue | 787 ++++++++++++++---- .../AppCommunityManagement/TransferUser.vue | 270 ++++++ 5 files changed, 1395 insertions(+), 684 deletions(-) delete mode 100644 src/project/pingchang/AppCommunityManagement/Add.vue create mode 100644 src/project/pingchang/AppCommunityManagement/TransferUser.vue diff --git a/src/project/pingchang/AppCommunityManagement/Add.vue b/src/project/pingchang/AppCommunityManagement/Add.vue deleted file mode 100644 index 0f9319de..00000000 --- a/src/project/pingchang/AppCommunityManagement/Add.vue +++ /dev/null @@ -1,344 +0,0 @@ - - - - - diff --git a/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue b/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue index 5951b51b..6b52271d 100644 --- a/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue +++ b/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue @@ -72,8 +72,8 @@

{{item.phone}}

{{item.registerInfo.startAreaName}}-{{item.registerInfo.arriveAreaName}}

处置意见:{{$dict.getLabel('EP_handleType', item.lastRiskDisposal.handleType)}}

-
管理
-
排查
+
管理
+
排查
@@ -200,8 +200,8 @@ export default { toEdit(id) { uni.navigateTo({url: `./Edit?id=${id}&fromType=2`}) }, - toAdd(id) { - uni.navigateTo({url: `./Add?id=${id}`}) + toManage(id) { + uni.navigateTo({url: `./ManageDetail?id=${id}`}) }, change(index) { this.keyword = '' diff --git a/src/project/pingchang/AppCommunityManagement/Detail.vue b/src/project/pingchang/AppCommunityManagement/Detail.vue index 2091811f..497b53e3 100644 --- a/src/project/pingchang/AppCommunityManagement/Detail.vue +++ b/src/project/pingchang/AppCommunityManagement/Detail.vue @@ -1,88 +1,209 @@ @@ -94,7 +215,26 @@ export default { data() { return { 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']) }, @@ -111,17 +251,23 @@ export default { }) }, methods: { + change(index) { + this.currentTabs = index + }, getDetail() { this.$http.post(`/app/appepidemicpreventioncommunitymanagement/queryDetailById?id=${this.id}`).then((res) => { 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") } }) }, changeStatus() { - this.info.status = 2 - this.$http.post(`/app/appepidemicpreventioncommunitymanagement/troubleshooting`, this.info).then((res) => { + this.controllInfo.status = 2 + this.$http.post(`/app/appepidemicpreventioncommunitymanagement/troubleshooting`, this.controllInfo).then((res) => { if (res.code == 0) { this.$u.toast('提交成功') uni.$emit('updateList') @@ -144,112 +290,328 @@ export default { toNucleAcidDetail() { 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) + } + }) + }) + } }, } diff --git a/src/project/pingchang/AppCommunityManagement/TransferUser.vue b/src/project/pingchang/AppCommunityManagement/TransferUser.vue new file mode 100644 index 00000000..73fdd04f --- /dev/null +++ b/src/project/pingchang/AppCommunityManagement/TransferUser.vue @@ -0,0 +1,270 @@ + + + + +