repair.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import {
  2. request
  3. } from '@/utils/request'
  4. // 获取维修数量统计
  5. export function getRepairCount(params) {
  6. return request({
  7. url: '/rq/stat/main/status',
  8. method: 'get',
  9. params
  10. })
  11. }
  12. // 维修工单列表
  13. export function getRepairList(params) {
  14. return request({
  15. url: '/rq/iot-maintain/page/app',
  16. method: 'get',
  17. params
  18. })
  19. }
  20. // 维修工单 - 获取选择维修项列表
  21. export function deviceAssociateBomListPage(params) {
  22. return request({
  23. url: '/rq/iot-device/deviceAssociateBomListPage',
  24. method: 'get',
  25. data:params // 这里使用data是因为传输的数据中包含数组
  26. })
  27. }
  28. // 创建维修工单
  29. export function createRepair(data) {
  30. return request({
  31. url: '/rq/iot-maintain/create',
  32. method: 'post',
  33. data
  34. })
  35. }
  36. // 填报维修工单
  37. export function updateRepair(data) {
  38. return request({
  39. url: '/rq/iot-maintain/update',
  40. method: 'put',
  41. data
  42. })
  43. }
  44. // 获取维修工单详情
  45. export function getRepairDetail(params) {
  46. return request({
  47. url: '/rq/iot-maintain/get',
  48. method: 'get',
  49. params
  50. })
  51. }
  52. // 维修工单获取申请人列表
  53. export function getRepairApplicantList(params) {
  54. return request({
  55. url: `/rq/iot-maintain/maintain/applyusers`,
  56. method: 'get',
  57. params
  58. })
  59. }
  60. // 维修工单获取项目经理列表
  61. export function getRepairProjectManagerList(params) {
  62. return request({
  63. url: `/rq/iot-maintain/maintain/project`,
  64. method: 'get',
  65. params
  66. })
  67. }