新增检测计划列表

This commit is contained in:
sjl
2024-10-29 11:17:04 +08:00
parent ff892d9e24
commit f9bb15ad24
12 changed files with 672 additions and 714 deletions

View File

@@ -11,3 +11,8 @@ export const getDeviceList = (params: Device.ReqDeviceParams) => {
return http.post<ResPage<Device.ResDeviceList>>(`/RoleList_Post`, params)
// return http.post<ResPage<Role.ResRoleList>>(`${rePrefix}/device/list`, params)
}
export const getPlan_DeviceList = (params: Device.DeviceList) => {
//return http.post<ResPage<Device.ResDeviceList>>(`/RoleList_Post`, params)
// return http.post<ResPage<Role.ResRoleList>>(`${rePrefix}/device/list`, params)
}

View File

@@ -45,4 +45,51 @@ const data = [
},
]
export default data
const plan_devicedata = [
{
id: '1', //装置序号ID
Name: '设备1', //设备名称
Dev_Type: 'PQS882A',//设备类型
Dev_Chns: 1, //设备通道数
Check_Result: '合格', //检测结果
Report_State: '已生成', //报告状态
Document_State: '归档', //归档状态
Check_State:'检测完成',//检测状态
ReCheck_Num: 0, //复检次数
},
{
id: '2', //装置序号ID
Name: '设备2', //设备名称
Dev_Type: 'PQS882B4',//设备类型
Dev_Chns: 4, //设备通道数
Check_Result: '/', //检测结果
Report_State: '未生成', //报告状态
Document_State: '未归档', //归档状态
Check_State:'未检',//检测状态
ReCheck_Num: 0, //复检次数
},
{
id: '3', //装置序号ID
Name: '设备3', //设备名称
Dev_Type: 'PQS882B4',//设备类型
Dev_Chns: 4, //设备通道数
Check_Result: '/', //检测结果
Report_State: '未生成', //报告状态
Document_State: '未归档', //归档状态
Check_State:'检测中',//检测状态
ReCheck_Num: 0, //复检次数
},
{
id: '4', //装置序号ID
Name: '设备4', //设备名称
Dev_Type: 'PQS882B4',//设备类型
Dev_Chns: 4, //设备通道数
Check_Result: '不合格', //检测结果
Report_State: '未生成', //报告状态
Document_State: '未归档', //归档状态
Check_State:'检测完成',//检测状态
ReCheck_Num: 1, //复检次数
},
]
export default {data,plan_devicedata}

View File

@@ -28,4 +28,41 @@ export namespace Device {
deviceCompany: string;//设备厂家
deviceModel: string; //设备模式 模拟 数字 比对
}
// 被检设备列表
export interface DeviceList {
id: string; //装置序号ID
Name: string; //设备名称
Pattern?: string; //设备模式 模拟 数字 比对
Dev_Type: string;//设备类型
Dev_Chns: number; //设备通道数
Dev_Volt?: number; //额定电压V
Dev_Curr?: number; //额定电流A
Manufacturer?: string;//生产厂家
CreateDate?: string; //生产日期
CreateId?: string; //出厂编号
Hardware_Version?: string; //固件版本
Software_Version?: string; //软件版本
IP?: string; //IP地址
Port?: number; //端口号
IsEncryption?: string; //装置是否为加密版本
Series?: string; //装置识别码3ds加密
Dev_Key?: string; //装置秘钥3ds加密
SampleID?: string; //样品编号
Arrived_Date?: string; //送样日期
City_Name?: string; //所属地市名称
GD_Name?: string; //所属供电公司名称
Sub_Name?: string; //所属电站名称
Check_State: string; //检测状态
Check_Result: string; //检测结果
Report_State: string; //报告状态
Document_State: string; //归档状态
ReCheck_Num: number; //复检次数
State?: number; //状态
Create_By?: string; //创建用户
Create_Time?: string; //创建时间
Update_By?: string; //更新用户
Update_Time?: string; //更新时间
}
}

View File

