memberVrRefund.js 961 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { requestApi } from '../util/network'
  2. // 获取退款列表
  3. export const getVrRefundList =
  4. (params) =>
  5. requestApi(
  6. '/Membervrrefund/index',
  7. 'POST',
  8. {
  9. page: params.page,
  10. per_page: params.per_page
  11. },
  12. 'member'
  13. )
  14. // 获取单个退款信息
  15. export const getVrRefundInfo =
  16. (refundId) =>
  17. requestApi(
  18. '/Membervrrefund/view',
  19. 'POST',
  20. {
  21. refund_id: refundId
  22. },
  23. 'member'
  24. )
  25. // 新增部分退款
  26. export const addVrRefund =
  27. (orderId, recId, buyerMessage) =>
  28. requestApi(
  29. '/Membervrrefund/add_refund',
  30. 'POST',
  31. {
  32. rec_id: recId,
  33. order_id: orderId,
  34. buyer_message: buyerMessage,
  35. },
  36. 'member'
  37. )
  38. // 获取公共信息
  39. export const getCommonData =
  40. (orderId, recId) =>
  41. requestApi(
  42. '/Membervrrefund/refund_form',
  43. 'POST',
  44. {
  45. order_id: orderId,
  46. },
  47. 'member'
  48. )