From 91eff4781fa4142d1f62d30a0fa1de5cae424eaf Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期三, 16 九月 2026 18:23:12 +0800
Subject: [PATCH] refactor: 单据审核改为审批配置状态机(前端统一审核弹窗)

---
 src/api/hrm/attendance/exception/index.ts |   50 +++++++++++++++++++++++++++++++++++---------------
 1 files changed, 35 insertions(+), 15 deletions(-)

diff --git a/src/api/hrm/attendance/exception/index.ts b/src/api/hrm/attendance/exception/index.ts
index 1adeb2a..1efb375 100644
--- a/src/api/hrm/attendance/exception/index.ts
+++ b/src/api/hrm/attendance/exception/index.ts
@@ -17,15 +17,14 @@
     blobIds?: number[];
     attachmentList?: SystemStorageApi.StorageBlob[];
     status?: number;
-    processInstanceId?: string;
+    exceptionDate?: string;
+    // 浠ヤ笅涓哄鏍告淳鐢熷瓧娈碉紝鐢卞悗绔湪瀹℃牳鏃跺啓鍏ワ紝鍓嶇鍙灞曠ず
+    reviewerId?: number; // 瀹℃牳浜篒D锛堝疄闄呮墽琛屽鏍哥殑鐢ㄦ埛锛�
+    reviewerName?: string; // 瀹℃牳浜哄鍚�
+    reviewTime?: string; // 瀹℃牳鏃堕棿
+    reviewRemark?: string; // 瀹℃牳鎰忚锛堝鏍搁�氳繃鏃剁殑鎰忚 / 瀹℃牳涓嶉�氳繃鏃剁殑鍘熷洜锛�
     remark?: string;
     createTime?: string;
-  }
-
-  /** 瀹℃壒娴佺▼ */
-  export interface ApproveProcess {
-    key: string;
-    name: string;
   }
 }
 
@@ -51,16 +50,37 @@
   return requestClient.post('/hrm/attendance/exception/create', data);
 }
 
-/** 鎻愪氦鑰冨嫟寮傚父鐢宠 */
-export function submitAttendanceException(id: number, processDefinitionKey: string) {
-  return requestClient.post('/hrm/attendance/exception/submit', null, {
-    params: { id, processDefinitionKey },
+/**
+ * 鎻愪氦鑰冨嫟寮傚父鐢宠瀹℃壒锛堣崏绋� / 瀹℃牳涓嶉�氳繃 鈫� 瀹℃壒涓級
+ *
+ * 瀹℃壒浜虹敱銆岀郴缁熺鐞� - 瀹℃壒閰嶇疆銆嶆寜涓氬姟绫诲瀷锛坔rm_attendance_approve锛夌粺涓�閰嶇疆锛屾彁浜ゆ椂鏃犻渶鎸囧畾銆�
+ */
+export function submitAttendanceException(id: number) {
+  return requestClient.put('/hrm/attendance/exception/submit', null, {
+    params: { id },
   });
 }
 
-/** 鑾峰彇鑰冨嫟寮傚父瀹℃壒娴佺▼鍒楄〃 */
-export function getAttendanceExceptionApproveProcessList() {
-  return requestClient.get<HrmAttendanceExceptionApi.ApproveProcess[]>(
-    '/hrm/attendance/exception/approve-process-list',
+/** 鑾峰緱鑰冨嫟寮傚父鐢宠鐨勫鎵逛汉缂栧彿闆嗗悎锛屼緵鍒楄〃椤靛垽鏂槸鍚﹀睍绀哄鏍告寜閽� */
+export function getAttendanceExceptionApproverIds() {
+  return requestClient.get<number[]>(
+    '/hrm/attendance/exception/approver-ids',
   );
+}
+
+/**
+ * 瀹℃牳鑰冨嫟寮傚父鐢宠锛堝鎵逛腑 鈫� 瀹℃牳閫氳繃 / 瀹℃牳涓嶉�氳繃锛�
+ *
+ * 浠呭鎵归厤缃腑鐨勫鎵逛汉鍙皟鐢紙澶氫汉鏃舵垨绛撅級锛沺ass=false 鏃� reviewRemark锛堜笉閫氳繃鍘熷洜锛夊繀濉��
+ */
+export function auditAttendanceException(
+  id: number,
+  pass: boolean,
+  reviewRemark?: string,
+) {
+  return requestClient.put('/hrm/attendance/exception/audit', {
+    id,
+    pass,
+    reviewRemark,
+  });
 }
\ No newline at end of file

--
Gitblit v1.9.3