admin.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. import request from "./../utils/request.js";
  2. /**
  3. *
  4. * 统计管理相关接口
  5. *
  6. */
  7. /**
  8. * 获取快递公司
  9. * @returns {*}
  10. */
  11. export function getLogistics() {
  12. return request.get("/logistics");
  13. }
  14. /**
  15. * 统计数据
  16. */
  17. export function getStatisticsInfo() {
  18. return request.get("admin/order/statistics");
  19. }
  20. /**
  21. * 订单月统计
  22. * @param object data
  23. */
  24. export function getStatisticsMonth(data) {
  25. return request.get("admin/order/data", data);
  26. }
  27. /**
  28. * 订单月统计
  29. */
  30. export function getAdminOrderList(where) {
  31. return request.get("admin/order/list", where);
  32. }
  33. /**
  34. * 订单改价
  35. */
  36. export function setAdminOrderPrice(data) {
  37. return request.post("/admin/order/price", data, { login: true });
  38. }
  39. /**
  40. * 订单备注
  41. */
  42. export function setAdminOrderRemark(data) {
  43. return request.post("/admin/order/remark", data, { login: true });
  44. }
  45. /**
  46. * 订单详情
  47. */
  48. export function getAdminOrderDetail(orderId) {
  49. return request.get("/admin/order/detail/" + orderId);
  50. }
  51. /**
  52. * 订单发货信息获取
  53. */
  54. export function getAdminOrderDelivery(orderId) {
  55. return request.get("admin/order/delivery/gain/" + orderId);
  56. }
  57. /**
  58. * 订单发货保存
  59. */
  60. export function setAdminOrderDelivery(data) {
  61. return request.post("admin/order/delivery/keep", data);
  62. }
  63. /**
  64. * 订单统计图
  65. */
  66. export function getStatisticsTime(data) {
  67. return request.get("admin/order/time", data);
  68. }
  69. /**
  70. * 线下付款订单确认付款
  71. */
  72. export function setOfflinePay(data) {
  73. return request.post("admin/order/offline", data);
  74. }
  75. /**
  76. * 订单确认退款
  77. */
  78. export function setOrderRefund(data) {
  79. return request.post("admin/order/refund", data);
  80. }
  81. /**
  82. * 订单核销
  83. * @returns {*}
  84. */
  85. export function orderVerific(verify_code, is_confirm) {
  86. return request.post("order/order_verific", { verify_code, is_confirm });
  87. }