potential.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import request from '@/api'
  2. import qs from 'qs'
  3. // 潜在客户/竞争对手接口
  4. export function getCorList (data) {
  5. return request({
  6. url: '/potential/corList',
  7. method: 'post',
  8. data
  9. })
  10. }
  11. // 潜在客户/竞争对手接口--首页
  12. export function getIndexCorList (data) {
  13. return request({
  14. url: '/potential/index',
  15. method: 'post',
  16. data
  17. })
  18. }
  19. export function setRemoveEnt (data) {
  20. data = qs.stringify(data)
  21. return request({
  22. url: '/potential/rMyRivals',
  23. method: 'POST',
  24. data
  25. })
  26. }
  27. export function setRemoveCustomer (data) {
  28. // data = qs.stringify(data)
  29. return request({
  30. baseURL: '/publicapply',
  31. url: '/customer/exclude',
  32. method: 'POST',
  33. data
  34. })
  35. }
  36. export function getUsage (data) {
  37. data = qs.stringify(data)
  38. return request({
  39. url: '/portrait/subVipPortrait/usage',
  40. method: 'POST',
  41. data
  42. })
  43. }
  44. export function setLogs (data) {
  45. // data = qs.stringify(data)
  46. return request({
  47. url: '/drainage/buyerunit',
  48. baseURL: '/publicapply',
  49. method: 'POST',
  50. data
  51. })
  52. }
  53. export function followClientList (data) {
  54. data = qs.stringify(data)
  55. return request({
  56. url: '/customer/list',
  57. baseURL: '/publicapply',
  58. method: 'POST',
  59. data
  60. })
  61. }
  62. // 是否认领企业
  63. export function claimchecked (data) {
  64. return request({
  65. baseURL: '/entnicheNew',
  66. url: '/customer/claimcheck',
  67. method: 'POST',
  68. data
  69. })
  70. }
  71. // 添加认领
  72. export function custAttention (data) {
  73. return request({
  74. baseURL: '/entnicheNew',
  75. url: '/customer/attention',
  76. method: 'POST',
  77. data
  78. })
  79. }