index.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. import https from "@/plugins/luch-request_0.0.7/request";
  2. export const cancelOrderFn = data => {
  3. return https.get("/order/cancel", data);
  4. };
  5. export const onlinePrintOrder = data => {
  6. return https.get("/order/print-order", data);
  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. * 损耗生成订单
  19. */
  20. export const wastage = data => {
  21. return https.post("/wastage/create-order", data);
  22. };
  23. /** *
  24. * 订单评价 m
  25. */
  26. export const comment = data => {
  27. return https.post("/order/comment", data);
  28. };
  29. //添加订单
  30. export const createOrder = data => {
  31. return https.post("/order/create-order", data);
  32. };
  33. //修改订单
  34. export const updateOrder = data => {
  35. return https.post("/order/update-order", data);
  36. };
  37. /** *
  38. * 商城下单-相关信息 m
  39. */
  40. export const orderRelate = data => {
  41. return https.get("/order/order-relate", data);
  42. };
  43. /** *
  44. * 商城下单-余额付款 m
  45. */
  46. export const balancePay = data => {
  47. return https.post("/order/balance-pay", data);
  48. };
  49. /** *
  50. * 商城下单-微信支付 m
  51. */
  52. export const wxPay = data => {
  53. return https.post("/order/wx-pay", data);
  54. };
  55. // ===================== B 端 ========================
  56. /** *
  57. * 订单列表 b
  58. */
  59. export const getListB = data => {
  60. return https.get("/order/list", data);
  61. };
  62. /** *
  63. * 订单详情 b
  64. */
  65. export const getDetB = data => {
  66. return https.get("/order/detail", data);
  67. };
  68. /** *
  69. * 延期收款 --姜枫 2021.03.20
  70. */
  71. export const debtPay = data => {
  72. return https.get("/order/debt", data);
  73. };
  74. /** *
  75. * 已收款 --姜枫 2021.03.20
  76. */
  77. export const hasPay = data => {
  78. return https.get("/order/has-pay", data);
  79. };
  80. /** *
  81. * 发快递 --姜枫 2021.03.20
  82. */
  83. export const sendExpressage = data => {
  84. return https.get("/order/third-send", data);
  85. };
  86. /** *
  87. * 确认送达 --姜枫 2021.03.21
  88. */
  89. export const sendReach = data => {
  90. return https.get("/order/reach", data);
  91. };
  92. /** *
  93. * 未支付订单重选花材 姜枫 2021.03.21 原请求地址:order/choose-product
  94. */
  95. export const chooseOrderProductApi = async data => {
  96. return https.post("/order-item/reset", data);
  97. };
  98. /** *
  99. * 免发货 b
  100. */
  101. export const freeShipping = data => {
  102. return https.get("/order/without-send", data);
  103. };
  104. /** *
  105. * 发货详情(发货、继续、查看配送) b
  106. */
  107. export const orderSendDet = data => {
  108. return https.get("/order-send/detail", data);
  109. };
  110. /** *
  111. * 发货操作-制单 b
  112. */
  113. export const printOrder = data => {
  114. return https.post("/order-send/print-order", data);
  115. };
  116. /** *
  117. * 发货操作-发货 b
  118. */
  119. export const orderSend = data => {
  120. return https.post("/order-send/deliver", data);
  121. };
  122. /** *
  123. * 发货操作-送达 b
  124. */
  125. export const orderReach = data => {
  126. return https.post("/order-send/reach", data);
  127. };
  128. /** *
  129. * 发货-填写收花人 b
  130. */
  131. export const updateSheet = data => {
  132. return https.post("/order/update-sheet", data);
  133. };
  134. /** *
  135. * 发货-归类 b
  136. */
  137. export const orderClass = data => {
  138. return https.post("/order/classify", data);
  139. };
  140. /** *
  141. * 修改价格 b
  142. */
  143. export const orderUpdatePrice = data => {
  144. return https.get("/order/update-price", data);
  145. };
  146. // ===================== new ========================
  147. // 计算运费
  148. export const freight = data => https.get("/order/freight", data);
  149. // 发快递
  150. export const thirdSend = data => https.get("/order/third-send", data);
  151. // 本店送
  152. export const selfSend = data => https.get("/order/self-send", data);
  153. export const reachOrder = data => https.get("/order/reach", data);
  154. //订单退款 姜枫 2021.06.26
  155. export const refund = data => {return https.post("/refund/create-order", data);};
  156. //打印次数+1 姜枫 2021.06.26
  157. export const addPrintNum = data => https.get("/order/add-print-num", data);
  158. //云打印 shish 20210714
  159. export const cloudPrintOrder = data => https.get("/order/cloud-print-order", data);
  160. //确认完成订单 shish 20210810
  161. export const confirmFinish = data => https.get("/order/confirm-finish", data);
  162. //取消订单 shish 20210810
  163. export const cancel = data => https.get("/order/cancel", data);
  164. //微信和支付宝付款码支付
  165. export const codePay = data => https.get("/order/code-pay", data);
  166. //微信和支付宝付款码支付复查
  167. export const codePayCheck = data => https.get("/order/code-pay-check", data);
  168. //收款语音播报
  169. export const getPayVoice = data => https.get("/order/get-pay-voice", data);
  170. //扫码付款
  171. export const scanPay = data => https.get("/order/scan-pay", data);
  172. //扫码付款结果查询
  173. export const scanPayCheck = data => https.get("/order/scan-pay-check", data);