index.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import $http from '../index'
  2. /**
  3. * 请假
  4. */
  5. // 我的请假列表
  6. export const Leave_User_list = (params: any) => $http.post('api/ams/Leave/User_list', params)
  7. // 请假类型
  8. export const LeaveType_List = (params: any) => $http.post('api/ams/LeaveType/List', params)
  9. // 请假审批
  10. export const Leave_List = (params: any) => $http.post('api/ams/Leave/List', params)
  11. // 请假申请
  12. export const Leave_Add = (params: any) => $http.post('api/ams/Leave/Add', params)
  13. // 扣除-财务权限
  14. export const Leave_Deduct = (params: any) => $http.post('api/ams/Leave/Deduct', params)
  15. // 编辑
  16. export const Leave_Edit = (params: any) => $http.post('api/ams/Leave/Edit', params)
  17. // 审批
  18. export const Leave_Approval = (params: any) => $http.post('api/ams/Leave/Approval', params)
  19. // 删除
  20. export const Leave_Del = (params: any) => $http.post('api/ams/Leave/Del', params)
  21. // 请假剩余时长
  22. export const Leave_DaysOff = (params: any) => $http.post('/api/ams/Leave/DaysOff', params)
  23. /**
  24. * 加班
  25. */
  26. // 审批列表
  27. export const Overtime_List = (params: any) => $http.post('api/ams/Overtime/List', params)
  28. // 我的加班列表
  29. export const Overtime_User_list = (params: any) => $http.post('/api/ams/Overtime/User_list', params)
  30. // 加班申请
  31. export const Overtime_Add = (params: any) => $http.post('api/ams/Overtime/Add', params)
  32. // 编辑
  33. export const Overtime_Edit = (params: any) => $http.post('api/ams/Overtime/Edit', params)
  34. // 审批
  35. export const Overtime_Approval = (params: any) => $http.post('api/ams/Overtime/Approval', params)
  36. // 删除
  37. export const Overtime_Del = (params: any) => $http.post('api/ams/Overtime/Del', params)
  38. // 统计
  39. export const Overtime_Stat = (params: any) => $http.post('/api/ams/Overtime/Stat', params)