memberReturn.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import { requestApi } from '../util/network'
  2. // 获取退货列表
  3. export const getReturnList =
  4. (params) =>
  5. requestApi(
  6. '/Memberreturn/get_return_list',
  7. 'POST',
  8. {
  9. page: params.page,
  10. per_page: params.per_page
  11. },
  12. 'member'
  13. )
  14. // 获取单个退货信息
  15. export const getReturnInfo =
  16. (returnId) =>
  17. requestApi(
  18. '/Memberreturn/get_return_info',
  19. 'POST',
  20. {
  21. return_id: returnId
  22. },
  23. 'member'
  24. )
  25. // 获取物流公司
  26. export const getExpress =
  27. () =>
  28. requestApi(
  29. '/Memberreturn/get_express',
  30. 'POST',
  31. {
  32. },
  33. 'member'
  34. )
  35. // 退货
  36. export const sendReturn =
  37. (returnId, expressId, invoiceNo) =>
  38. requestApi(
  39. '/Memberreturn/ship_post',
  40. 'POST',
  41. {
  42. return_id: returnId,
  43. express_id: expressId,
  44. invoice_no: invoiceNo
  45. },
  46. 'member'
  47. )
  48. // 延迟
  49. export const delayReturn =
  50. (returnId) =>
  51. requestApi(
  52. '/Memberreturn/delay_post',
  53. 'POST',
  54. {
  55. return_id: returnId
  56. },
  57. 'member'
  58. )