diff --git a/frontend/src/views/TaskHall.vue b/frontend/src/views/TaskHall.vue index 8f75620..f43614c 100644 --- a/frontend/src/views/TaskHall.vue +++ b/frontend/src/views/TaskHall.vue @@ -3302,6 +3302,13 @@ const handleCompleteTask = (task: TaskOrSubTask) => { // 审核通过(使用两级审核流程) const handleApproveTask = (task: Task) => { + // 如果是接单部门负责人审核,需要提供选择指派设计师的功能 + if (task.currentApproverRole === 'receiving_leader') { + handleApproveTwoLevelTask(task) + return + } + + // 需求部门负责人审核,直接通过即可 Modal.confirm({ title: '审核通过', content: `确认通过任务审核:${task.title}?`, @@ -3311,17 +3318,8 @@ const handleApproveTask = (task: Task) => { comment: '审核通过' } - // 根据当前审核角色调用不同的API - if (task.currentApproverRole === 'demand_leader') { - await taskApi.approveDemandLevel(task.id!, approvalData) - message.success('需求部门审核通过') - } else if (task.currentApproverRole === 'receiving_leader') { - await taskApi.approveReceivingLevel(task.id!, approvalData) - message.success('接单部门审核通过,任务已发布到大厅') - } else { - message.error('无法确定审核角色') - return - } + await taskApi.approveDemandLevel(task.id!, approvalData) + message.success('需求部门审核通过') loadReviewTasks() loadAllTabCounts()