@@ -0,0 +1,44 @@
import type { ReqPage } from '@/api/interface'
import type { DatetimeFormatProps } from 'vue-i18n';
// 检测计划模块
export namespace Plan {
// 检测计划列表
export interface PlanList {
id: string; //检测计划ID
name: string; //检测计划名称
pattern: string; //模式,字典表(数字、模拟、比对)
father_Plan_Id: string; //父计划ID
dataSource_Id: string; //数据源ID
script_Id: string; //检测脚本ID
error_Sys_Id: string;//误差体系ID
test_State: string; //检测状态
report_State: string; //报告生成状态
result: string;//检测结果
state: number; //状态
create_By?: string; //创建用户
create_Time?: string;//创建时间
update_By?: string; //更新用户
update_Time?: string; //更新时间
}
// 被检设备参数
export interface ReqPlanParams extends ReqPage {
id: string; //检测计划ID
name: string; //检测计划名称
pattern: string; //模式,字典表(数字、模拟、比对)
father_Plan_Id: string; //父计划ID
dataSource_Id: string; //数据源ID
script_Id: string; //检测脚本ID
error_Sys_Id: string;//误差体系ID
test_State: string; //检测状态
report_State: string; //报告生成状态
result: string;//检测结果
state: number; //状态
create_By?: string; //创建用户
create_Time?: string;//创建时间
update_By?: string; //更新用户
update_Time?: string; //更新时间
}
}

View File

@@ -0,0 +1,125 @@
import type {Plan} from "./interface"
const plandata = ref<Plan.PlanList[]>([
{
'id': '1',
'name': '检测计划1',
'pattern':'模拟式',
'father_Plan_Id':'/',
'dataSource_Id':'分钟统计数据最大值',
'script_Id':'国网入网检测脚本(单影响量-模拟式)',
'error_Sys_Id':'Q/GDW 1650.2- 2016',
'test_State':'未检',
'report_State':'未生成',
'result':'符合',
'state': 1,
'create_By':'',
'create_Time':'',
'update_By':'',
'update_Time':'',
},
{
'id': '2',
'name': '检测子计划1-1',
'pattern':'模拟式',
'father_Plan_Id':'检测计划1',
'dataSource_Id':'分钟统计数据最大值',
'script_Id':'国网入网检测脚本(单影响量-模拟式)',
'error_Sys_Id':'Q/GDW 1650.2- 2016',
'test_State':'未检',
'report_State':'未生成',
'result':'符合',
'state': 1,
'create_By':'',
'create_Time':'',
'update_By':'',
'update_Time':'',
},
{
'id': '3',
'name': '检测子计划1-2',
'pattern':'模拟式',
'father_Plan_Id':'检测计划1',
'dataSource_Id':'分钟统计数据最大值',
'script_Id':'国网入网检测脚本(单影响量-模拟式)',
'error_Sys_Id':'Q/GDW 1650.2- 2016',
'test_State':'未检',
'report_State':'未生成',
'result':'符合',
'state': 1,
'create_By':'',
'create_Time':'',
'update_By':'',
'update_Time':'',
},
{
'id': '4',
'name': '检测计划2',
'pattern':'模拟式',
'father_Plan_Id':'/',
'dataSource_Id':'分钟统计数据最小值',
'script_Id':'国网入网检测脚本(单影响量-模拟式)',
'error_Sys_Id':'Q/GDW 10650.2 - 2021',
'test_State':'检测完成',
'report_State':'部分生成',
'result':'符合',
'state': 1,
'create_By':'',
'create_Time':'',
'update_By':'',
'update_Time':'',
},
{
'id': '5',
'name': '检测计划3',
'pattern':'模拟式',
'father_Plan_Id':'/',
'dataSource_Id':'分钟统计数据最大值',
'script_Id':'/',
'error_Sys_Id':'/',
'test_State':'未检',
'report_State':'未生成',
'result':'符合',
'state': 1,
'create_By':'',
'create_Time':'',
'update_By':'',
'update_Time':'',
},
{
'id': '6',
'name': '检测子计划4',
'pattern':'模拟式',
'father_Plan_Id':'/',
'dataSource_Id':'分钟统计数据CP95值',
'script_Id':'国网入网检测脚本(单影响量-模拟式)',
'error_Sys_Id':'Q/GDW 1650.2- 2016',
'test_State':'未检',
'report_State':'未生成',
'result':'符合',
'state': 1,
'create_By':'',
'create_Time':'',
'update_By':'',
'update_Time':'',
},
{
'id': '7',
'name': '检测子计划4-1',
'pattern':'模拟式',
'father_Plan_Id':'检测计划4',
'dataSource_Id':'分钟统计数据CP95值',
'script_Id':'国网入网检测脚本(单影响量-模拟式)',
'error_Sys_Id':'Q/GDW 1650.2- 2016',
'test_State':'未检',
'report_State':'未生成',
'result':'符合',
'state': 1,
'create_By':'',
'create_Time':'',
'update_By':'',
'update_Time':'',
},
])
export default plandata