index.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. * 加班
  23. */
  24. // 审批列表
  25. export const Overtime_List = (params: any) => $http.post('api/ams/Overtime/List', params)
  26. // 我的加班列表
  27. export const Overtime_User_list = (params: any) => $http.post('api/ams/Overtime/User_list', params)
  28. // 加班申请
  29. export const Overtime_Add = (params: any) => $http.post('api/ams/Overtime/Add', params)
  30. // 编辑
  31. export const Overtime_Edit = (params: any) => $http.post('api/ams/Overtime/Edit', params)
  32. // 审批
  33. export const Overtime_Approval = (params: any) => $http.post('api/ams/Overtime/Approval', params)
  34. // 删除
  35. export const Overtime_Del = (params: any) => $http.post('api/ams/Overtime/Del', params)
  36. // 统计
  37. export const Overtime_Stat = (params: any) => $http.post('api/ams/Overtime/Stat', params)