Files
pqs-9100_client/frontend/src/api/plan/interface/index.ts
2025-07-21 13:47:56 +08:00

58 lines
2.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { ReqPage } from '@/api/interface'
// 检测计划模块
export namespace Plan {
// 检测计划接口
export interface ResPlan {
id: string; //检测计划ID
name: string; //检测计划名称
pattern?: string; //模式,字典表(数字、模拟、比对)
fatherPlanId?: string; //父计划ID
dataSourceId: string; //数据源ID
scriptId: string; //检测脚本ID
errorSysId: string;//误差体系ID
timeCheck:number;//守时检测:0否1。是
testState: number; //检测状态:0:未检、1检测中、2检测完成,默认为 0
reportState: number; //报告生成状态:0:未生成、1部分生成、2全部生成,默认为 0
result: number;//检测结果:0:不符合、1:符合、2/,默认为 2
code:number; //自动生成,用于生成数据表后缀
state: number;//;状态0-删除 1-正常
createBy?:string; //创建用户
createTime?:string; //创建时间
updateBy?:string; //更新用户
updateTime?:string; //更新时间
associateReport:number;//是否关联报告模板 0否 1是
reportTemplateName:string;
reportTemplateVersion:string;
dataRule:string;//数据处理原则
standardDevIdList:string[];
standardDevMap:Map<string,number>;//标准设备
testItems:string[];//测试项
Check_By?:string;//计划检测人
progress?: number; // 进度百分比,例如 75
children?: ResPlan[];
}
// 检测计划 + 分页
export interface ReqPlanParams extends ReqPage,ResPlan {
}
export interface ReqPlan extends ResPlan {
datasourceIds:string;
sourceIds: string | null;
planId:string;
scriptName: string ;
errorSysName: string;
sourceName: string ;
standardDevNameStr: string;
testItemNameStr:string;
devIds: string[];
}
}