批量生成报告

This commit is contained in:
caozehui
2025-05-15 16:08:35 +08:00
parent 098ab3a41d
commit 8b144b63fc
2 changed files with 23 additions and 4 deletions

View File

@@ -388,6 +388,14 @@ const open = async (sign: string,
// 初始化 boundPqDevList 为空数组
unboundPqDevList.value = pqDevList.value
boundPqDevList.value = [];
//楼下场景新增下拉框需要默认
formContent.scriptId = pqScriptList.value[0].id;
formContent.errorSysId = pqErrSysList.value[0].id;
formContent.sourceIds = pqSourceList.value[0].id;
formContent.datasourceIds = dictStore.getDictData('Datasource')[0].code;
formContent.dataRule = dictStore.getDictData('Data_Rule')[0].id;
}else{//编辑时先给表单赋值(这会没接收被检设备),需要手动再给被检设备复制后整体表单赋值
const [pqSource_Result, PqScript_Result, PqErrSys_Result,boundPqDevList_Result, unboundPqDevList_Result,pqReportName_Result] = await Promise.all([