index.js 2.2 KB

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