index.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*考勤打卡*/
  2. /**
  3. * 考勤打卡
  4. */
  5. export const userCheck = (data) => {
  6. return uni.$u.http.post('/manage/check/userCheck', data, {
  7. header: { resDetail: true }, // 代表返回详情结果(包含响应头)
  8. });
  9. };
  10. /**
  11. * 获取打卡页信息
  12. */
  13. export const check = () => {
  14. return uni.$u.http.get('/manage/check', {
  15. header: { resDetail: true }, // 代表返回详情结果(包含响应头)
  16. });
  17. };
  18. /**
  19. * 日历排班数据
  20. */
  21. export const getCalendarData = (date) => {
  22. return uni.$u.http.get(`/manage/check/getCalendarData/${date}`);
  23. };
  24. /**
  25. * 考勤规则
  26. */
  27. export const getCheckRule = () => {
  28. return uni.$u.http.get(`/manage/check/getCheckRule`);
  29. };
  30. /**
  31. * 获取当前定位是否进入考勤范围
  32. */
  33. export const getLock = (data) => {
  34. return uni.$u.http.post(`/manage/check/getLock`, data);
  35. };
  36. /**
  37. * 考勤统计结果(月度统计)
  38. */
  39. export const getMonthCountResult = (date) => {
  40. return uni.$u.http.get(`/manage/check/getMonthCountResult/${date}`);
  41. };
  42. /**
  43. * 日历统计---根据日期查询考勤统计信息
  44. */
  45. export const getStatistics = (date) => {
  46. return uni.$u.http.get(`/manage/check/getStatistics/${date}`);
  47. };