2025-09-03 20:44:32 +08:00
|
|
|
|
import type { ReqPage, ResPage } from '@/api/interface'
|
|
|
|
|
|
import type { Monitor } from './monitor'
|
2024-10-23 20:53:58 +08:00
|
|
|
|
|
|
|
|
|
|
// 被检设备模块
|
|
|
|
|
|
export namespace Device {
|
2025-03-20 16:31:15 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 被检设备表格分页查询参数
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface ReqPqDevParams extends ReqPage {
|
2025-09-03 20:44:32 +08:00
|
|
|
|
id: string // 装置序号id 必填
|
|
|
|
|
|
name: string //设备名称
|
|
|
|
|
|
devType?: string // 设备名称
|
|
|
|
|
|
createTime?: string //创建时间
|
|
|
|
|
|
pattern: string
|
2025-03-20 16:31:15 +08:00
|
|
|
|
}
|
2025-01-15 18:01:12 +08:00
|
|
|
|
|
2024-11-06 20:31:07 +08:00
|
|
|
|
/**
|
2025-03-20 16:31:15 +08:00
|
|
|
|
* 被检设备表格分页查询参数
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface ReqDevReportParams extends ReqPage {
|
2025-09-03 20:44:32 +08:00
|
|
|
|
planId?: string // 计划id
|
|
|
|
|
|
devId?: string // 装置id
|
|
|
|
|
|
scriptId?: string // 脚本id
|
|
|
|
|
|
planCode?: string
|
|
|
|
|
|
devIdList?: string[] // 装置id列表
|
2025-03-20 16:31:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 被检设备新增、修改、根据id查询返回的对象
|
|
|
|
|
|
*/
|
2024-11-06 20:31:07 +08:00
|
|
|
|
export interface ResPqDev {
|
2025-09-03 20:44:32 +08:00
|
|
|
|
id: string //装置序号ID
|
|
|
|
|
|
name: string //设备名称
|
|
|
|
|
|
pattern: string //设备模式 模拟 数字 比对
|
|
|
|
|
|
devType: string //设备类型
|
|
|
|
|
|
manufacturer?: string | null //生产厂家
|
|
|
|
|
|
createDate: string //生产日期
|
|
|
|
|
|
createId: string //出厂编号
|
|
|
|
|
|
hardwareVersion: string //固件版本
|
|
|
|
|
|
softwareVersion: string //软件版本
|
|
|
|
|
|
protocol: string //通讯协议
|
|
|
|
|
|
ip: string //IP地址
|
|
|
|
|
|
port: number //端口号
|
|
|
|
|
|
encryptionFlag: number //装置是否为加密版本
|
|
|
|
|
|
series?: string | null //装置识别码(3ds加密)
|
|
|
|
|
|
devKey?: string | null //装置秘钥(3ds加密)
|
|
|
|
|
|
sampleId?: string | null //样品编号
|
|
|
|
|
|
arrivedDate?: string //送样日期
|
|
|
|
|
|
cityName?: string | null //所属地市名称
|
|
|
|
|
|
gdName?: string | null //所属供电公司名称
|
|
|
|
|
|
subName?: string | null //所属电站名称
|
|
|
|
|
|
reportPath?: string | null //报告路径
|
|
|
|
|
|
planId?: string //检测计划Id
|
|
|
|
|
|
factorFlag?: number //是否支持系数校准(0:不支持,1:支持)
|
|
|
|
|
|
preinvestmentPlan: string | null //预投计划
|
|
|
|
|
|
delegate: string | null //委托方
|
|
|
|
|
|
inspectChannel?: string[] | string //被检通道
|
|
|
|
|
|
inspectDate?: string | null //定检日期
|
|
|
|
|
|
harmSysId?: string | null //谐波系统设备id
|
|
|
|
|
|
importFlag?: number //是否为导入设备 0否 1是
|
|
|
|
|
|
state: number //状态
|
|
|
|
|
|
createBy?: string | null //创建用户
|
|
|
|
|
|
createTime?: string | null //创建时间
|
|
|
|
|
|
updateBy?: string | null //更新用户
|
|
|
|
|
|
updateTime?: string | null //更新时间
|
|
|
|
|
|
|
|
|
|
|
|
devChns: number //设备通道数
|
|
|
|
|
|
devVolt: number //额定电压(V)
|
|
|
|
|
|
devCurr: number //额定电流(A)
|
|
|
|
|
|
icdId: string | null
|
|
|
|
|
|
power: string | null //工作电源
|
2025-07-09 20:12:40 +08:00
|
|
|
|
|
2025-09-03 20:44:32 +08:00
|
|
|
|
devId?: number
|
|
|
|
|
|
checkState?: number | null //检测状态(0:未检,1:检测中,2:检测完成 3:归档)
|
|
|
|
|
|
checkResult?: number | null //检测结果(0:不符合,1:符合,2:未检)
|
|
|
|
|
|
reportState?: number | null //报告状态(0:未生成,1:已生成,2:未检)
|
|
|
|
|
|
recheckNum: number //复检次数
|
|
|
|
|
|
timeCheckResult?: number //守时检测结果(0:不符合1:符合)
|
|
|
|
|
|
factorCheckResult?: number //系数校准结果(0:不合格,1:合格,2:未检)
|
|
|
|
|
|
realtimeResult?: number //实时数据结论(0:不符合,1:符合,2:未检)
|
|
|
|
|
|
statisticsResult?: number //统计数据结论(0:不符合,1:符合,2:未检)
|
|
|
|
|
|
recordedResult?: number //录波数据结论(0:不符合,1:符合,2:未检)
|
|
|
|
|
|
checkBy?: string | null //检测人
|
|
|
|
|
|
checkTime?: string | null //检测时间
|
|
|
|
|
|
preDetectTime?: number //预检测耗时
|
|
|
|
|
|
coefficientTime?: number //系数校准耗时
|
|
|
|
|
|
formalCheckTime?: number //正式检测耗时
|
2025-07-09 20:12:40 +08:00
|
|
|
|
|
2025-09-03 20:44:32 +08:00
|
|
|
|
boundPlanName?: string | null
|
|
|
|
|
|
assign?: number ////是否分配给检测人员 0否 1是
|
|
|
|
|
|
monitorList: Monitor.ResPqMon[]
|
|
|
|
|
|
checked: boolean // 是否已选择
|
|
|
|
|
|
disabled: boolean // 是否禁用
|
2024-10-29 11:17:04 +08:00
|
|
|
|
}
|
2024-11-06 20:31:07 +08:00
|
|
|
|
|
2025-07-21 13:47:56 +08:00
|
|
|
|
export interface SelectOption {
|
2025-09-03 20:44:32 +08:00
|
|
|
|
label: string
|
|
|
|
|
|
value: string | number
|
2025-07-21 13:47:56 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-03-20 16:31:15 +08:00
|
|
|
|
export interface ResDev {
|
2025-09-03 20:44:32 +08:00
|
|
|
|
id: string
|
|
|
|
|
|
name: string
|
|
|
|
|
|
icd: string
|
|
|
|
|
|
power: string
|
|
|
|
|
|
devVolt: number
|
|
|
|
|
|
devCurr: number
|
|
|
|
|
|
devChns: number
|
2025-01-13 21:06:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-05-26 15:36:06 +08:00
|
|
|
|
export interface ResTH {
|
2025-09-03 20:44:32 +08:00
|
|
|
|
temperature: number | null //温度
|
|
|
|
|
|
humidity: number | null //湿度
|
2025-05-26 15:36:06 +08:00
|
|
|
|
}
|
2025-03-20 16:31:15 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 被检设备表格查询分页返回的对象;
|
|
|
|
|
|
*/
|
2025-09-03 20:44:32 +08:00
|
|
|
|
export interface ResPqDevPage extends ResPage<ResPqDev> {}
|
2025-03-20 16:31:15 +08:00
|
|
|
|
}
|