From 9c4b47decabe9a8ef229fa6c7ad56e88241e4e7d Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Sat, 26 Mar 2022 15:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppWarningMonitoring/detail.vue | 80 ++++++++++++++-------- src/apps/AppWarningMonitoring/result.vue | 65 +++++++++++++----- src/apps/AppWarningMonitoring/riskList.vue | 42 +++++++++--- 3 files changed, 132 insertions(+), 55 deletions(-) diff --git a/src/apps/AppWarningMonitoring/detail.vue b/src/apps/AppWarningMonitoring/detail.vue index 60857fa6..a9a59be6 100644 --- a/src/apps/AppWarningMonitoring/detail.vue +++ b/src/apps/AppWarningMonitoring/detail.vue @@ -6,8 +6,10 @@
- 李白 - 待走访 + {{ data.name }} + + {{ $dict.getLabel('fpRiskPersonStatus',data.status) }} +
@@ -18,57 +20,57 @@
- -
+ +
走访核实 - 疑似风险 + 疑似风险
- 林珊 + {{ data.visitUserName }}
- 2021-10-10 10:10:10 + {{ data.visitTime }}
@@ -76,22 +78,22 @@
- 经现场了解,该人员家庭有多出房产,无返贫风险倾向。 + {{ data.visitOpinion }}
- +
-
+
处理结果 - 解除风险 + 解除风险
@@ -121,8 +123,8 @@
-
- 走访核实 +
+ 走访核实 处理结果
@@ -134,19 +136,28 @@ import { mapState } from 'vuex' export default { data() { return { - type: 0, id: '', data: {}, + checkType: '', } }, computed: { ...mapState(['user']) }, onLoad(o) { - this.id = o.id; - this.getDetail() + this.$dict.load('fpRiskPersonStatus','fpRiskType','fpRiskPersonOperation1','fpRiskPersonOperation2').then(()=>{ + this.id = o.id; + this.getDetail() + this.getCheckType() + }) }, methods: { + previewImage(images, img) { + uni.previewImage({ + urls: images.map(v => v.url), + current: img + }) + }, getDetail() { this.$http.post('/app/apppreventionreturntopovertyriskperson/queryDetailById',null,{ params:{ @@ -158,11 +169,22 @@ export default { } }) }, - toResult() { - uni.navigateTo({url: './result'}) + getCheckType() { + this.$http.post('/app/appgirdmemberinfo/checkLogOnUser',null,{ + params: { + corpId: this.user.id + } + }).then((res) => { + if(res.code == 0) { + this.checkType = res.data.checkType + } + }) }, - callPhone(phone) { - uni.makePhoneCall({phoneNumber: phone}) + toResult() { + uni.navigateTo({url: `./result?checkType=${this.checkType}&id=${this.id}`}) + }, + callPhone() { + uni.makePhoneCall({phoneNumber: data.phone}) }, }, onShow() { diff --git a/src/apps/AppWarningMonitoring/result.vue b/src/apps/AppWarningMonitoring/result.vue index e17efb82..0e12cc44 100644 --- a/src/apps/AppWarningMonitoring/result.vue +++ b/src/apps/AppWarningMonitoring/result.vue @@ -1,12 +1,15 @@ @@ -39,14 +40,48 @@ export default { data() { return { - result: '', - value: '', - type: 0 + operation: '', + opinion: '', + checkType: '', + files: [], + showPage: false, + id:'' + } + }, + onLoad(o) { + this.$dict.load('fpRiskPersonOperation1','fpRiskPersonOperation2','fpRiskType').then(()=>{ + this.checkType = o.checkType + this.id = o.id + this.showPage = true + }) + }, + methods: { + submit() { + if(!this.operation) { + return this.$u.toast('请选择处理意见') + } + if(!this.opinion) { + return this.$u.toast('请输入备注说明') + } + let ids = []; + ids.push(this.id); + this.$http.post('/app/apppreventionreturntopovertyriskperson/monitor',{ + operation: this.operation, + opinion: this.opinion, + files: this.files, + ids: ids, + }).then(res => { + if (res.code == 0) { + this.$u.toast('提交成功') + setTimeout(() => { + uni,navigateBack() + },600) + } + }) } }, - methods: {}, onShow() { - document.title = type==0? "处理意见":"处理结果" + document.title = this.checkType == 0? "处理意见":"处理结果" } } @@ -88,9 +123,7 @@ export default { } } .bottom { - img { - margin: 30px 0; - } + padding: 30px 0; } } diff --git a/src/apps/AppWarningMonitoring/riskList.vue b/src/apps/AppWarningMonitoring/riskList.vue index 1d2c712c..8788d5c8 100644 --- a/src/apps/AppWarningMonitoring/riskList.vue +++ b/src/apps/AppWarningMonitoring/riskList.vue @@ -24,11 +24,13 @@
{{ item.name }} - {{ item.status }} + + {{ $dict.getLabel('fpRiskPersonStatus',item.status) }} +
-
{{ item.address }}
+
{{ item.areaName }}
-
{{ item.riskType }}
+
{{ $dict.getLabel('fpRiskType',item.riskType) }}
@@ -36,6 +38,7 @@ @@ -99,6 +116,9 @@ export default { ::v-deep .AiTopFixed .search { margin-bottom: 0; } + // ::v-deep .search-box .area-select .AiAreaPicker span { + // color: #FFF; + // } .tab-select { width: 100%; height: 96px; @@ -157,6 +177,8 @@ export default { .item { background: #FFFFFF; border-radius: 16px; + margin-bottom: 16px; + box-sizing: border-box; .top { padding: 32px 32px; .name-type {