storeOrder.js 4.4 KB

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