瀏覽代碼

流程-驳回后修改列表页面处理流程功能开发

user5 2 年之前
父節點
當前提交
8772543d90

+ 8 - 0
src/api/flowable/TaskService.js

@@ -130,4 +130,12 @@ export default class TaskService {
       data: data
     })
   }
+
+  getTaskDefInfo (params) {
+    return request({
+      url: '/flowable/task/getTaskDefInfo',
+      method: 'get',
+      params: params
+    })
+  }
 }

+ 1 - 0
src/views/modules/flowable/task/TaskForm.vue

@@ -395,6 +395,7 @@
           this.$refs.form.reapplyForm((businessTable, businessId, inputForm) => {
             vars = {...vars, ...inputForm}
             console.log('param' + param)
+            console.log('inputForm' + inputForm)
             if (inputForm.procDefId) {
               param.procDefId = inputForm.procDefId
             }

+ 21 - 0
src/views/modules/zs/reimbursement/info/InfoList.vue

@@ -162,6 +162,7 @@
           <vxe-column title="操作" width="130px" fixed="right" align="center">
             <template  slot-scope="scope">
               <el-button v-if="hasPermission('zsReimbursement:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.type === '1' || scope.row.type === '3' )" type="text"  size="small" @click="edit(scope.row)">修改</el-button>
+              <el-button v-if="hasPermission('zsReimbursement:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.type === '4')" type="text"  size="small" @click="todo(scope.row)">驳回调整</el-button>
               <el-button v-if="hasPermission('zsReimbursement:info:edit') && scope.row.createId === $store.state.user.id && (scope.row.type === '2')" type="text"  size="small" @click="reback(scope.row)">撤回</el-button>
               <el-button v-if="hasPermission('zsReimbursement:info:del') && scope.row.createId === $store.state.user.id && (scope.row.type === '1')" type="text"  size="small" @click="del(scope.row.id)">删除</el-button>
             </template>
@@ -352,6 +353,26 @@
           })
         })
       },
+      todo (row) {
+        let cUser = false
+        this.taskService.getTaskDefInfo({
+          taskId: row.taskId
+        }).then(({data}) => {
+          console.log(data)
+          this.$router.push({
+            path: '/flowable/task/TaskForm',
+            query: {
+              isShow: false,
+              formReadOnly: true,
+              formTitle: `${data.title}`,
+              routePath: '/zs/reimbursement/info/InfoList',   // 数据处理后需要跳转的页面路径
+              cUser: cUser,
+              title: `审批【${data.taskName || ''}】`,
+              ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title', 'businessId')
+            }
+          })
+        })
+      },
       // 撤回
       reback (row) {
         this.$confirm(`确定撤回流程吗?`, '提示', {