From 0473a4f9f30854ac131894d22f8a3e5fb5919228 Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Thu, 30 May 2024 16:08:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=88=E7=AB=AF=E6=A3=80=E6=B5=8B=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E9=99=90=E5=88=B6=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F&=E8=AF=A6=E6=83=85=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=94=99=E8=AF=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supervision-boot/jointDebugList/index.ts | 12 ++ .../components/monitorpoint/addForm.vue | 4 +- .../components/monitorpoint/detail.vue | 2 +- .../components/terminainal/addForm.vue | 27 +-- .../components/terminainal/detail.vue | 176 ++++++++---------- 5 files changed, 102 insertions(+), 119 deletions(-) diff --git a/src/api/supervision-boot/jointDebugList/index.ts b/src/api/supervision-boot/jointDebugList/index.ts index 7444c4b2..fa08864c 100644 --- a/src/api/supervision-boot/jointDebugList/index.ts +++ b/src/api/supervision-boot/jointDebugList/index.ts @@ -29,4 +29,16 @@ export const getMointorPointTempLinedebugDetail = (obj: any) => { } +//同步台账 +export const setTempLinedebugLedgerSync = (obj: any) => { + let form = new FormData() + form.append('id', obj.id) + return createAxios({ + url:'/supervision-boot/tempLinedebug/ledgerSync', + method: 'POST', + data:form + }) +} + + diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue index f9e623dc..f47a6ad7 100644 --- a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue +++ b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue @@ -324,7 +324,7 @@ v-model:file-list="form.mainWiringDiagram" ref="uploadRef" action="" - accept=".doc,.docx,.xlsx,.xls,.pdf" + :accept="acceptType" :limit="1" :on-exceed="handleExceed" :on-change="choose" @@ -361,6 +361,8 @@ const dictData = useDictData() const dialogFormVisible = ref(false) const form: any = ref({}) const ruleFormRef = ref(null) +// acceptType .doc,.docx,.xlsx,.xls,.pdf +const acceptType='' //字典获取所属地市 const areaOptionList = dictData.getBasicData('jibei_area') //字典获取监测点电压等级 diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/detail.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/detail.vue index b4a60921..a91c92e7 100644 --- a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/detail.vue +++ b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/detail.vue @@ -112,7 +112,7 @@ - + {{ detailData?.mainWiringDiagram.name }} diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/addForm.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/addForm.vue index ce8c557f..1a1ef15c 100644 --- a/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/addForm.vue +++ b/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/addForm.vue @@ -105,7 +105,7 @@ v-model:file-list="form.deviceFilePath" ref="uploadRef" action="" - accept=".xls,.xlsx" + :accept="acceptType" :limit="1" :on-exceed="handleExceed" :on-change="choose" @@ -441,7 +441,7 @@ v-model:file-list="form.informationSecurityTestReport" ref="uploadRef" action="" - accept=".xls,.xlsx" + :accept="acceptType" :limit="1" :on-exceed="handleExceed" :on-change="choose" @@ -458,7 +458,7 @@ v-model:file-list="form.acceptanceInspectionReportSingle" ref="uploadRef" action="" - accept=".xls,.xlsx" + :accept="acceptType" :limit="1" :on-exceed="handleExceed" :on-change="choose" @@ -475,7 +475,7 @@ v-model:file-list="form.acceptanceInspectionReport" ref="uploadRef" action="" - accept=".xls,.xlsx" + :accept="acceptType" :limit="1" :on-exceed="handleExceed" :on-change="choose" @@ -492,7 +492,7 @@ v-model:file-list="form.typeExperimentReport" ref="uploadRef" action="" - accept=".xls,.xlsx" + :accept="acceptType" :limit="1" :on-exceed="handleExceed" :on-change="choose" @@ -509,7 +509,7 @@ v-model:file-list="form.factoryInspectionReport" ref="uploadRef" action="" - accept=".xls,.xlsx" + :accept="acceptType" :limit="1" :on-exceed="handleExceed" :on-change="choose" @@ -526,7 +526,7 @@ v-model:file-list="form.performanceTestReport" ref="uploadRef" action="" - accept=".xls,.xlsx" + :accept="acceptType" :limit="1" :on-exceed="handleExceed" :on-change="choose" @@ -543,7 +543,7 @@ v-model:file-list="form.otherAttachments" ref="uploadRef" action="" - accept=".xls,.xlsx" + :accept="acceptType" :limit="1" :on-exceed="handleExceed" :on-change="choose" @@ -585,6 +585,8 @@ const dictData = useDictData() const dialogFormVisible = ref(false) const form: any = ref({}) const ruleFormRef = ref(null) +// acceptType .xls,.xlsx +const acceptType='' //字典获取所属地市 const areaOptionList = dictData.getBasicData('jibei_area') //字典获取电压互感器类型 @@ -749,7 +751,6 @@ const resetForm = async () => { deviceFilePath: [], //终端台账信息 factoryInspectionReport: [], //出厂检验报告 informationSecurityTestReport: [], //信息安全检测报告 - lineFilePath: [], //监测点台账信息 otherAttachments: [], //其他附件 performanceTestReport: [], //性能检测报告 typeExperimentReport: [], //型式实验报告 @@ -807,7 +808,6 @@ const devReportForm = ref({ deviceFilePath: [], //终端台账信息 factoryInspectionReport: [], //出厂检验报告 informationSecurityTestReport: [], //信息安全检测报告 - lineFilePath: [], //监测点台账信息 otherAttachments: [], //其他附件 performanceTestReport: [], //性能检测报告 typeExperimentReport: [], //型式实验报告 @@ -1224,8 +1224,6 @@ const uploadFileName = val => { } // 终端台账信息 const deviceFilePath = ref('') -//监测点台账信息 -const lineFilePath = ref('') //验收检验报告单 const acceptanceInspectionReportSingle = ref('') //验收检验报告 @@ -1246,10 +1244,6 @@ const choose = (e: any) => { if (uploadName.value == 'deviceFilePath') { deviceFilePath.value = res.data.name } - //监测点台账信息 - else if (uploadName.value == 'lineFilePath') { - lineFilePath.value = res.data.name - } //验收检验报告单 else if (uploadName.value == 'acceptanceInspectionReportSingle') { acceptanceInspectionReportSingle.value = res.data.name @@ -1351,7 +1345,6 @@ const confirmForm = () => { deviceFilePath: deviceFilePath?.value, //终端台账信息 factoryInspectionReport: factoryInspectionReport.value, //出厂检验报告 informationSecurityTestReport: informationSecurityTestReport.value, //信息安全检测报告 - lineFilePath: lineFilePath?.value, //监测点台账信息 performanceTestReport: performanceTestReport.value, //性能检测报告 typeExperimentReport: typeExperimentReport.value, //型式实验报告 otherAttachments: otherAttachments?.value //其他附件 diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/detail.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/detail.vue index 2d094c34..d24f3562 100644 --- a/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/detail.vue +++ b/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/detail.vue @@ -23,14 +23,6 @@ }} - - - - - - {{ detailData?.lineFilePath.name }} - - {{ detailData.supervisionTempDeviceReport?.powerCompany }} @@ -113,12 +105,12 @@ {{ detailData.supervisionTempDeviceReport?.terminalSecretKey }} - + {{ terminalModelList.find(item => { @@ -193,57 +185,53 @@ {{ detailData.supervisionTempDeviceReport?.contractNumber }} - + - - {{ detailData?.factoryInspectionReport.name }} - - - - - - - + {{ detailData?.informationSecurityTestReport.name }} - + - {{ detailData?.otherAttachments.name }} + + {{ detailData?.acceptanceInspectionReportSingle.name }} + - + - {{ detailData?.performanceTestReport.name }} + {{ detailData?.acceptanceInspectionReport.name }} - + + - {{ detailData?.typeExperimentReport.name }} + {{ detailData?.typeExperimentReport.name }} + + + + + + + {{ detailData?.factoryInspectionReport.name }} - {{ detailData?.performanceTestReport.name }} + {{ detailData?.performanceTestReport.name }} - + - {{ detailData?.typeExperimentReport.name }} - - - - - - {{ detailData?.additionalAttachments.name }} + {{ detailData?.otherAttachments.name }} @@ -342,7 +330,20 @@ const communicationStatusList = [ //字典获取监测点电压等级 const voltageLevelList = dictData.getBasicData('Dev_Voltage_Stand') //字典获取数据类型 -const dataTypeList = dictData.getBasicData('System_Type') +const dataTypeList = [ + { + id: '0', + name: '暂态系统' + }, + { + id: '1', + name: '稳态系统' + }, + { + id: '2', + name: '两个系统' + } +] //字典获取终端型号 const terminalTypeList = dictData.getBasicData('Dev_Type') //字典获取电压互感器类型 @@ -374,60 +375,48 @@ const getFrontEndMachineList = () => { } getFrontEndMachineList() const getFileName = async () => { - //验收检验报告 - if (detailData.value.acceptanceInspectionReport) { - await getFileNamePath(detailData.value.acceptanceInspectionReport, 'acceptanceInspectionReport') + //信息安全检测报告 + if (detailData.value.informationSecurityTestReport) { + await getFileNamePath(detailData.value.informationSecurityTestReport, 'informationSecurityTestReport') } //验收检验报告单 if (detailData.value.acceptanceInspectionReportSingle) { await getFileNamePath(detailData.value.acceptanceInspectionReportSingle, 'acceptanceInspectionReportSingle') } + //验收检验报告 + if (detailData.value.acceptanceInspectionReport) { + await getFileNamePath(detailData.value.acceptanceInspectionReport, 'acceptanceInspectionReport') + } + //型式实验报告 + if (detailData.value.typeExperimentReport) { + await getFileNamePath(detailData.value.typeExperimentReport, 'typeExperimentReport') + } //出厂检验报告 if (detailData.value.factoryInspectionReport) { await getFileNamePath(detailData.value.factoryInspectionReport, 'factoryInspectionReport') } - //信息安全检测报告 - if (detailData.value.informationSecurityTestReport) { - await getFileNamePath(detailData.value.informationSecurityTestReport, 'informationSecurityTestReport') - } - //监测点台账信息 - if (detailData.value.lineFilePath) { - await getFileNamePath(detailData.value.lineFilePath, 'lineFilePath') - } - - //其他附件 - if (detailData.value.otherAttachments) { - await getFileNamePath(detailData.value.otherAttachments, 'otherAttachments') - } - //性能检测报告 if (detailData.value.performanceTestReport) { await getFileNamePath(detailData.value.performanceTestReport, 'performanceTestReport') } - - //型式实验报告 - if (detailData.value.typeExperimentReport) { - await getFileNamePath(detailData.value.typeExperimentReport, 'typeExperimentReport') - } - //其他附件 - // if (detailData.value.additionalAttachments) { - // getFileNamePath(detailData.value.additionalAttachments, 'additionalAttachments') - // } + if (detailData.value.otherAttachments) { + await getFileNamePath(detailData.value.otherAttachments, 'otherAttachments') + } } //根据文件名请求 const getFileNamePath = async (val: any, pathName: any) => { await getFileNameAndFilePath({ filePath: val }).then(res => { if (res.data) { - //可研报告 - if (pathName == 'acceptanceInspectionReport' && detailData.value.acceptanceInspectionReport) { - detailData.value.acceptanceInspectionReport = { + //信息安全检测报告 + if (pathName == 'informationSecurityTestReport' && detailData.value.informationSecurityTestReport) { + detailData.value.informationSecurityTestReport = { name: res.data.fileName, url: res.data.url } } - //终端台账信息 + //验收检验报告单 else if ( pathName == 'acceptanceInspectionReportSingle' && detailData.value.acceptanceInspectionReportSingle @@ -437,51 +426,38 @@ const getFileNamePath = async (val: any, pathName: any) => { url: res.data.url } } - //预测评估报告 - else if (pathName == 'factoryInspectionReport' && detailData.value.factoryInspectionReport) { - detailData.value.factoryInspectionReport = { + + //验收检验报告 + else if (pathName == 'acceptanceInspectionReport' && detailData.value.acceptanceInspectionReport) { + detailData.value.acceptanceInspectionReport = { name: res.data.fileName, url: res.data.url } } - //预测评估评审意见报告 - else if (pathName == 'informationSecurityTestReport' && detailData.value.informationSecurityTestReport) { - detailData.value.informationSecurityTestReport = { - name: res.data.fileName, - url: res.data.url - } - } - //用户接入变电站主接线示意图 - else if (pathName == 'lineFilePath' && detailData.value.lineFilePath) { - detailData.value.lineFilePath = { - name: res.data.fileName, - url: res.data.url - } - } - //主要敏感设备清单 - else if (pathName == 'otherAttachments' && detailData.value.otherAttachments) { - detailData.value.otherAttachments = { - name: res.data.fileName, - url: res.data.url - } - } - //抗扰度测试报告 - else if (pathName == 'performanceTestReport' && detailData.value.performanceTestReport) { - detailData.value.performanceTestReport = { - name: res.data.fileName, - url: res.data.url - } - } - //背景电能质量测试报告 + //型式实验报告 else if (pathName == 'typeExperimentReport' && detailData.value.typeExperimentReport) { detailData.value.typeExperimentReport = { name: res.data.fileName, url: res.data.url } } + //出场检验报告 + else if (pathName == 'factoryInspectionReport' && detailData.value.factoryInspectionReport) { + detailData.value.factoryInspectionReport = { + name: res.data.fileName, + url: res.data.url + } + } + //性能检测报告 + else if (pathName == 'performanceTestReport' && detailData.value.performanceTestReport) { + detailData.value.performanceTestReport = { + name: res.data.fileName, + url: res.data.url + } + } //其他附件 - else if (pathName == 'additionalAttachments' && detailData.value.additionalAttachments) { - detailData.value.additionalAttachments = { + else if (pathName == 'otherAttachments' && detailData.value.otherAttachments) { + detailData.value.otherAttachments = { name: res.data.fileName, url: res.data.url }