|
@@ -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(`确定撤回流程吗?`, '提示', {
|