gaoluyang
2026-06-24 712aa51536236d43e87273e4ce45ac5691dffad8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { requestClient } from '#/api/request';
 
export namespace MesCalCalendarApi {
  /** 排班日历班组排班项 */
  export interface CalendarTeamShiftItem {
    teamId?: number; // 班组编号
    teamName?: string; // 班组名称
    shiftId?: number; // 班次编号
    shiftName?: string; // 班次名称
    sort?: number; // 排序
  }
 
  /** 排班日历天 */
  export interface CalendarDay {
    day?: string; // 日期
    shiftType?: number; // 轮班方式
    teamShifts?: CalendarTeamShiftItem[]; // 班组班次
  }
}
 
/** 查询排班日历列表 */
export function getCalendarList(params: any) {
  return requestClient.get<MesCalCalendarApi.CalendarDay[]>(
    '/mes/cal/calendar/list',
    { params },
  );
}