|
@@ -49,25 +49,30 @@
|
|
|
:checkbox-config="{}">
|
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
|
<vxe-column type="checkbox" width="40px"></vxe-column>
|
|
|
- <vxe-column title="任务" field="name" >
|
|
|
+ <vxe-column title="任务" field="name" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.name}}
|
|
|
<el-button v-if="scope.row.back" type="warning" size="mini" @click="callback(scope.row)">撤销</el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
- <vxe-column title="实例标题" field="vars.title" > </vxe-column>
|
|
|
- <vxe-column title="流程名称" field="processDefinitionName" > </vxe-column>
|
|
|
- <vxe-column title="办理状态" field="status" >
|
|
|
+ <vxe-column title="实例标题" field="vars.title" align="center"> </vxe-column>
|
|
|
+ <vxe-column title="流程名称" field="processDefinitionName" align="center"> </vxe-column>
|
|
|
+ <vxe-column title="办理状态" field="status" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag :type="scope.row.level" effect="dark" size="small">{{scope.row.status}} </el-tag>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
- <vxe-column title="流程发起人" field="vars.userName" ></vxe-column>
|
|
|
- <vxe-column field="endTime" title="完成时间">
|
|
|
+ <vxe-column title="流程发起人" field="vars.userName" align="center"></vxe-column>
|
|
|
+ <vxe-column field="endTime" title="完成时间" align="center">
|
|
|
</vxe-column>
|
|
|
<vxe-column title="操作" width="100px" fixed="right" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" size="small" @click="detail(scope.row)">历史</el-button>
|
|
|
+ <div v-if="scope.row.belongProject === 'ccpm'">
|
|
|
+ <el-button type="text" size="small" @click="hisCcpm(scope.row)">ccpm历史</el-button>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <el-button type="text" size="small" @click="detail(scope.row)">历史</el-button>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
</vxe-table>
|
|
@@ -203,6 +208,7 @@
|
|
|
procInsId: row.processInstanceId,
|
|
|
procDefId: row.processDefinitionId
|
|
|
}).then(({data}) => {
|
|
|
+ console.log(data)
|
|
|
this.$router.push({
|
|
|
path: '/flowable/task/TaskFormDetail',
|
|
|
query: {readOnly: true, taskId: row.executionId, title: `${row.processDefinitionName}【${row.name}】`, formTitle: `${row.processDefinitionName}`, ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title', 'businessId')}
|
|
@@ -237,6 +243,30 @@
|
|
|
this.$nextTick(() => {
|
|
|
this.refreshList()
|
|
|
})
|
|
|
+ },
|
|
|
+ // 报销历史查看
|
|
|
+ hisCcpm (row) {
|
|
|
+ if (row.processDefKey === '13') {
|
|
|
+ let id = row.businessId
|
|
|
+ let title = '报销审批历史'
|
|
|
+ let formUrl = '/reimbursement/ReimbursementFormCcpm'
|
|
|
+ this.toCenterForm(id, title, formUrl, row.processDefKey) // 跳转
|
|
|
+ } else {
|
|
|
+ this.$message.warning('此流程的跨系统审核暂未开放,请前往所属系统进行审核')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ toCenterForm (id, title, formUrl, processDefKey) {
|
|
|
+ let backPath = '/sys/dashboard/workBench/PendingList'
|
|
|
+ this.$router.push({ // 跳转
|
|
|
+ path: '/flowable/task/CenterForm',
|
|
|
+ query: {
|
|
|
+ id: id,
|
|
|
+ backPath: backPath,
|
|
|
+ title: title,
|
|
|
+ formUrl: formUrl,
|
|
|
+ processDefKey: processDefKey
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|