refund.js 840 B

1234567891011121314151617181920212223242526272829303132333435
  1. import request from '@/utils/request'
  2. // api地址
  3. const api = {
  4. list: 'refund/list',
  5. goods: 'refund/goods',
  6. apply: 'refund/apply',
  7. detail: 'refund/detail',
  8. delivery: 'refund/delivery'
  9. }
  10. // 售后单列表
  11. export const list = (param, option) => {
  12. return request.get(api.list, param, option)
  13. }
  14. // 订单商品详情
  15. export const goods = (orderGoodsId, param) => {
  16. return request.get(api.goods, { orderGoodsId, ...param })
  17. }
  18. // 申请售后
  19. export const apply = (orderGoodsId, data) => {
  20. return request.post(api.apply, { orderGoodsId, form: data })
  21. }
  22. // 售后单详情
  23. export const detail = (orderRefundId, param) => {
  24. return request.get(api.detail, { orderRefundId, ...param })
  25. }
  26. // 用户发货
  27. export const delivery = (orderRefundId, data) => {
  28. return request.post(api.delivery, { orderRefundId, form: data })
  29. }