customerMage.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. import request from '@/utils/request'
  2. // ******客户管理******
  3. // 客户管理查询
  4. export function customerMageGetAll(data) {
  5. return request({
  6. url: '/buyer/getAll',
  7. method: 'post',
  8. data
  9. })
  10. }
  11. // 标签查询
  12. export function getLabels(data) {
  13. return request({
  14. url: '/buyer/getLabels',
  15. method: 'post',
  16. data
  17. })
  18. }
  19. // 贴标签
  20. export function customerSaveUserLabel(data) {
  21. return request({
  22. url: '/buyer/saveUserLabel',
  23. method: 'post',
  24. data
  25. })
  26. }
  27. // 加入或取消黑名单
  28. export function customerBlacklist(data) {
  29. return request({
  30. url: '/buyer/blacklist',
  31. method: 'post',
  32. data
  33. })
  34. }
  35. // 更新积分
  36. export function updateBuyerCredit(data) {
  37. return request({
  38. url: '/buyer/updateCredit',
  39. method: 'post',
  40. data
  41. })
  42. }
  43. // 更新积分
  44. export function exportBuyerUser(data) {
  45. return request({
  46. url: '/buyer/export',
  47. method: 'post',
  48. data,
  49. responseType: 'blob'
  50. })
  51. }
  52. // 客户详情查询
  53. export function customerMageGetById(data) {
  54. return request({
  55. url: '/buyer/getById',
  56. method: 'post',
  57. data
  58. })
  59. }
  60. // 导出标签
  61. export const excel_platform_label = (data = {}) => request({
  62. url: 'label/excel_platform_label',
  63. method: 'post',
  64. data,
  65. responseType: 'blob'
  66. })
  67. // ******标签管理******
  68. // 标签管理查询
  69. export function tipsGetAll(data) {
  70. return request({
  71. url: '/label/getAll',
  72. method: 'post',
  73. data
  74. })
  75. }
  76. // 添加标签
  77. export function tipsAdd(data) {
  78. return request({
  79. url: '/label/save',
  80. method: 'post',
  81. data
  82. })
  83. }
  84. // 修改标签
  85. export function tipsUpdate(data) {
  86. return request({
  87. url: '/label/update',
  88. method: 'post',
  89. data
  90. })
  91. }
  92. // 删除标签
  93. export function tipsDelete(data) {
  94. return request({
  95. url: '/label/delete',
  96. method: 'post',
  97. data
  98. })
  99. }
  100. // 标签编辑查询
  101. export function tipsGetById(data) {
  102. return request({
  103. url: '/label/getById',
  104. method: 'post',
  105. data
  106. })
  107. }
  108. // 指定关系
  109. export function appointRelationship(data){
  110. return request({
  111. url:"/buyer/appoint",
  112. method:"post",
  113. data
  114. })
  115. }
  116. // 指定用户关系 团长 合伙人等
  117. export function appointUserRelationship(data){
  118. return request({
  119. url:"/shopApi/syncShop",
  120. method:"post",
  121. data
  122. })
  123. }