diff --git a/src/apps/AppHelpDeclaration/SelectUser.vue b/src/apps/AppHelpDeclaration/SelectUser.vue new file mode 100644 index 00000000..0389c29f --- /dev/null +++ b/src/apps/AppHelpDeclaration/SelectUser.vue @@ -0,0 +1,339 @@ + + + + + diff --git a/src/apps/AppHelpDeclaration/details.vue b/src/apps/AppHelpDeclaration/details.vue index ee20eec5..d7cc839a 100644 --- a/src/apps/AppHelpDeclaration/details.vue +++ b/src/apps/AppHelpDeclaration/details.vue @@ -60,7 +60,7 @@
- {{ item.girdMemberName && item.girdMemberName.substring(item.girdMemberName.length, item.girdMemberName.length - 2) }} + {{ item.doUsername && item.doUsername.substring(item.doUsername.length, item.doUsername.length - 2) }} @@ -69,9 +69,9 @@
- {{ item.systemExplain }} + {{ item.description }}
- {{ $dict.getLabel('clapDoStatus', item.doStatus) }} + {{ $dict.getLabel('helpDeclarationStatus', item.status) }}
@@ -106,7 +106,7 @@
前往办理
- +
@@ -117,6 +117,7 @@ export default { list: [], data: {}, id: '', + doItShow: false, } }, onLoad(o) { @@ -141,6 +142,9 @@ export default { current: img }) }, + toContent(status) { + uni.navigateTo({ url: `./result?status=${status}` }) + }, } } diff --git a/src/apps/AppHelpDeclaration/list.vue b/src/apps/AppHelpDeclaration/list.vue index 5c27bd1b..d77fbb3e 100644 --- a/src/apps/AppHelpDeclaration/list.vue +++ b/src/apps/AppHelpDeclaration/list.vue @@ -42,9 +42,12 @@
- + +
+
申请帮扶
+ @@ -110,7 +113,6 @@ export default { \ No newline at end of file diff --git a/src/apps/AppHelpDeclaration/result.vue b/src/apps/AppHelpDeclaration/result.vue index 867a6f78..17210189 100644 --- a/src/apps/AppHelpDeclaration/result.vue +++ b/src/apps/AppHelpDeclaration/result.vue @@ -1,38 +1,41 @@ @@ -40,111 +43,190 @@ export default { data() { return { - operation: '', - opinion: '', - checkType: '', - files: [], - showPage: false, - id:'' + forms: { + groupName: '', + groupId: '', + content: '', + files: [], + name: '' + }, + flag: false, + show: false, + status: '', //1转交 2拒绝受理 3我已办结 + myList: [], + id: '', + selectUser: {}, + titleList: ['', '转交事件', '拒绝受理', '我已办结'] } }, - onLoad(o) { - this.$dict.load('fpRiskPersonOperation1','fpRiskPersonOperation2','fpRiskType').then(()=>{ - this.checkType = o.checkType - this.id = o.id - this.showPage = true + onLoad(option) { + this.status = option.status + this.id = option.id + this.forms.groupId = option.groupId + this.forms.groupName = option.groupName + this.typeList() + uni.$on('goback', (res) => { + this.selectUser = res + if(res.name) { + this.forms.name = res.name + }else{ + this.forms.name = res.girdName + } }) }, + onShow() { + console.log(this.titleList[this.status]) + document.title = this.titleList[this.status] + }, 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 => { + + typeList() { + this.$http.post(`/app/appclapeventgroup/list`, null, { + params: { + size: 9999, + }, + }) + .then((res) => { if (res.code == 0) { - this.$u.toast('提交成功') - uni.$emit('update') + this.myList = res.data.records + this.$forceUpdate() + } + }) + }, + + confirm() { + if(this.status == 1 && !this.forms.name) { + return this.$u.toast('请选择转交对象') + } + if(this.status != 1 && !this.forms.groupName) { + return this.$u.toast('请选择分类') + } + if(this.status != 1 && !this.forms.content) { + return this.$u.toast('请输入意见') + } + this.submit() + }, + submit() { //status 1转交 2拒绝受理 3我已办结 + var url = '', successText= '', params= '' + if(this.status == 1) { + url = `/app/appclapeventinfo/transfer` + successText = '转交成功' + params = { + ...this.forms, + girdId: this.selectUser.id, + girdName: this.selectUser.girdName, + } + if(this.selectUser.name) { //选择的网格员 + params.girdId = this.selectUser.girdId + params.girdMemberId = this.selectUser.id + params.girdMemberName = this.selectUser.name + } + } + if(this.status == 2) { + url = `/app/appclapeventinfo/refuse` + successText = '拒绝成功' + params = {...this.forms} + } + if(this.status == 3) { + url = `/app/appclapeventinfo/finishByGirdMember` + successText = '办结成功' + params = {...this.forms} + } + params.id = this.id + this.$http.post(url, params).then((res) => { + if (res.code == 0) { + this.$u.toast(successText) + uni.$emit('updateDeatil') + uni.$emit('getListInit') setTimeout(() => { - uni.navigateBack({delta: 2}) + if(this.status == 1) { + uni.navigateBack({delta: 2}) + }else { + uni.navigateBack() + } },600) } }) - } + }, + selectStatus(e) { + this.forms.groupName = e[0].label + this.forms.groupId = e[0].value + }, + toSelectUser() { + uni.navigateTo({ url: './SelectUser' }) + }, }, - onShow() { - document.title = this.checkType == 1? "处理意见":this.checkType == 2? "处理结果": '' - } } - \ No newline at end of file +