custome.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * 审批模块(客户)
  3. */
  4. import {httpGet,httpPost} from "@/utils/request.js"
  5. /**
  6. * 客户搜索
  7. * @param {string} Keyword 搜索值
  8. */
  9. export const apiCustomeSearch=params=>{
  10. return httpGet('/approval/company_list',params)
  11. }
  12. /**
  13. * 客户审批列表
  14. * @param {int} PageSize 每页数据条数
  15. * @param {int} CurrentIndex 当前页页码,从1开始
  16. * @param {string} Status 状态:’全部(传空串)’,’待审批’,’已审批’,’驳回’,’已撤回’
  17. * @param {string} Keyword 搜索关键词
  18. */
  19. export const apiCustomeList=params=>{
  20. return httpGet('/approval/list',{...params,PageSize:20})
  21. }
  22. /**
  23. * 客户审批详情
  24. * @param {int} ApprovalId 审批单id
  25. */
  26. export const apiCustomeDetail=params=>{
  27. return httpGet('/approval/detail',params)
  28. }
  29. /**
  30. * 合同详情
  31. * @param {int} CompanyId 客户ID
  32. * @param {int} CompanyContractId 合同id
  33. */
  34. export const apiCustomeContractDetail=params=>{
  35. return httpGet('/company_contract/detail',params)
  36. }
  37. /**
  38. * 同意/拒绝审批
  39. * @param {int} CompanyApprovalId 审批单id
  40. * @param {int} CompanyContractId 合同id
  41. * @param {int} CompanyId 客户id
  42. * @param {string} Remark 审批理由
  43. * @param {int} Status 审批状态,1:通过,2:拒绝
  44. */
  45. export const apiCustomeApprove=params=>{
  46. return httpPost('/approval/approve',params)
  47. }