index.js 4.6 KB

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