order.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import request from '@/common/util/request'
  2. export const _API_OrderChart = data => request.get('/app/chart?type=0', data) // 获取 订单管理 图表数据接口
  3. export const _API_OrderPay = data => request.get('/pay_order', data) // 支付订单
  4. export const _API_OrderCancel = data => request.get('/destory', data) // 取消订单
  5. export const _API_OrderLog = data => request.get('/get_log', data) // 订单日志
  6. export const _API_OrderMyExamine = data => request.get('/order/my_order?status=0', data) // 我的订单-待审核
  7. export const _API_OrderMySended = data => request.get('/order/my_order?status=1', data) // 我的订单-已发货
  8. export const _API_OrderMyCompleted = data => request.get('/order/my_order?status=2', data) // 我的订单-已完成
  9. export const _API_GetOrderDetail = data => request.get('/order/GetOrderDetail', data) // 合并订单明细
  10. export const _API_OrderMy1 = data => request.get('/order_list?status=0', data) // 我的订单-全部
  11. export const _API_OrderMy2 = data => request.get('/order_list?status=1', data) // 我的订单-待付款
  12. export const _API_OrderMy3 = data => request.get('/order_list?status=2', data) // 我的订单-待审核
  13. export const _API_OrderMy4 = data => request.get('/order_list?status=3', data) // 我的订单-待收货
  14. export const _API_OrderMy5 = data => request.get('/order_list?status=4', data) // 我的订单-已完成
  15. export const getOrderList = (status, data) => request.get(`/order_list?status=${status}`, data)
  16. export const _API_OrderDownWillpay = data => request.get('/order/order_lower?status=0', data) // 下级订单-待付款
  17. export const _API_OrderDownWillsend = data => request.get('/order/order_lower?status=1', data) // 下级订单-待发货
  18. export const _API_OrderDownSended = data => request.get('/order/order_lower?status=2', data) // 下级订单-已发货
  19. export const _API_OrderDownForward = data => request.get('/order/order_turn', data) // 下级订单-已转发
  20. export const _API_OrderDownCompleted = data => request.get('/order/order_lower?status=3', data) // 下级订单-已完成
  21. // export const _API_PlaceOrder = data => request.post('/order/submit_order', data) // 订货下单
  22. export const _API_PlaceOrder = data => request.post('/submit_order', data) // 订货下单
  23. export const _API_OrderReceiveGoods = data => request.get('/order/order_complete', data) // 确认收货
  24. export const _API_OrderReceiveGoods1 = data => request.get('/order/sure_order', data) // 确认收货
  25. export const _API_OrderReceiveMoney = data => request.get('/order/order_sure_pay', data) // 确认收款
  26. export const _API_OrderDel = data => request.get('/order/del', data) // 删除订单
  27. export const _API_OrderDetail = data => request.get('/order/detail', data) // 获取订单详情
  28. export const _API_OrderDetail1 = data => request.get('/order_detail', data) // 获取订单详情
  29. export const _API_OrderSend = data => request.post('/order/forward', data) // 发货/转单
  30. export const _API_OrderStorage = data => request.get('/order/my_storage', data) // 我的库存
  31. export const _API_OrderAgain = data => request.get('/order/again', data) // 再次下单
  32. export const _API_GetTShirtNum = data => request.get('/order/type_count', data) // 回去 t-shirt 数量
  33. export const _API_SubmitTShirtNum = data => request.post('/order/type_submit', data) // 提交 t-shirt 数量
  34. // 订单接口
  35. export const _API_GetallGift = () => request.get('/order/get_gift_info') // 全部赠品
  36. export const _API_GetOrderGift = data => request.get('/order/get_gift', data) // 订单详情赠品
  37. export const _API_GetLogistics = data => request.get('/order/get_order_expresses', data) // 查询订单物流
  38. export const _API_GetExpressTrack = data => request.get('/order/get_express', data) // 订单物流详情
  39. export const _API_mergeOrder = data => request.get('/order/search_order', data) // 合并订单
  40. export const _API_DestoryOrder = data => request.get('/order/ApplyDestoryOrder', data) // 作废订单
  41. export const _API_destory = data => request.get('/order/destory', data) // 不需要审核的作废订单
  42. /*线上实战营*/
  43. export const _API_payment = data => request.get('/pays/payment', data) // 报名支付
  44. export const _API_GetStatus = data => request.get('/pays/GetStatus', data) // 查询是否需报名
  45. export const _API_SearchStatus = data => request.get('/pays/SearchStatus', data) // 查询是否需报名
  46. export const GetEnrollUserAddress = data => request.get('/pays/GetEnrollUserAddress', data) // 报名前获取收货地址
  47. export const UpdateAddAddress = data => request.post('/pays/UpdateAddAddress', data) // 报名前提交收货地址
  48. export const GetEnrollInfo = data => request.get('/pays/GetEnrollInfo', data) // 获取报名信息
  49. // export const getSzyExpress = data => request.get('/pays/getSzyExpress', data) // 获取物流信息
  50. export const getSzyExpress = data => request.get('/pays/GetExpress', data) // 获取线上实战营物流信息
  51. export const GetSzyGiftInfo = data => request.get('/pays/GetGiftInfo', data) // 判断线上实战营物流信息是否上传
  52. export const CheckGoodNum = data => request.post('/order/CheckGoodNum', data) // 下单前检查库存
  53. // 申请大礼包
  54. export const GetUserInfo = data => request.get('/BigGift/GetUserInfo', data) // 获取下级
  55. export const UploadApplyImg = data => request.post('/BigGift/UploadApplyImg', data) // 上传凭证
  56. export const CheckMoney = data => request.get('/BigGift/CheckMoney', data) // 校验是否够大礼包
  57. export const ApplyBigGift = data => request.post('/BigGift/ApplyBigGift', data) // 提交申请
  58. export const GetApplyBigGift = data => request.get('/BigGift/GetApplyBigGift', data) // 礼包详情