From 749cb2f4ad815c5a68c19fe961d5ca2149a84dd4 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期四, 17 九月 2026 11:28:54 +0800
Subject: [PATCH] feat(mes): 新增员工排班明细页面,修复计划排程菜单404
---
src/api/hrm/attendance/exception/index.ts | 45 +++++++++++++++++++++++++++++++++++++++++----
1 files changed, 41 insertions(+), 4 deletions(-)
diff --git a/src/api/hrm/attendance/exception/index.ts b/src/api/hrm/attendance/exception/index.ts
index 5bb1014..1efb375 100644
--- a/src/api/hrm/attendance/exception/index.ts
+++ b/src/api/hrm/attendance/exception/index.ts
@@ -1,6 +1,7 @@
import type { PageParam, PageResult } from '#/packages/effects/request/src';
import { requestClient } from '#/api/request';
+import type { SystemStorageApi } from '#/api/system/storage';
export namespace HrmAttendanceExceptionApi {
/** 鑰冨嫟寮傚父鐢宠 */
@@ -13,9 +14,15 @@
exceptionType?: number;
exceptionTypeName?: string;
reason?: string;
- fileUrl?: string;
+ blobIds?: number[];
+ attachmentList?: SystemStorageApi.StorageBlob[];
status?: number;
- processInstanceId?: string;
+ exceptionDate?: string;
+ // 浠ヤ笅涓哄鏍告淳鐢熷瓧娈碉紝鐢卞悗绔湪瀹℃牳鏃跺啓鍏ワ紝鍓嶇鍙灞曠ず
+ reviewerId?: number; // 瀹℃牳浜篒D锛堝疄闄呮墽琛屽鏍哥殑鐢ㄦ埛锛�
+ reviewerName?: string; // 瀹℃牳浜哄鍚�
+ reviewTime?: string; // 瀹℃牳鏃堕棿
+ reviewRemark?: string; // 瀹℃牳鎰忚锛堝鏍搁�氳繃鏃剁殑鎰忚 / 瀹℃牳涓嶉�氳繃鏃剁殑鍘熷洜锛�
remark?: string;
createTime?: string;
}
@@ -43,7 +50,37 @@
return requestClient.post('/hrm/attendance/exception/create', data);
}
-/** 鎻愪氦鑰冨嫟寮傚父鐢宠 */
+/**
+ * 鎻愪氦鑰冨嫟寮傚父鐢宠瀹℃壒锛堣崏绋� / 瀹℃牳涓嶉�氳繃 鈫� 瀹℃壒涓級
+ *
+ * 瀹℃壒浜虹敱銆岀郴缁熺鐞� - 瀹℃壒閰嶇疆銆嶆寜涓氬姟绫诲瀷锛坔rm_attendance_approve锛夌粺涓�閰嶇疆锛屾彁浜ゆ椂鏃犻渶鎸囧畾銆�
+ */
export function submitAttendanceException(id: number) {
- return requestClient.post(`/hrm/attendance/exception/submit?id=${id}`);
+ return requestClient.put('/hrm/attendance/exception/submit', null, {
+ params: { id },
+ });
+}
+
+/** 鑾峰緱鑰冨嫟寮傚父鐢宠鐨勫鎵逛汉缂栧彿闆嗗悎锛屼緵鍒楄〃椤靛垽鏂槸鍚﹀睍绀哄鏍告寜閽� */
+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