index.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. import https from "@/plugins/luch-request_0.0.7/request";
  2. /** *
  3. * 商城下单-生成订单 m
  4. */
  5. export const getList = data => {
  6. return https.get("/order/list", data);
  7. };
  8. /** *
  9. * 订单详情 m
  10. */
  11. export const getDetail = data => {
  12. return https.get("/order/detail", data);
  13. };
  14. /** *
  15. * 损耗生成订单
  16. */
  17. export const wastage = data => {
  18. return https.post("/wastage/create-order", data);
  19. };
  20. /** *
  21. * 订单评价 m
  22. */
  23. export const comment = data => {
  24. return https.post("/order/comment", data);
  25. };
  26. /** *
  27. * 添加订单
  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. * 延期收款 --姜枫 2021.03.20
  65. */
  66. export const debtPay = data => {
  67. return https.get("/order/debt", data);
  68. };
  69. /** *
  70. * 已收款 --姜枫 2021.03.20
  71. */
  72. export const hasPay = data => {
  73. return https.get("/order/has-pay", data);
  74. };
  75. /** *
  76. * 发快递 --姜枫 2021.03.20
  77. */
  78. export const sendExpressage = data => {
  79. return https.get("/order/third-send", data);
  80. };
  81. /** *
  82. * 确认送达 --姜枫 2021.03.21
  83. */
  84. export const sendReach = data => {
  85. return https.get("/order/reach", data);
  86. };
  87. /** *
  88. * 未支付订单重选花材 姜枫 2021.03.21 原请求地址:order/choose-product
  89. */
  90. export const chooseOrderProductApi = async data => {
  91. return https.post("/order-item/reset", data);
  92. };
  93. /** *
  94. * 免发货 b
  95. */
  96. export const freeShipping = data => {
  97. return https.get("/order/without-send", data);
  98. };
  99. /** *
  100. * 发货详情(发货、继续、查看配送) b
  101. */
  102. export const orderSendDet = data => {
  103. return https.get("/order-send/detail", data);
  104. };
  105. /** *
  106. * 发货操作-制单 b
  107. */
  108. export const printOrder = data => {
  109. return https.post("/order-send/print-order", data);
  110. };
  111. /** *
  112. * 发货操作-发货 b
  113. */
  114. export const orderSend = data => {
  115. return https.post("/order-send/deliver", data);
  116. };
  117. /** *
  118. * 发货操作-送达 b
  119. */
  120. export const orderReach = data => {
  121. return https.post("/order-send/reach", data);
  122. };
  123. /** *
  124. * 发货-填写收花人 b
  125. */
  126. export const updateSheet = data => {
  127. return https.post("/order/update-sheet", data);
  128. };
  129. /** *
  130. * 发货-归类 b
  131. */
  132. export const orderClass = data => {
  133. return https.post("/order/classify", data);
  134. };
  135. /** *
  136. * 修改价格 b
  137. */
  138. export const orderUpdatePrice = data => {
  139. return https.get("/order/update-price", data);
  140. };
  141. // ===================== new ========================
  142. // 计算运费
  143. export const freight = data => https.get("/order/freight", data);
  144. // 发快递
  145. export const thirdSend = data => https.get("/order/third-send", data);
  146. // 本店送
  147. export const selfSend = data => https.get("/order/self-send", data);
  148. export const reachOrder = data => https.get("/order/reach", data);
  149. //订单退款 姜枫 2021.06.26
  150. export const refund = data => {return https.post("/refund/create-order", data);};
  151. //打印次数+1 姜枫 2021.06.26
  152. export const addPrintNum = data => https.get("/order/add-print-num", data);
  153. //云打印 shish 20210714
  154. export const cloudPrintOrder = data => https.get("/order/cloud-print-order", data);
  155. //确认完成订单 shish 20210810
  156. export const confirmFinish = data => https.get("/order/confirm-finish", data);
  157. //取消订单 shish 20210810
  158. export const cancel = data => https.get("/order/cancel", data);