| | |
| | | import type { PageParam, PageResult } from '#/packages/effects/request/src'; |
| | | |
| | | import { requestClient } from '#/api/request'; |
| | | import type { SystemStorageApi } from '#/api/system/storage'; |
| | | |
| | | export namespace HrmAttendanceExceptionApi { |
| | | /** 考勤异常申请 */ |
| | |
| | | exceptionType?: number; |
| | | exceptionTypeName?: string; |
| | | reason?: string; |
| | | fileUrl?: string; |
| | | blobIds?: number[]; |
| | | attachmentList?: SystemStorageApi.StorageBlob[]; |
| | | status?: number; |
| | | processInstanceId?: string; |
| | | remark?: string; |
| | | createTime?: string; |
| | | } |
| | | |
| | | /** 审批流程 */ |
| | | export interface ApproveProcess { |
| | | key: string; |
| | | name: string; |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** 提交考勤异常申请 */ |
| | | export function submitAttendanceException(id: number) { |
| | | return requestClient.post(`/hrm/attendance/exception/submit?id=${id}`); |
| | | export function submitAttendanceException(id: number, processDefinitionKey: string) { |
| | | return requestClient.post('/hrm/attendance/exception/submit', null, { |
| | | params: { id, processDefinitionKey }, |
| | | }); |
| | | } |
| | | |
| | | /** 获取考勤异常审批流程列表 */ |
| | | export function getAttendanceExceptionApproveProcessList() { |
| | | return requestClient.get<HrmAttendanceExceptionApi.ApproveProcess[]>( |
| | | '/hrm/attendance/exception/approve-process-list', |
| | | ); |
| | | } |