order.js 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request from '@/utils/request'
  2. // 查询订单信息列表
  3. export function getList(query) {
  4. return request({
  5. url: '/order/info/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 发起退款
  11. export function refundOrder(outTradeNo,params) {
  12. return request({
  13. url: `/order/info/refund/${outTradeNo}`,
  14. method: 'put',
  15. params
  16. })
  17. }
  18. // 查询驾校报表信息
  19. export function exportError(query) {
  20. return request({
  21. url: '/order/info/school/list',
  22. method: 'get',
  23. params: query
  24. })
  25. }
  26. // 新增错题
  27. export function addError(data) {
  28. return request({
  29. url: '/question/error',
  30. method: 'post',
  31. data: data
  32. })
  33. }
  34. // 修改错题
  35. export function updateError(data) {
  36. return request({
  37. url: '/question/error',
  38. method: 'put',
  39. data: data
  40. })
  41. }
  42. // 删除错题
  43. export function delError(id) {
  44. return request({
  45. url: '/question/error/' + id,
  46. method: 'delete'
  47. })
  48. }