index.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import { get } from 'store';
  2. import { getRequest, postRequest } from '/src/lib/axios';
  3. export const clientManageApi = {
  4. /**
  5. * 查询委托方表头数据 @author wzs
  6. */
  7. getWTHeaderList: (customerId) => {
  8. return getRequest(`/delegent/customer/header?customerId=${customerId}`);
  9. },
  10. /**
  11. * 查询项目信息管理表头数据 @author wzs
  12. */
  13. getXMHeaderList: (projectId) => {
  14. return getRequest(`/project/detail/show?projectId=${projectId}`);
  15. },
  16. /**
  17. * 查询客户信息 @author wzs
  18. * @param {string} customerId 客户id
  19. * @returns {Promise} 客户信息
  20. */
  21. getCustomerInfo: (customerId) => {
  22. return getRequest(`/delegent/customer/main?customerId=${customerId}`);
  23. },
  24. // 上传附件
  25. uploadDocument: (params) => {
  26. return postRequest(`social/upload`,params);
  27. },
  28. // 释放公海
  29. releaseSeas: (projectId) => {
  30. return getRequest(`/social/release?projectId=${projectId}`);
  31. },
  32. // 开标结果登记
  33. openBid: (params) => {
  34. return postRequest(`/social/project/biding/result`,params);
  35. },
  36. // 委托方管理列表头部卡片
  37. customerCardInfo: () => {
  38. return getRequest(`/delegent/customer/list`);
  39. },
  40. // 项目首介记录
  41. interventionsList: () => {
  42. return postRequest(`/social/project/interventions`);
  43. },
  44. // 项目列表
  45. interventionsList: (params) => {
  46. return postRequest(`/project/list`,params);
  47. },
  48. // 查询投标阶段状态
  49. getBidStages: (projectId) => {
  50. return getRequest(`/social/project/bid/stages?projectId=${projectId}`);
  51. },
  52. };