overseasCustom.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /**
  2. * 海外客户管理
  3. */
  4. import http from "@/api/http.js"
  5. export const overseasCustomInterence = {
  6. /**
  7. * 获取已保存的销售
  8. * @param {*} params
  9. */
  10. getSavedSalesList:(params)=>{
  11. return http.get('/overseas_custom/sale/list',params)
  12. },
  13. /**
  14. * 保存已选择的销售
  15. * @param {Object} params
  16. * @param {Number[]} params.AddSellerIdArr 新增销售id
  17. * @param {Number[]} params.DelSellerIdArr 删除销售id
  18. * @returns
  19. */
  20. saveSelectedSales:(params)=>{
  21. return http.post('/overseas_custom/sale/save',params)
  22. },
  23. /**
  24. * 获取海外客户统计数据
  25. * @param {*} params
  26. * @returns
  27. */
  28. getCustomStatus:(params)=>{
  29. return http.get('/overseas_custom/custom/statistics',params)
  30. },
  31. /**
  32. * 获取海外客户列表数据
  33. * @param {Object} params
  34. * @param {String} params.CompanyStatus 客户状态:全部,正式,试用,关闭
  35. * @param {String} params.SellerId 销售id ,拼接
  36. * @param {Number} params.CustomType 客户类型:1 海外客户 2 隐藏的客户
  37. * @param {String} params.SortField 排序字段:ViewTotal,RoadShowTotal,CreateTime
  38. * @param {Number} params.SortDesc 排序类型:1 降序(默认) 2 升序
  39. * @param {String} params.Keywords
  40. * @param {Number} params.CurrentIndex
  41. * @param {Number} params.PageSize
  42. * @returns
  43. */
  44. getCustomList:(params)=>{
  45. return http.get('/overseas_custom/custom/list',params)
  46. },
  47. /**
  48. * 设置客户试用子标签
  49. * @param {Object} params
  50. * @param {Number} params.CompanyId 客户id
  51. * @param {Number} params.OverseasLabel 海外客户试用子标签:1未分类、2 推进、3 跟踪、4 预备
  52. * @returns
  53. */
  54. setCustomTryStatus:(params)=>{
  55. return http.post('/overseas_custom/custom/overseas_label_set',params)
  56. },
  57. /**
  58. * 设置客户隐藏/取消隐藏
  59. * @param {Object} params
  60. * @param {Number} params.CompanyId
  61. * @returns
  62. */
  63. setCustomHide:(params)=>{
  64. return http.post('/overseas_custom/custom/hide',params)
  65. },
  66. /**
  67. * 设置客户状态为正式/重置
  68. * @param {Object} params
  69. * @param {Number} params.CompanyId
  70. * @returns
  71. */
  72. setCustomStatus:(params)=>{
  73. return http.post('/overseas_custom/custom/status_set',params)
  74. },
  75. /**
  76. * 获取客户统计信息
  77. * @param {Object} params
  78. * @param {String} params.Keywords
  79. * @param {String} params.SellerId
  80. * @param {Number} params.CustomType
  81. * @returns
  82. */
  83. getStatisticData:(params)=>{
  84. return http.get('/overseas_custom/custom/statistics',params)
  85. },
  86. /**
  87. * 获取客户试用统计信息
  88. * @param {Object} params
  89. * @param {String} params.Keywords
  90. * @param {String} params.SellerId
  91. * @param {Number} params.CustomType
  92. * @returns
  93. */
  94. overseasCustomInterence:(params)=>{
  95. return http.get('/overseas_custom/custom/label/statistics',params)
  96. }
  97. }