storeOrder.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. import request from '@/utils/request'
  2. // 查询订单列表
  3. export function listOrder(query) {
  4. return request({
  5. url: '/store/storeOrder/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. export function userOrderList(query) {
  11. return request({
  12. url: '/store/storeOrder/userOrderList',
  13. method: 'get',
  14. params: query
  15. })
  16. }
  17. export function myListOrder(query) {
  18. return request({
  19. url: '/store/storeOrder/myList',
  20. method: 'get',
  21. params: query
  22. })
  23. }
  24. // 下载导入模板
  25. export function importTemplate() {
  26. return request({
  27. url: '/store/storeOrder/importTemplate',
  28. method: 'get'
  29. })
  30. }
  31. // 查询订单详细
  32. export function getOrder(orderId) {
  33. return request({
  34. url: '/store/storeOrder/' + orderId,
  35. method: 'get'
  36. })
  37. }
  38. // 查询地址
  39. export function getOrderAddress(orderId) {
  40. return request({
  41. url: '/store/storeOrder/query/' + orderId,
  42. method: 'get'
  43. })
  44. }
  45. // 查询电话
  46. export function getUserPhone(orderId) {
  47. return request({
  48. url: '/store/storeOrder/queryPhone/' + orderId,
  49. method: 'get'
  50. })
  51. }
  52. export function getPrescribe(orderId) {
  53. return request({
  54. url: '/store/storeOrder/Prescribe/' + orderId,
  55. method: 'get'
  56. })
  57. }
  58. export function createErpOrder(orderId) {
  59. return request({
  60. url: '/store/storeOrder/createErpOrder/' + orderId,
  61. method: 'get'
  62. })
  63. }
  64. export function getEroOrder(orderId) {
  65. return request({
  66. url: '/store/storeOrder/getEroOrder/' + orderId,
  67. method: 'get'
  68. })
  69. }
  70. export function getExpress(orderId) {
  71. return request({
  72. url: '/store/storeOrder/getExpress/' + orderId,
  73. method: 'get'
  74. })
  75. }
  76. export function payment(orderId) {
  77. return request({
  78. url: '/store/storeOrder/payment/' + orderId,
  79. method: 'get'
  80. })
  81. }
  82. export function syncExpress(orderId) {
  83. return request({
  84. url: '/store/storeOrder/syncExpress/' + orderId,
  85. method: 'get'
  86. })
  87. }
  88. export function updateExpress(orderId) {
  89. return request({
  90. url: '/store/storeOrder/updateExpress/' + orderId,
  91. method: 'get'
  92. })
  93. }
  94. export function logList(orderId) {
  95. return request({
  96. url: '/store/storeOrder/logList/' + orderId,
  97. method: 'get'
  98. })
  99. }
  100. export function listOrderitem(orderId) {
  101. return request({
  102. url: '/store/storeOrder/ltemlist/' + orderId,
  103. method: 'get'
  104. })
  105. }
  106. // 新增订单
  107. export function addOrder(data) {
  108. return request({
  109. url: '/store/storeOrder',
  110. method: 'post',
  111. data: data
  112. })
  113. }
  114. export function createOrderByManually(data) {
  115. return request({
  116. url: '/store/storeOrder/createOrderByManually',
  117. method: 'post',
  118. data: data
  119. })
  120. }
  121. // 修改订单
  122. export function updateOrder(data) {
  123. return request({
  124. url: '/store/storeOrder',
  125. method: 'put',
  126. data: data
  127. })
  128. }
  129. // 修改订单
  130. export function updateStoreOrder(data) {
  131. return request({
  132. url: '/store/storeOrder/updateStoreOrder',
  133. method: 'put',
  134. data: data
  135. })
  136. }
  137. export function bindCustomer(data) {
  138. return request({
  139. url: '/store/storeOrder/bindCustomer',
  140. method: 'put',
  141. data: data
  142. })
  143. }
  144. // 修改订单
  145. export function sendgoods(data) {
  146. return request({
  147. url: '/store/storeOrder/sendGoods',
  148. method: 'put',
  149. data: data
  150. })
  151. }
  152. export function tuiOrder(data) {
  153. return request({
  154. url: '/store/storeOrder/tuiOrder',
  155. method: 'put',
  156. data: data
  157. })
  158. }
  159. // 修改订单
  160. export function getGoods(data) {
  161. return request({
  162. url: '/store/storeOrder/getGoods',
  163. method: 'put',
  164. data: data
  165. })
  166. }
  167. // 修改订单
  168. export function updateMoney(data) {
  169. return request({
  170. url: '/store/storeOrder/updateMoney',
  171. method: 'put',
  172. data: data
  173. })
  174. }
  175. // 删除订单
  176. export function delOrder(orderId) {
  177. return request({
  178. url: '/store/storeOrder/' + orderId,
  179. method: 'delete'
  180. })
  181. }
  182. // 导出订单
  183. export function exportOrder(query) {
  184. return request({
  185. url: '/store/storeOrder/export',
  186. method: 'get',
  187. params: query
  188. })
  189. }
  190. // 导出订单
  191. export function myExportOrder(query) {
  192. return request({
  193. url: '/store/storeOrder/myExport',
  194. method: 'get',
  195. params: query
  196. })
  197. }
  198. export function getCustomerOrderList(query) {
  199. return request({
  200. url: '/store/storeOrder/getCustomerOrderList',
  201. method: 'get',
  202. params: query
  203. })
  204. }
  205. export function afterSales(data) {
  206. return request({
  207. url: '/store/storeOrder/afterSales',
  208. method: 'put',
  209. data: data
  210. })
  211. }
  212. export function getMsgFollow(followId) {
  213. return request({
  214. url: '/store/storeOrder/follow/' + followId,
  215. method: 'get'
  216. })
  217. }
  218. export function msgList(query) {
  219. return request({
  220. url: '/store/storeOrder/msgList',
  221. method: 'get',
  222. params: query
  223. })
  224. }
  225. // 审核订单
  226. export function approveOrder(data) {
  227. return request({
  228. url: '/store/storeOrder/approveOrder',
  229. method: 'post',
  230. data: data
  231. })
  232. }
  233. //审核订单列表
  234. export function approveOrderList(query) {
  235. return request({
  236. url: '/store/storeOrder/auditList',
  237. method: 'get',
  238. params: query
  239. })
  240. }