storeOrder.js 5.7 KB

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