store.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // 门店相关接口
  2. import request from '@/utils/request';
  3. // 获取经销商分类
  4. export function listChainsByCategory(query) {
  5. return request({
  6. url: 'mobile/store/listChainsByCategory',
  7. method: 'get',
  8. params: query,
  9. });
  10. }
  11. // 门店~扩展经销商(经销商人员)
  12. export function addStoreChainContact(data) {
  13. return request({
  14. url: 'mobile/store/addStoreChainContact',
  15. method: 'post',
  16. data,
  17. });
  18. }
  19. // 新增门店前校验门店是否重复接口
  20. export function checkStoreBeforeAdd(data) {
  21. return request({
  22. url: 'mobile/store/checkStoreBeforeAdd',
  23. method: 'post',
  24. data,
  25. });
  26. }
  27. // 获取潜在客户类型接口
  28. export function qzStoreCategory(query) {
  29. return request({
  30. url: 'mobile/store/qzStoreCategory',
  31. method: 'get',
  32. params: query,
  33. });
  34. }
  35. // 获取下级销售部接口
  36. export function getChildDeptList(query) {
  37. return request({
  38. url: 'mobile/store/getChildDeptList',
  39. method: 'get',
  40. params: query,
  41. });
  42. }
  43. // 新增潜在客户接口
  44. export function addQzStore(data) {
  45. return request({
  46. url: 'mobile/store/addQzStore',
  47. method: 'post',
  48. data,
  49. });
  50. }
  51. // 修改潜在客户接口
  52. export function updateQzStore(data) {
  53. return request({
  54. url: 'mobile/store/updateQzStore',
  55. method: 'post',
  56. data,
  57. });
  58. }