dealer.js 749 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // 引用网络请求中间件
  2. import request from '../utils/request.js';
  3. /**
  4. * 经销商查看
  5. */
  6. export function search(data) {
  7. return request({
  8. url: '/API/agency/searchById',
  9. method: 'post',
  10. data
  11. })
  12. }
  13. // 经销商详情
  14. export function detail(data) {
  15. return request({
  16. url: '/API/agency/detail',
  17. method: 'post',
  18. data
  19. })
  20. }
  21. // 进货数量
  22. export function purchase(data) {
  23. return request({
  24. url: '/API/agency/purchase',
  25. method: 'post',
  26. data
  27. })
  28. }
  29. // 产品信息
  30. export function product(data) {
  31. return request({
  32. url: '/API/agency/product',
  33. method: 'post',
  34. data
  35. })
  36. }
  37. // 商品筛选条件
  38. export function productSearch(data) {
  39. return request({
  40. url: '/API/agency/productSearch',
  41. method: 'post',
  42. data
  43. })
  44. }