sellerChain.js 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { requestApi } from '../util/network'
  2. // 获取店铺门店列表
  3. export const getChainList =
  4. (data, params) =>
  5. requestApi(
  6. '/seller_chain/index',
  7. 'POST',
  8. Object.assign(data, params),
  9. 'seller'
  10. )
  11. // 获取店铺配送信息
  12. export const getChainInfo =
  13. (data) =>
  14. requestApi(
  15. '/seller_chain/info',
  16. 'POST',
  17. data,
  18. 'seller'
  19. )
  20. // 新增发票
  21. export const addChain =
  22. (data) =>
  23. requestApi(
  24. '/seller_chain/add',
  25. 'POST',
  26. data,
  27. 'seller'
  28. )
  29. // 编辑门店
  30. export const editChain =
  31. (data) =>
  32. requestApi(
  33. '/seller_chain/edit',
  34. 'POST',
  35. data,
  36. 'seller'
  37. )
  38. // 删除门店
  39. export const delChain =
  40. (data) =>
  41. requestApi(
  42. '/seller_chain/del',
  43. 'POST',
  44. data,
  45. 'seller'
  46. )