index.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. import https from "@/plugins/luch-request_0.0.7/request";
  2. export const cancelOrder = data => {
  3. return https.get("/order/cancel", data);
  4. };
  5. export const updateOrder = data => {
  6. return https.post("/order/update", data);
  7. };
  8. //获取欠款单列表 ssh 20220116
  9. export const getDebtOrderList = data => {
  10. return https.get("/order/debt-list", data);
  11. };
  12. export const sendOrder = data => {
  13. return https.get("/order/send", data);
  14. };
  15. export const onlinePrintOrder = data => {
  16. return https.get("/order/print-order", data);
  17. };
  18. //退款
  19. export const refund = data => {return https.post("/refund/create-order", data);};
  20. //损耗生成订单
  21. export const wastage = data => {
  22. return https.post("/wastage/create-order", data);
  23. };
  24. /** *
  25. * 商城下单-生成订单 m
  26. */
  27. export const getList = data => {
  28. return https.get("/order/list", data);
  29. };
  30. /** *
  31. * 订单详情 m
  32. */
  33. export const getDetail = data => {
  34. return https.get("/order/detail", data);
  35. };
  36. /** *
  37. * 订单评价 m
  38. */
  39. export const comment = data => {
  40. return https.post("/order/comment", data);
  41. };
  42. /** *
  43. * 商城下单-生成订单 m
  44. */
  45. export const createOrder = data => {
  46. return https.post("/order/create-order", data);
  47. };
  48. /** *
  49. * 培训班开单(课程确定开单)
  50. */
  51. export const createPxClassOrder = data => {
  52. return https.get("/px-apply/add", data);
  53. };
  54. /** *
  55. * 商城下单-相关信息 m
  56. */
  57. export const orderRelate = data => {
  58. return https.get("/order/order-relate", data);
  59. };
  60. /** *
  61. * 商城下单-余额付款 m
  62. */
  63. export const balancePay = data => {
  64. return https.post("/order/balance-pay", data);
  65. };
  66. /** *
  67. * 商城下单-微信支付 m
  68. */
  69. export const wxPay = data => {
  70. return https.post("/order/wx-pay", data);
  71. };
  72. // ===================== B 端 ========================
  73. /** *
  74. * 订单列表 b
  75. */
  76. export const getListB = data => {
  77. return https.get("/order/list", data);
  78. };
  79. /** *
  80. * 订单详情 b
  81. */
  82. export const getDetB = data => {
  83. return https.get("/order/detail", data);
  84. };
  85. /** *
  86. * 延期收款 --姜枫 2021.03.20
  87. */
  88. export const debtPay = data => {
  89. return https.get("/order/debt", data);
  90. };
  91. /** *
  92. * 已收款 --姜枫 2021.03.20
  93. */
  94. export const hasPay = data => {
  95. return https.get("/order/has-pay", data);
  96. };
  97. /** *
  98. * 发快递 --姜枫 2021.03.20
  99. */
  100. export const sendExpressage = data => {
  101. return https.get("/order/third-send", data);
  102. };
  103. /** *
  104. * 确认送达 --姜枫 2021.03.21
  105. */
  106. export const sendReach = data => {
  107. return https.get("/order/reach", data);
  108. };
  109. /** *
  110. * 未支付订单重选花材 姜枫 2021.03.21 原请求地址:order/choose-product
  111. */
  112. export const chooseOrderProductApi = async data => {
  113. return https.post("/order-item/reset", data);
  114. };
  115. /** *
  116. * 免发货 b
  117. */
  118. export const freeShipping = data => {
  119. return https.get("/order/without-send", data);
  120. };
  121. /** *
  122. * 发货详情(发货、继续、查看配送) b
  123. */
  124. export const orderSendDet = data => {
  125. return https.get("/order-send/detail", data);
  126. };
  127. /** *
  128. * 发货操作-制单 b
  129. */
  130. export const printOrder = data => {
  131. return https.post("/order-send/print-order", data);
  132. };
  133. /** *
  134. * 发货操作-发货 b
  135. */
  136. export const orderSend = data => {
  137. return https.post("/order-send/deliver", data);
  138. };
  139. /** *
  140. * 发货操作-送达 b
  141. */
  142. export const orderReach = data => {
  143. return https.post("/order-send/reach", data);
  144. };
  145. /** *
  146. * 发货-填写收花人 b
  147. */
  148. export const updateSheet = data => {
  149. return https.post("/order/update-sheet", data);
  150. };
  151. /** *
  152. * 发货-归类 b
  153. */
  154. export const orderClass = data => {
  155. return https.post("/order/classify", data);
  156. };
  157. /** *
  158. * 修改价格 b
  159. */
  160. export const orderUpdatePrice = data => {
  161. return https.get("/order/update-price", data);
  162. };
  163. // ===================== new ========================
  164. // 计算运费
  165. export const freight = data => https.get("/order/freight", data);
  166. // 发快递
  167. export const thirdSend = data => https.get("/order/third-send", data);
  168. // 本店送
  169. export const selfSend = data => https.get("/order/self-send", data);
  170. export const reachOrder = data => https.get("/order/reach", data);