综合办公系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

car.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * @Author: wrh
  3. * @Date: 2024-02-27 13:47:55
  4. * @LastEditors: Please set LastEditors
  5. * @LastEditTime: 2024-10-18 10:04:13
  6. */
  7. import request from '@/utils/request'
  8. // 查询cmc车辆信息列表
  9. export function listCar(query) {
  10. return request({
  11. url: '/oa/car/list',
  12. method: 'get',
  13. params: query
  14. })
  15. }
  16. // 查询cmc车辆信息详细
  17. export function getCar(carId) {
  18. return request({
  19. url: '/oa/car/' + carId,
  20. method: 'get'
  21. })
  22. }
  23. // 新增cmc车辆信息
  24. export function addCar(data) {
  25. return request({
  26. url: '/oa/car',
  27. method: 'post',
  28. data: data
  29. })
  30. }
  31. // 修改cmc车辆信息
  32. export function updateCar(data) {
  33. return request({
  34. url: '/oa/car',
  35. method: 'put',
  36. data: data
  37. })
  38. }
  39. // 删除cmc车辆信息
  40. export function delCar(carId) {
  41. return request({
  42. url: '/oa/car/' + carId,
  43. method: 'delete'
  44. })
  45. }
  46. // 查询cmc车辆信息列表
  47. export function getCarStatistic(query) {
  48. return request({
  49. url: '/oa/car/statistic',
  50. method: 'get',
  51. params: query
  52. })
  53. }