export interface DeviceQuery {
  pageNo: number
  pageSize: number
  deviceName?: string
  deviceCode?: string
}

export interface DeviceList {
  id: number
  deviceCode: string
  deviceName: string
  deptName: string
  deviceStatus: string
  hasSetMaintenanceBom: boolean
}

export interface Query {
  deviceIds?: string
  planId?: number
  bomFlag?: string
}

export interface Plan {
  createtime?: number
  id?: number
  deptId?: number
  name: string
  remark: string
  responsiblePerson: string
  serialNumber: string
  status?: number
}

export interface List {
  deviceId: number
  bomNodeId: string
  deviceCode: string
  deviceName: string
  name: string
  runningTimeRule: 0 | 1
  mileageRule: 0 | 1
  naturalDateRule: 0 | 1
  totalRunTime: number | null
  tempTotalRunTime: number | null
  totalMileage: number | null
  tempTotalMileage: number | null
  lastMaintenanceDate: number | null
  lastRunningTime: number | null
  nextRunningTime: number | null
  lastRunningKilometers: number | null
  nextRunningKilometers: number | null
  lastNaturalDate: number | null
  nextNaturalDate: number | null
  kiloCycleLead: number | null
  timePeriodLead: number | null
  naturalDatePeriodLead: number | null
  code: string | null
  type: string | null
}
