index.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. export const refundAmount = data => {
  3. return https.get('/refund/refund-amount', data)
  4. }
  5. export const allRefund = data => {
  6. return https.get('/refund/all-refund', data)
  7. }
  8. //退款详情
  9. export const refundDetail = data => {
  10. return https.get('/refund/detail', data)
  11. }
  12. export const refundList = data => {
  13. return https.get('/refund/list', data)
  14. }
  15. /** 商城顾客售后申请列表(商家审核) */
  16. export const mallApplyList = data => {
  17. return https.get('/refund/mall-apply-list', data)
  18. }
  19. /** 商城顾客售后申请详情 */
  20. export const mallApplyDetail = data => {
  21. return https.get('/refund/mall-apply-detail', data)
  22. }
  23. /** 审核通过并执行退款 */
  24. export const mallApplyPass = data => {
  25. return https.post('/refund/mall-apply-pass', data)
  26. }
  27. /** 驳回申请 */
  28. export const mallApplyReject = data => {
  29. return https.post('/refund/mall-apply-reject', data)
  30. }
  31. /** 无原单退款(工作台「退款」:选客户+花材,不关联销售单) */
  32. export const createFreeRefund = data => {
  33. return https.post('/refund/create-free-refund', data)
  34. }
  35. /** 确认已线下原路退回(现金等人工确认 hasReturn=1) */
  36. export const markHasReturn = data => {
  37. return https.post('/refund/mark-has-return', data)
  38. }
  39. /** 不想线下转账:返充到客户余额(returnBalance=1) */
  40. export const returnBalance = data => {
  41. return https.post('/refund/return-balance', data)
  42. }