2025-03-20 16:31:15 +08:00
|
|
|
|
import type {ReqPage, ResPage} from '@/api/interface'
|
2024-10-23 20:53:58 +08:00
|
|
|
|
|
|
|
|
|
|
// 被检设备模块
|
|
|
|
|
|
export namespace Device {
|
2024-10-29 11:17:04 +08:00
|
|
|
|
|
2025-03-20 16:31:15 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 被检设备表格分页查询参数
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface ReqPqDevParams extends ReqPage {
|
|
|
|
|
|
id: string; // 装置序号id 必填
|
|
|
|
|
|
name: string; //设备名称
|
|
|
|
|
|
devType?: string; // 设备名称
|
|
|
|
|
|
createTime?: string; //创建时间
|
|
|
|
|
|
pattern: string;
|
|
|
|
|
|
}
|
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 {
|
|
|
|
|
|
planId?: string; // 计划id
|
|
|
|
|
|
devId?: string; // 装置id
|
|
|
|
|
|
scriptId?: string; // 脚本id
|
2025-03-20 19:42:46 +08:00
|
|
|
|
planCode?: string;
|
2025-04-21 09:11:31 +08:00
|
|
|
|
devIdList?: string[]; // 装置id列表
|
2025-03-20 16:31:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 被检设备新增、修改、根据id查询返回的对象
|
|
|
|
|
|
*/
|
2024-11-06 20:31:07 +08:00
|
|
|
|
export interface ResPqDev {
|
2024-10-29 11:17:04 +08:00
|
|
|
|
id: string; //装置序号ID
|
2024-10-30 15:19:47 +08:00
|
|
|
|
name: string; //设备名称
|
2024-11-06 20:31:07 +08:00
|
|
|
|
pattern: string; //设备模式 模拟 数字 比对
|
|
|
|
|
|
devType: string;//设备类型
|
|
|
|
|
|
devChns: number; //设备通道数
|
|
|
|
|
|
devVolt: number; //额定电压(V)
|
|
|
|
|
|
devCurr: number; //额定电流(A)
|
2025-01-13 18:12:36 +08:00
|
|
|
|
manufacturer?: string | null;//生产厂家
|
2024-11-06 20:31:07 +08:00
|
|
|
|
createDate: string; //生产日期
|
|
|
|
|
|
createId: string; //出厂编号
|
|
|
|
|
|
hardwareVersion: string; //固件版本
|
|
|
|
|
|
softwareVersion: string; //软件版本
|
2025-03-20 16:31:15 +08:00
|
|
|
|
protocol: string; //通讯协议
|
2024-11-06 20:31:07 +08:00
|
|
|
|
ip: string; //IP地址
|
|
|
|
|
|
port: number; //端口号
|
2024-11-14 11:34:25 +08:00
|
|
|
|
encryptionFlag: number; //装置是否为加密版本
|
2025-03-20 16:31:15 +08:00
|
|
|
|
series?: string | null; //装置识别码(3ds加密)
|
|
|
|
|
|
devKey?: string | null; //装置秘钥(3ds加密)
|
|
|
|
|
|
sampleId?: string | null; //样品编号
|
2024-11-07 11:29:28 +08:00
|
|
|
|
arrivedDate?: string; //送样日期
|
2025-03-20 16:31:15 +08:00
|
|
|
|
cityName?: string | null; //所属地市名称
|
|
|
|
|
|
gDName?: string | null; //所属供电公司名称
|
|
|
|
|
|
subName?: string | null; //所属电站名称
|
|
|
|
|
|
checkState?: number | null; //检测状态
|
|
|
|
|
|
checkResult?: number | null; //检测结果
|
|
|
|
|
|
reportState?: number | null; //报告状态
|
|
|
|
|
|
reportPath?: string | null; //报告路径
|
|
|
|
|
|
qRCode?: string | null; //设备关键信息二维码
|
2024-11-06 20:31:07 +08:00
|
|
|
|
reCheckNum: number; //复检次数
|
2025-03-20 16:31:15 +08:00
|
|
|
|
planId?: string;//检测计划Id
|
|
|
|
|
|
timeCheckResult?: number;//守时检测结果(0:不符合1:符合)
|
|
|
|
|
|
factorFlag?: number;//是否支持系数校准(0:不支持,1:支持)
|
2025-01-09 13:56:56 +08:00
|
|
|
|
factorCheckResult?: number;//系数校准结果(0:不合格,1:合格,2:/表示没有做系数校准)
|
2024-11-06 20:31:07 +08:00
|
|
|
|
state: number; //状态
|
2025-03-20 16:31:15 +08:00
|
|
|
|
createBy?: string | null; //创建用户
|
|
|
|
|
|
createTime?: string | null; //创建时间
|
|
|
|
|
|
updateBy?: string | null; //更新用户
|
|
|
|
|
|
updateTime?: string | null; //更新时间
|
|
|
|
|
|
icdId: string | null;
|
|
|
|
|
|
power: string | null;//工作电源
|
|
|
|
|
|
preinvestmentPlan: string | null;
|
2024-10-29 11:17:04 +08:00
|
|
|
|
}
|
2024-11-06 20:31:07 +08:00
|
|
|
|
|
2025-01-13 21:06:24 +08:00
|
|
|
|
|
2025-03-20 16:31:15 +08:00
|
|
|
|
export interface ResDev {
|
|
|
|
|
|
id: string;
|
|
|
|
|
|
name: string,
|
|
|
|
|
|
icd: string,
|
|
|
|
|
|
power: string,
|
|
|
|
|
|
devVolt: number,
|
|
|
|
|
|
devCurr: number,
|
|
|
|
|
|
devChns: number,
|
2025-01-13 21:06:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-03-20 16:31:15 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 被检设备表格查询分页返回的对象;
|
|
|
|
|
|
*/
|
|
|
|
|
|
export interface ResPqDevPage extends ResPage<ResPqDev> {
|
2025-01-13 21:06:24 +08:00
|
|
|
|
|
2025-03-20 16:31:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|