order.js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. import request from '@/utils/request';
  2. /**
  3. * 订单 列表
  4. * @param prams
  5. */
  6. export function orderListApi(params) {
  7. return request({
  8. url: '/admin/platform/order/list',
  9. method: 'get',
  10. params,
  11. });
  12. }
  13. /**
  14. * 订单 列表 获取各状态数量
  15. * @param params
  16. */
  17. export function orderStatusNumApi(params) {
  18. return request({
  19. url: '/admin/platform/order/status/num',
  20. method: 'get',
  21. params,
  22. });
  23. }
  24. /**
  25. * 订单 列表 数据统计
  26. * @param params
  27. */
  28. export function orderListDataApi(params) {
  29. return request({
  30. url: '/admin/store/order/list/data',
  31. method: 'get',
  32. params,
  33. });
  34. }
  35. /**
  36. * 订单 删除
  37. * @param params
  38. */
  39. export function orderDeleteApi(params) {
  40. return request({
  41. url: '/admin/store/order/delete',
  42. method: 'get',
  43. params,
  44. });
  45. }
  46. /**
  47. * 订单 编辑
  48. * @param prams
  49. */
  50. export function orderUpdateApi(data, params) {
  51. return request({
  52. url: '/admin/store/order/update',
  53. method: 'post',
  54. data,
  55. params,
  56. });
  57. }
  58. /**
  59. * 订单 记录
  60. * @param prams
  61. */
  62. export function orderLogApi(params) {
  63. return request({
  64. url: '/admin/store/order/status/list',
  65. method: 'get',
  66. params,
  67. });
  68. }
  69. /**
  70. * 订单 详情
  71. * @param prams
  72. */
  73. export function orderDetailApi(params) {
  74. return request({
  75. url: '/admin/platform/order/info',
  76. method: 'get',
  77. params,
  78. });
  79. }
  80. /**
  81. * 订单 备注
  82. * @param prams
  83. */
  84. export function orderMarkApi(params) {
  85. return request({
  86. url: '/admin/store/order/mark',
  87. method: 'post',
  88. params,
  89. });
  90. }
  91. /**
  92. * 订单 发货
  93. * @param prams
  94. */
  95. export function orderSendApi(data) {
  96. return request({
  97. url: '/admin/store/order/send',
  98. method: 'post',
  99. data,
  100. });
  101. }
  102. /**
  103. * 订单 拒绝退款
  104. * @param prams
  105. */
  106. export function orderRefuseApi(params) {
  107. return request({
  108. url: '/admin/store/order/refund/refuse',
  109. method: 'get',
  110. params,
  111. });
  112. }
  113. /**
  114. * 订单 立即退款
  115. * @param prams
  116. */
  117. export function orderRefundApi(params) {
  118. return request({
  119. url: '/admin/store/order/refund',
  120. method: 'get',
  121. params,
  122. });
  123. }
  124. /**
  125. * 订单 核销订单
  126. * @param prams
  127. */
  128. export function writeUpdateApi(vCode) {
  129. return request({
  130. url: `/admin/store/order/writeUpdate/${vCode}`,
  131. method: 'get',
  132. });
  133. }
  134. /**
  135. * 订单 核销码查询待核销订单
  136. * @param prams
  137. */
  138. export function writeConfirmApi(vCode) {
  139. return request({
  140. url: `/admin/store/order/writeConfirm/${vCode}`,
  141. method: 'get',
  142. });
  143. }
  144. /**
  145. * 订单 统计 头部数据
  146. */
  147. export function orderStatisticsApi() {
  148. return request({
  149. url: `/admin/store/order/statistics`,
  150. method: 'get',
  151. });
  152. }
  153. /**
  154. * 核销订单 月列表数据
  155. */
  156. export function statisticsDataApi(params) {
  157. return request({
  158. url: `/admin/store/order/statisticsData`,
  159. method: 'get',
  160. params,
  161. });
  162. }
  163. /**
  164. * 一键改价
  165. */
  166. export function updatePriceApi(data) {
  167. return request({
  168. url: `admin/store/order/update/price`,
  169. method: 'post',
  170. data,
  171. });
  172. }
  173. /**
  174. *订单统计详情
  175. */
  176. export function orderTimeApi(params) {
  177. return request({
  178. url: `/admin/store/order/time`,
  179. method: 'get',
  180. params,
  181. });
  182. }
  183. /**
  184. *面单默认配置信息
  185. */
  186. export function sheetInfoApi() {
  187. return request({
  188. url: `/admin/store/order/sheet/info`,
  189. method: 'get',
  190. });
  191. }
  192. /**
  193. *平台端订单物流详情
  194. */
  195. export function getLogisticsInfoApi(params) {
  196. return request({
  197. url: `/admin/platform/order/getLogisticsInfo`,
  198. method: 'get',
  199. params,
  200. });
  201. }
  202. /**
  203. *视频号物流公司
  204. */
  205. export function companyGetListApi() {
  206. return request({
  207. url: `/admin/pay/component/delivery/company/get/list`,
  208. method: 'get',
  209. });
  210. }
  211. /**
  212. *视频号物流公司
  213. */
  214. export function videoSendApi(data) {
  215. return request({
  216. url: `/admin/store/order/video/send`,
  217. method: 'post',
  218. data,
  219. });
  220. }
  221. /**
  222. *打印小票
  223. */
  224. export function orderPrint(id) {
  225. return request({
  226. url: `/admin/yly/print/${id}`,
  227. method: 'get',
  228. });
  229. }
  230. /**
  231. *退款列表
  232. */
  233. export function refundListApi(params) {
  234. return request({
  235. url: `/admin/platform/refund/order/list`,
  236. method: 'get',
  237. params,
  238. });
  239. }
  240. /**
  241. *退款详情
  242. */
  243. export function refundDetailApi(refundOrderNo) {
  244. return request({
  245. url: `/admin/platform/refund/order/detail/${refundOrderNo}`,
  246. method: 'get',
  247. });
  248. }
  249. /**
  250. *平台备注退款订单
  251. */
  252. export function refundMarkApi(data) {
  253. return request({
  254. url: `/admin/platform/refund/order/mark`,
  255. method: 'post',
  256. data,
  257. });
  258. }
  259. /**
  260. *获取退款订单各状态数量
  261. */
  262. export function refundStatusNumApi(params) {
  263. return request({
  264. url: `/admin/platform/refund/order/status/num`,
  265. method: 'GET',
  266. params,
  267. });
  268. }
  269. /**
  270. * 获取订单发货单列表
  271. * @param orderNo 订单号
  272. */
  273. export function orderInvoiceListApi(orderNo) {
  274. return request({
  275. url: `/admin/platform/order/${orderNo}/invoice/list`,
  276. method: 'get',
  277. });
  278. }
  279. /**
  280. * 平台端退款订单详情
  281. * @param refundOrderNo 订单号
  282. */
  283. export function refundOrderDetailApi(refundOrderNo) {
  284. return request({
  285. url: `/admin/platform/refund/order/detail/${refundOrderNo}`,
  286. method: 'get',
  287. });
  288. }