admin.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +----------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +----------------------------------------------------------------------
  10. import request from "@/utils/request.js";
  11. /**
  12. * 统计数据
  13. */
  14. export function getStatisticsInfo() {
  15. return request.get("admin/order/statistics", {}, {
  16. login: true
  17. });
  18. }
  19. /**
  20. * 订单月统计
  21. */
  22. export function getStatisticsMonth(where) {
  23. return request.get("admin/order/data", where, {
  24. login: true
  25. });
  26. }
  27. /**
  28. * 订单月统计
  29. */
  30. export function getAdminOrderList(where) {
  31. return request.get("admin/order/list", where, {
  32. login: true
  33. });
  34. }
  35. /**
  36. * 订单改价
  37. */
  38. export function setAdminOrderPrice(data) {
  39. return request.post("admin/order/price", data, {
  40. login: true
  41. });
  42. }
  43. /**
  44. * 订单备注
  45. */
  46. export function setAdminOrderRemark(data) {
  47. return request.post("admin/order/remark", data, {
  48. login: true
  49. });
  50. }
  51. /**
  52. * 订单详情
  53. */
  54. export function getAdminOrderDetail(orderId) {
  55. return request.get("admin/order/detail/" + orderId, {}, {
  56. login: true
  57. });
  58. }
  59. /**
  60. * 退款订单详情
  61. */
  62. export function getAdminRefundOrderDetail(orderId) {
  63. return request.get("admin/refund_order/detail/" + orderId, {}, {
  64. login: true
  65. });
  66. }
  67. /**
  68. * 订单发货信息获取
  69. */
  70. export function getAdminOrderDelivery(orderId) {
  71. return request.get(
  72. "admin/order/delivery/gain/" + orderId, {}, {
  73. login: true
  74. }
  75. );
  76. }
  77. /**
  78. * 订单发货保存
  79. */
  80. export function setAdminOrderDelivery(id, data) {
  81. return request.post("admin/order/delivery/keep/" + id, data, {
  82. login: true
  83. });
  84. }
  85. /**
  86. * 订单统计图
  87. */
  88. export function getStatisticsTime(data) {
  89. return request.get("admin/order/time", data, {
  90. login: true
  91. });
  92. }
  93. /**
  94. * 线下付款订单确认付款
  95. */
  96. export function setOfflinePay(data) {
  97. return request.post("admin/order/offline", data, {
  98. login: true
  99. });
  100. }
  101. /**
  102. * 订单确认退款
  103. */
  104. export function setOrderRefund(data) {
  105. return request.post("admin/order/refund", data, {
  106. login: true
  107. });
  108. }
  109. /**
  110. * 获取快递公司
  111. * @returns {*}
  112. */
  113. export function getLogistics(data) {
  114. return request.get("logistics", data, {
  115. login: false
  116. });
  117. }
  118. /**
  119. * 订单核销
  120. * @returns {*}
  121. */
  122. export function orderVerific(verify_code, is_confirm) {
  123. return request.post("order/order_verific", {
  124. verify_code,
  125. is_confirm
  126. });
  127. }
  128. /**
  129. * 获取物流公司模板
  130. * @returns {*}
  131. */
  132. export function orderExportTemp(data) {
  133. return request.get("admin/order/export_temp", data);
  134. }
  135. /**
  136. * 获取订单打印默认配置
  137. * @returns {*}
  138. */
  139. export function orderDeliveryInfo() {
  140. return request.get("admin/order/delivery_info");
  141. }
  142. /**
  143. * 配送员列表
  144. * @returns {*}
  145. */
  146. export function orderOrderDelivery() {
  147. return request.get("admin/order/delivery");
  148. }
  149. /**
  150. * 退款列表
  151. * @returns {*}
  152. */
  153. export function orderRefund_order(where) {
  154. return request.get("admin/refund_order/list", where, {
  155. login: true
  156. });
  157. }
  158. /**
  159. * 订单备注(退款)
  160. */
  161. export function setAdminRefundRemark(data) {
  162. return request.post("admin/refund_order/remark", data, {
  163. login: true
  164. });
  165. }
  166. /**
  167. * 订单同意退货
  168. */
  169. export function agreeExpress(data) {
  170. return request.post("admin/order/agreeExpress", data, {
  171. login: true
  172. });
  173. }