| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- import request from '@/config/axios'
- let globalController = new AbortController()
- export const cancelAllRequests = async () => {
- globalController.abort()
- globalController = new AbortController()
- }
- // 设备台账 API
- export const IotStatApi = {
- getCompleteRate: async (params) => {
- return await request.get({ url: `/pms/iot-rh-daily-report/completeRate`, params })
- },
- getMainDay: async () => {
- return await request.get({ url: `/rq/stat/main/day` })
- },
- getOrderSeven: async (params: any) => {
- return await request.get({ url: `/rq/stat/rh/order/` + params })
- },
- getRepairRigWork: async (params: any) => {
- return await request.get({ url: `/rq/stat/ry/dailyReport/` + params })
- },
- getOrderYwcb: async (params: any) => {
- return await request.get({ url: `/rq/stat/rh/ywcb/` + params })
- },
- getRigFinished: async () => {
- return await request.get({ url: `/rq/stat/ry/dailyReport/rigFinished` })
- },
- getMainWeek: async () => {
- return await request.get({ url: `/rq/stat/main/week` })
- },
- getMainMonth: async () => {
- return await request.get({ url: `/rq/stat/main/month` })
- },
- getMainTotal: async () => {
- return await request.get({ url: `/rq/stat/main/total` })
- },
- getMainStatus: async () => {
- return await request.get({ url: `/rq/stat/main/status` })
- },
- getInspectDay: async () => {
- return await request.get({ url: `/rq/stat/inspect/day` })
- },
- getInspectWeek: async () => {
- return await request.get({ url: `/rq/stat/inspect/week` })
- },
- getInspectMonth: async () => {
- return await request.get({ url: `/rq/stat/inspect/month` })
- },
- getInspectTotal: async () => {
- return await request.get({ url: `/rq/stat/inspect/total` })
- },
- getInspectStatus: async (params: any) => {
- return await request.get({ url: `/rq/stat/inspect/status`, params })
- },
- getInspectStatuss: async (params: any, dept: any) => {
- return await request.get({ url: `/rq/stat/inspect/statuss/` + dept, params })
- },
- getInspectZjxjCount: async () => {
- return await request.get({ url: `/rq/stat/home/ry/count/zjxj` })
- },
- getProject: async (params: any) => {
- return await request.get({ url: `/rq/stat/project/` + params })
- },
- getInspectTodayStatus: async () => {
- return await request.get({ url: `/rq/stat/inspect/today/status` })
- },
- getInspectDeviceStatus: async (params: any) => {
- return await request.get({ url: `/rq/stat/inspect/device`, params })
- },
- getInspectItemStatus: async (params: any) => {
- return await request.get({ url: `/rq/iot-inspect-order-detail/status`, params })
- },
- getMaintenanceDay: async () => {
- return await request.get({ url: `/rq/stat/maintenance/day` })
- },
- getMaintenanceWeek: async () => {
- return await request.get({ url: `/rq/stat/maintenance/week` })
- },
- getMaintenanceMonth: async () => {
- return await request.get({ url: `/rq/stat/maintenance/month` })
- },
- getMaintenanceTotal: async () => {
- return await request.get({ url: `/rq/stat/maintenance/total` })
- },
- getMaintenanceStatus: async (params: any) => {
- return await request.get({ url: `/rq/stat/maintenance/status/` + params })
- },
- getRhZql: async (params: any) => {
- return await request.get({ url: `/rq/stat/year/total/gas/` + params })
- },
- getRhZqlGases: async (params: any) => {
- return await request.get({ url: `/rq/stat/year/total/gases/` + params })
- },
- getRhZqlToday: async (params: any) => {
- return await request.get({ url: `/rq/stat/rh/zql/today/` + params })
- },
- getRhZqlDaily: async (params: any) => {
- return await request.get({ url: `/rq/stat/rh/zql/daily/` + params })
- },
- getMaintenanceTodayStatus: async () => {
- return await request.get({ url: `/rq/stat/maintenance/today/status` })
- },
- getMaintenanceType: async () => {
- return await request.get({ url: `/rq/stat/maintenance/type` })
- },
- getDeviceInfoChart: async (deviceCode: any, identifier: any, begin: string, end: string) => {
- return await request.get({
- url:
- `/rq/stat/td/chart/` +
- deviceCode +
- '/' +
- identifier +
- '?beginTime=' +
- begin +
- '&endTime=' +
- end,
- signal: globalController.signal
- })
- },
- getDeviceCount: async (params: any) => {
- return await request.get({ url: `/rq/stat/home/device/count/` + params })
- },
- getAbnormalDevice: async (params: any) => {
- return await request.get({ url: `/rq/stat/inspect/exception/device` + params })
- },
- getOutliers: async (params: any) => {
- return await request.get({ url: `/rq/iot-inspect-order-detail/report/status` + params })
- },
- getRhRate: async (params: any) => {
- return await request.get({ url: `/rq/stat/rh/device/utilizationRate`, params })
- },
- getRyRate: async (params: any) => {
- return await request.get({ url: `/rq/stat/ry/device/utilizationRate`, params })
- },
- getRdRate: async (params: any) => {
- return await request.get({ url: `/rq/stat/rd/device/utilizationRate`, params })
- },
- getRhTeamRate: async (params: any) => {
- return await request.get({ url: `rq/stat/rh/device/teamUtilizationRate`, params })
- },
- getRyTeamRate: async (params: any) => {
- return await request.get({ url: `rq/stat/ry/device/teamUtilizationRate`, params })
- },
- getRdTeamRate: async (params: any) => {
- return await request.get({ url: `rq/stat/rd/device/teamUtilizationRate`, params })
- },
- getMaintainCount: async (params: any) => {
- return await request.get({ url: `/rq/stat/home/maintain/count/` + params })
- },
- getMainWorkCount: async () => {
- return await request.get({ url: `/rq/stat/home/work/count` })
- },
- getInspectCount: async () => {
- return await request.get({ url: `/rq/stat/home/inspect/count` })
- },
- getDeviceStatusCount: async (params: any) => {
- return await request.get({ url: `/rq/stat/home/device/status/` + params })
- },
- getDeviceTypeCount: async (params: any) => {
- return await request.get({ url: `/rq/stat/home/device/type/` + params })
- },
- getDeptCount: async () => {
- return await request.get({ url: `/rq/stat/home/dept` })
- },
- getSafeCount: async () => {
- return await request.get({ url: `/rq/stat/home/safe` })
- },
- getMttr: async () => {
- return await request.get({ url: `/rq/stat/mttr` })
- },
- getMaterial: async () => {
- return await request.get({ url: `/pms/iot-outbound/materials/top` })
- },
- getDeptStatistics: async (params: any) => {
- return await request.get({ url: `/rq/iot-opeation-fill/getCount`, params })
- },
- getDevSta: async (params: any) => {
- return await request.get({ url: `/rq/iot-opeation-fill/getDeviceCount`, params })
- },
- getRdWorkload: async (params: any) => {
- return await request.get({ url: `/pms/iot-rd-daily-report/summaryStatistics`, params })
- },
- getRdWorkloadYear: async (params: any) => {
- return await request.get({ url: `/pms/iot-rd-daily-report/workloadKanban`, params })
- },
- getUtilization: async (params: any) => {
- return await request.get({ url: `/rq/stat/rd/device/utilizationRates`, params })
- },
- getWhl: async () => {
- return await request.get({ url: `/rq/report/rd/whl` })
- }
- }
|