admin.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. import request from "@/utils/request.js";
  2. /**
  3. * 统计数据
  4. */
  5. export function getStatisticsInfo() {
  6. return request.get("admin/order/statistics", {}, {
  7. login: true
  8. });
  9. }
  10. /**
  11. * 订单月统计
  12. */
  13. export function getStatisticsMonth(where) {
  14. return request.get("admin/order/data", where, {
  15. login: true
  16. });
  17. }
  18. /**
  19. * 订单月统计
  20. */
  21. export function getAdminOrderList(where) {
  22. return request.get("admin/order/list", where, {
  23. login: true
  24. });
  25. }
  26. /**
  27. * 订单改价
  28. */
  29. export function setAdminOrderPrice(data) {
  30. return request.post("admin/order/price", data, {
  31. login: true
  32. });
  33. }
  34. /**
  35. * 订单备注
  36. */
  37. export function setAdminOrderRemark(data) {
  38. return request.post("admin/order/remark", data, {
  39. login: true
  40. });
  41. }
  42. /**
  43. * 订单详情
  44. */
  45. export function getAdminOrderDetail(orderId) {
  46. return request.get("admin/order/detail/" + orderId, {}, {
  47. login: true
  48. });
  49. }
  50. /**
  51. * 退款订单详情
  52. */
  53. export function getAdminRefundOrderDetail(orderId) {
  54. return request.get("admin/refund_order/detail/" + orderId, {}, {
  55. login: true
  56. });
  57. }
  58. /**
  59. * 订单发货信息获取
  60. */
  61. export function getAdminOrderDelivery(orderId) {
  62. return request.get(
  63. "admin/order/delivery/gain/" + orderId, {}, {
  64. login: true
  65. }
  66. );
  67. }
  68. /**
  69. * 订单发货保存
  70. */
  71. export function setAdminOrderDelivery(id, data) {
  72. return request.post("admin/order/delivery/keep/" + id, data, {
  73. login: true
  74. });
  75. }
  76. /**
  77. * 订单统计图
  78. */
  79. export function getStatisticsTime(data) {
  80. return request.get("admin/order/time", data, {
  81. login: true
  82. });
  83. }
  84. /**
  85. * 线下付款订单确认付款
  86. */
  87. export function setOfflinePay(data) {
  88. return request.post("admin/order/offline", data, {
  89. login: true
  90. });
  91. }
  92. /**
  93. * 订单确认退款
  94. */
  95. export function setOrderRefund(data) {
  96. return request.post("admin/order/refund", data, {
  97. login: true
  98. });
  99. }
  100. /**
  101. * 获取快递公司
  102. * @returns {*}
  103. */
  104. export function getLogistics(data) {
  105. return request.get("logistics", data, {
  106. login: false
  107. });
  108. }
  109. /**
  110. * 订单核销
  111. * @returns {*}
  112. */
  113. export function orderVerific(verify_code, is_confirm) {
  114. return request.post("order/order_verific", {
  115. verify_code,
  116. is_confirm
  117. });
  118. }
  119. /**
  120. * 获取物流公司模板
  121. * @returns {*}
  122. */
  123. export function orderExportTemp(data) {
  124. return request.get("admin/order/export_temp", data);
  125. }
  126. /**
  127. * 获取订单打印默认配置
  128. * @returns {*}
  129. */
  130. export function orderDeliveryInfo() {
  131. return request.get("admin/order/delivery_info");
  132. }
  133. /**
  134. * 配送员列表
  135. * @returns {*}
  136. */
  137. export function orderOrderDelivery() {
  138. return request.get("admin/order/delivery");
  139. }
  140. /**
  141. * 退款列表
  142. * @returns {*}
  143. */
  144. export function orderRefund_order(where) {
  145. return request.get("admin/refund_order/list", where, {
  146. login: true
  147. });
  148. }
  149. /**
  150. * 订单备注(退款)
  151. */
  152. export function setAdminRefundRemark(data) {
  153. return request.post("admin/refund_order/remark", data, {
  154. login: true
  155. });
  156. }