From ec8ff4f6259404460a0b4437e29a40986c2c4b9d Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 12 十月 2026 18:31:43 +0800
Subject: [PATCH] feat(workflow): 集成自动化审批功能并优化多个业务模块

---
 src/views/hrm/attendance/exception/index.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/views/hrm/attendance/exception/index.vue b/src/views/hrm/attendance/exception/index.vue
index acd5d7a..23522fb 100644
--- a/src/views/hrm/attendance/exception/index.vue
+++ b/src/views/hrm/attendance/exception/index.vue
@@ -1,4 +1,5 @@
 <script lang="ts" setup>
+import { automaticApproval } from '#/store/audit-policy';
 import type { VxeTableGridOptions } from '#/adapter/vxe-table';
 import type { HrmAttendanceExceptionApi } from '#/api/hrm/attendance/exception';
 
@@ -48,10 +49,15 @@
 
 /** 鎻愪氦鑰冨嫟寮傚父鐢宠 */
 async function handleSubmit(row: HrmAttendanceExceptionApi.AttendanceException) {
-  const res = await getAttendanceExceptionApproveProcessList();
+  const res = automaticApproval.value ? [] : await getAttendanceExceptionApproveProcessList();
   processList.value = res;
   currentRow.value = row;
   selectedProcessKey.value = undefined;
+  if (automaticApproval.value) {
+    selectedProcessKey.value = 'hrm_attendance_exception';
+    await confirmSubmit();
+    return;
+  }
   submitModalVisible.value = true;
 }
 
@@ -64,7 +70,7 @@
   submitLoading.value = true;
   try {
     await submitAttendanceException(currentRow.value!.id!, selectedProcessKey.value);
-    message.success('鎻愪氦瀹℃壒鎴愬姛');
+    message.success(automaticApproval.value ? '宸叉彁浜ょ敓鏁�' : '鎻愪氦瀹℃壒鎴愬姛');
     submitModalVisible.value = false;
     handleRefresh();
   } finally {

--
Gitblit v1.9.3