shop.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. import request from '@/utils/request'
  2. // 获取首页信息
  3. export function storeList(data) {
  4. return request({
  5. url: '/api/store_list',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 订单数据统计
  11. export function statistics(data) {
  12. return request({
  13. url: '/api/admin/order/statistics',
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 订单列表
  19. export function shopOrderList(data) {
  20. return request({
  21. url: '/api/admin/order/list',
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 订单详情
  27. export function shopOrderDetai(data,orderid) {
  28. return request({
  29. url: '/api/admin/order/detai/'+orderid,
  30. method: 'get',
  31. data
  32. });
  33. }
  34. // 订单发货(普通商品)
  35. export function deliveryGain(data,orderid) {
  36. return request({
  37. url: '/api/admin/order/delivery/gain/'+orderid,
  38. method: 'get',
  39. data
  40. });
  41. }
  42. // 订单发货
  43. export function delivery(data) {
  44. return request({
  45. url: '/api/admin/order/delivery/keep',
  46. method: 'get',
  47. data
  48. });
  49. }
  50. // 订单退款(普通商品)
  51. export function refund(data) {
  52. return request({
  53. url: '/api/admin/order/refund',
  54. method: 'get',
  55. data
  56. });
  57. }
  58. // 订单核销(普通商品)
  59. export function order_verific(data) {
  60. return request({
  61. url: '/api/order/order_verific',
  62. method: 'get',
  63. data
  64. });
  65. }
  66. // 门店资金
  67. export function funds(data) {
  68. return request({
  69. url: '/api/admin/funds',
  70. method: 'get',
  71. data
  72. });
  73. }
  74. // 车辆报修
  75. export function question(data) {
  76. return request({
  77. url: '/api/admin/car/question',
  78. method: 'post',
  79. data
  80. });
  81. }
  82. // 车辆报修详情
  83. export function questionInfo(data) {
  84. return request({
  85. url: '/api/admin/question/info',
  86. method: 'get',
  87. data
  88. });
  89. }
  90. // 车辆发货
  91. export function set_car_number(data) {
  92. return request({
  93. url: '/api/admin/car/set_car_number',
  94. method: 'post',
  95. data
  96. });
  97. }
  98. // 订单查询
  99. export function orderDetail(data,id) {
  100. return request({
  101. url: '/api/admin/order/detail/'+id,
  102. method: 'get',
  103. data
  104. });
  105. }
  106. // 车辆批次
  107. export function batch(data) {
  108. return request({
  109. url: '/api/car/batch',
  110. method: 'get',
  111. data
  112. });
  113. }
  114. // 车辆类型
  115. export function carType(data) {
  116. return request({
  117. url: '/api/car/type',
  118. method: 'get',
  119. data
  120. });
  121. }
  122. // 获取自己所属的门店信息
  123. export function adminStore(data) {
  124. return request({
  125. url: '/api/admin/store',
  126. method: 'get',
  127. data
  128. });
  129. }
  130. // 维修人员列表
  131. export function adminKf(data) {
  132. return request({
  133. url: '/api/admin/kf',
  134. method: 'get',
  135. data
  136. });
  137. }
  138. // 安排维修人员
  139. export function schedule_task(data) {
  140. return request({
  141. url: '/api/admin/schedule_task',
  142. method: 'post',
  143. data
  144. });
  145. }
  146. // 员工我的任务
  147. export function task(data) {
  148. return request({
  149. url: '/api/admin/task',
  150. method: 'post',
  151. data
  152. });
  153. }
  154. // 处理任务
  155. export function tasksave(data) {
  156. return request({
  157. url: '/api/admin/tasksave',
  158. method: 'post',
  159. data
  160. });
  161. }
  162. // 处理任务
  163. export function detail(data,id) {
  164. return request({
  165. url: '/api/admin/order/detail/'+id,
  166. method: 'get',
  167. data
  168. });
  169. }