This commit is contained in:
GGJ
2024-05-30 17:23:13 +08:00
9 changed files with 164 additions and 153 deletions

View File

@@ -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
})
}

View File

@@ -302,7 +302,7 @@
v-model:file-list="form.feasibilityReport" v-model:file-list="form.feasibilityReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".doc,.docx,.xlsx,.xls,.pdf" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -319,7 +319,7 @@
v-model:file-list="form.preliminaryDesignDescription" v-model:file-list="form.preliminaryDesignDescription"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".doc,.docx,.xlsx,.xls,.pdf" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -336,7 +336,7 @@
v-model:file-list="form.predictionEvaluationReport" v-model:file-list="form.predictionEvaluationReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".doc,.docx,.xlsx,.xls,.pdf" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -358,7 +358,7 @@
v-model:file-list="form.predictionEvaluationReviewOpinions" v-model:file-list="form.predictionEvaluationReviewOpinions"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".doc,.docx,.xlsx,.xls,.pdf" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -375,7 +375,7 @@
v-model:file-list="form.additionalAttachments" v-model:file-list="form.additionalAttachments"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".doc,.docx,.xlsx,.xls,.pdf" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -398,7 +398,7 @@
v-model:file-list="form.substationMainWiringDiagram" v-model:file-list="form.substationMainWiringDiagram"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".doc,.docx,.xlsx,.xls,.pdf" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -421,7 +421,7 @@
v-model:file-list="form.sensitiveDevices" v-model:file-list="form.sensitiveDevices"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".doc,.docx,.xlsx,.xls,.pdf" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -444,7 +444,7 @@
v-model:file-list="form.antiInterferenceReport" v-model:file-list="form.antiInterferenceReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".doc,.docx,.xlsx,.xls,.pdf" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -461,7 +461,7 @@
v-model:file-list="form.powerQualityReport" v-model:file-list="form.powerQualityReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".doc,.docx,.xlsx,.xls,.pdf" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -502,7 +502,8 @@ defineProps({
const emits = defineEmits(['onSubmit']) const emits = defineEmits(['onSubmit'])
const dictData = useDictData() const dictData = useDictData()
const dialogFormVisible = ref(false) const dialogFormVisible = ref(false)
// .doc,.docx,.xlsx,.xls,.pdf
const acceptType=''
const form: any = ref({}) const form: any = ref({})
const ruleFormRef: any = ref(null) const ruleFormRef: any = ref(null)
//字典获取所属地市 //字典获取所属地市

View File

