微调
This commit is contained in:
@@ -1,30 +1,31 @@
|
|||||||
import type { ReqPage,ResPage } from '@/api/interface'
|
import type {ReqPage, ResPage} from '@/api/interface'
|
||||||
|
|
||||||
// 被检设备模块
|
// 被检设备模块
|
||||||
export namespace Device {
|
export namespace Device {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 被检设备表格分页查询参数
|
* 被检设备表格分页查询参数
|
||||||
*/
|
*/
|
||||||
export interface ReqPqDevParams extends ReqPage{
|
export interface ReqPqDevParams extends ReqPage {
|
||||||
id: string; // 装置序号id 必填
|
id: string; // 装置序号id 必填
|
||||||
name: string; //设备名称
|
name: string; //设备名称
|
||||||
devType?: string; // 设备名称
|
devType?: string; // 设备名称
|
||||||
createTime?:string; //创建时间
|
createTime?: string; //创建时间
|
||||||
pattern:string;
|
pattern: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 被检设备表格分页查询参数
|
|
||||||
*/
|
|
||||||
export interface ReqDevReportParams extends ReqPage{
|
|
||||||
planId?:string; // 计划id
|
|
||||||
devId?:string; // 装置id
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 被检设备新增、修改、根据id查询返回的对象
|
* 被检设备表格分页查询参数
|
||||||
*/
|
*/
|
||||||
|
export interface ReqDevReportParams extends ReqPage {
|
||||||
|
planId?: string; // 计划id
|
||||||
|
devId?: string; // 装置id
|
||||||
|
scriptId?: string; // 脚本id
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 被检设备新增、修改、根据id查询返回的对象
|
||||||
|
*/
|
||||||
export interface ResPqDev {
|
export interface ResPqDev {
|
||||||
id: string; //装置序号ID
|
id: string; //装置序号ID
|
||||||
name: string; //设备名称
|
name: string; //设备名称
|
||||||
@@ -38,54 +39,53 @@ export namespace Device {
|
|||||||
createId: string; //出厂编号
|
createId: string; //出厂编号
|
||||||
hardwareVersion: string; //固件版本
|
hardwareVersion: string; //固件版本
|
||||||
softwareVersion: string; //软件版本
|
softwareVersion: string; //软件版本
|
||||||
protocol:string; //通讯协议
|
protocol: string; //通讯协议
|
||||||
ip: string; //IP地址
|
ip: string; //IP地址
|
||||||
port: number; //端口号
|
port: number; //端口号
|
||||||
encryptionFlag: number; //装置是否为加密版本
|
encryptionFlag: number; //装置是否为加密版本
|
||||||
series?: string| null; //装置识别码(3ds加密)
|
series?: string | null; //装置识别码(3ds加密)
|
||||||
devKey?: string| null; //装置秘钥(3ds加密)
|
devKey?: string | null; //装置秘钥(3ds加密)
|
||||||
sampleID?: string| null; //样品编号
|
sampleId?: string | null; //样品编号
|
||||||
arrivedDate?: string; //送样日期
|
arrivedDate?: string; //送样日期
|
||||||
cityName?: string| null; //所属地市名称
|
cityName?: string | null; //所属地市名称
|
||||||
gDName?: string| null; //所属供电公司名称
|
gDName?: string | null; //所属供电公司名称
|
||||||
subName?: string| null; //所属电站名称
|
subName?: string | null; //所属电站名称
|
||||||
checkState?: number| null; //检测状态
|
checkState?: number | null; //检测状态
|
||||||
checkResult?: number| null; //检测结果
|
checkResult?: number | null; //检测结果
|
||||||
reportState?: number| null; //报告状态
|
reportState?: number | null; //报告状态
|
||||||
reportPath?: string| null; //报告路径
|
reportPath?: string | null; //报告路径
|
||||||
qRCode?: string| null; //设备关键信息二维码
|
qRCode?: string | null; //设备关键信息二维码
|
||||||
reCheckNum: number; //复检次数
|
reCheckNum: number; //复检次数
|
||||||
planId?:string;//检测计划Id
|
planId?: string;//检测计划Id
|
||||||
timeCheckResult?:number;//守时检测结果(0:不符合1:符合)
|
timeCheckResult?: number;//守时检测结果(0:不符合1:符合)
|
||||||
factorFlag?:number;//是否支持系数校准(0:不支持,1:支持)
|
factorFlag?: number;//是否支持系数校准(0:不支持,1:支持)
|
||||||
factorCheckResult?: number;//系数校准结果(0:不合格,1:合格,2:/表示没有做系数校准)
|
factorCheckResult?: number;//系数校准结果(0:不合格,1:合格,2:/表示没有做系数校准)
|
||||||
state: number; //状态
|
state: number; //状态
|
||||||
createBy?: string| null; //创建用户
|
createBy?: string | null; //创建用户
|
||||||
createTime?: string| null; //创建时间
|
createTime?: string | null; //创建时间
|
||||||
updateBy?: string| null; //更新用户
|
updateBy?: string | null; //更新用户
|
||||||
updateTime?: string| null; //更新时间
|
updateTime?: string | null; //更新时间
|
||||||
icdId: string| null;
|
icdId: string | null;
|
||||||
power: string| null;//工作电源
|
power: string | null;//工作电源
|
||||||
preinvestmentPlan: string| null;
|
preinvestmentPlan: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export interface ResDev{
|
export interface ResDev {
|
||||||
id: string;
|
id: string;
|
||||||
name: string ,
|
name: string,
|
||||||
icd:string ,
|
icd: string,
|
||||||
power:string,
|
power: string,
|
||||||
devVolt:number,
|
devVolt: number,
|
||||||
devCurr:number,
|
devCurr: number,
|
||||||
devChns:number,
|
devChns: number,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 被检设备表格查询分页返回的对象;
|
||||||
|
*/
|
||||||
|
export interface ResPqDevPage extends ResPage<ResPqDev> {
|
||||||
|
|
||||||
/**
|
}
|
||||||
* 被检设备表格查询分页返回的对象;
|
}
|
||||||
*/
|
|
||||||
export interface ResPqDevPage extends ResPage<ResPqDev> {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1064,7 +1064,7 @@ const openDrawer = async (title: string, row: any) => {
|
|||||||
|
|
||||||
|
|
||||||
if (title === '报告生成') {
|
if (title === '报告生成') {
|
||||||
await generateDevReport({'planId': checkStore.plan.id, 'devId': row.id})
|
await generateDevReport({'planId': checkStore.plan.id, 'devId': row.id,'scriptId':checkStore.plan.scriptId})
|
||||||
emit('batchGenerateClicked') // 触发事件
|
emit('batchGenerateClicked') // 触发事件
|
||||||
ElMessage.success({message: `报告生成成功!`})
|
ElMessage.success({message: `报告生成成功!`})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,8 +103,8 @@
|
|||||||
<el-form-item label='密钥' prop='devKey' clearable v-if="formContent.encryptionFlag">
|
<el-form-item label='密钥' prop='devKey' clearable v-if="formContent.encryptionFlag">
|
||||||
<el-input v-model='formContent.devKey' placeholder="请输入密钥" show-password/>
|
<el-input v-model='formContent.devKey' placeholder="请输入密钥" show-password/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label='样品编号' prop='sampleID' clearable v-if="DevIsShow && scene === '0'">
|
<el-form-item label='样品编号' prop='sampleId' clearable v-if="DevIsShow && scene === '0'">
|
||||||
<el-input v-model='formContent.sampleID' placeholder="请输入样品编号" />
|
<el-input v-model='formContent.sampleId' placeholder="请输入样品编号" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label='送样日期' prop='arrivedDate' v-if="scene === '0'">
|
<el-form-item label='送样日期' prop='arrivedDate' v-if="scene === '0'">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
|
|||||||
Reference in New Issue
Block a user