index.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import {
  2. httpGet,
  3. httpPost
  4. } from "@/utils/request.js"
  5. // 新增申请
  6. export const apiAddApply=params=>{
  7. return httpPost('/business_trip/apply/add',params)
  8. }
  9. //申请列表
  10. export const apiApplyList=params=>{
  11. return httpGet('/business_trip/apply/list',params)
  12. }
  13. //出差详情
  14. export const apiBusinessTripDetail=params=>{
  15. return httpGet('/business_trip/apply/detail',params)
  16. }
  17. //出差申请撤回
  18. export const apiBusinessTripRecall=params=>{
  19. return httpPost('/business_trip/apply/back',params)
  20. }
  21. //出差重新申请
  22. export const apiEditApply=params=>{
  23. return httpPost('/business_trip/apply/edit',params)
  24. }
  25. //出差审批单审批
  26. export const apiBusinessApplyApprove=params=>{
  27. return httpPost('/business_trip/apply/approve',params)
  28. }
  29. //审批列表
  30. export const apiApproveList=params=>{
  31. return httpGet('/business_trip/approve/list',params)
  32. }
  33. // 删除审批单
  34. export const apiDelApply=params=>{
  35. return httpPost('/business_trip/apply/delete',params)
  36. }
  37. //关闭审批
  38. export const apiCloseApply=params=>{
  39. return httpPost('/business_trip/apply/close',params)
  40. }