Files
admin-sjzx/src/views/pqs/supervise/interfere/components/undocumented/detail.vue

651 lines
27 KiB
Vue
Raw Normal View History

<template>
2024-05-27 19:52:10 +08:00
<div class="default-main">
<el-descriptions :column="2" border>
<el-descriptions-item label="填报人">
2024-05-14 08:51:30 +08:00
{{ detailData.reporter }}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="填报日期">
2024-05-14 08:51:30 +08:00
{{ formatDate(detailData.reportDate, 'YYYY-MM-DD') }}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="填报部门">
2024-05-14 08:51:30 +08:00
{{ detailData.orgName }}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="工程预期投产日期">
2024-05-14 08:51:30 +08:00
{{ formatDate(detailData.expectedProductionDate, 'YYYY-MM-DD') }}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="用户性质">
2024-05-14 08:51:30 +08:00
{{
userTypeList.find(item => {
return item.value == detailData.userType
})?.label
}}
</el-descriptions-item>
2024-06-13 13:32:50 +08:00
<el-descriptions-item label="所在地市">
2024-05-14 08:51:30 +08:00
{{ detailData.city }}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="归口管理部门">
2024-05-14 08:51:30 +08:00
{{ detailData.responsibleDepartment }}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="用户状态">
2024-05-14 08:51:30 +08:00
{{
userStateList.find(item => {
return item.value == detailData.userStatus
})?.label
}}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="变电站">
2024-05-14 08:51:30 +08:00
{{ detailData.substation }}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="工程名">
2024-05-14 08:51:30 +08:00
{{ detailData.projectName }}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="电压等级">
2024-05-14 08:51:30 +08:00
{{
voltageLevelList.find(item => {
return item.id == detailData.voltageLevel
})?.name
}}
</el-descriptions-item>
2024-06-13 13:32:50 +08:00
<el-descriptions-item label="非线性终端类型" v-if="detailData.userType == 0 || detailData.userType == 1">
2024-05-14 08:51:30 +08:00
{{ proviteData.nonlinearDeviceType ? proviteData.nonlinearDeviceType : '-' }}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="预测评估单位">
2024-05-14 08:51:30 +08:00
{{ detailData.evaluationDept }}
</el-descriptions-item>
2024-06-14 10:26:35 +08:00
<el-descriptions-item label="预测评估结论" :span="2">
2024-05-14 08:51:30 +08:00
{{ detailData.evaluationConclusion }}
</el-descriptions-item>
<el-descriptions-item
2024-05-27 19:52:10 +08:00
label="非线性负荷类型"
2024-05-14 08:51:30 +08:00
v-if="
detailData.userType == '2' ||
detailData.userType == '3' ||
detailData.userType == '4' ||
detailData.userType == '5'
"
>
{{ proviteData.nonlinearLoadType }}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="是否需要治理">
<span v-if="detailData.userType == 0 || detailData.userType == 1">
2024-05-14 08:51:30 +08:00
{{ proviteData.needGovernance == 0 ? '否' : '是' }}
</span>
<span
2024-05-27 19:52:10 +08:00
v-if="
2024-05-14 08:51:30 +08:00
detailData.userType == 2 ||
detailData.userType == 3 ||
detailData.userType == 4 ||
detailData.userType == 5
2024-05-27 19:52:10 +08:00
"
2024-05-14 08:51:30 +08:00
>
{{ proviteData.needGovernance == 0 ? '否' : '是' }}
</span>
2024-05-27 19:52:10 +08:00
<span v-if="detailData.userType == 6">{{ proviteData.needGovernance == 0 ? '' : '' }}</span>
2024-05-14 08:51:30 +08:00
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="是否开展背景测试">
<span v-if="detailData.userType == 0 || detailData.userType == 1">
2024-05-14 08:51:30 +08:00
{{ proviteData.backgroundTestPerformed == 0 ? '否' : '是' }}
</span>
<span
2024-05-27 19:52:10 +08:00
v-if="
2024-05-14 08:51:30 +08:00
detailData.userType == 2 ||
detailData.userType == 3 ||
detailData.userType == 4 ||
detailData.userType == 5
2024-05-27 19:52:10 +08:00
"
2024-05-14 08:51:30 +08:00
>
{{ proviteData.backgroundTestPerformed == 0 ? '否' : '是' }}
</span>
2024-05-27 19:52:10 +08:00
<span v-if="detailData.userType == 6">
2024-05-14 08:51:30 +08:00
{{ proviteData.backgroundTestPerformed == 0 ? '否' : '是' }}
</span>
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="是否开展抗扰度测试" v-if="detailData.userType == 6">
2024-05-14 08:51:30 +08:00
<span>
{{ proviteData.antiInterferenceTest == 0 ? '否' : '是' }}
</span>
</el-descriptions-item>
2024-06-06 22:14:20 +08:00
<el-descriptions-item
label="用户协议容量MVA"
v-if="detailData.userType == 0 || detailData.userType == 1"
>
2024-05-29 14:04:42 +08:00
{{ proviteData.agreementCapacity }}
2024-05-14 08:51:30 +08:00
</el-descriptions-item>
<el-descriptions-item
2024-06-13 13:32:50 +08:00
label="PCC供电终端容量MVA"
2024-05-14 08:51:30 +08:00
v-if="
detailData.userType == '2' ||
detailData.userType == '3' ||
detailData.userType == '4' ||
detailData.userType == '5'
"
>
{{ proviteData.pccEquipmentCapacity }}
</el-descriptions-item>
<el-descriptions-item
2024-05-29 14:04:42 +08:00
label="基准短路容量MVA"
2024-05-14 08:51:30 +08:00
v-if="
detailData.userType == '2' ||
detailData.userType == '3' ||
detailData.userType == '4' ||
detailData.userType == '5'
"
>
{{ proviteData.baseShortCircuitCapacity }}
</el-descriptions-item>
<el-descriptions-item
2024-05-29 14:04:42 +08:00
label="系统最小短路容量MVA"
2024-05-14 08:51:30 +08:00
v-if="
detailData.userType == '2' ||
detailData.userType == '3' ||
detailData.userType == '4' ||
detailData.userType == '5'
"
>
{{ proviteData?.minShortCircuitCapacity }}
</el-descriptions-item>
<el-descriptions-item
2024-05-29 14:04:42 +08:00
label="用户用电协议容量MVA"
2024-05-14 08:51:30 +08:00
v-if="
detailData.userType == '2' ||
detailData.userType == '3' ||
detailData.userType == '4' ||
detailData.userType == '5'
"
>
{{ proviteData?.userAgreementCapacity }}
</el-descriptions-item>
2024-05-29 14:04:42 +08:00
<el-descriptions-item label="PCC点" v-if="detailData.userType != 0 && detailData.userType != 1">
{{ proviteData?.pccPoint }}
</el-descriptions-item>
<el-descriptions-item label="评估类型" v-if="detailData.userType != 0 && detailData.userType != 1">
{{
evaluationTypeList.find(item => {
return item.id == proviteData?.evaluationType
})?.name
}}
</el-descriptions-item>
<el-descriptions-item label="预测评估评审单位" v-if="detailData.userType != 0 && detailData.userType != 1">
{{ proviteData?.evaluationChekDept }}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="行业" v-if="detailData.userType == 6">
2024-05-14 08:51:30 +08:00
{{
industryList.find(item => {
return item.id == proviteData.industry
})?.name
}}
</el-descriptions-item>
2024-06-13 13:32:50 +08:00
<el-descriptions-item label="敏感终端名称" v-if="detailData.userType == 6">
2024-05-14 08:51:30 +08:00
{{ proviteData.deviceName }}
</el-descriptions-item>
2024-06-06 22:14:20 +08:00
<!-- <el-descriptions-item label="供电电源数量" v-if="detailData.userType == 6">-->
<!-- {{ proviteData.powerSupplyCount }}-->
<!-- </el-descriptions-item>-->
<el-descriptions-item label="供电电源情况" v-if="detailData.userType == 6">
{{
powerSupplyInfoOptionList.find(item => {
return item.id == proviteData.powerSupplyInfo
})?.name
}}
</el-descriptions-item>
<el-descriptions-item label="供电电源" :span="2" v-if="detailData.userType == 6">
{{ proviteData.powerSupply }}
</el-descriptions-item>
<el-descriptions-item label="负荷级别" v-if="detailData.userType == 6">
{{
loadLevelOptionList.find(item => {
return item.id == proviteData.loadLevel
})?.name
}}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="敏感电能质量指标" v-if="detailData.userType == 6">
2024-05-14 08:51:30 +08:00
{{
energyQualityIndexList.find(item => {
return item.id == proviteData.energyQualityIndex
})?.name
}}
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="可研报告">
<span v-if="detailData.userType == 0 || detailData.userType == 1">
2024-06-14 10:26:35 +08:00
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
</el-icon>
2024-06-06 22:14:20 +08:00
<a target="_blank" :href="proviteData.feasibilityReport?.url" rel="nofollow">
{{ proviteData.feasibilityReport?.name }}
</a>
2024-06-14 10:26:35 +08:00
2024-05-14 08:51:30 +08:00
</span>
<span
2024-05-27 19:52:10 +08:00
v-if="
2024-05-14 08:51:30 +08:00
detailData.userType == 2 ||
detailData.userType == 3 ||
detailData.userType == 4 ||
detailData.userType == 5
2024-05-27 19:52:10 +08:00
"
2024-05-14 08:51:30 +08:00
>
2024-06-14 10:26:35 +08:00
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
</el-icon>
2024-06-06 22:14:20 +08:00
<a target="_blank" :href="proviteData.feasibilityReport?.url">
{{ proviteData.feasibilityReport?.name }}
</a>
2024-05-14 08:51:30 +08:00
</span>
2024-05-27 19:52:10 +08:00
<span v-if="detailData.userType == 6">
2024-06-14 10:26:35 +08:00
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
</el-icon>
2024-06-06 22:14:20 +08:00
<a target="_blank" :href="proviteData.feasibilityReport?.url">
{{ proviteData.feasibilityReport?.name }}
</a>
2024-05-14 08:51:30 +08:00
</span>
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="项目初步设计说明书">
2024-06-14 10:26:35 +08:00
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription?.name">
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
2024-05-14 15:21:37 +08:00
</el-icon>
2024-06-14 10:26:35 +08:00
2024-06-06 22:14:20 +08:00
<a target="_blank" :href="proviteData?.preliminaryDesignDescription?.url">
2024-06-03 16:46:48 +08:00
{{ proviteData?.preliminaryDesignDescription?.name }}
2024-05-14 08:51:30 +08:00
</a>
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="预测评估报告">
2024-06-14 10:26:35 +08:00
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
2024-05-14 15:21:37 +08:00
</el-icon>
2024-06-06 22:14:20 +08:00
<a target="_blank" :href="proviteData?.predictionEvaluationReport?.url">
2024-06-03 16:46:48 +08:00
{{ proviteData?.predictionEvaluationReport?.name }}
2024-05-14 08:51:30 +08:00
</a>
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="预测评估评审意见报告">
2024-06-14 10:26:35 +08:00
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
2024-05-14 15:21:37 +08:00
</el-icon>
2024-06-06 22:14:20 +08:00
<a target="_blank" :href="proviteData?.predictionEvaluationReviewOpinions?.url">
2024-06-03 16:46:48 +08:00
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
2024-05-14 08:51:30 +08:00
</a>
</el-descriptions-item>
<el-descriptions-item
2024-05-27 19:52:10 +08:00
label="用户接入变电站主接线示意图"
v-if="detailData.userType != 0 && detailData.userType != 1"
2024-05-14 08:51:30 +08:00
>
2024-06-14 10:26:35 +08:00
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name">
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
2024-05-14 15:21:37 +08:00
</el-icon>
2024-06-06 22:14:20 +08:00
<a target="_blank" :href="proviteData?.substationMainWiringDiagram?.url">
2024-06-03 16:46:48 +08:00
{{ proviteData?.substationMainWiringDiagram?.name }}
2024-05-14 08:51:30 +08:00
</a>
</el-descriptions-item>
2024-06-13 13:32:50 +08:00
<el-descriptions-item label="主要敏感终端清单" v-if="detailData.userType == 6">
2024-06-14 10:26:35 +08:00
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
2024-05-14 15:21:37 +08:00
</el-icon>
2024-06-06 22:14:20 +08:00
<a target="_blank" :href="proviteData?.sensitiveDevices?.url">
{{ proviteData?.sensitiveDevices?.name }}
</a>
2024-05-14 15:21:37 +08:00
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6">
2024-06-14 10:26:35 +08:00
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name">
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
2024-05-14 15:21:37 +08:00
</el-icon>
2024-06-06 22:14:20 +08:00
<a target="_blank" :href="proviteData?.antiInterferenceReport?.url">
{{ proviteData?.antiInterferenceReport?.name }}
</a>
2024-05-14 15:21:37 +08:00
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6">
2024-06-14 10:26:35 +08:00
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name">
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
2024-05-14 15:21:37 +08:00
</el-icon>
2024-06-06 22:14:20 +08:00
<a target="_blank" :href="proviteData?.powerQualityReport?.url">
{{ proviteData?.powerQualityReport?.name }}
</a>
2024-05-14 15:21:37 +08:00
</el-descriptions-item>
2024-05-27 19:52:10 +08:00
<el-descriptions-item
label="其他附件"
2024-06-03 16:46:48 +08:00
v-if="proviteData?.additionalAttachments && proviteData?.additionalAttachments?.url"
2024-05-27 19:52:10 +08:00
>
2024-06-14 10:26:35 +08:00
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name">
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
2024-05-14 15:21:37 +08:00
</el-icon>
2024-06-06 22:14:20 +08:00
<a target="_blank" :href="proviteData?.additionalAttachments?.url">
{{ proviteData?.additionalAttachments?.name }}
</a>
2024-05-14 08:51:30 +08:00
</el-descriptions-item>
</el-descriptions>
</div>
</template>
2024-05-27 19:52:10 +08:00
<script lang="ts" setup>
2024-05-28 11:01:50 +08:00
import { onMounted, ref, reactive, watch } from 'vue'
2024-06-06 22:14:20 +08:00
import { useRoute, useRouter } from 'vue-router'
import { formatDate } from '@/utils/formatTime'
import { propTypes } from '@/utils/propTypes'
import { getUserReportById } from '@/api/supervision-boot/userReport/form'
2024-05-14 08:51:30 +08:00
import { getDictTreeById } from '@/api/system-boot/dictTree'
import { useDictData } from '@/stores/dictData'
import { getFileNameAndFilePath } from '@/api/system-boot/file'
2024-06-14 10:26:35 +08:00
import { Link, View } from '@element-plus/icons-vue'
2024-06-06 22:14:20 +08:00
import PreviewFile from '@/components/PreviewFile/index.vue'
2024-05-13 11:32:16 +08:00
defineOptions({ name: 'BpmUserReportDetail' })
const { query } = useRoute() // 查询参数
const props = defineProps({
2024-05-14 15:21:37 +08:00
id: propTypes.string.def(undefined)
})
const detailLoading = ref(false) // 表单的加载中
const detailData = ref<any>({}) // 详情数据
2024-05-13 11:32:16 +08:00
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
2024-06-14 10:26:35 +08:00
const openFile = (name: any) => {
window.open(window.location.origin + '/#/previewFile?' + name)
2024-06-06 22:14:20 +08:00
}
2024-05-14 08:51:30 +08:00
//用户性质数组
const userTypeList = reactive([
{
label: '新建电网工程',
value: '0'
},
{
label: '扩建电网工程',
value: '1'
},
{
label: '新建非线性负荷用户',
value: '2'
},
{
label: '扩建非线性负荷用户',
value: '3'
},
{
label: '新建新能源发电站',
value: '4'
},
{
label: '扩建新能源发电站',
value: '5'
},
{
label: '敏感及重要用户',
value: '6'
}
])
//用户状态数组
const userStateList = reactive([
{
label: '可研',
value: '0'
},
{
label: '建设',
value: '1'
},
{
label: '运行',
value: '2'
},
{
label: '退运',
value: '3'
}
])
const dictData = useDictData()
2024-06-13 13:32:50 +08:00
//字典获取所在地市
2024-05-14 08:51:30 +08:00
const areaOptionList = dictData.getBasicData('jibei_area')
//字典获取敏感电能质量指标
const energyQualityIndexList = dictData.getBasicData('Indicator_Type')
//字典获取行业类型
const industryList = dictData.getBasicData('industry_type_jb')
//字典电压等级
const voltageLevelList = dictData.getBasicData('Dev_Voltage_Stand')
//字典评估类型
const evaluationTypeList = dictData.getBasicData('Evaluation_Type')
//字典预测评估单位
const evaluationDeptList = dictData.getBasicData('evaluation_dept')
2024-06-03 16:46:48 +08:00
const loadLevelOptionList = dictData.getBasicData('load_level')
const powerSupplyInfoOptionList = dictData.getBasicData('supply_condition')
/** 获得数据 */
const getInfo = async () => {
2024-05-14 08:51:30 +08:00
detailLoading.value = true
try {
await getUserReportById(props.id || queryId).then(res => {
detailData.value = res.data
getProviteData()
})
} finally {
detailLoading.value = false
}
}
const proviteData = ref()
2024-06-06 22:14:20 +08:00
//可研报告
2024-06-14 10:26:35 +08:00
const feasibilityReportRef:any = ref(null)
2024-06-06 22:14:20 +08:00
//项目初步设计说明书
2024-06-14 10:26:35 +08:00
const preliminaryDesignDescriptionRef:any = ref(null)
2024-06-06 22:14:20 +08:00
//预测评估报告
2024-06-14 10:26:35 +08:00
const predictionEvaluationReportRef:any = ref(null)
2024-06-06 22:14:20 +08:00
//预测评估评审意见报告
2024-06-14 10:26:35 +08:00
const predictionEvaluationReviewOpinionsRef:any = ref(null)
2024-06-06 22:14:20 +08:00
//用户接入变电站主接线示意图
2024-06-14 10:26:35 +08:00
const substationMainWiringDiagramRef:any= ref(null)
2024-06-13 13:32:50 +08:00
//主要敏感终端清单
2024-06-14 10:26:35 +08:00
const sensitiveDevicesRef:any = ref(null)
2024-06-06 22:14:20 +08:00
//抗扰度测试报告
2024-06-14 10:26:35 +08:00
const antiInterferenceReportRef:any = ref(null)
2024-06-06 22:14:20 +08:00
//背景电能质量测试报告
2024-06-14 10:26:35 +08:00
const powerQualityReportRef:any = ref(null)
2024-06-06 22:14:20 +08:00
//其他附件
2024-06-14 10:26:35 +08:00
const additionalAttachmentsRef:any = ref(null)
2024-06-06 22:14:20 +08:00
//预览
const preview = (val: any, url: any) => {
nextTick(() => {
//可研报告
if (val == 'feasibilityReport') {
feasibilityReportRef?.value.open(url)
}
//项目初步设计说明书
if (val == 'preliminaryDesignDescription') {
preliminaryDesignDescriptionRef?.value.open(url)
}
//预测评估报告
if (val == 'predictionEvaluationReport') {
console.log(url, '9999999')
predictionEvaluationReportRef?.value.open(url)
}
//预测评估评审意见报告
if (val == 'predictionEvaluationReviewOpinions') {
predictionEvaluationReviewOpinionsRef?.value.open(url)
}
//用户接入变电站主接线示意图
if (val == 'substationMainWiringDiagram') {
substationMainWiringDiagramRef?.value.open(url)
}
2024-06-13 13:32:50 +08:00
//主要敏感终端清单
2024-06-06 22:14:20 +08:00
if (val == 'sensitiveDevices') {
sensitiveDevicesRef?.value.open(url)
}
//抗扰度测试报告
if (val == 'antiInterferenceReport') {
antiInterferenceReportRef?.value.open(url)
}
//背景电能质量测试报告
if (val == 'powerQualityReport') {
powerQualityReportRef?.value.open(url)
}
//其他附件
if (val == 'additionalAttachments') {
additionalAttachmentsRef?.value.open(url)
}
})
}
2024-05-14 08:51:30 +08:00
//判断userType选择取用的对象
2024-05-14 14:04:53 +08:00
const getProviteData = async () => {
2024-05-14 08:51:30 +08:00
if (detailData.value.userType == '0' || detailData.value.userType == '1') {
proviteData.value = detailData.value.userReportProjectPO
2024-06-13 13:32:50 +08:00
//查询非线性终端类型
2024-05-14 14:04:53 +08:00
await getDictTreeById(proviteData.value.nonlinearDeviceType).then(res => {
2024-05-14 08:51:30 +08:00
proviteData.value.nonlinearDeviceType = res.data?.name
})
} else if (
detailData.value.userType == '2' ||
detailData.value.userType == '3' ||
detailData.value.userType == '4' ||
detailData.value.userType == '5'
) {
proviteData.value = detailData.value.userReportSubstationPO
2024-05-14 14:04:53 +08:00
//查询非线性负荷类型
await getDictTreeById(proviteData.value.nonlinearLoadType).then(res => {
proviteData.value.nonlinearLoadType = res.data?.name
})
2024-05-14 08:51:30 +08:00
} else {
proviteData.value = detailData.value.userReportSensitivePO
}
//可研报告
if (proviteData.value.feasibilityReport) {
2024-05-14 13:41:36 +08:00
await getFileNamePath(proviteData.value.feasibilityReport, 'feasibilityReport')
2024-05-14 08:51:30 +08:00
}
//项目初步设计说明书
if (proviteData.value.preliminaryDesignDescription) {
2024-05-14 13:41:36 +08:00
await getFileNamePath(proviteData.value.preliminaryDesignDescription, 'preliminaryDesignDescription')
2024-05-14 08:51:30 +08:00
}
//预测评估报告
if (proviteData.value.predictionEvaluationReport) {
2024-05-14 13:41:36 +08:00
await getFileNamePath(proviteData.value.predictionEvaluationReport, 'predictionEvaluationReport')
2024-05-14 08:51:30 +08:00
}
//预测评估评审意见报告
if (proviteData.value.predictionEvaluationReviewOpinions) {
2024-05-14 14:04:53 +08:00
await getFileNamePath(
proviteData.value.predictionEvaluationReviewOpinions,
'predictionEvaluationReviewOpinions'
)
2024-05-14 08:51:30 +08:00
}
//用户接入变电站主接线示意图
if (proviteData.value.substationMainWiringDiagram) {
2024-05-14 13:41:36 +08:00
await getFileNamePath(proviteData.value.substationMainWiringDiagram, 'substationMainWiringDiagram')
2024-05-14 08:51:30 +08:00
}
2024-06-13 13:32:50 +08:00
//主要敏感终端清单
2024-05-14 08:51:30 +08:00
if (proviteData.value.sensitiveDevices) {
2024-05-14 13:41:36 +08:00
await getFileNamePath(proviteData.value.sensitiveDevices, 'sensitiveDevices')
2024-05-14 08:51:30 +08:00
}
//抗扰度测试报告
if (proviteData.value.antiInterferenceReport) {
2024-05-14 13:41:36 +08:00
await getFileNamePath(proviteData.value.antiInterferenceReport, 'antiInterferenceReport')
2024-05-14 08:51:30 +08:00
}
//背景电能质量测试报告
if (proviteData.value.powerQualityReport) {
2024-05-14 13:41:36 +08:00
await getFileNamePath(proviteData.value.powerQualityReport, 'powerQualityReport')
2024-05-14 08:51:30 +08:00
}
//其他附件
if (proviteData.value.additionalAttachments) {
getFileNamePath(proviteData.value.additionalAttachments, 'additionalAttachments')
}
}
//根据文件名请求
const getFileNamePath = async (val: any, pathName: any) => {
2024-05-14 14:04:53 +08:00
await getFileNameAndFilePath({ filePath: val }).then(res => {
2024-05-14 11:31:24 +08:00
if (res.data && res.data.name && res.data.url) {
//可研报告
if (pathName == 'feasibilityReport' && proviteData.value.feasibilityReport) {
proviteData.value.feasibilityReport = {
name: res.data.fileName,
url: res.data.url
}
2024-05-14 08:51:30 +08:00
}
2024-05-14 11:31:24 +08:00
//项目初步设计说明书
else if (pathName == 'preliminaryDesignDescription' && proviteData.value.preliminaryDesignDescription) {
proviteData.value.preliminaryDesignDescription = {
name: res.data.fileName,
url: res.data.url
}
2024-05-14 08:51:30 +08:00
}
2024-05-14 11:31:24 +08:00
//预测评估报告
else if (pathName == 'predictionEvaluationReport' && proviteData.value.predictionEvaluationReport) {
proviteData.value.predictionEvaluationReport = {
name: res.data.fileName,
url: res.data.url
}
2024-05-14 08:51:30 +08:00
}
2024-05-14 11:31:24 +08:00
//预测评估评审意见报告
else if (
pathName == 'predictionEvaluationReviewOpinions' &&
proviteData.value.predictionEvaluationReviewOpinions
) {
proviteData.value.predictionEvaluationReviewOpinions = {
name: res.data.fileName,
url: res.data.url
}
2024-05-14 08:51:30 +08:00
}
2024-05-14 11:31:24 +08:00
//用户接入变电站主接线示意图
else if (pathName == 'substationMainWiringDiagram' && proviteData.value.substationMainWiringDiagram) {
proviteData.value.substationMainWiringDiagram = {
name: res.data.fileName,
url: res.data.url
}
2024-05-14 08:51:30 +08:00
}
2024-06-13 13:32:50 +08:00
//主要敏感终端清单
2024-05-14 11:31:24 +08:00
else if (pathName == 'sensitiveDevices' && proviteData.value.sensitiveDevices) {
proviteData.value.sensitiveDevices = {
name: res.data.fileName,
url: res.data.url
}
2024-05-14 08:51:30 +08:00
}
2024-05-14 11:31:24 +08:00
//抗扰度测试报告
else if (pathName == 'antiInterferenceReport' && proviteData.value.antiInterferenceReport) {
proviteData.value.antiInterferenceReport = {
name: res.data.fileName,
url: res.data.url
}
2024-05-14 08:51:30 +08:00
}
2024-05-14 11:31:24 +08:00
//背景电能质量测试报告
else if (pathName == 'powerQualityReport' && proviteData.value.powerQualityReport) {
proviteData.value.powerQualityReport = {
name: res.data.fileName,
url: res.data.url
}
2024-05-14 08:51:30 +08:00
}
2024-05-14 11:31:24 +08:00
//其他附件
else if (pathName == 'additionalAttachments' && proviteData.value.additionalAttachments) {
proviteData.value.additionalAttachments = {
name: res.data.fileName,
url: res.data.url
}
2024-05-14 08:51:30 +08:00
}
}
2024-05-14 11:31:24 +08:00
})
}
defineExpose({ open: getInfo }) // 提供 open 方法,用于打开弹窗
2024-05-28 11:01:50 +08:00
watch(
() => props.id,
(val, oldVal) => {
val && getInfo()
}
)
/** 初始化 **/
onMounted(() => {
2024-05-14 08:51:30 +08:00
getInfo()
})
</script>
2024-05-27 19:52:10 +08:00
<style lang="scss">
2024-05-14 11:31:24 +08:00
::v-deep.el-icon svg {
2024-06-18 09:03:53 +08:00
// margin: 5px !important;
// position: absolute !important;
// top: 20px !important;
// float: right;
2024-05-14 08:51:30 +08:00
}
2024-06-14 10:26:35 +08:00
// .el-icon {
// float: left;
// }
2024-06-18 09:03:53 +08:00
// a {
// display: block;
// width: 200px;
// float: right;
// }
2024-06-14 10:26:35 +08:00
.elView {
cursor: pointer;
2024-06-18 09:03:53 +08:00
margin-right:10px;
2024-06-14 10:26:35 +08:00
}
2024-05-14 08:51:30 +08:00
</style>