sellerRefund.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { requestApi } from '../util/network'
  2. // 获取退款列表
  3. export const getRefundList =
  4. (params, refundType) =>
  5. requestApi(
  6. '/Sellerrefund/refund_list',
  7. 'POST',
  8. {
  9. page: params.page,
  10. per_page: params.per_page,
  11. refund_type: refundType
  12. },
  13. 'seller'
  14. )
  15. // 获取单个退款信息
  16. export const getRefundInfo =
  17. (refundId) =>
  18. requestApi(
  19. '/Sellerrefund/get_refund_info',
  20. 'POST',
  21. {
  22. refund_id: refundId
  23. },
  24. 'seller'
  25. )
  26. // 编辑退款
  27. export const editRefund =
  28. (refundId, returnType, sellerMessage, fsellerState) =>
  29. requestApi(
  30. '/Sellerrefund/edit',
  31. 'POST',
  32. {
  33. refund_id: refundId,
  34. return_type: returnType,
  35. seller_message: sellerMessage,
  36. seller_state: fsellerState
  37. },
  38. 'seller'
  39. )
  40. // 收货
  41. export const receiveRefund =
  42. (refundId, returnType) =>
  43. requestApi(
  44. '/Sellerrefund/receive',
  45. 'POST',
  46. {
  47. return_id: refundId,
  48. return_type: returnType
  49. },
  50. 'seller'
  51. )
  52. // 物流跟踪
  53. export const getRefundDeliver =
  54. (refundId) =>
  55. requestApi(
  56. '/Sellerrefund/search_deliver',
  57. 'POST',
  58. {
  59. 'refund_id': refundId
  60. },
  61. 'seller'
  62. )