处理结果
- 解除风险
+ 解除风险
@@ -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 @@
-
+
- *处理意见处理结果
+ *
+ 处理意见
+ 处理结果
@@ -15,7 +18,7 @@
*备注说明
-
+
@@ -24,13 +27,11 @@
图片最多9张
-

+
-
- 提交
-
+
提交
@@ -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) }}