Bladeren bron

离职交接审批流程

lizhenhao 2 jaren geleden
bovenliggende
commit
e17c6e5cbe

+ 3 - 4
src/views/modules/changes/dimission/DimissionList.vue

@@ -226,20 +226,19 @@
         let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [离职归档交接审批]`
         this.taskService.getTaskDef({ procDefId: 'Process_1663572940585:6:ea3bdc78-37f5-11ed-84f6-f266559b56cb',
           businessId: row.id,
-          businessTable: 'dimission_handover_info',
-          status: 'startAndHold'}).then((data) => {
+          businessTable: 'dimission_handover_info'}).then((data) => {
             this.$router.push({
               path: '/flowable/task/TaskForm',
               query: {
                 procDefId: 'Process_1663572940585:6:ea3bdc78-37f5-11ed-84f6-f266559b56cb',
                 procDefKey: 'Process_1663572940585',
-                status: 'startAndHold',
                 title: title,
                 formType: data.data.formType,
                 formUrl: data.data.formUrl,
                 formTitle: processTitle,
                 businessTable: 'dimission_handover_info',
-                businessId: row.id
+                businessId: row.id,
+                routePath: '@views/modules/changes/dimission/DimissionHandoverForm'
               }
             })
           })

+ 8 - 2
src/views/modules/flowable/task/TaskForm.vue

@@ -212,6 +212,7 @@
         this.printObj.popTitle = this.title
         this.businessId = this.$route.query.businessId
         this.procInsId = this.$route.query.procInsId
+        this.routePath = this.$route.query.routePath
         this.formReadOnly = this.$route.query.formReadOnly !== undefined && this.$route.query.formReadOnly !== 'false' && this.$route.query.formReadOnly !== false
         this.isCC = false
         this.isAssign = false
@@ -287,7 +288,11 @@
               }).then(({data}) => {
                 this.$message.success('启动成功')
                 this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
-                this.$router.push('/flowable/task/TodoList')
+                if (!this.commonJS.isEmpty(this.routePath)) {
+                  this.$router.push(this.routePath)
+                } else {
+                  this.$router.push('/flowable/task/TodoList')
+                }
                 this.cc(data)
               })
             })
@@ -581,7 +586,8 @@
           status: '',
           userIds: null,
           assignee: null
-        }
+        },
+        routePath: ''
       }
     }
   }