diff --git a/src/api/workFlow/workFlow.js b/src/api/workFlow/workFlow.js index 02ed867..5ca7777 100644 --- a/src/api/workFlow/workFlow.js +++ b/src/api/workFlow/workFlow.js @@ -29,14 +29,6 @@ export const searchUserList = data => createAPI(`/workFlow/template/searchUserLi // 查询部门列表 - rqrq export const searchDepartmentList = data => createAPI(`/workFlow/template/searchDepartmentList`, 'post', data) -// ========== 审批任务相关API - rqrq ========== - -// 查询待办任务列表(所有任务) -export const searchPendingTaskList = data => createAPI(`/workFlow/task/allPendingList`, 'post', data) - -// 查询已办任务列表(所有任务) -export const searchCompletedTaskList = data => createAPI(`/workFlow/task/allCompletedList`, 'post', data) - // ========== 流程实例相关API - rqrq ========== // 查询流程实例列表 @@ -57,27 +49,5 @@ export const getFlowPreview = data => createAPI(`/workFlow/instance/flowPreview` // 重新审批流程实例 - rqrq export const restartFlowInstance = data => createAPI(`/workFlow/instance/restart`, 'post', data) -// 获取任务详情 -export const getTaskDetail = data => createAPI(`/workFlow/task/detail`, 'post', data) - -// 查询审批记录 -export const getApprovalHistory = data => createAPI(`/workFlow/task/history`, 'post', data) - -// 审批通过 -export const approveTask = data => createAPI(`/workFlow/task/approve`, 'post', data) - -// 审批驳回 -export const rejectTask = data => createAPI(`/workFlow/task/reject`, 'post', data) - -// 启动审批流程 -export const startFlow = data => createAPI(`/workFlow/task/startFlow`, 'post', data) - -// 获取待办任务数量 -export const getPendingTaskCount = data => createAPI(`/workFlow/task/pendingCount`, 'post', data) - -// 撤回审批 -export const withdrawTask = data => createAPI(`/workFlow/task/withdraw`, 'post', data) - - // 通过业务单号查询流程节点实例列表 export const getNodeInstanceList = data => createAPI(`/workFlow/instance/getNodeInstanceList`, 'post', data) diff --git a/src/views/modules/workFlow/flowInstanceList.vue b/src/views/modules/workFlow/flowInstanceList.vue index 5733083..6876402 100644 --- a/src/views/modules/workFlow/flowInstanceList.vue +++ b/src/views/modules/workFlow/flowInstanceList.vue @@ -103,14 +103,19 @@ {{ getNodeStatusText(scope.row.status) }} + + + @@ -176,6 +181,16 @@ + + + + + + + + + + @@ -299,6 +314,7 @@ export default { site: '', orderType: '', comment: '', + specialRelease: 'N', flowCode: '', flowVersion: null }, @@ -443,6 +459,7 @@ export default { site: this.currentInstance.site, orderType: this.currentInstance.orderType, comment: '', + specialRelease: 'N', flowCode: this.currentInstance.flowCode, flowVersion: this.currentInstance.flowVersion } @@ -461,7 +478,8 @@ export default { site: this.approveData.site, orderType: this.approveData.orderType, action: action, - comment: this.approveData.comment + comment: this.approveData.comment, + specialRelease: this.approveData.specialRelease }).then(({ data }) => { if (data && data.code === 0) { this.$message.success(action === 'APPROVED' ? '审批通过成功' : '驳回成功') diff --git a/src/views/modules/workFlow/flowTaskList.vue b/src/views/modules/workFlow/flowTaskList.vue deleted file mode 100644 index 7ff2fc9..0000000 --- a/src/views/modules/workFlow/flowTaskList.vue +++ /dev/null @@ -1,472 +0,0 @@ - - - - -