@@ -188,7 +188,7 @@
<el-descriptions-item label="可研报告"> <el-descriptions-item label="可研报告">
<span v-if="detailData.userType == 0 || detailData.userType == 1"> <span v-if="detailData.userType == 0 || detailData.userType == 1">
<el-icon><Link /></el-icon> <el-icon><Link /></el-icon>
<a :href="proviteData.feasibilityReport.url">{{ proviteData.feasibilityReport.name }}</a> <a target="_blank" :href="proviteData.feasibilityReport.url">{{ proviteData.feasibilityReport.name }}</a>
</span> </span>
<span <span
v-if=" v-if="
@@ -199,18 +199,18 @@
" "
> >
<el-icon><Link /></el-icon> <el-icon><Link /></el-icon>
<a :href="proviteData.feasibilityReport.url">{{ proviteData.feasibilityReport.name }}</a> <a target="_blank" :href="proviteData.feasibilityReport.url">{{ proviteData.feasibilityReport.name }}</a>
</span> </span>
<span v-if="detailData.userType == 6"> <span v-if="detailData.userType == 6">
<el-icon><Link /></el-icon> <el-icon><Link /></el-icon>
<a :href="proviteData.feasibilityReport.url">{{ proviteData.feasibilityReport.name }}</a> <a target="_blank" :href="proviteData.feasibilityReport.url">{{ proviteData.feasibilityReport.name }}</a>
</span> </span>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="项目初步设计说明书"> <el-descriptions-item label="项目初步设计说明书">
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="proviteData?.preliminaryDesignDescription.url"> <a target="_blank" :href="proviteData?.preliminaryDesignDescription.url">
{{ proviteData?.preliminaryDesignDescription.name }} {{ proviteData?.preliminaryDesignDescription.name }}
</a> </a>
</el-descriptions-item> </el-descriptions-item>
@@ -218,7 +218,7 @@
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="proviteData?.predictionEvaluationReport.url"> <a target="_blank" :href="proviteData?.predictionEvaluationReport.url">
{{ proviteData?.predictionEvaluationReport.name }} {{ proviteData?.predictionEvaluationReport.name }}
</a> </a>
</el-descriptions-item> </el-descriptions-item>
@@ -226,7 +226,7 @@
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="proviteData?.predictionEvaluationReviewOpinions.url"> <a target="_blank" :href="proviteData?.predictionEvaluationReviewOpinions.url">
{{ proviteData?.predictionEvaluationReviewOpinions.name }} {{ proviteData?.predictionEvaluationReviewOpinions.name }}
</a> </a>
</el-descriptions-item> </el-descriptions-item>
@@ -237,7 +237,7 @@
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="proviteData?.substationMainWiringDiagram.url" target="_blank"> <a target="_blank" :href="proviteData?.substationMainWiringDiagram.url">
{{ proviteData?.substationMainWiringDiagram.name }} {{ proviteData?.substationMainWiringDiagram.name }}
</a> </a>
</el-descriptions-item> </el-descriptions-item>
@@ -245,19 +245,19 @@
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="proviteData?.sensitiveDevices.url">{{ proviteData?.sensitiveDevices.name }}</a> <a target="_blank" :href="proviteData?.sensitiveDevices.url">{{ proviteData?.sensitiveDevices.name }}</a>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6"> <el-descriptions-item label="抗扰度测试报告" v-if="detailData.userType == 6">
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="proviteData?.antiInterferenceReport.url">{{ proviteData?.antiInterferenceReport.name }}</a> <a target="_blank" :href="proviteData?.antiInterferenceReport.url">{{ proviteData?.antiInterferenceReport.name }}</a>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6"> <el-descriptions-item label="背景电能质量测试报告" v-if="detailData.userType == 6">
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="proviteData?.powerQualityReport.url">{{ proviteData?.powerQualityReport.name }}</a> <a target="_blank" :href="proviteData?.powerQualityReport.url">{{ proviteData?.powerQualityReport.name }}</a>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item <el-descriptions-item
label="其他附件" label="其他附件"
@@ -266,7 +266,7 @@
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="proviteData?.additionalAttachments.url" target="_blank">{{ proviteData?.additionalAttachments.name }}</a> <a target="_blank" :href="proviteData?.additionalAttachments.url">{{ proviteData?.additionalAttachments.name }}</a>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>

View File

@@ -217,7 +217,7 @@
v-model:file-list="form.informationSecurityTestReport" v-model:file-list="form.informationSecurityTestReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -240,7 +240,7 @@
v-model:file-list="form.acceptanceInspectionReportSingle" v-model:file-list="form.acceptanceInspectionReportSingle"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -263,7 +263,7 @@
v-model:file-list="form.acceptanceInspectionReport" v-model:file-list="form.acceptanceInspectionReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -287,7 +287,7 @@
v-model:file-list="form.typeExperimentReport" v-model:file-list="form.typeExperimentReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -310,7 +310,7 @@
v-model:file-list="form.factoryInspectionReport" v-model:file-list="form.factoryInspectionReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -334,7 +334,7 @@
v-model:file-list="form.performanceTestReport" v-model:file-list="form.performanceTestReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -369,6 +369,8 @@ const dictData = useDictData()
const dialogFormVisible = ref(false) const dialogFormVisible = ref(false)
const form: any = ref({}) const form: any = ref({})
const ruleFormRef = ref(null) const ruleFormRef = ref(null)
// .xls,.xlsx
const acceptType=''
//获取登陆用户姓名和部门 //获取登陆用户姓名和部门
const adminInfo = useAdminInfo() const adminInfo = useAdminInfo()
//字典获取监督类型 //字典获取监督类型

