| | |
| | | shiftId?: number | null; |
| | | remark?: string; |
| | | } |
| | | |
| | | /** 按群体批量排班请求 */ |
| | | export interface BatchSaveReq { |
| | | /** 部门ID(含下级部门) */ |
| | | deptId: number; |
| | | /** 岗位ID,为空表示不限岗位 */ |
| | | postId?: number; |
| | | /** 员工状态:1-在职,2-试用,3-离职;为空表示在职及试用 */ |
| | | employeeStatus?: number; |
| | | /** 开始日期 yyyy-MM-dd */ |
| | | startDate: string; |
| | | /** 结束日期 yyyy-MM-dd */ |
| | | endDate: string; |
| | | /** 班次ID,为空表示休息(清除排班) */ |
| | | shiftId?: number | null; |
| | | /** none-不休息,single-周日休息,double-周六日休息 */ |
| | | restMode?: 'double' | 'none' | 'single'; |
| | | } |
| | | |
| | | /** 按群体批量排班结果 */ |
| | | export interface BatchSaveResp { |
| | | employeeCount?: number; |
| | | itemCount?: number; |
| | | } |
| | | } |
| | | |
| | | /** 查询某月排班列表 */ |
| | |
| | | export function saveEmployeeSchedule(data: HrmEmployeeScheduleApi.ScheduleItem[]) { |
| | | return requestClient.post('/hrm/employee-schedule/save', data); |
| | | } |
| | | |
| | | /** 按部门+岗位批量排班(一类人一次排完) */ |
| | | export function batchSaveEmployeeSchedule(data: HrmEmployeeScheduleApi.BatchSaveReq) { |
| | | return requestClient.post<HrmEmployeeScheduleApi.BatchSaveResp>( |
| | | '/hrm/employee-schedule/batch-save', |
| | | data, |
| | | ); |
| | | } |