| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- import request from '@/config/axios'
- // 设备台账 API
- export const IotStatApi = {
- 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 })
- },
- 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 })
- },
- getDeviceCount: async (params: any) => {
- return await request.get({ url: `/rq/stat/home/device/count/`+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 })
- },
- }
|