View File

@@ -28,11 +28,13 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, provide, nextTick } from 'vue' import { ref, onMounted, provide, nextTick } from 'vue'
import TableStore from '@/utils/tableStore' import TableStore from '@/utils/tableStore'
import { ElMessage, ElMessageBox } from 'element-plus'
import Table from '@/components/table/index.vue' import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue' import TableHeader from '@/components/table/header/index.vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useDictData } from '@/stores/dictData' import { useDictData } from '@/stores/dictData'
import { getLoadTypeUserList } from '@/api/process-boot/interference' import { getLoadTypeUserList } from '@/api/process-boot/interference'
import { setTempLinedebugLedgerSync } from '@/api/supervision-boot/jointDebugList/index'
import debug from './debug.vue' import debug from './debug.vue'
import { any } from 'vue-types' import { any } from 'vue-types'
const dictData = useDictData() const dictData = useDictData()
@@ -67,13 +69,15 @@ const tableStore = new TableStore({
1: 'primary', 1: 'primary',
2: 'success', 2: 'success',
3: 'danger', 3: 'danger',
4: 'warning' 4: 'warning',
5: 'primary'
}, },
replaceValue: { replaceValue: {
1: '审批中', 1: '审批中',
2: '审批通过', 2: '审批通过',
3: '审批不通过', 3: '审批不通过',
4: '已取消', 4: '已取消',
5: '同步台账成功',
null: '/' null: '/'
} }
}, },
@@ -86,7 +90,7 @@ const tableStore = new TableStore({
} }
}, },
{ field: 'lineId', title: '监测点编号', minWidth: 170 }, { field: 'lineId', title: '监测点编号', minWidth: 170 },
{ field: 'monitoringTerminalCode', title: '监测终端编码', minWidth: 170 }, // { field: 'monitoringTerminalCode', title: '监测终端编码', minWidth: 170 },
{ field: 'monitoringTerminalName', title: '监测终端名称', minWidth: 170 }, { field: 'monitoringTerminalName', title: '监测终端名称', minWidth: 170 },
{ {
title: '操作', title: '操作',
@@ -119,6 +123,27 @@ const tableStore = new TableStore({
disabled: row => { disabled: row => {
return row.reason return row.reason
} }
},
{
name: 'productSetting',
title: '同步台账',
type: 'primary',
icon: 'el-icon-add',
render: 'basicButton',
click: row => {
setTempLinedebugLedgerSync({ id: row.id }).then(res => {
if (res.code == 'A0000') {
ElMessage({
message: '台账同步成功',
type: 'success'
})
tableStore.index()
}
})
},
disabled: row => {
return row.status != 2
}
} }
] ]
} }

View File

