index.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. import https from '@/plugins/luch-request_0.0.7/request'
  2. export const freight = data => {
  3. return https.get("/order/freight", data);
  4. };
  5. export const buyItem = data => {
  6. return https.post('/order/buy-item', data)
  7. }
  8. /** *
  9. * 商城下单-生成订单 m
  10. */
  11. export const getList = data => {
  12. return https.get('/order/list', data)
  13. }
  14. /** *
  15. * 订单详情 m
  16. */
  17. export const getDetail = data => {
  18. return https.get('/order/detail', data)
  19. }
  20. /** *
  21. * 订单评价 m
  22. */
  23. export const comment = data => {
  24. return https.post('/order/comment', data)
  25. }
  26. /** *
  27. * 商城下单-生成订单 m
  28. */
  29. export const createOrder = data => {
  30. return https.post('/order/create-order', data)
  31. }
  32. /** *
  33. * 商城下单-相关信息 m
  34. */
  35. export const orderRelate = data => {
  36. return https.get('/order/order-relate', data)
  37. }
  38. /** *
  39. * 商城下单-余额付款 m
  40. */
  41. export const balancePay = data => {
  42. return https.post('/order/balance-pay', data)
  43. }
  44. /** *
  45. * 商城下单-微信支付 m
  46. */
  47. export const wxPay = data => {
  48. return https.post('/order/wx-pay', data)
  49. }
  50. // ===================== B 端 ========================
  51. /** *
  52. * 订单列表 b
  53. */
  54. export const getListB = data => {
  55. return https.get('/order/list', data)
  56. }
  57. /** *
  58. * 订单详情 b
  59. */
  60. export const getDetB = data => {
  61. return https.get('/order/detail', data)
  62. }
  63. /** *
  64. * 免发货 b
  65. */
  66. export const freeShipping = data => {
  67. return https.get('/order/without-send', data)
  68. }
  69. /** *
  70. * 发货详情(发货、继续、查看配送) b
  71. */
  72. export const orderSendDet = data => {
  73. return https.get('/order-send/detail', data)
  74. }
  75. /** *
  76. * 发货操作-打单 b
  77. */
  78. export const printOrder = data => {
  79. return https.post('/order-send/print-order', data)
  80. }
  81. /** *
  82. * 发货操作-发货 b
  83. */
  84. export const orderSend = data => {
  85. return https.post('/order-send/deliver', data)
  86. }
  87. /** *
  88. * 发货操作-送达 b
  89. */
  90. export const orderReach = data => {
  91. return https.post('/order-send/reach', data)
  92. }
  93. /** *
  94. * 发货-填写收花人 b
  95. */
  96. export const updateSheet = data => {
  97. return https.post('/order/update-sheet', data)
  98. }
  99. /** *
  100. * 发货-归类 b
  101. */
  102. export const orderClass = data => {
  103. return https.post('/order/classify', data)
  104. }
  105. /** *
  106. * 修改价格 b
  107. */
  108. export const orderUpdatePrice = data => {
  109. return https.get('/order/update-price', data)
  110. }