From 9197a9404c155c96a32eae76df45893391ca0f4d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com>
Date: Wed, 22 Dec 2021 20:53:20 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=BD=AC=E5=8A=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/phone/xmpg2/step11.vue | 40 ++++++++++++++++---
.../pages/phone/xmpg2/step12.vue | 39 ++++++++++++++++--
2 files changed, 70 insertions(+), 9 deletions(-)
diff --git a/src/pages/processCenter/pages/phone/xmpg2/step11.vue b/src/pages/processCenter/pages/phone/xmpg2/step11.vue
index 44cd9f7d0..09769f66a 100644
--- a/src/pages/processCenter/pages/phone/xmpg2/step11.vue
+++ b/src/pages/processCenter/pages/phone/xmpg2/step11.vue
@@ -252,15 +252,21 @@
+
@@ -282,6 +288,9 @@ export default {
},
data() {
return {
+ phoneshowflag: false,
+ phoneRoleList: [],
+ phoneDrawerTitle: '',
tableIndex: 0,
itemLists: [],
foldFormFlag: false,
@@ -365,11 +374,32 @@ export default {
this.processStep = window.URL.createObjectURL(res.data)
})
},
- //转办事件
+ //转办按钮
handleTransfer(){
- this.drawerModal = true
- this.drawerTitle = '转办处理人'
- this.selectPeople = row
+ this.phoneshowflag = true
+ this.phoneRoleList = this.roleTransfer
+ this.phoneDrawerTitle = '转办处理人'
+ },
+ //确认转办
+ drawerCheck (data) {
+ this.roleTransfer = data
+ this.phoneRoleList = this.roleTransfer
+ this.turnLoading = true
+ changeAssigneeNew({
+ taskId: this.$route.query.taskIds, // 任务id
+ assignee: data[0].id, // 被委托人
+ userId: this.$store.getters.userInfo.userId, // 委托人
+ pId: this.$route.query.prcId // 流程实例
+ }).then(res =>{
+ if (res.success) {
+ this.turnLoading = false
+ this.$message.success('调整成功')
+ this.$router.push("/processCenter")
+ } else {
+ this.$message.warning(res.message)
+ }
+ })
+ this.modalshowflag = false
},
// 点击查看
handlePreview(item) {
diff --git a/src/pages/processCenter/pages/phone/xmpg2/step12.vue b/src/pages/processCenter/pages/phone/xmpg2/step12.vue
index 51ec62dcf..75ade023f 100644
--- a/src/pages/processCenter/pages/phone/xmpg2/step12.vue
+++ b/src/pages/processCenter/pages/phone/xmpg2/step12.vue
@@ -253,6 +253,7 @@
+
@@ -283,6 +290,9 @@ export default {
},
data() {
return {
+ phoneshowflag: false,
+ phoneRoleList: [],
+ phoneDrawerTitle: '',
tableIndex: 0,
itemLists: [],
foldFormFlag: false,
@@ -366,11 +376,32 @@ export default {
this.processStep = window.URL.createObjectURL(res.data)
})
},
- //转办事件
+ //转办按钮
handleTransfer(){
- this.drawerModal = true
- this.drawerTitle = '转办处理人'
- this.selectPeople = row
+ this.phoneshowflag = true
+ this.phoneRoleList = this.roleTransfer
+ this.phoneDrawerTitle = '转办处理人'
+ },
+ //确认转办
+ drawerCheck (data) {
+ this.roleTransfer = data
+ this.phoneRoleList = this.roleTransfer
+ this.turnLoading = true
+ changeAssigneeNew({
+ taskId: this.$route.query.taskIds, // 任务id
+ assignee: data[0].id, // 被委托人
+ userId: this.$store.getters.userInfo.userId, // 委托人
+ pId: this.$route.query.prcId // 流程实例
+ }).then(res =>{
+ if (res.success) {
+ this.turnLoading = false
+ this.$message.success('调整成功')
+ this.$router.push("/processCenter")
+ } else {
+ this.$message.warning(res.message)
+ }
+ })
+ this.modalshowflag = false
},
// 点击查看
handlePreview(item) {