@@ -20,7 +20,7 @@
label-position="right" label-position="right"
class="form-two" class="form-two"
> >
<div class="fixed_upload"> <div class="fixed_upload" v-if="false">
<el-upload <el-upload
v-model:file-list="form.lineFilePath" v-model:file-list="form.lineFilePath"
ref="uploadRef" ref="uploadRef"
@@ -324,7 +324,7 @@
v-model:file-list="form.mainWiringDiagram" v-model:file-list="form.mainWiringDiagram"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".doc,.docx,.xlsx,.xls,.pdf" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -361,6 +361,8 @@ const dictData = useDictData()
const dialogFormVisible = ref(false) const dialogFormVisible = ref(false)
const form: any = ref({}) const form: any = ref({})
const ruleFormRef = ref(null) const ruleFormRef = ref(null)
// acceptType .doc,.docx,.xlsx,.xls,.pdf
const acceptType=''
//字典获取所属地市 //字典获取所属地市
const areaOptionList = dictData.getBasicData('jibei_area') const areaOptionList = dictData.getBasicData('jibei_area')
//字典获取监测点电压等级 //字典获取监测点电压等级
@@ -493,11 +495,11 @@ const findAllMonitoringTerminalList = () => {
//查询关联设备下拉框 //查询关联设备下拉框
const changeDevice = () => { const changeDevice = () => {
const obj = monitoringTerminalList.value.find(item => { const obj = monitoringTerminalList.value.find(item => {
return form.value.monitoringTerminalCode == item.monitoringTerminalCode return form.value.monitoringTerminalCode == item.id
}) })
form.value = { form.value = {
...form.value, ...form.value,
monitoringTerminalCode: obj.monitoringTerminalCode, monitoringTerminalCode: obj.id,
monitoringTerminalName: obj.monitoringTerminalName monitoringTerminalName: obj.monitoringTerminalName
} }
} }
@@ -514,7 +516,7 @@ const resetForm = () => {
expectedProductionDate: '', //工程投产日期 expectedProductionDate: '', //工程投产日期
city: areaOptionList[0].name, //所属地市 city: areaOptionList[0].name, //所属地市
userStatus: userStateList[1].id, //用户状态 userStatus: userStateList[1].id, //用户状态
monitoringTerminalCode: monitoringTerminalList.value[0]?.monitoringTerminalCode, //关联设备 monitoringTerminalCode: monitoringTerminalList.value[0]?.id, //关联设备
monitoringTerminalName: monitoringTerminalList.value[0]?.monitoringTerminalName, monitoringTerminalName: monitoringTerminalList.value[0]?.monitoringTerminalName,
userName: projectList.value[0]?.id, //工程名称 userName: projectList.value[0]?.id, //工程名称
userId: '', //工程id userId: '', //工程id

View File

@@ -112,7 +112,7 @@
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="detailData?.mainWiringDiagram.url"> <a target="_blank"href="detailData?.mainWiringDiagram.url">
{{ detailData?.mainWiringDiagram.name }} {{ detailData?.mainWiringDiagram.name }}
</a> </a>
</el-descriptions-item> </el-descriptions-item>

View File

@@ -100,12 +100,12 @@
<!-- </div> --> <!-- </div> -->
<el-divider content-position="left">终端信息</el-divider> <el-divider content-position="left">终端信息</el-divider>
<!-- <div id="part2" class="form-two"> --> <!-- <div id="part2" class="form-two"> -->
<div class="fixed_upload"> <div class="fixed_upload" v-if="false">
<el-upload <el-upload
v-model:file-list="form.deviceFilePath" v-model:file-list="form.deviceFilePath"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -441,7 +441,7 @@
v-model:file-list="form.informationSecurityTestReport" v-model:file-list="form.informationSecurityTestReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -458,7 +458,7 @@
v-model:file-list="form.acceptanceInspectionReportSingle" v-model:file-list="form.acceptanceInspectionReportSingle"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -475,7 +475,7 @@
v-model:file-list="form.acceptanceInspectionReport" v-model:file-list="form.acceptanceInspectionReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -492,7 +492,7 @@
v-model:file-list="form.typeExperimentReport" v-model:file-list="form.typeExperimentReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -509,7 +509,7 @@
v-model:file-list="form.factoryInspectionReport" v-model:file-list="form.factoryInspectionReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -526,7 +526,7 @@
v-model:file-list="form.performanceTestReport" v-model:file-list="form.performanceTestReport"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -543,7 +543,7 @@
v-model:file-list="form.otherAttachments" v-model:file-list="form.otherAttachments"
ref="uploadRef" ref="uploadRef"
action="" action=""
accept=".xls,.xlsx" :accept="acceptType"
:limit="1" :limit="1"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
@@ -585,6 +585,8 @@ const dictData = useDictData()
const dialogFormVisible = ref(false) const dialogFormVisible = ref(false)
const form: any = ref({}) const form: any = ref({})
const ruleFormRef = ref(null) const ruleFormRef = ref(null)
// acceptType .xls,.xlsx
const acceptType=''
//字典获取所属地市 //字典获取所属地市
const areaOptionList = dictData.getBasicData('jibei_area') const areaOptionList = dictData.getBasicData('jibei_area')
//字典获取电压互感器类型 //字典获取电压互感器类型
@@ -749,7 +751,6 @@ const resetForm = async () => {
deviceFilePath: [], //终端台账信息 deviceFilePath: [], //终端台账信息
factoryInspectionReport: [], //出厂检验报告 factoryInspectionReport: [], //出厂检验报告
informationSecurityTestReport: [], //信息安全检测报告 informationSecurityTestReport: [], //信息安全检测报告
lineFilePath: [], //监测点台账信息
otherAttachments: [], //其他附件 otherAttachments: [], //其他附件
performanceTestReport: [], //性能检测报告 performanceTestReport: [], //性能检测报告
typeExperimentReport: [], //型式实验报告 typeExperimentReport: [], //型式实验报告
@@ -807,7 +808,6 @@ const devReportForm = ref({
deviceFilePath: [], //终端台账信息 deviceFilePath: [], //终端台账信息
factoryInspectionReport: [], //出厂检验报告 factoryInspectionReport: [], //出厂检验报告
informationSecurityTestReport: [], //信息安全检测报告 informationSecurityTestReport: [], //信息安全检测报告
lineFilePath: [], //监测点台账信息
otherAttachments: [], //其他附件 otherAttachments: [], //其他附件
performanceTestReport: [], //性能检测报告 performanceTestReport: [], //性能检测报告
typeExperimentReport: [], //型式实验报告 typeExperimentReport: [], //型式实验报告
@@ -1224,8 +1224,6 @@ const uploadFileName = val => {
} }
// 终端台账信息 // 终端台账信息
const deviceFilePath = ref('') const deviceFilePath = ref('')
//监测点台账信息
const lineFilePath = ref('')
//验收检验报告单 //验收检验报告单
const acceptanceInspectionReportSingle = ref('') const acceptanceInspectionReportSingle = ref('')
//验收检验报告 //验收检验报告
@@ -1246,10 +1244,6 @@ const choose = (e: any) => {
if (uploadName.value == 'deviceFilePath') { if (uploadName.value == 'deviceFilePath') {
deviceFilePath.value = res.data.name deviceFilePath.value = res.data.name
} }
//监测点台账信息
else if (uploadName.value == 'lineFilePath') {
lineFilePath.value = res.data.name
}
//验收检验报告单 //验收检验报告单
else if (uploadName.value == 'acceptanceInspectionReportSingle') { else if (uploadName.value == 'acceptanceInspectionReportSingle') {
acceptanceInspectionReportSingle.value = res.data.name acceptanceInspectionReportSingle.value = res.data.name
@@ -1351,7 +1345,6 @@ const confirmForm = () => {
deviceFilePath: deviceFilePath?.value, //终端台账信息 deviceFilePath: deviceFilePath?.value, //终端台账信息
factoryInspectionReport: factoryInspectionReport.value, //出厂检验报告 factoryInspectionReport: factoryInspectionReport.value, //出厂检验报告
informationSecurityTestReport: informationSecurityTestReport.value, //信息安全检测报告 informationSecurityTestReport: informationSecurityTestReport.value, //信息安全检测报告
lineFilePath: lineFilePath?.value, //监测点台账信息
performanceTestReport: performanceTestReport.value, //性能检测报告 performanceTestReport: performanceTestReport.value, //性能检测报告
typeExperimentReport: typeExperimentReport.value, //型式实验报告 typeExperimentReport: typeExperimentReport.value, //型式实验报告
otherAttachments: otherAttachments?.value //其他附件 otherAttachments: otherAttachments?.value //其他附件

View File

@@ -23,14 +23,6 @@
}} }}
</el-descriptions-item> </el-descriptions-item>
<!--文件地址--> <!--文件地址-->
<el-descriptions-item label="终端台账信息" v-if="detailData.lineFilePath">
<el-icon>
<Link />
</el-icon>
<a :href="detailData?.lineFilePath.url">
{{ detailData?.lineFilePath.name }}
</a>
</el-descriptions-item>
<el-descriptions-item label="所属供电公司"> <el-descriptions-item label="所属供电公司">
{{ detailData.supervisionTempDeviceReport?.powerCompany }} {{ detailData.supervisionTempDeviceReport?.powerCompany }}
</el-descriptions-item> </el-descriptions-item>
@@ -113,12 +105,12 @@
<el-descriptions-item label="终端秘钥"> <el-descriptions-item label="终端秘钥">
{{ detailData.supervisionTempDeviceReport?.terminalSecretKey }} {{ detailData.supervisionTempDeviceReport?.terminalSecretKey }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="经度"> <!-- <el-descriptions-item label="经度">
{{ detailData.supervisionTempDeviceReport?.longitude }} {{ detailData.supervisionTempDeviceReport?.longitude }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="纬度"> <el-descriptions-item label="纬度">
{{ detailData.supervisionTempDeviceReport?.latitude }} {{ detailData.supervisionTempDeviceReport?.latitude }}
</el-descriptions-item> </el-descriptions-item> -->
<el-descriptions-item label="终端模型"> <el-descriptions-item label="终端模型">
{{ {{
terminalModelList.find(item => { terminalModelList.find(item => {
@@ -193,57 +185,53 @@
<el-descriptions-item label="合同号"> <el-descriptions-item label="合同号">
{{ detailData.supervisionTempDeviceReport?.contractNumber }} {{ detailData.supervisionTempDeviceReport?.contractNumber }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="监测点台账信息" v-if="detailData.factoryInspectionReport"> <el-descriptions-item label="信息安全检测报告" v-if="detailData?.informationSecurityTestReport">
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="detailData?.factoryInspectionReport.url"> <a target="_blank":href="detailData?.informationSecurityTestReport.url">
{{ detailData?.factoryInspectionReport.name }}
</a>
</el-descriptions-item>
<el-descriptions-item label="验收检验报告单" v-if="detailData?.informationSecurityTestReport">
<el-icon>
<Link />
</el-icon>
<a :href="detailData?.informationSecurityTestReport.url">
{{ detailData?.informationSecurityTestReport.name }} {{ detailData?.informationSecurityTestReport.name }}
</a> </a>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="验收检验报告" v-if="detailData?.otherAttachments"> <el-descriptions-item label="验收检验报告" v-if="detailData?.acceptanceInspectionReportSingle">
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="detailData?.otherAttachments.url">{{ detailData?.otherAttachments.name }}</a> <a target="_blank":href="detailData?.acceptanceInspectionReportSingle.url">
{{ detailData?.acceptanceInspectionReportSingle.name }}
</a>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="型式实验报告" v-if="detailData?.performanceTestReport"> <el-descriptions-item label="验收检验报告" v-if="detailData?.acceptanceInspectionReport">
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="detailData?.performanceTestReport.url">{{ detailData?.performanceTestReport.name }}</a> <a target="_blank":href="detailData?.acceptanceInspectionReport.url">{{ detailData?.acceptanceInspectionReport.name }}</a>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="出厂检验报告" v-if="detailData?.typeExperimentReport">
<el-descriptions-item label="型式实验报告" v-if="detailData?.typeExperimentReport">
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="detailData?.typeExperimentReport.url">{{ detailData?.typeExperimentReport.name }}</a> <a target="_blank":href="detailData?.typeExperimentReport.url">{{ detailData?.typeExperimentReport.name }}</a>
</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>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="性能检测报告" v-if="detailData?.performanceTestReport"> <el-descriptions-item label="性能检测报告" v-if="detailData?.performanceTestReport">
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="detailData?.performanceTestReport.url">{{ detailData?.performanceTestReport.name }}</a> <a target="_blank":href="detailData?.performanceTestReport.url">{{ detailData?.performanceTestReport.name }}</a>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="信息安全检测报告" v-if="detailData?.typeExperimentReport"> <el-descriptions-item label="其他附件" v-if="detailData?.otherAttachments">
<el-icon> <el-icon>
<Link /> <Link />
</el-icon> </el-icon>
<a :href="detailData?.typeExperimentReport.url">{{ detailData?.typeExperimentReport.name }}</a> <a target="_blank":href="detailData?.otherAttachments.url">{{ detailData?.otherAttachments.name }}</a>
</el-descriptions-item>
<el-descriptions-item label="其他附件" v-if="detailData?.additionalAttachments">
<el-icon>
<Link />
</el-icon>
<a :href="detailData?.additionalAttachments.url">{{ detailData?.additionalAttachments.name }}</a>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</template> </template>
@@ -342,7 +330,20 @@ const communicationStatusList = [
//字典获取监测点电压等级 //字典获取监测点电压等级
const voltageLevelList = dictData.getBasicData('Dev_Voltage_Stand') 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') const terminalTypeList = dictData.getBasicData('Dev_Type')
//字典获取电压互感器类型 //字典获取电压互感器类型
@@ -374,60 +375,48 @@ const getFrontEndMachineList = () => {
} }
getFrontEndMachineList() getFrontEndMachineList()
const getFileName = async () => { const getFileName = async () => {
//验收检验报告 //信息安全检测报告
if (detailData.value.acceptanceInspectionReport) { if (detailData.value.informationSecurityTestReport) {
await getFileNamePath(detailData.value.acceptanceInspectionReport, 'acceptanceInspectionReport') await getFileNamePath(detailData.value.informationSecurityTestReport, 'informationSecurityTestReport')
} }
//验收检验报告单 //验收检验报告单
if (detailData.value.acceptanceInspectionReportSingle) { if (detailData.value.acceptanceInspectionReportSingle) {
await getFileNamePath(detailData.value.acceptanceInspectionReportSingle, '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) { if (detailData.value.factoryInspectionReport) {
await getFileNamePath(detailData.value.factoryInspectionReport, '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) { if (detailData.value.performanceTestReport) {
await getFileNamePath(detailData.value.performanceTestReport, 'performanceTestReport') await getFileNamePath(detailData.value.performanceTestReport, 'performanceTestReport')
} }
//型式实验报告
if (detailData.value.typeExperimentReport) {
await getFileNamePath(detailData.value.typeExperimentReport, 'typeExperimentReport')
}
//其他附件 //其他附件
// if (detailData.value.additionalAttachments) { if (detailData.value.otherAttachments) {
// getFileNamePath(detailData.value.additionalAttachments, 'additionalAttachments') await getFileNamePath(detailData.value.otherAttachments, 'otherAttachments')
// } }
} }
//根据文件名请求 //根据文件名请求
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 => {
if (res.data) { if (res.data) {
//可研报告 //信息安全检测报告
if (pathName == 'acceptanceInspectionReport' && detailData.value.acceptanceInspectionReport) { if (pathName == 'informationSecurityTestReport' && detailData.value.informationSecurityTestReport) {
detailData.value.acceptanceInspectionReport = { detailData.value.informationSecurityTestReport = {
name: res.data.fileName, name: res.data.fileName,
url: res.data.url url: res.data.url
} }
} }
//终端台账信息 //验收检验报告单
else if ( else if (
pathName == 'acceptanceInspectionReportSingle' && pathName == 'acceptanceInspectionReportSingle' &&
detailData.value.acceptanceInspectionReportSingle detailData.value.acceptanceInspectionReportSingle
@@ -437,51 +426,38 @@ const getFileNamePath = async (val: any, pathName: any) => {
url: res.data.url 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, name: res.data.fileName,
url: res.data.url 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) { else if (pathName == 'typeExperimentReport' && detailData.value.typeExperimentReport) {
detailData.value.typeExperimentReport = { detailData.value.typeExperimentReport = {
name: res.data.fileName, name: res.data.fileName,
url: res.data.url 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) { else if (pathName == 'otherAttachments' && detailData.value.otherAttachments) {
detailData.value.additionalAttachments = { detailData.value.otherAttachments = {
name: res.data.fileName, name: res.data.fileName,
url: res.data.url url: res.data.url
} }