index.ts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. import request from '@/config/axios'
  2. // 设备台账 API
  3. export const IotStatApi = {
  4. getMainDay: async () => {
  5. return await request.get({ url: `/rq/stat/main/day` })
  6. },
  7. getOrderSeven: async (params: any) => {
  8. return await request.get({ url: `/rq/stat/rh/order/`+params })
  9. },
  10. getRepairRigWork: async (params: any) => {
  11. return await request.get({ url: `/rq/stat/ry/dailyReport/`+params })
  12. },
  13. getOrderYwcb: async (params: any) => {
  14. return await request.get({ url: `/rq/stat/rh/ywcb/`+params })
  15. },
  16. getRigFinished: async () => {
  17. return await request.get({ url: `/rq/stat/ry/dailyReport/rigFinished` })
  18. },
  19. getMainWeek: async () => {
  20. return await request.get({ url: `/rq/stat/main/week` })
  21. },
  22. getMainMonth: async () => {
  23. return await request.get({ url: `/rq/stat/main/month` })
  24. },
  25. getMainTotal: async () => {
  26. return await request.get({ url: `/rq/stat/main/total` })
  27. },
  28. getMainStatus: async () => {
  29. return await request.get({ url: `/rq/stat/main/status` })
  30. },
  31. getInspectDay: async () => {
  32. return await request.get({ url: `/rq/stat/inspect/day` })
  33. },
  34. getInspectWeek: async () => {
  35. return await request.get({ url: `/rq/stat/inspect/week` })
  36. },
  37. getInspectMonth: async () => {
  38. return await request.get({ url: `/rq/stat/inspect/month` })
  39. },
  40. getInspectTotal: async () => {
  41. return await request.get({ url: `/rq/stat/inspect/total` })
  42. },
  43. getInspectStatus: async (params: any) => {
  44. return await request.get({ url: `/rq/stat/inspect/status`, params })
  45. },
  46. getInspectStatuss: async (params: any, dept:any) => {
  47. return await request.get({ url: `/rq/stat/inspect/statuss/`+dept, params })
  48. },
  49. getProject: async (params: any) => {
  50. return await request.get({ url: `/rq/stat/project/`+params })
  51. },
  52. getInspectTodayStatus: async () => {
  53. return await request.get({ url: `/rq/stat/inspect/today/status` })
  54. },
  55. getInspectDeviceStatus: async (params: any) => {
  56. return await request.get({ url: `/rq/stat/inspect/device`, params })
  57. },
  58. getInspectItemStatus: async (params: any) => {
  59. return await request.get({ url: `/rq/iot-inspect-order-detail/status`,params })
  60. },
  61. getMaintenanceDay: async () => {
  62. return await request.get({ url: `/rq/stat/maintenance/day` })
  63. },
  64. getMaintenanceWeek: async () => {
  65. return await request.get({ url: `/rq/stat/maintenance/week` })
  66. },
  67. getMaintenanceMonth: async () => {
  68. return await request.get({ url: `/rq/stat/maintenance/month` })
  69. },
  70. getMaintenanceTotal: async () => {
  71. return await request.get({ url: `/rq/stat/maintenance/total` })
  72. },
  73. getMaintenanceStatus: async (params: any) => {
  74. return await request.get({ url: `/rq/stat/maintenance/status/`+params })
  75. },
  76. getRhZql: async (params: any) => {
  77. return await request.get({ url: `/rq/stat/year/total/gas/`+params })
  78. },
  79. getRhZqlGases: async (params: any) => {
  80. return await request.get({ url: `/rq/stat/year/total/gases/`+params })
  81. },
  82. getRhZqlToday: async (params: any) => {
  83. return await request.get({ url: `/rq/stat/rh/zql/today/`+params })
  84. },
  85. getRhZqlDaily: async (params: any) => {
  86. return await request.get({ url: `/rq/stat/rh/zql/daily/`+params })
  87. },
  88. getMaintenanceTodayStatus: async () => {
  89. return await request.get({ url: `/rq/stat/maintenance/today/status` })
  90. },
  91. getMaintenanceType: async () => {
  92. return await request.get({ url: `/rq/stat/maintenance/type` })
  93. },
  94. getDeviceInfoChart: async (deviceCode: any, identifier: any, begin: string, end:string) => {
  95. return await request.get({ url: `/rq/stat/td/chart/`+deviceCode+'/'+identifier+'?beginTime='+begin+'&endTime='+end })
  96. },
  97. getDeviceCount: async (params: any) => {
  98. return await request.get({ url: `/rq/stat/home/device/count/`+params })
  99. },
  100. getRhRate: async (params: any) => {
  101. return await request.get({ url: `/rq/stat/rh/device/utilizationRate`, params })
  102. },
  103. getRyRate: async (params: any) => {
  104. return await request.get({ url: `/rq/stat/ry/device/utilizationRate`, params })
  105. },
  106. getRdRate: async (params: any) => {
  107. return await request.get({ url: `/rq/stat/rd/device/utilizationRate`, params })
  108. },
  109. getRhTeamRate: async (params: any) => {
  110. return await request.get({ url: `rq/stat/rh/device/teamUtilizationRate`, params })
  111. },
  112. getRyTeamRate: async (params: any) => {
  113. return await request.get({ url: `rq/stat/ry/device/teamUtilizationRate`, params })
  114. },
  115. getRdTeamRate: async (params: any) => {
  116. return await request.get({ url: `rq/stat/rd/device/teamUtilizationRate`, params })
  117. },
  118. getMaintainCount: async (params: any) => {
  119. return await request.get({ url: `/rq/stat/home/maintain/count/`+params })
  120. },
  121. getMainWorkCount: async () => {
  122. return await request.get({ url: `/rq/stat/home/work/count` })
  123. },
  124. getInspectCount: async () => {
  125. return await request.get({ url: `/rq/stat/home/inspect/count` })
  126. },
  127. getDeviceStatusCount: async (params: any) => {
  128. return await request.get({ url: `/rq/stat/home/device/status/`+params })
  129. },
  130. getDeviceTypeCount: async (params: any) => {
  131. return await request.get({ url: `/rq/stat/home/device/type/`+params })
  132. },
  133. getDeptCount: async () => {
  134. return await request.get({ url: `/rq/stat/home/dept` })
  135. },
  136. getSafeCount: async () => {
  137. return await request.get({ url: `/rq/stat/home/safe` })
  138. },
  139. getMttr: async () => {
  140. return await request.get({ url: `/rq/stat/mttr` })
  141. },
  142. getMaterial: async () => {
  143. return await request.get({ url: `/pms/iot-outbound/materials/top` })
  144. },
  145. getDeptStatistics: async (params: any) => {
  146. return await request.get({ url: `/rq/iot-opeation-fill/getCount`, params })
  147. },
  148. getDevSta: async (params: any) => {
  149. return await request.get({ url: `/rq/iot-opeation-fill/getDeviceCount`, params })
  150. },
  151. }