/*考勤打卡*/ /** * 考勤打卡 */ export const userCheck = (data) => { return uni.$u.http.post('/manage/check/userCheck', data, { header: { resDetail: true }, // 代表返回详情结果(包含响应头) }); }; /** * 获取打卡页信息 */ export const check = () => { return uni.$u.http.get('/manage/check', { header: { resDetail: true }, // 代表返回详情结果(包含响应头) }); }; /** * 日历排班数据 */ export const getCalendarData = (date) => { return uni.$u.http.get(`/manage/check/getCalendarData/${date}`); }; /** * 考勤规则 */ export const getCheckRule = () => { return uni.$u.http.get(`/manage/check/getCheckRule`); }; /** * 获取当前定位是否进入考勤范围 */ export const getLock = (data) => { return uni.$u.http.post(`/manage/check/getLock`, data); }; /** * 考勤统计结果(月度统计) */ export const getMonthCountResult = (date) => { return uni.$u.http.get(`/manage/check/getMonthCountResult/${date}`); }; /** * 日历统计---根据日期查询考勤统计信息 */ export const getStatistics = (date) => { return uni.$u.http.get(`/manage/check/getStatistics/${date}`); };