index.js 3.9 KB

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