小程序端工程代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.6 KiB

  1. import request from "@/utils/request";
  2. /**
  3. * 统计数据
  4. */
  5. export function getStatisticsInfo() {
  6. return request.get("/admin/order/statistics", {}, { login: true });
  7. }
  8. /**
  9. * 订单月统计
  10. */
  11. export function getStatisticsMonth(where) {
  12. return request.get("/admin/order/data", where, { login: true });
  13. }
  14. /**
  15. * 订单月统计
  16. */
  17. export function getAdminOrderList(where) {
  18. return request.get("/admin/order/list", where, { login: true });
  19. }
  20. /**
  21. * 订单改价
  22. */
  23. export function setAdminOrderPrice(data) {
  24. return request.post("/admin/order/price", data, { login: true });
  25. }
  26. /**
  27. * 订单备注
  28. */
  29. export function setAdminOrderRemark(data) {
  30. return request.post("/admin/order/remark", data, { login: true });
  31. }
  32. /**
  33. * 订单详情
  34. */
  35. export function getAdminOrderDetail(orderId) {
  36. return request.get("/admin/order/detail/" + orderId, {}, { login: true });
  37. }
  38. /**
  39. * 订单发货信息获取
  40. */
  41. export function getAdminOrderDelivery(orderId) {
  42. return request.get(
  43. "/admin/order/detail/" + orderId,
  44. {},
  45. { login: true }
  46. );
  47. }
  48. /**
  49. * 订单发货保存
  50. */
  51. export function setAdminOrderDelivery(data) {
  52. return request.post("/admin/order/delivery/keep", data, { login: true });
  53. }
  54. /**
  55. * 订单统计图
  56. */
  57. export function getStatisticsTime(data) {
  58. return request.get("/admin/order/time", data, { login: true });
  59. }
  60. /**
  61. * 线下付款订单确认付款
  62. */
  63. export function setOfflinePay(data) {
  64. return request.post("/admin/order/offline", data, { login: true });
  65. }
  66. /**
  67. * 订单确认退款
  68. */
  69. export function setOrderRefund(data) {
  70. return request.post("/admin/order/refund", data, { login: true });
  71. }