-
转交事件
+
-
-
拒绝受理
+
-
- 我已办结
-
+
提交
+
@@ -43,190 +47,187 @@
export default {
data() {
return {
- forms: {
- groupName: '',
- groupId: '',
- content: '',
- files: [],
- name: ''
- },
- flag: false,
- show: false,
- status: '', //1转交 2拒绝受理 3我已办结
- myList: [],
- id: '',
+ // operation: '',
+ description: '',
+ status: '',
+ files: [],
+ showPage: false,
+ id:'',
+ doUsername: '',
selectUser: {},
- titleList: ['', '转交事件', '拒绝受理', '我已办结']
+ auditStatus: '',
+ wxUserId: '',
}
},
- 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
- }
+ onLoad(o) {
+ this.$dict.load('fpRiskPersonOperation1','fpRiskPersonOperation2','fpRiskType').then(()=>{
+ this.status = o.status
+ this.id = o.id
+ this.showPage = true
+
})
- },
- onShow() {
- console.log(this.titleList[this.status])
- document.title = this.titleList[this.status]
+
},
methods: {
-
- typeList() {
- this.$http.post(`/app/appclapeventgroup/list`, null, {
- params: {
- size: 9999,
- },
- })
- .then((res) => {
- if (res.code == 0) {
- this.myList = res.data.records
- this.$forceUpdate()
- }
- })
+ // 人员组件选择转交对象
+ handlePartySelect(e) {
+ console.log(e);
+ this.wxUserId = e[0].id
+ this.doUsername = e[0].name
},
- 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,
+ submit() {
+ if (this.status == 1) {
+ if(!this.doUsername) {
+ return this.$u.toast('请选择转交对象')
}
- if(this.selectUser.name) { //选择的网格员
- params.girdId = this.selectUser.girdId
- params.girdMemberId = this.selectUser.id
- params.girdMemberName = this.selectUser.name
+ }
+ if (this.status == 2) {
+ if(!this.auditStatus) {
+ return this.$u.toast('请选择处理结果')
}
+ }
+
+ let url = ''
+ let form = {}
+ if (this.status == 1) {
+ form = {
+ doUsername: this.doUsername,
+ description: this.description,
+ files: this.files,
+ declarationId: this.id,
+ wxUserId: this.wxUserId,
+ }
+ url = '/app/apphelpdeclarationinfo/forward'
}
- if(this.status == 2) {
- url = `/app/appclapeventinfo/refuse`
- successText = '拒绝成功'
- params = {...this.forms}
+ if (this.status == 2) {
+ form = {
+ auditStatus: this.auditStatus,
+ description: this.description,
+ files: this.files,
+ declarationId: this.id,
+ wxUserId: this.wxUserId,
+ }
+ url = '/app/apphelpdeclarationinfo/audit'
}
- if(this.status == 3) {
- url = `/app/appclapeventinfo/finishByGirdMember`
- successText = '办结成功'
- params = {...this.forms}
- }
- params.id = this.id
- this.$http.post(url, params).then((res) => {
+ this.$http.post(url,form).then(res => {
if (res.code == 0) {
- this.$u.toast(successText)
- uni.$emit('updateDeatil')
- uni.$emit('getListInit')
+ this.$u.toast('提交成功')
+ uni.$emit('update')
setTimeout(() => {
- if(this.status == 1) {
- uni.navigateBack({delta: 2})
- }else {
- uni.navigateBack()
- }
+ uni.navigateBack({delta: 2})
},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
diff --git a/src/saas/AppConflictMediation/Content.vue b/src/saas/AppConflictMediation/Content.vue
index 83133b7f..673b48c0 100644
--- a/src/saas/AppConflictMediation/Content.vue
+++ b/src/saas/AppConflictMediation/Content.vue
@@ -139,7 +139,7 @@ export default {
params = {...this.forms}
}
params.id = this.id
- this.$http.post(url, params).then((res) => {
+ this.$http.post(url, form).then((res) => {
if (res?.code == 0) {
this.$u.toast(successText)
uni.$emit('update')