监测点台账信息-新增表单、详情接口调试
This commit is contained in:
@@ -2,7 +2,7 @@ import createAxios from '@/utils/request'
|
|||||||
|
|
||||||
import { SUPERVISION_BOOT } from '@/utils/constantRequest'
|
import { SUPERVISION_BOOT } from '@/utils/constantRequest'
|
||||||
|
|
||||||
const MAPPING_PATH = SUPERVISION_BOOT + '/workflow/wfForm'
|
const MAPPING_PATH = SUPERVISION_BOOT + '/tempLine'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 提交监测点信息表单数据
|
* 提交监测点信息表单数据
|
||||||
@@ -26,3 +26,18 @@ export const getList = (data: any) => {
|
|||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据id获取终端录入的详细数据
|
||||||
|
*/
|
||||||
|
export const getTempLineDetailsById = (obj: any) => {
|
||||||
|
let form = new FormData()
|
||||||
|
form.append('id', obj.id)
|
||||||
|
return createAxios({
|
||||||
|
url:MAPPING_PATH + '/getDetail',
|
||||||
|
method: 'POST',
|
||||||
|
data:form
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -74,7 +74,7 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="填报部门:" prop="orgId">
|
<el-form-item label="填报部门:" prop="orgId">
|
||||||
<el-input v-model="form.orgId" :disabled="true" autocomplete="off" />
|
<el-input v-model="form.orgName" :disabled="true" autocomplete="off" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
@@ -145,8 +145,8 @@
|
|||||||
<el-option
|
<el-option
|
||||||
v-for="(item, index) in userNameList"
|
v-for="(item, index) in userNameList"
|
||||||
:key="index"
|
:key="index"
|
||||||
:label="item"
|
:label="item.name"
|
||||||
:value="item"
|
:value="item.id"
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -204,7 +204,12 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="接入母线:" prop="connectedBus">
|
<el-form-item label="接入母线:" prop="connectedBus">
|
||||||
<el-select
|
<el-input
|
||||||
|
v-model="form.connectedBus"
|
||||||
|
autocomplete="off"
|
||||||
|
place-holder="请输入接入母线"
|
||||||
|
/>
|
||||||
|
<!-- <el-select
|
||||||
v-model="form.connectedBus"
|
v-model="form.connectedBus"
|
||||||
clearable
|
clearable
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@@ -216,7 +221,7 @@
|
|||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
@@ -299,9 +304,10 @@
|
|||||||
clearable
|
clearable
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
placeholder="请选择干扰源类型"
|
placeholder="请选择干扰源类型"
|
||||||
|
@change="changeLoadType"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in areaOptionList"
|
v-for="item in loadTypeList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
@@ -320,7 +326,7 @@
|
|||||||
placeholder="请选择干扰源类别"
|
placeholder="请选择干扰源类别"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in areaOptionList"
|
v-for="item in businessTypeList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
@@ -460,6 +466,7 @@ import { useAdminInfo } from '@/stores/adminInfo'
|
|||||||
import { uploadFile } from '@/api/system-boot/file'
|
import { uploadFile } from '@/api/system-boot/file'
|
||||||
import { getDeviceList } from '@/api/supervision-boot/terminal/index'
|
import { getDeviceList } from '@/api/supervision-boot/terminal/index'
|
||||||
import { addMointorPointFormData, getList } from '@/api/supervision-boot/monitorpoint/index'
|
import { addMointorPointFormData, getList } from '@/api/supervision-boot/monitorpoint/index'
|
||||||
|
import { queryByAllCode } from '@/api/system-boot/dictTree'
|
||||||
const emits = defineEmits(['onSubmit'])
|
const emits = defineEmits(['onSubmit'])
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
const dialogFormVisible = ref(false)
|
const dialogFormVisible = ref(false)
|
||||||
@@ -535,7 +542,10 @@ const getSelectableList = () => {
|
|||||||
getList(obj).then(res => {
|
getList(obj).then(res => {
|
||||||
projectList.value = res.data
|
projectList.value = res.data
|
||||||
res.data.map(item => {
|
res.data.map(item => {
|
||||||
userNameList.value.push(item?.projectName)
|
userNameList.value.push({
|
||||||
|
name:item?.projectName,
|
||||||
|
id:item?.id
|
||||||
|
})
|
||||||
})
|
})
|
||||||
//初始化
|
//初始化
|
||||||
let obj = res.data[0]
|
let obj = res.data[0]
|
||||||
@@ -545,7 +555,10 @@ const getSelectableList = () => {
|
|||||||
reporter: obj.reporter,
|
reporter: obj.reporter,
|
||||||
reportDate: obj.reportDate,
|
reportDate: obj.reportDate,
|
||||||
orgId: obj.orgId,
|
orgId: obj.orgId,
|
||||||
expectedProductionDate: obj.expectedProductionDate
|
orgName:obj.orgName,
|
||||||
|
expectedProductionDate: obj.expectedProductionDate,
|
||||||
|
userName:userNameList.value[0]?.name,
|
||||||
|
userId:userNameList.value[0]?.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -577,7 +590,8 @@ const resetForm = () => {
|
|||||||
form.value = {
|
form.value = {
|
||||||
reporter: '', //填报人
|
reporter: '', //填报人
|
||||||
reportDate: '', //填报日期
|
reportDate: '', //填报日期
|
||||||
orgId: '', //填报部门
|
orgId: '', //填报部门id
|
||||||
|
orgName:'', //填报部门名称
|
||||||
expectedProductionDate: '', //工程投产日期
|
expectedProductionDate: '', //工程投产日期
|
||||||
city: areaOptionList[0].name, //所属地市
|
city: areaOptionList[0].name, //所属地市
|
||||||
userStatus: userStateList[1].id, //用户状态
|
userStatus: userStateList[1].id, //用户状态
|
||||||
@@ -611,14 +625,43 @@ const resetForm = () => {
|
|||||||
voltageLevel: voltageLevelList[0].id //监测点电压等级
|
voltageLevel: voltageLevelList[0].id //监测点电压等级
|
||||||
}
|
}
|
||||||
|
|
||||||
form.value.reporter = adminInfo.$state.name
|
// form.value.reporter = adminInfo.$state.name
|
||||||
form.value.orgId = adminInfo.$state.deptName
|
// form.value.orgId = adminInfo.$state.deptName
|
||||||
}
|
}
|
||||||
//初始化数据
|
//初始化数据
|
||||||
resetForm()
|
resetForm()
|
||||||
getSelectableList()
|
getSelectableList()
|
||||||
findAllMonitoringTerminalList()
|
findAllMonitoringTerminalList()
|
||||||
|
|
||||||
|
//获取树形图数据
|
||||||
|
const treeData: any = ref('')
|
||||||
|
//干扰源类型 取树形图第一层children数据
|
||||||
|
const loadTypeList = ref([])
|
||||||
|
//干扰源类别 取树形图第二层children数据
|
||||||
|
const businessTypeList = ref([])
|
||||||
|
const getTreeList = () => {
|
||||||
|
queryByAllCode().then(res => {
|
||||||
|
treeData.value = [res.data.find(item => item.code == 'Major_Nonlinear_Device')]
|
||||||
|
treeData.value[0].children.map(item => {
|
||||||
|
//干扰源类型数据
|
||||||
|
loadTypeList.value.push({
|
||||||
|
id: item?.id,
|
||||||
|
name: item?.name,
|
||||||
|
children: item?.children
|
||||||
|
})
|
||||||
|
})
|
||||||
|
form.value.loadType = loadTypeList.value[0]?.id
|
||||||
|
changeLoadType()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
getTreeList()
|
||||||
|
//选择干扰源类型的时候,干扰源类别数据跟随改变
|
||||||
|
const changeLoadType = async () => {
|
||||||
|
businessTypeList.value = loadTypeList.value.find(item => {
|
||||||
|
return item.id == form.value.loadType
|
||||||
|
}).children
|
||||||
|
form.value.businessType = businessTypeList.value[0]?.id
|
||||||
|
}
|
||||||
//选择关联干扰源回显数据
|
//选择关联干扰源回显数据
|
||||||
const changeUserName = () => {
|
const changeUserName = () => {
|
||||||
let obj = projectList.value.find(item => {
|
let obj = projectList.value.find(item => {
|
||||||
@@ -630,17 +673,19 @@ const changeUserName = () => {
|
|||||||
reporter: obj.reporter,
|
reporter: obj.reporter,
|
||||||
reportDate: obj.reportDate,
|
reportDate: obj.reportDate,
|
||||||
orgId: obj.orgId,
|
orgId: obj.orgId,
|
||||||
|
orgName: obj.orgName,
|
||||||
userName: obj.projectName,
|
userName: obj.projectName,
|
||||||
userId: obj.id,
|
userId: obj.id,
|
||||||
expectedProductionDate: obj.expectedProductionDate
|
expectedProductionDate: obj.expectedProductionDate
|
||||||
}
|
}
|
||||||
console.log(obj, '000000000000')
|
console.log(obj, '选择关联干扰源回显数据')
|
||||||
}
|
}
|
||||||
//监测点信息表单格式
|
//监测点信息表单格式
|
||||||
const monitorPointForm = ref({
|
const monitorPointForm = ref({
|
||||||
reporter: '', //填报人
|
reporter: '', //填报人
|
||||||
reportDate: '', //填报日期
|
reportDate: '', //填报日期
|
||||||
orgId: '', //填报部门
|
orgId: '', //填报部门
|
||||||
|
orgName:'',
|
||||||
expectedProductionDate: '', //工程投产日期
|
expectedProductionDate: '', //工程投产日期
|
||||||
city: areaOptionList[0].name, //所属地市
|
city: areaOptionList[0].name, //所属地市
|
||||||
userStatus: userStateList[1].id, //用户状态
|
userStatus: userStateList[1].id, //用户状态
|
||||||
@@ -893,9 +938,7 @@ const rules = ref({
|
|||||||
})
|
})
|
||||||
watch(
|
watch(
|
||||||
() => form.value,
|
() => form.value,
|
||||||
(val, oldVal) => {
|
(val, oldVal) => {},
|
||||||
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
deep: true,
|
deep: true,
|
||||||
immediate: true
|
immediate: true
|
||||||
@@ -957,8 +1000,7 @@ const confirmForm = () => {
|
|||||||
console.log(form.value, '打印form对象')
|
console.log(form.value, '打印form对象')
|
||||||
// 先判断提交终端信息与监测点信息
|
// 先判断提交终端信息与监测点信息
|
||||||
|
|
||||||
// 提交终端信息
|
// 提交监测点信息
|
||||||
if (selectFormType.value == '0') {
|
|
||||||
ruleFormRef.value.validate(valid => {
|
ruleFormRef.value.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
//整理上传文件的数据
|
//整理上传文件的数据
|
||||||
@@ -985,9 +1027,7 @@ const confirmForm = () => {
|
|||||||
lineFilePath: lineFilePath?.value, //监测点信息
|
lineFilePath: lineFilePath?.value, //监测点信息
|
||||||
mainWiringDiagram: mainWiringDiagram.value //主接线图
|
mainWiringDiagram: mainWiringDiagram.value //主接线图
|
||||||
}
|
}
|
||||||
console.log(confirmFormData, '打印提交表单111111111111')
|
|
||||||
addMointorPointFormData(confirmFormData).then(res => {
|
addMointorPointFormData(confirmFormData).then(res => {
|
||||||
console.log(res, '打印提交结果222222222222+++++++++')
|
|
||||||
ruleFormRef.value.resetFields()
|
ruleFormRef.value.resetFields()
|
||||||
resetForm()
|
resetForm()
|
||||||
close()
|
close()
|
||||||
@@ -998,10 +1038,6 @@ const confirmForm = () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//提交监测点信息
|
|
||||||
else {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
defineExpose({ open })
|
defineExpose({ open })
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -1033,9 +1069,6 @@ defineExpose({ open })
|
|||||||
::v-deep .el-input-number .el-input__inner {
|
::v-deep .el-input-number .el-input__inner {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
.no_required::v-deep .el-form-item__label {
|
|
||||||
padding-left: 10px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
//表单tab容器
|
//表单tab容器
|
||||||
.form_tab_item {
|
.form_tab_item {
|
||||||
@@ -1055,15 +1088,18 @@ defineExpose({ open })
|
|||||||
left: -10px;
|
left: -10px;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
color: #f56c6c;
|
color: #f56c6c;
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
.required_text {
|
|
||||||
// padding-left: 20px;
|
|
||||||
}
|
|
||||||
.el-form-item__label {
|
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
.required_text {
|
||||||
|
padding-left: 20px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
.no_required::v-deep .el-form-item__label {
|
||||||
|
padding-left: 10px !important;
|
||||||
|
width: 70px !important;
|
||||||
|
margin-left: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
// ::v-deep .tabs_form{
|
// ::v-deep .tabs_form{
|
||||||
// height:300px !important;
|
// height:300px !important;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -1,101 +1,123 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class='default-main'>
|
<div class="default-main">
|
||||||
<el-descriptions :column='2' border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label='填报人'>
|
<el-descriptions-item label="填报人">
|
||||||
{{ detailData.reporter }}
|
{{ detailData.reporter }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label='填报日期'>
|
<el-descriptions-item label="填报日期">
|
||||||
{{ formatDate(detailData.reportDate, 'YYYY-MM-DD') }}
|
{{ formatDate(detailData.reportDate, 'YYYY-MM-DD') }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label='填报部门'>
|
<el-descriptions-item label="填报部门">
|
||||||
{{ detailData.orgName }}
|
{{ detailData.orgName }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label='工程投产日期'>
|
<el-descriptions-item label="工程投产日期">
|
||||||
{{ formatDate(detailData.expectedProductionDate, 'YYYY-MM-DD') }}
|
{{ formatDate(detailData.expectedProductionDate, 'YYYY-MM-DD') }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label='所属地市'>
|
<el-descriptions-item label="所属地市">
|
||||||
{{ detailData.city }}
|
{{ detailData.city }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label='用户状态'>
|
<el-descriptions-item label="用户状态">
|
||||||
{{
|
{{
|
||||||
userStateList.find(item => {
|
userStateList.find(item => {
|
||||||
return item.value == detailData.userStatus
|
return item.value == detailData.userStatus
|
||||||
})?.label
|
})?.label
|
||||||
}}
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label='工程名'>
|
<el-descriptions-item label="关联干扰源">
|
||||||
{{ detailData.projectName }}
|
{{ detailData.userName }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<!--文件地址-->>
|
<el-descriptions-item label="关联设备">
|
||||||
<el-descriptions-item label='终端台账信息'>
|
{{ detailData.monitoringTerminalName }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="监测点名称">
|
||||||
|
{{ detailData.lineName }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="监测点电压等级">
|
||||||
|
{{ detailData.voltageLevel }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="接入母线">
|
||||||
|
{{ detailData.connectedBus }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="短路容量">
|
||||||
|
{{ detailData.shortCapacity }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="协议容量">
|
||||||
|
{{ detailData.dealCapacity }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="设备容量">
|
||||||
|
{{ detailData.devCapacity }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="基准容量">
|
||||||
|
{{ detailData.standardCapacity }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="CT变比">
|
||||||
|
{{ detailData.ctRatio }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="PT变比">
|
||||||
|
{{ detailData.ptRatio }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="监测点编码">
|
||||||
|
{{ detailData.lineId }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="测量间隔">
|
||||||
|
{{ detailData.timeInterval }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="干扰源类型">
|
||||||
|
{{ detailData.loadType }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="干扰源类别">
|
||||||
|
{{ detailData.businessType }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="监测点性质">
|
||||||
|
{{ detailData.pointNature }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="是否参与统计">
|
||||||
|
{{ detailData.isStatistical=='0'?'是':'否' }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="对象名称(对端)">
|
||||||
|
{{ detailData.objName }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="电网侧变电站">
|
||||||
|
{{ detailData.powerSubstationName }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="是否并网点">
|
||||||
|
{{ detailData.isGridConnectionPoint=='0'?'是':'否' }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="电压偏差上限">
|
||||||
|
{{ detailData.voltageDeviationUpperLimit }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="电压偏差下限">
|
||||||
|
{{ detailData.voltageDeviationLowerLimit }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="监测点运行状态">
|
||||||
|
{{ detailData.operationStatus }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<!--文件地址-->
|
||||||
|
<el-descriptions-item label="监测点台账信息" v-if="detailData.lineFilePath">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<Link />
|
<Link />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href='proviteData?.preliminaryDesignDescription.url'>
|
<a :href="detailData?.lineFilePath.url">
|
||||||
{{ proviteData?.preliminaryDesignDescription.name }}
|
{{ detailData?.lineFilePath.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label='监测点台账信息'>
|
<el-descriptions-item label="主接线图" v-if="detailData?.mainWiringDiagram">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<Link />
|
<Link />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href='proviteData?.predictionEvaluationReport.url'>
|
<a :href="detailData?.mainWiringDiagram.url">
|
||||||
{{ proviteData?.predictionEvaluationReport.name }}
|
{{ detailData?.mainWiringDiagram.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label='验收检验报告单'>
|
|
||||||
<el-icon>
|
|
||||||
<Link />
|
|
||||||
</el-icon>
|
|
||||||
<a :href='proviteData?.predictionEvaluationReviewOpinions.url'>
|
|
||||||
{{ proviteData?.predictionEvaluationReviewOpinions.name }}
|
|
||||||
</a>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label='验收检验报告'>
|
|
||||||
<el-icon>
|
|
||||||
<Link />
|
|
||||||
</el-icon>
|
|
||||||
<a :href='proviteData?.sensitiveDevices.url'>{{ proviteData?.sensitiveDevices.name }}</a>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label='型式实验报告'>
|
|
||||||
<el-icon>
|
|
||||||
<Link />
|
|
||||||
</el-icon>
|
|
||||||
<a :href='proviteData?.antiInterferenceReport.url'>{{ proviteData?.antiInterferenceReport.name }}</a>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label='出厂检验报告'>
|
|
||||||
<el-icon>
|
|
||||||
<Link />
|
|
||||||
</el-icon>
|
|
||||||
<a :href='proviteData?.powerQualityReport.url'>{{ proviteData?.powerQualityReport.name }}</a>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label='性能检测报告'>
|
|
||||||
<el-icon>
|
|
||||||
<Link />
|
|
||||||
</el-icon>
|
|
||||||
<a :href='proviteData?.antiInterferenceReport.url'>{{ proviteData?.antiInterferenceReport.name }}</a>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label='信息安全检测报告'>
|
|
||||||
<el-icon>
|
|
||||||
<Link />
|
|
||||||
</el-icon>
|
|
||||||
<a :href='proviteData?.powerQualityReport.url'>{{ proviteData?.powerQualityReport.name }}</a>
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label='其他附件'>
|
|
||||||
<el-icon>
|
|
||||||
<Link />
|
|
||||||
</el-icon>
|
|
||||||
<a :href='proviteData?.additionalAttachments.url'>{{ proviteData?.additionalAttachments.name }}</a>
|
|
||||||
</el-descriptions-item>
|
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang='ts' setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref, reactive } from 'vue'
|
import { onMounted, ref, reactive } from 'vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { formatDate } from '@/utils/formatTime'
|
import { formatDate } from '@/utils/formatTime'
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { getUserReportById } from '@/api/supervision-boot/userReport/form'
|
import { getTempLineDetailsById } from '@/api/supervision-boot/monitorpoint/index'
|
||||||
import { getDictTreeById } from '@/api/system-boot/dictTree'
|
import { getDictTreeById } from '@/api/system-boot/dictTree'
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
@@ -111,37 +133,7 @@ const props = defineProps({
|
|||||||
const detailLoading = ref(false) // 表单的加载中
|
const detailLoading = ref(false) // 表单的加载中
|
||||||
const detailData = ref<any>({}) // 详情数据
|
const detailData = ref<any>({}) // 详情数据
|
||||||
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
|
const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编号
|
||||||
//用户性质数组
|
|
||||||
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([
|
const userStateList = reactive([
|
||||||
{
|
{
|
||||||
@@ -164,166 +156,193 @@ const userStateList = reactive([
|
|||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
//字典获取所属地市
|
//字典获取所属地市
|
||||||
const areaOptionList = dictData.getBasicData('jibei_area')
|
const areaOptionList = dictData.getBasicData('jibei_area')
|
||||||
//字典获取敏感电能质量指标
|
//定义监测装置安装位置下拉框数据
|
||||||
const energyQualityIndexList = dictData.getBasicData('Indicator_Type')
|
const monitoringDeviceInstallationPositionList = [
|
||||||
//字典获取行业类型
|
{
|
||||||
const industryList = dictData.getBasicData('industry_type_jb')
|
id: '0',
|
||||||
//字典电压等级
|
name: '电网侧'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
name: '用户侧'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
//定义召唤标志下拉框数据
|
||||||
|
const summonFlagList = [
|
||||||
|
{
|
||||||
|
id: '0',
|
||||||
|
name: '周期触发'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
name: '变为触发'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
//定义终端模型下拉框数据
|
||||||
|
const terminalModelList = [
|
||||||
|
{
|
||||||
|
id: '0',
|
||||||
|
name: '虚拟设备'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
name: '虚拟设备'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '2',
|
||||||
|
name: '虚拟设备'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
//定义通讯状态下拉框数据
|
||||||
|
const communicationStatusList = [
|
||||||
|
{
|
||||||
|
id: '0',
|
||||||
|
name: '中断'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
name: '正常'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
//字典获取监测点电压等级
|
||||||
const voltageLevelList = dictData.getBasicData('Dev_Voltage_Stand')
|
const voltageLevelList = dictData.getBasicData('Dev_Voltage_Stand')
|
||||||
//字典评估类型
|
//字典获取数据类型
|
||||||
const evaluationTypeList = dictData.getBasicData('Evaluation_Type')
|
const dataTypeList = dictData.getBasicData('System_Type')
|
||||||
//字典预测评估单位
|
//字典获取终端型号
|
||||||
const evaluationDeptList = dictData.getBasicData('evaluation_dept')
|
const terminalTypeList = dictData.getBasicData('Dev_Type')
|
||||||
|
//字典获取电压互感器类型
|
||||||
|
const voltageTransformerTypeList = dictData.getBasicData('Voltage_Transformer')
|
||||||
|
//字典获取中性点接线方式
|
||||||
|
const neutralPointWiringMethodList = dictData.getBasicData('Neutral_Point')
|
||||||
|
//字典获取所属前置机
|
||||||
|
const frontEndMachineList = dictData.getBasicData('Front_Type')
|
||||||
|
//字典获取终端接线方式类型
|
||||||
|
const terminalWiringMethodTypeList = dictData.getBasicData('Dev_Connect')
|
||||||
|
//字典获取厂家
|
||||||
|
const manufacturerList = dictData.getBasicData('Dev_Manufacturers')
|
||||||
/** 获得数据 */
|
/** 获得数据 */
|
||||||
const getInfo = async () => {
|
const getInfo = async () => {
|
||||||
detailLoading.value = true
|
detailLoading.value = true
|
||||||
try {
|
try {
|
||||||
await getUserReportById(props.id || queryId).then(res => {
|
await getTempLineDetailsById({ id: props.id || queryId }).then(res => {
|
||||||
detailData.value = res.data
|
detailData.value = res.data
|
||||||
getProviteData()
|
console.log(detailData.value, '++++获取监测点详情数据+++++')
|
||||||
|
getFileName()
|
||||||
})
|
})
|
||||||
} finally {
|
} finally {
|
||||||
detailLoading.value = false
|
detailLoading.value = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const proviteData = ref()
|
const getFileName = async () => {
|
||||||
//判断userType选择取用的对象
|
//验收检验报告
|
||||||
const getProviteData = async () => {
|
if (detailData.value.acceptanceInspectionReport) {
|
||||||
if (detailData.value.userType == '0' || detailData.value.userType == '1') {
|
await getFileNamePath(detailData.value.acceptanceInspectionReport, 'acceptanceInspectionReport')
|
||||||
proviteData.value = detailData.value.userReportProjectPO
|
|
||||||
//查询非线性设备类型
|
|
||||||
await getDictTreeById(proviteData.value.nonlinearDeviceType).then(res => {
|
|
||||||
console.log(res, '==========')
|
|
||||||
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
|
|
||||||
//查询非线性负荷类型
|
|
||||||
await getDictTreeById(proviteData.value.nonlinearLoadType).then(res => {
|
|
||||||
console.log(res, '==========')
|
|
||||||
proviteData.value.nonlinearLoadType = res.data?.name
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
proviteData.value = detailData.value.userReportSensitivePO
|
|
||||||
}
|
}
|
||||||
console.log(proviteData.value, '++++++++++++proviteData.evaluationType')
|
//验收检验报告单
|
||||||
//可研报告
|
if (detailData.value.acceptanceInspectionReportSingle) {
|
||||||
if (proviteData.value.feasibilityReport) {
|
await getFileNamePath(detailData.value.acceptanceInspectionReportSingle, 'acceptanceInspectionReportSingle')
|
||||||
await getFileNamePath(proviteData.value.feasibilityReport, 'feasibilityReport')
|
|
||||||
}
|
}
|
||||||
//终端台账信息
|
//出厂检验报告
|
||||||
if (proviteData.value.preliminaryDesignDescription) {
|
if (detailData.value.factoryInspectionReport) {
|
||||||
await getFileNamePath(proviteData.value.preliminaryDesignDescription, 'preliminaryDesignDescription')
|
await getFileNamePath(detailData.value.factoryInspectionReport, 'factoryInspectionReport')
|
||||||
}
|
|
||||||
//预测评估报告
|
|
||||||
if (proviteData.value.predictionEvaluationReport) {
|
|
||||||
await getFileNamePath(proviteData.value.predictionEvaluationReport, 'predictionEvaluationReport')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//预测评估评审意见报告
|
//信息安全检测报告
|
||||||
if (proviteData.value.predictionEvaluationReviewOpinions) {
|
if (detailData.value.informationSecurityTestReport) {
|
||||||
await getFileNamePath(
|
await getFileNamePath(detailData.value.informationSecurityTestReport, 'informationSecurityTestReport')
|
||||||
proviteData.value.predictionEvaluationReviewOpinions,
|
|
||||||
'predictionEvaluationReviewOpinions'
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
//用户接入变电站主接线示意图
|
//监测点台账信息
|
||||||
if (proviteData.value.substationMainWiringDiagram) {
|
if (detailData.value.lineFilePath) {
|
||||||
await getFileNamePath(proviteData.value.substationMainWiringDiagram, 'substationMainWiringDiagram')
|
await getFileNamePath(detailData.value.lineFilePath, 'lineFilePath')
|
||||||
}
|
|
||||||
|
|
||||||
//主要敏感设备清单
|
|
||||||
if (proviteData.value.sensitiveDevices) {
|
|
||||||
await getFileNamePath(proviteData.value.sensitiveDevices, 'sensitiveDevices')
|
|
||||||
}
|
|
||||||
|
|
||||||
//抗扰度测试报告
|
|
||||||
if (proviteData.value.antiInterferenceReport) {
|
|
||||||
await getFileNamePath(proviteData.value.antiInterferenceReport, 'antiInterferenceReport')
|
|
||||||
}
|
|
||||||
|
|
||||||
//背景电能质量测试报告
|
|
||||||
if (proviteData.value.powerQualityReport) {
|
|
||||||
await getFileNamePath(proviteData.value.powerQualityReport, 'powerQualityReport')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//其他附件
|
//其他附件
|
||||||
if (proviteData.value.additionalAttachments) {
|
if (detailData.value.otherAttachments) {
|
||||||
getFileNamePath(proviteData.value.additionalAttachments, 'additionalAttachments')
|
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')
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
//根据文件名请求
|
//根据文件名请求
|
||||||
const getFileNamePath = async (val: any, pathName: any) => {
|
const getFileNamePath = async (val: any, pathName: any) => {
|
||||||
await getFileNameAndFilePath({ filePath: val }).then(res => {
|
await getFileNameAndFilePath({ filePath: val }).then(res => {
|
||||||
console.log(111111111)
|
console.log(111111111)
|
||||||
if (res.data && res.data.name && res.data.url) {
|
if (res.data) {
|
||||||
//可研报告
|
//可研报告
|
||||||
if (pathName == 'feasibilityReport' && proviteData.value.feasibilityReport) {
|
if (pathName == 'acceptanceInspectionReport' && detailData.value.acceptanceInspectionReport) {
|
||||||
proviteData.value.feasibilityReport = {
|
detailData.value.acceptanceInspectionReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//终端台账信息
|
//终端台账信息
|
||||||
else if (pathName == 'preliminaryDesignDescription' && proviteData.value.preliminaryDesignDescription) {
|
else if (
|
||||||
proviteData.value.preliminaryDesignDescription = {
|
pathName == 'acceptanceInspectionReportSingle' &&
|
||||||
|
detailData.value.acceptanceInspectionReportSingle
|
||||||
|
) {
|
||||||
|
detailData.value.acceptanceInspectionReportSingle = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//预测评估报告
|
//预测评估报告
|
||||||
else if (pathName == 'predictionEvaluationReport' && proviteData.value.predictionEvaluationReport) {
|
else if (pathName == 'factoryInspectionReport' && detailData.value.factoryInspectionReport) {
|
||||||
proviteData.value.predictionEvaluationReport = {
|
detailData.value.factoryInspectionReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//预测评估评审意见报告
|
//预测评估评审意见报告
|
||||||
else if (
|
else if (pathName == 'informationSecurityTestReport' && detailData.value.informationSecurityTestReport) {
|
||||||
pathName == 'predictionEvaluationReviewOpinions' &&
|
detailData.value.informationSecurityTestReport = {
|
||||||
proviteData.value.predictionEvaluationReviewOpinions
|
|
||||||
) {
|
|
||||||
proviteData.value.predictionEvaluationReviewOpinions = {
|
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//用户接入变电站主接线示意图
|
//用户接入变电站主接线示意图
|
||||||
else if (pathName == 'substationMainWiringDiagram' && proviteData.value.substationMainWiringDiagram) {
|
else if (pathName == 'lineFilePath' && detailData.value.lineFilePath) {
|
||||||
proviteData.value.substationMainWiringDiagram = {
|
detailData.value.lineFilePath = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//主要敏感设备清单
|
//主要敏感设备清单
|
||||||
else if (pathName == 'sensitiveDevices' && proviteData.value.sensitiveDevices) {
|
else if (pathName == 'otherAttachments' && detailData.value.otherAttachments) {
|
||||||
proviteData.value.sensitiveDevices = {
|
detailData.value.otherAttachments = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//抗扰度测试报告
|
//抗扰度测试报告
|
||||||
else if (pathName == 'antiInterferenceReport' && proviteData.value.antiInterferenceReport) {
|
else if (pathName == 'performanceTestReport' && detailData.value.performanceTestReport) {
|
||||||
proviteData.value.antiInterferenceReport = {
|
detailData.value.performanceTestReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//背景电能质量测试报告
|
//背景电能质量测试报告
|
||||||
else if (pathName == 'powerQualityReport' && proviteData.value.powerQualityReport) {
|
else if (pathName == 'typeExperimentReport' && detailData.value.typeExperimentReport) {
|
||||||
proviteData.value.powerQualityReport = {
|
detailData.value.typeExperimentReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//其他附件
|
//其他附件
|
||||||
else if (pathName == 'additionalAttachments' && proviteData.value.additionalAttachments) {
|
else if (pathName == 'additionalAttachments' && detailData.value.additionalAttachments) {
|
||||||
proviteData.value.additionalAttachments = {
|
detailData.value.additionalAttachments = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
@@ -338,7 +357,7 @@ onMounted(() => {
|
|||||||
getInfo()
|
getInfo()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<style lang='scss'>
|
<style lang="scss">
|
||||||
.default-main {
|
.default-main {
|
||||||
height: calc(100vh - 100px);
|
height: calc(100vh - 100px);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|||||||
@@ -137,7 +137,6 @@ const tableStore = new TableStore({
|
|||||||
// tableStore.table.params.loadType = ''
|
// tableStore.table.params.loadType = ''
|
||||||
// tableStore.table.params.userName = ''
|
// tableStore.table.params.userName = ''
|
||||||
// tableStore.table.params.fileUploadflag = ''
|
// tableStore.table.params.fileUploadflag = ''
|
||||||
console.log(tableStore.table.params,"=========查询列表");
|
|
||||||
|
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user