hsy
5 天以前 fee2f2532144fca6c81b1523aeef54165c5263b2
src/api/hrm/attendance/record/index.ts
@@ -10,6 +10,7 @@
    userName?: string;
    deptId?: number;
    deptName?: string;
    phone?: string;
    date?: string;
    clockInTime?: string;
    clockOutTime?: string;
@@ -77,4 +78,22 @@
/** 导出考勤记录 */
export function exportAttendanceRecord(params: any) {
  return requestClient.download('/hrm/attendance/record/export-excel', { params });
}
/** 上班打卡 */
export function clockIn(params: { location: string }) {
  return requestClient.post<HrmAttendanceRecordApi.AttendanceRecord>(
    '/hrm/attendance/record/clock-in',
    null,
    { params },
  );
}
/** 下班打卡 */
export function clockOut(params: { location: string }) {
  return requestClient.post<HrmAttendanceRecordApi.AttendanceRecord>(
    '/hrm/attendance/record/clock-out',
    null,
    { params },
  );
}