order.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. import request from '@/utils/request'
  2. //商户订单查询
  3. export function page(data) {
  4. return request({
  5. url: '/merc/mini/orders/page',
  6. method: 'post',
  7. data: data
  8. })
  9. }
  10. //订单详情
  11. export function byId(data) {
  12. return request({
  13. url: '/order/order-merc-mini/byId',
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. //退款列表
  19. export function refundList(data) {
  20. return request({
  21. url: '/order/order-refund-merc-mini/page',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. //订单列表
  27. export function orderPage(data) {
  28. return request({
  29. url: '/order/orders/mini/page',
  30. method: 'post',
  31. data: data
  32. })
  33. }
  34. //订单列表-统计
  35. export function orderPageCount(data) {
  36. return request({
  37. url: '/device/merc-mini/device/order/count',
  38. method: 'post',
  39. data: data
  40. })
  41. }
  42. //退款处理
  43. export function hendel(data) {
  44. return request({
  45. url: '/order/order-refund-merc-mini/hendel',
  46. method: 'post',
  47. data: data
  48. })
  49. }
  50. //退款情况
  51. export function refundDetail(data) {
  52. return request({
  53. url: '/order/order-refund-merc-mini/detail',
  54. method: 'post',
  55. data: data
  56. })
  57. }
  58. //订单日志
  59. export function orderLogs(data) {
  60. return request({
  61. url: '/order/activity-info-og/list',
  62. method: 'post',
  63. data: data
  64. })
  65. }
  66. //拉黑
  67. export function setBlacklist(data) {
  68. return request({
  69. url: '/merc/mini/member/setBlacklist',
  70. method: 'post',
  71. data: data
  72. })
  73. }
  74. //拉黑解除
  75. export function removeBlackList(data) {
  76. return request({
  77. url: '/merc/mini/member/blackListRemove ',
  78. method: 'post',
  79. data: data
  80. })
  81. }
  82. //订单用户信息
  83. export function userInfo(data) {
  84. return request({
  85. url: '/merc/mini/member/obj',
  86. method: 'post',
  87. data: data
  88. })
  89. }
  90. //首页角标
  91. export function tipsCount(data) {
  92. return request({
  93. url: '/order/order-merc-homepage-mini/tipsCount',
  94. method: 'post',
  95. data: data
  96. })
  97. }
  98. //首页(本月销售)统计
  99. export function countByMonth(data) {
  100. return request({
  101. url: '/order/order-merc-sales-count-more/countByMonth',
  102. method: 'post',
  103. data: data
  104. })
  105. }
  106. //首页(今日销售)统计
  107. export function countByDay(data) {
  108. return request({
  109. url: '/order/order-merc-sales-count-more/dayCountDetail',
  110. method: 'post',
  111. data: data
  112. })
  113. }
  114. //订单主动退款
  115. export function refundByMerc(data) {
  116. return request({
  117. url: '/order/order-refund-merc-mini/refundByMerc',
  118. method: 'post',
  119. data: data
  120. })
  121. }