详情文件预览
This commit is contained in:
@@ -509,19 +509,6 @@ const changeDevice = () => {
|
||||
monitoringTerminalName: obj.monitoringTerminalName
|
||||
}
|
||||
}
|
||||
//用户类型为2.新建/扩建非线性负荷用户 新建/扩建新能源发电站回显容量
|
||||
const getDataByUserType=(id:any)=>{
|
||||
getUserReportById(id).then(res => {
|
||||
const obj = res.data
|
||||
form.value = {
|
||||
...form.value,
|
||||
shortCapacity: obj.userReportSubstationPO?.minShortCircuitCapacity, // 短路容量
|
||||
dealCapacity: obj.userReportSubstationPO?.userAgreementCapacity, //协议容量
|
||||
devCapacity: obj.userReportSubstationPO.pccEquipmentCapacity, //设备容量
|
||||
standardCapacity: obj.userReportSubstationPO?.baseShortCircuitCapacity //基准容量
|
||||
}
|
||||
})
|
||||
}
|
||||
//定义切换form类型
|
||||
const selectFormType = ref('')
|
||||
selectFormType.value = '0'
|
||||
@@ -576,19 +563,18 @@ const resetForm = () => {
|
||||
if (title.value != '重新发起') {
|
||||
form.value = {
|
||||
...form.value,
|
||||
city: obj.city,
|
||||
reporter: obj.reporter,
|
||||
reporterName: obj.reporterName,
|
||||
reportDate: obj.reportDate,
|
||||
orgId: obj.orgId,
|
||||
orgName: obj.orgName,
|
||||
expectedProductionDate: obj.expectedProductionDate,
|
||||
// city: obj.city,
|
||||
// reporter: obj.reporter,
|
||||
// reporterName: obj.reporterName,
|
||||
reportDate: obj?.reportDate,
|
||||
orgId: obj?.orgId,
|
||||
orgName: obj?.orgName,
|
||||
expectedProductionDate: obj?.expectedProductionDate,
|
||||
userName: userNameList.value[0]?.projectName,
|
||||
userId: userNameList.value[0]?.id,
|
||||
objName: userNameList.value[0]?.projectName
|
||||
}
|
||||
}
|
||||
getDataByUserType(obj.id)
|
||||
})
|
||||
changevoltageDeviationLimit()
|
||||
}
|
||||
@@ -671,9 +657,19 @@ const changeUserName = () => {
|
||||
userStatus: obj?.userStatus + ''
|
||||
}
|
||||
|
||||
//回显数据 2.新建/扩建非线性负荷用户 新建/扩建新能源发电站
|
||||
//回显数据
|
||||
if (obj.userType == '2' || obj.userType == '3' || obj.userType == '4' || obj.userType == '5') {
|
||||
getDataByUserType(obj.id)
|
||||
getUserReportById(obj.id).then(res => {
|
||||
console.log(res.data, '继续查询数据')
|
||||
const obj = res.data
|
||||
form.value = {
|
||||
...form.value,
|
||||
shortCapacity: obj.userReportSubstationPO?.minShortCircuitCapacity, // 短路容量
|
||||
dealCapacity: obj.userReportSubstationPO?.userAgreementCapacity, //协议容量
|
||||
devCapacity: obj.userReportSubstationPO?.pccEquipmentCapacity, //设备容量
|
||||
standardCapacity: obj.userReportSubstationPO?.baseShortCircuitCapacity //基准容量
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
//定义校验规则
|
||||
|
||||
@@ -115,6 +115,7 @@
|
||||
<a target="_blank"href="detailData?.mainWiringDiagram.url">
|
||||
{{ detailData?.mainWiringDiagram.name }}
|
||||
</a>
|
||||
<span @click="openFile(detailData?.mainWiringDiagram.name )">预览</span>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</template>
|
||||
@@ -127,7 +128,9 @@ import { getTempLineDetailsById } from '@/api/supervision-boot/monitorpoint/inde
|
||||
import { useDictData } from '@/stores/dictData'
|
||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||
import { Link } from '@element-plus/icons-vue'
|
||||
|
||||
const openFile = (name:any) => {
|
||||
window.open(window.location.origin + '/#/previewFile?'+name)
|
||||
}
|
||||
defineOptions({ name: 'BpmUserReportDetail' })
|
||||
|
||||
const { query } = useRoute() // 查询参数
|
||||
|
||||
@@ -192,6 +192,7 @@
|
||||
<a target="_blank":href="detailData?.informationSecurityTestReport.url">
|
||||
{{ detailData?.informationSecurityTestReport.name }}
|
||||
</a>
|
||||
<span @click="openFile(detailData.informationSecurityTestReport?.name )">预览</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="验收检验报告单" v-if="detailData?.acceptanceInspectionReportSingle">
|
||||
<el-icon>
|
||||
@@ -200,38 +201,42 @@
|
||||
<a target="_blank":href="detailData?.acceptanceInspectionReportSingle.url">
|
||||
{{ detailData?.acceptanceInspectionReportSingle.name }}
|
||||
</a>
|
||||
<span @click="openFile(detailData.acceptanceInspectionReportSingle?.name )">预览</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="验收检验报告" v-if="detailData?.acceptanceInspectionReport">
|
||||
<el-icon>
|
||||
<Link />
|
||||
</el-icon>
|
||||
<a target="_blank":href="detailData?.acceptanceInspectionReport.url">{{ detailData?.acceptanceInspectionReport.name }}</a>
|
||||
<span @click="openFile(detailData.acceptanceInspectionReport?.name )">预览</span>
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item label="型式实验报告" v-if="detailData?.typeExperimentReport">
|
||||
<el-icon>
|
||||
<Link />
|
||||
</el-icon>
|
||||
<a target="_blank":href="detailData?.typeExperimentReport.url">{{ detailData?.typeExperimentReport.name }}</a>
|
||||
<span @click="openFile(detailData.typeExperimentReport?.name )">预览</span>
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item label="出厂检验报告" v-if="detailData?.factoryInspectionReport">
|
||||
<el-icon>
|
||||
<Link />
|
||||
</el-icon>
|
||||
<a target="_blank":href="detailData?.factoryInspectionReport.url">{{ detailData?.factoryInspectionReport.name }}</a>
|
||||
<span @click="openFile(detailData.factoryInspectionReport?.name )">预览</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="性能检测报告" v-if="detailData?.performanceTestReport">
|
||||
<el-icon>
|
||||
<Link />
|
||||
</el-icon>
|
||||
<a target="_blank":href="detailData?.performanceTestReport.url">{{ detailData?.performanceTestReport.name }}</a>
|
||||
<span @click="openFile(detailData.performanceTestReport?.name )">预览</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="其他附件" v-if="detailData?.otherAttachments">
|
||||
<el-icon>
|
||||
<Link />
|
||||
</el-icon>
|
||||
<a target="_blank":href="detailData?.otherAttachments.url">{{ detailData?.otherAttachments.name }}</a>
|
||||
<span @click="openFile(detailData.otherAttachments?.name )">预览</span>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</template>
|
||||
@@ -247,7 +252,9 @@ import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||
import { Link } from '@element-plus/icons-vue'
|
||||
import { nodeAllList } from '@/api/device-boot/Business'
|
||||
defineOptions({ name: 'BpmUserReportDetail' })
|
||||
|
||||
const openFile = (name:any) => {
|
||||
window.open(window.location.origin + '/#/previewFile?'+name)
|
||||
}
|
||||
const { query } = useRoute() // 查询参数
|
||||
|
||||
const props = defineProps({
|
||||
|
||||
Reference in New Issue
Block a user