diff --git a/src/apps/AppHandSnapshot/Content.vue b/src/apps/AppHandSnapshot/Content.vue
index 5e801ca9..3c3d5b77 100644
--- a/src/apps/AppHandSnapshot/Content.vue
+++ b/src/apps/AppHandSnapshot/Content.vue
@@ -22,16 +22,14 @@
-
-
-->
-
+
转交事件
- 拒绝受理
- 我来受理
+ 拒绝受理
+ 我来受理
@@ -72,7 +70,11 @@ export default {
this.typeList()
},
methods: {
- submit() {
+ // 拒绝 /app/appclapeventinfo/finishByGirdMember
+ // 同意 /app/appclapeventinfo/finishByManager
+
+ // 拒绝
+ submit2() {
if (this.flag) return
this.$refs.uForm.validate((valid) => {
@@ -96,17 +98,67 @@ export default {
this.flag = true
this.$http
- .post(this.number == 2 ? '/app/appclapeventinfo/finishByGirdMember' : '/app/appclapeventinfo/finishByManager', {
+ .post('/app/appclapeventinfo/finishByManager', {
groupName: this.forms.groupName,
groupId: this.forms.groupId,
content: this.forms.content,
- fileIds: imgs || [],
+ files: imgs || [],
+ id: this.id,
+ })
+ .then((res) => {
+ if (res.code == 0) {
+ this.$u.toast('受理成功')
+ this.forms = {}
+ this.flag = false
+ uni.$emit('nextList')
+ setTimeout(() => {
+ uni.navigateBack()
+ }, 600)
+ }
+ })
+ } else {
+ this.$u.toast('失败')
+ }
+ })
+ },
+
+ // 同意
+ submit3() {
+ if (this.flag) return
+
+ this.$refs.uForm.validate((valid) => {
+ if (valid) {
+ if (this.number == 2 || this.number == 3) {
+ if (!this.forms.groupName) {
+ return this.$u.toast('请选择事件分类')
+ }
+
+ if (!this.forms.content) {
+ return this.$u.toast(this.number == 2 ? '请输入拒绝受理意见' : '请输入你的办结意见')
+ }
+ }
+
+ const imgs = []
+ if (this.forms.files) {
+ this.forms.files.map((e) => {
+ imgs.push({ url: e.url, id: e.id })
+ })
+ }
+
+ this.flag = true
+ this.$http
+ .post('/app/appclapeventinfo/finishByGirdMember', {
+ groupName: this.forms.groupName,
+ groupId: this.forms.groupId,
+ content: this.forms.content,
+ files: imgs || [],
id: this.id,
})
.then((res) => {
if (res.code == 0) {
this.$u.toast('受理成功')
this.flag = false
+ this.forms = {}
uni.$emit('nextList')
setTimeout(() => {
uni.navigateBack()
diff --git a/src/apps/AppHandSnapshot/Detail.vue b/src/apps/AppHandSnapshot/Detail.vue
index bcbe6ffa..f3a75394 100644
--- a/src/apps/AppHandSnapshot/Detail.vue
+++ b/src/apps/AppHandSnapshot/Detail.vue
@@ -113,11 +113,8 @@
我来受理
-
我已办结
-
-
diff --git a/src/apps/AppHandSnapshot/List.vue b/src/apps/AppHandSnapshot/List.vue
index 12c902fb..0243f105 100644
--- a/src/apps/AppHandSnapshot/List.vue
+++ b/src/apps/AppHandSnapshot/List.vue
@@ -90,14 +90,15 @@ export default {
},
},
mounted() {
+ this.current = 1
+ this.girdList()
+ this.getList()
+ },
+ created() {
this.$dict.load('clapEventStatus').then(() => {
this.getList()
this.listType = this.$dict.getDict('clapEventStatus')
})
-
- this.current = 1
- this.girdList()
- this.getList()
},
methods: {
getList() {
@@ -115,6 +116,7 @@ export default {
if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.pages = res.data.pages
+ this.$forceUpdate()
}
})
},