order.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. import request from '@/utils/request';
  2. /**
  3. * @description 获取商家订单列表
  4. * @param {*} data
  5. * @returns
  6. */
  7. export function getOrderListApi(data) {
  8. return request({
  9. url: '/maintain/order/merchantPaging',
  10. data: data,
  11. method: 'GET',
  12. headers: {
  13. 'Content-Type': 'application/x-www-form-urlencoded',
  14. },
  15. });
  16. }
  17. /**
  18. * @description 订单接口 - 商家端查询订单量以及今日收入
  19. * @returns
  20. */
  21. export function getOrderQuantityApi(id) {
  22. return request({
  23. url: `/maintain/order/getOrderQuantity/${id}`,
  24. method: 'GET',
  25. headers: {
  26. 'Content-Type': 'application/x-www-form-urlencoded',
  27. },
  28. });
  29. }
  30. /**
  31. * 预约接口 - 查询商家被预约列表
  32. * @param {*} data
  33. * @returns
  34. */
  35. export function getAppointListApi(data) {
  36. return request({
  37. url: `/maintain/listMerchantReservations`,
  38. method: 'post',
  39. data: data,
  40. headers: {
  41. 'Content-Type': 'application/json',
  42. },
  43. });
  44. }
  45. /**
  46. * 订单核验-商家端核销商品
  47. * @param {*}
  48. * @returns
  49. */
  50. export function getVerificationApi(orderId,merchantId) {
  51. return request({
  52. url: `/maintain/order/verification/${orderId}/${merchantId}`,
  53. method: 'get',
  54. headers: {
  55. 'Content-Type': 'application/x-www-form-urlencoded',
  56. },
  57. });
  58. }
  59. /**
  60. * 查询通知配置列表
  61. * @param {*}
  62. * @returns
  63. */
  64. export function getNoticeApi(data) {
  65. return request({
  66. url: "/maintain/notice/list",
  67. method: 'get',
  68. data,
  69. headers: {
  70. 'Content-Type': 'application/x-www-form-urlencoded',
  71. },
  72. });
  73. }
  74. /**
  75. * 商家预约列表
  76. * @param {*}
  77. * @returns
  78. */
  79. export function getMerchantListApi(data) {
  80. return request({
  81. url: "/maintain/reservation/getMerchantList",
  82. method: 'get',
  83. data,
  84. headers: {
  85. 'Content-Type': 'application/x-www-form-urlencoded',
  86. },
  87. });
  88. }