order.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. import request from '@/utils/request'
  2. // 获取订单列表
  3. export function getList(params) {
  4. return request({
  5. url: '/order/list',
  6. method: 'get',
  7. params
  8. })
  9. }
  10. // 编辑备注
  11. export function saveRemark(params) {
  12. return request({
  13. url: '/order/remark',
  14. method: 'post',
  15. params
  16. })
  17. }
  18. // 获取订单详情
  19. export function getOrderDetail(params) {
  20. return request({
  21. url: '/order/detail',
  22. method: 'get',
  23. params
  24. })
  25. }
  26. // 取消订单
  27. export function cancelOrder(params) {
  28. return request({
  29. url: '/order/cancel',
  30. method: 'post',
  31. params
  32. })
  33. }
  34. // 确认收款
  35. export function confirmOrder(params) {
  36. return request({
  37. url: '/order/ack',
  38. method: 'post',
  39. params
  40. })
  41. }
  42. // 修改价格
  43. export function changePrice(params) {
  44. return request({
  45. url: '/order/price/update',
  46. method: 'post',
  47. params
  48. })
  49. }
  50. // 修改收货信息
  51. export function changeReceiveInfo(params) {
  52. return request({
  53. url: '/order/rece/info/update',
  54. method: 'post',
  55. data: params
  56. })
  57. }
  58. // 发货
  59. export function goodsDeliver(params) {
  60. return request({
  61. url: '/order/goods/deliver',
  62. method: 'post',
  63. params
  64. })
  65. }
  66. // 获取维权订单列表
  67. export function getRefundList(params) {
  68. return request({
  69. url: '/order/refund/list',
  70. method: 'get',
  71. params
  72. })
  73. }
  74. // 编辑维权备注
  75. export function saveRefundRemark(params) {
  76. return request({
  77. url: '/order/refund/remark',
  78. method: 'post',
  79. params
  80. })
  81. }
  82. // 变更维权处理状态
  83. export function changeExamineStatus(params) {
  84. return request({
  85. url: '/order/refund/examine',
  86. method: 'post',
  87. params
  88. })
  89. }
  90. // 变更维权处理状态
  91. export function receiveProd(params) {
  92. return request({
  93. url: '/order/refund/ack',
  94. method: 'post',
  95. params
  96. })
  97. }
  98. // 获取维权订单详情
  99. export function getOrderRefundDetail(params) {
  100. return request({
  101. url: '/order/refund/refund/detail',
  102. method: 'get',
  103. params
  104. })
  105. }
  106. // 退款
  107. export function orderRefund(params) {
  108. return request({
  109. url: '/order/detail/refund',
  110. method: 'post',
  111. params
  112. })
  113. }
  114. // 理赔
  115. export function orderCompensate(params) {
  116. return request({
  117. url: '/order/cliaims/refund',
  118. method: 'post',
  119. params
  120. })
  121. }
  122. // 获取理赔列表
  123. export function getCompensateList(params) {
  124. return request({
  125. url: '/order/cliaims/list',
  126. method: 'get',
  127. params
  128. })
  129. }
  130. // 卖家批量设置备注
  131. export function batchRemark(params) {
  132. return request({
  133. url: '/order/batch/remark',
  134. method: 'post',
  135. data: params
  136. })
  137. }
  138. export function getWebsiteList(params) {
  139. return request({
  140. url: '/websit/list',
  141. method: 'get',
  142. params
  143. })
  144. }
  145. // 修改快递单号
  146. export function editLogistics(params) {
  147. return request({
  148. url: '/order/express/update',
  149. method: 'post',
  150. params
  151. })
  152. }
  153. // 获取地区树
  154. export function getRegion(params) {
  155. return request({
  156. url: '/common/region/list',
  157. method: 'get',
  158. params
  159. })
  160. }
  161. // 修改收货地址
  162. export function editAddress(params) {
  163. return request({
  164. url: '/order/rece/info/update',
  165. method: 'post',
  166. data: params
  167. })
  168. }
  169. // 获取工单
  170. export function getWorkOrder(params) {
  171. return request({
  172. url: '/order/work/list',
  173. method: 'get',
  174. params
  175. })
  176. }
  177. // 新增标签
  178. export function changeShow(params) {
  179. return request({
  180. url: '/order/comment/show',
  181. method: 'post',
  182. params
  183. })
  184. }
  185. // 获取工单
  186. export function getWorkOrderLink(params) {
  187. return request({
  188. url: '/common/gf/login',
  189. method: 'get',
  190. params
  191. })
  192. }