order.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // dashboard/order
  2. import request from "@/utils/request";
  3. //订单列表
  4. export function getOrderList(data) {
  5. return request({
  6. url: "dashboard/order",
  7. method: "post",
  8. data
  9. });
  10. }
  11. //下单
  12. export function shopping(data) {
  13. return request({
  14. url: "dashboard/delivery",
  15. method: "post",
  16. data
  17. });
  18. }
  19. //商品列表
  20. export function getGoodsList(data) {
  21. return request({
  22. url: "dashboard/sku",
  23. method: "get",
  24. data
  25. });
  26. }
  27. //优惠券列表
  28. export function getTicketList(data) {
  29. return request({
  30. url: "dashboard/ticket",
  31. method: "post",
  32. data
  33. });
  34. }
  35. //发放优惠券
  36. export function generate_ticket(data) {
  37. return request({
  38. url: "dashboard/generate_ticket",
  39. method: "post",
  40. data
  41. });
  42. }
  43. //查询订单
  44. export function order_query(data) {
  45. return request({
  46. url: "dashboard/order_query",
  47. method: "post",
  48. data
  49. });
  50. }
  51. //导出订单
  52. export function export_order(data) {
  53. return request({
  54. url: "dashboard/order_export",
  55. method: "post",
  56. data,
  57. responseType: "arraybuffer"
  58. });
  59. }
  60. //订单统计
  61. export function statistics_shopday(data) {
  62. return request({
  63. url: "dashboard/statistics/shopday",
  64. method: "post",
  65. data
  66. });
  67. }
  68. //查询优惠券
  69. export function query_by_phone(data) {
  70. return request({
  71. url: "dashboard/ticket/query_by_phone",
  72. method: "post",
  73. data
  74. });
  75. }
  76. // 退款退券
  77. export function refund(data) {
  78. return request({
  79. url: "dashboard/order/refunding",
  80. method: "post",
  81. data
  82. });
  83. }