修改请求文件位置、干扰源接入屏蔽终端入网检测tab

This commit is contained in:
zhujiyan
2024-05-16 14:59:20 +08:00
parent 5b9d4aac0f
commit fcb4318465
6 changed files with 297 additions and 255 deletions

View File

@@ -0,0 +1,16 @@
import createAxios from '@/utils/request'
import { SUPERVISION_BOOT } from '@/utils/constantRequest'
const MAPPING_PATH = SUPERVISION_BOOT + '/workflow/wfForm'
/**
* 提交终端信息表单数据
*/
export const addTerminalFormData = (data: any) => {
return createAxios({
url: '/supervision-boot/deVReport/add',
method: 'POST',
data: data
})
}

View File

@@ -24,7 +24,7 @@
label-width="140px" label-width="140px"
label-position="right" label-position="right"
> >
<el-tabs tab-position="left" class="demo-tabs" v-model="activeName"> <el-tabs tab-position="left" class="tabs_form" v-model="activeName">
<el-tab-pane name="0" label="基础信息" v-if="selectFormType == '0'"> <el-tab-pane name="0" label="基础信息" v-if="selectFormType == '0'">
<div class="form_tab_item"> <div class="form_tab_item">
<el-row> <el-row>
@@ -134,8 +134,9 @@
<div class="form_tab_item"> <div class="form_tab_item">
<el-row> <el-row>
<el-col :span="12"></el-col> <el-col :span="12"></el-col>
<el-col :span="12"> <el-col :span="12" class="required_position">
<el-form-item label="终端台账信息:" :show-message="false"> <span class="required_icon" style="color:#fff">*</span>
<el-form-item label="终端台账信息:">
<el-upload <el-upload
v-model:file-list="form.deviceFilePath" v-model:file-list="form.deviceFilePath"
ref="uploadRef" ref="uploadRef"
@@ -387,7 +388,9 @@
<el-date-picker <el-date-picker
style="width: 100%" style="width: 100%"
v-model="form.currentTerminalDetectionTime" v-model="form.currentTerminalDetectionTime"
type="date" type="datetime"
format="YYYY/MM/DD hh:mm:ss"
value-format="YYYY-MM-DD hh:mm:ss"
placeholder="请选择本次终端检测时间" placeholder="请选择本次终端检测时间"
/> />
</el-form-item> </el-form-item>
@@ -402,7 +405,9 @@
<el-date-picker <el-date-picker
style="width: 100%" style="width: 100%"
v-model="form.nextTerminalInspectionTime" v-model="form.nextTerminalInspectionTime"
type="date" type="datetime"
format="YYYY/MM/DD hh:mm:ss"
value-format="YYYY-MM-DD hh:mm:ss"
placeholder="请选择下次终端定检时间" placeholder="请选择下次终端定检时间"
/> />
</el-form-item> </el-form-item>
@@ -514,7 +519,9 @@
<el-date-picker <el-date-picker
style="width: 100%" style="width: 100%"
v-model="form.commissioningTime" v-model="form.commissioningTime"
type="date" type="datetime"
format="YYYY/MM/DD hh:mm:ss"
value-format="YYYY-MM-DD hh:mm:ss"
placeholder="请选择投运时间" placeholder="请选择投运时间"
/> />
</el-form-item> </el-form-item>
@@ -525,7 +532,9 @@
<el-date-picker <el-date-picker
style="width: 100%" style="width: 100%"
v-model="form.dataUpdateTime" v-model="form.dataUpdateTime"
type="date" type="datetime"
format="YYYY/MM/DD hh:mm:ss"
value-format="YYYY-MM-DD hh:mm:ss"
placeholder="请选择数据更新时间" placeholder="请选择数据更新时间"
/> />
</el-form-item> </el-form-item>
@@ -647,6 +656,8 @@
style="width: 100%" style="width: 100%"
v-model="form.reportDate" v-model="form.reportDate"
type="date" type="date"
format="YYYY-MM-DD"
value-format="YYYY-MM-DD"
placeholder="请选择填报日期" placeholder="请选择填报日期"
/> />
</el-form-item> </el-form-item>
@@ -733,7 +744,8 @@
<el-row> <el-row>
<el-col :span="12"></el-col> <el-col :span="12"></el-col>
<el-col :span="12"> <el-col :span="12" class="required_position">
<span class="required_icon" style="color:#fff">*</span>
<el-form-item label="监测点台账信息:" prop="lineFilePath"> <el-form-item label="监测点台账信息:" prop="lineFilePath">
<el-upload <el-upload
v-model:file-list="form.lineFilePath" v-model:file-list="form.lineFilePath"
@@ -744,7 +756,7 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
:auto-upload="false" :auto-upload="false"
:on-progress="uploadFileName('deviceFilePath')" :on-progress="uploadFileName('lineFilePath')"
> >
<template #trigger> <template #trigger>
<el-button type="primary">上传文件</el-button> <el-button type="primary">上传文件</el-button>
@@ -1011,7 +1023,7 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
:auto-upload="false" :auto-upload="false"
:on-progress="uploadFileName('feasibilityReport')" :on-progress="uploadFileName('mainWiringDiagram')"
> >
<template #trigger> <template #trigger>
<el-button type="primary">上传文件</el-button> <el-button type="primary">上传文件</el-button>
@@ -1025,7 +1037,8 @@
<el-tab-pane name="3" label="附件材料" v-if="selectFormType == '0'"> <el-tab-pane name="3" label="附件材料" v-if="selectFormType == '0'">
<div class="form_tab_item"> <div class="form_tab_item">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12" class="required_position">
<span class="required_icon">*</span>
<el-form-item label="信息安全检测报告:" prop="informationSecurityTestReport"> <el-form-item label="信息安全检测报告:" prop="informationSecurityTestReport">
<el-upload <el-upload
v-model:file-list="form.informationSecurityTestReport" v-model:file-list="form.informationSecurityTestReport"
@@ -1036,7 +1049,7 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
:auto-upload="false" :auto-upload="false"
:on-progress="uploadFileName('deviceFilePath')" :on-progress="uploadFileName('informationSecurityTestReport')"
> >
<template #trigger> <template #trigger>
<el-button type="primary">上传文件</el-button> <el-button type="primary">上传文件</el-button>
@@ -1045,7 +1058,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12" class="required_position">
<span class="required_icon">*</span>
<el-form-item label="验收检验报告单:" prop="acceptanceInspectionReportSingle"> <el-form-item label="验收检验报告单:" prop="acceptanceInspectionReportSingle">
<el-upload <el-upload
v-model:file-list="form.acceptanceInspectionReportSingle" v-model:file-list="form.acceptanceInspectionReportSingle"
@@ -1056,7 +1070,7 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
:auto-upload="false" :auto-upload="false"
:on-progress="uploadFileName('deviceFilePath')" :on-progress="uploadFileName('acceptanceInspectionReportSingle')"
> >
<template #trigger> <template #trigger>
<el-button type="primary">上传文件</el-button> <el-button type="primary">上传文件</el-button>
@@ -1067,7 +1081,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12" class="required_position">
<span class="required_icon" style="color:#fff">*</span>
<el-form-item label="验收检验报告:" prop="acceptanceInspectionReport"> <el-form-item label="验收检验报告:" prop="acceptanceInspectionReport">
<el-upload <el-upload
v-model:file-list="form.acceptanceInspectionReport" v-model:file-list="form.acceptanceInspectionReport"
@@ -1078,7 +1093,7 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
:auto-upload="false" :auto-upload="false"
:on-progress="uploadFileName('deviceFilePath')" :on-progress="uploadFileName('acceptanceInspectionReport')"
> >
<template #trigger> <template #trigger>
<el-button type="primary">上传文件</el-button> <el-button type="primary">上传文件</el-button>
@@ -1087,7 +1102,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12" class="required_position">
<span class="required_icon">*</span>
<el-form-item label="型式实验报告:" prop="typeExperimentReport" :show-message="false"> <el-form-item label="型式实验报告:" prop="typeExperimentReport" :show-message="false">
<el-upload <el-upload
v-model:file-list="form.typeExperimentReport" v-model:file-list="form.typeExperimentReport"
@@ -1098,7 +1114,7 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
:auto-upload="false" :auto-upload="false"
:on-progress="uploadFileName('deviceFilePath')" :on-progress="uploadFileName('typeExperimentReport')"
> >
<template #trigger> <template #trigger>
<el-button type="primary">上传文件</el-button> <el-button type="primary">上传文件</el-button>
@@ -1109,7 +1125,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12" class="required_position">
<span class="required_icon">*</span>
<el-form-item label="出厂检验报告:" prop="factoryInspectionReport"> <el-form-item label="出厂检验报告:" prop="factoryInspectionReport">
<el-upload <el-upload
v-model:file-list="form.factoryInspectionReport" v-model:file-list="form.factoryInspectionReport"
@@ -1120,7 +1137,7 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
:auto-upload="false" :auto-upload="false"
:on-progress="uploadFileName('deviceFilePath')" :on-progress="uploadFileName('factoryInspectionReport')"
> >
<template #trigger> <template #trigger>
<el-button type="primary">上传文件</el-button> <el-button type="primary">上传文件</el-button>
@@ -1129,7 +1146,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12" class="required_position">
<span class="required_icon">*</span>
<el-form-item label="性能检测报告:" prop="performanceTestReport" :show-message="false"> <el-form-item label="性能检测报告:" prop="performanceTestReport" :show-message="false">
<el-upload <el-upload
v-model:file-list="form.performanceTestReport" v-model:file-list="form.performanceTestReport"
@@ -1140,7 +1158,7 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
:auto-upload="false" :auto-upload="false"
:on-progress="uploadFileName('deviceFilePath')" :on-progress="uploadFileName('performanceTestReport')"
> >
<template #trigger> <template #trigger>
<el-button type="primary">上传文件</el-button> <el-button type="primary">上传文件</el-button>
@@ -1162,7 +1180,7 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-change="choose" :on-change="choose"
:auto-upload="false" :auto-upload="false"
:on-progress="uploadFileName('deviceFilePath')" :on-progress="uploadFileName('otherAttachments')"
> >
<template #trigger> <template #trigger>
<el-button type="primary">上传文件</el-button> <el-button type="primary">上传文件</el-button>
@@ -1193,13 +1211,8 @@ import type { ComponentSize, FormInstance, FormRules } from 'element-plus'
import { queryByAllCode } from '@/api/system-boot/dictTree' import { queryByAllCode } from '@/api/system-boot/dictTree'
import { useAdminInfo } from '@/stores/adminInfo' import { useAdminInfo } from '@/stores/adminInfo'
import { uploadFile } from '@/api/system-boot/file' import { uploadFile } from '@/api/system-boot/file'
import { submitFormData } from '@/api/supervise/interfere/index' import { submitFormData } from '@/api/supervision-boot/interfere/index'
defineProps({ import { addTerminalFormData } from '@/api/supervision-boot/terminal/index.ts'
openType: {
type: String,
default: 'create'
}
})
const emits = defineEmits(['onSubmit']) const emits = defineEmits(['onSubmit'])
const dictData = useDictData() const dictData = useDictData()
const dialogFormVisible = ref(false) const dialogFormVisible = ref(false)
@@ -1430,7 +1443,66 @@ const resetForm = () => {
} }
//初始化数据 //初始化数据
resetForm() resetForm()
const subForm = ref({ //终端信息表单格式
const devReportForm = ref({
reporter: '', //填报人
reportDate: new Date(), //填报日期
orgId: '', //填报部门
expectedProductionDate: '', //工程投产日期
city: areaOptionList[0].name, //所属地市
userStatus: userStateList[1].id, //用户状态
userName: '', //工程名称
userId: '',
acceptanceInspectionReport: [], //验收检验报告
acceptanceInspectionReportSingle: [], //验收检验报告单
deviceFilePath: [], //终端台账信息
factoryInspectionReport: [], //出厂检验报告
informationSecurityTestReport: [], //信息安全检测报告
lineFilePath: [], //监测点台账信息
otherAttachments: [], //其他附件
performanceTestReport: [], //性能检测报告
typeExperimentReport: [], //型式实验报告
// processInstanceId: '', //流程实例的编号
// startUserSelectAssignees: {}, //发起人自选审批人 Map
//终端信息实体
supervisionTempDeviceReportParam: {
alarmFunction: '0', //告警功能
commissioningTime: '', //投运时间
communicationStatus: '', // 通讯状态
contractNumber: '', //合同号
currentTerminalDetectionTime: '', //本次终端检测时间
dataType: '', //数据类型
dataUpdateTime: '', // 数据更新时间
electroplatingFunction: '', //电镀功能
frontEndMachine: '', //所属前置机
identificationCode: '', // 识别码
latitude: '0', //纬度
longitude: '0', //经度
manufacturer: '', //厂家
manufacturerDeviceNumber: '', // 厂家设备编号
monitoringDeviceInstallationPosition: monitoringDeviceInstallationPositionList[0].id, //监测装置安装位置
monitoringTerminalCode: '', //监测终端编码
monitoringTerminalName: '', //监测终端名称
neutralPointWiringMethod: '', // 中性点接线方式
nextTerminalInspectionTime: '', // 下次终端定检时间
powerCompany: '', //所属供电公司
simCardNumber: '', //SIM卡号
substation: '', // 所属变电站
substationVoltageLevel: '', // 变电站电压等级
// summonFlag: '', // 召唤标志
terminalIp: '', //终端IP
terminalModel: terminalModelList[0].id, //终端模型
terminalPort: '', //端口
terminalSecretKey: '', //终端秘钥
terminalType: '', // 终端型号
terminalWiringMethodType: '', // 终端接线方式类型
timeSyncFunction: '0', // 对时功能
voltageTransformerType: '' // 电压互感器类型
}
})
//监测点信息表单格式
const monitorPointForm = ref({
reporter: '', //填报人 reporter: '', //填报人
reportDate: new Date(), //填报日期 reportDate: new Date(), //填报日期
orgId: '', //填报部门 orgId: '', //填报部门
@@ -1940,118 +2012,33 @@ const rules = ref({
} }
] ]
}) })
// watch( watch(
// () => form.value, () => form.value,
// (val, oldVal) => { (val, oldVal) => {
// //form数据变化时处理格式 //form数据变化时处理格式根据tab切换判断处理的对象实体
// for (let key in val) { //终端信息
// if (subForm.value.hasOwnProperty(key)) { if (selectFormType.value == '0' && val) {
// subForm.value[key] = val[key] // 对相同的key进行赋值 for (let key in val) {
// } if (devReportForm.value.hasOwnProperty(key)) {
// } devReportForm.value[key] = val[key] // 对相同的key进行赋值
}else if(devReportForm.value.supervisionTempDeviceReportParam.hasOwnProperty(key)){
devReportForm.value.supervisionTempDeviceReportParam[key] = val[key]
}
}
//处理填报日期时间格式
devReportForm.value.reportDate = window.XEUtils.toDateString(form.value.reportDate, 'yyyy-MM-dd');
// console.log('处理好的表单++++++++++>',devReportForm.value)
}
//监测点信息
else {
// //处理填报日期时间格式 }
// subForm.value.reportDate = window.XEUtils.toDateString(form.value.reportDate, 'yyyy-MM-dd') },
// //userType==0,1 {
// if (val.userType == '0' || val.userType == '1') { deep: true,
// subForm.value.userReportProjectPO = { immediate: true
// additionalAttachments: [], //其他附件告地址 }
// agreementCapacity: 0, )
// backgroundTestPerformed: 0,
// feasibilityReport: [], //可研报告
// id: '',
// needGovernance: 0,
// nonlinearDeviceType: '',
// predictionEvaluationReport: [], //预测评估报告告地址
// predictionEvaluationReviewOpinions: [], //预测评估评审意见报告地址
// preliminaryDesignDescription: [], //项目初步设计说明书告地址
// state: 0
// }
// for (let key in val) {
// if (subForm.value.userReportProjectPO && subForm.value.userReportProjectPO.hasOwnProperty(key)) {
// // 对相同的key进行赋值
// subForm.value.userReportProjectPO[key] = val[key]
// }
// }
// delete subForm.value.userReportSubstationPO
// delete subForm.value.userReportSensitivePO
// return
// }
// //userType==2,3,4,5
// if (val.userType == '2' || val.userType == '3' || val.userType == '4' || val.userType == '5') {
// subForm.value.userReportSubstationPO = {
// additionalAttachments: [], //其他附件告地址
// backgroundTestPerformed: 0,
// baseShortCircuitCapacity: 0,
// evaluationChekDept: '',
// evaluationType: '',
// feasibilityReport: [], //可研报告
// id: '',
// minShortCircuitCapacity: 0,
// needGovernance: 0,
// nonlinearLoadType: '',
// pccEquipmentCapacity: 0,
// pccPoint: '',
// predictionEvaluationReport: [], //预测评估报告告地址
// predictionEvaluationReviewOpinions: [], //预测评估评审意见报告地址
// preliminaryDesignDescription: [], //项目初步设计说明书告地址
// state: 0,
// substationMainWiringDiagram: [], //用户接入变电站主接线示意图地址
// userAgreementCapacity: 0
// }
// for (let key in val) {
// if (subForm.value.userReportSubstationPO && subForm.value.userReportSubstationPO.hasOwnProperty(key)) {
// // 对相同的key进行赋值
// subForm.value.userReportSubstationPO[key] = val[key]
// }
// }
// delete subForm.value.userReportProjectPO
// delete subForm.value.userReportSensitivePO
// return
// }
// //userType==6
// if (val.userType == '6') {
// subForm.value.userReportSensitivePO = {
// additionalAttachments: [], //其他附件告地址
// antiInterferenceReport: [], //抗扰度测试报告
// antiInterferenceTest: '',
// backgroundTestPerformed: 0,
// deviceName: '',
// energyQualityIndex: '',
// evaluationChekDept: '',
// evaluationType: '',
// feasibilityReport: [], //可研报告告地址
// id: '',
// industry: '',
// needGovernance: 0,
// pccPoint: '',
// powerQualityReport: [], //背景电能质量测试报告
// powerSupplyCount: 0,
// predictionEvaluationReport: [], //预测评估报告告地址
// predictionEvaluationReviewOpinions: [], //预测评估评审意见报告地址
// preliminaryDesignDescription: [], //项目初步设计说明书告地址
// sensitiveDevices: [], //主要敏感设备清单
// state: 0,
// substationMainWiringDiagram: [] //用户接入变电站主接线示意图地址
// }
// for (let key in val) {
// if (subForm.value.userReportSensitivePO && subForm.value.userReportSensitivePO.hasOwnProperty(key)) {
// // 对相同的key进行赋值
// subForm.value.userReportSensitivePO[key] = val[key]
// }
// }
// delete subForm.value.userReportProjectPO
// delete subForm.value.userReportSubstationPO
// return
// }
// },
// {
// deep: true,
// immediate:true,
// }
// )
const open = () => { const open = () => {
dialogFormVisible.value = true dialogFormVisible.value = true
} }
@@ -2063,11 +2050,15 @@ const close = () => {
emits('onSubmit') emits('onSubmit')
resetForm() resetForm()
} }
// 切换终端信息/监测点信息
const handleClick = (tab: any, event: any) => { const handleClick = (tab: any, event: any) => {
//终端信息
if (tab.index == '0') { if (tab.index == '0') {
activeName.value = '0'; activeName.value = '0'
} else { }
activeName.value = '2'; //监测点信息
else {
activeName.value = '2'
} }
} }
onMounted(() => { onMounted(() => {
@@ -2154,29 +2145,33 @@ const activeName = ref('0')
//提交 //提交
const confirmForm = () => { 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) {
//整理上传文件的数据 //整理上传文件的数据
// userType==0,1 // userType==0,1
subForm.value.reporter = adminInfo.$state.id devReportForm.value.reporter = adminInfo.$state.id
subForm.value.orgId = adminInfo.$state.deptId devReportForm.value.orgId = adminInfo.$state.deptId
let confirmFormData = JSON.parse(JSON.stringify(subForm.value)) let confirmFormData = JSON.parse(JSON.stringify(devReportForm.value))
//1.判断是否上传 //1.判断是否上传
if (!deviceFilePath.value) { // if (!deviceFilePath.value) {
activeName.value = '1' // activeName.value = '1'
return ElMessage({ // return ElMessage({
message: '请上传终端台账信息', // message: '请上传终端台账信息',
type: 'warning' // type: 'warning'
}) // })
} // }
if (!lineFilePath.value) { // if (!lineFilePath.value) {
activeName.value = '2' // activeName.value = '2'
return ElMessage({ // return ElMessage({
message: '请上传监测点台账信息', // message: '请上传监测点台账信息',
type: 'warning' // type: 'warning'
}) // })
} // }
if (!acceptanceInspectionReportSingle.value) { if (!acceptanceInspectionReportSingle.value) {
return ElMessage({ return ElMessage({
message: '请上传验收检验报告单', message: '请上传验收检验报告单',
@@ -2213,7 +2208,22 @@ const confirmForm = () => {
type: 'warning' type: 'warning'
}) })
} }
submitFormData(confirmFormData).then(res => { //提交终端信息
confirmFormData={
...confirmFormData,
acceptanceInspectionReport: acceptanceInspectionReport.value, //验收检验报告
acceptanceInspectionReportSingle: acceptanceInspectionReportSingle.value, //验收检验报告单
deviceFilePath: deviceFilePath?.value, //终端台账信息
factoryInspectionReport: factoryInspectionReport.value, //出厂检验报告
informationSecurityTestReport:informationSecurityTestReport.value , //信息安全检测报告
lineFilePath: lineFilePath?.value, //监测点台账信息
performanceTestReport:performanceTestReport.value , //性能检测报告
typeExperimentReport: typeExperimentReport.value, //型式实验报告
otherAttachments: otherAttachments?.value, //其他附件
}
console.log(confirmFormData,"打印提交表单111111111111")
addTerminalFormData(confirmFormData).then(res => {
console.log(res,"打印提交结果222222222222+++++++++")
ruleFormRef.value.resetFields() ruleFormRef.value.resetFields()
resetForm() resetForm()
close() close()
@@ -2223,6 +2233,10 @@ const confirmForm = () => {
return false return false
} }
}) })
}
//提交监测点信息
else {
}
} }
defineExpose({ open }) defineExpose({ open })
</script> </script>
@@ -2284,4 +2298,7 @@ defineExpose({ open })
margin-left: 10px; margin-left: 10px;
} }
} }
// ::v-deep .tabs_form{
// height:300px !important;
// }
</style> </style>

View File

@@ -1,7 +1,7 @@
<!---终端入网检测--> <!---终端入网检测-->
<template> <template>
<TableHeader ref="TableHeaderRef"> <TableHeader area datePicker ref="TableHeaderRef">
<template #select> <!-- <template #select>
<el-form-item label="工程名称"> <el-form-item label="工程名称">
<el-input v-model="tableStore.table.params.searchValue" clearable></el-input> <el-input v-model="tableStore.table.params.searchValue" clearable></el-input>
</el-form-item> </el-form-item>
@@ -15,7 +15,7 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</template> </template> -->
<template #operation> <template #operation>
<el-button icon="el-icon-Plus" type="primary" @click="addFormModel">新增</el-button> <el-button icon="el-icon-Plus" type="primary" @click="addFormModel">新增</el-button>
<!-- <el-button icon="el-icon-Download" @click="exportEvent" type="primary">导出</el-button> --> <!-- <el-button icon="el-icon-Download" @click="exportEvent" type="primary">导出</el-button> -->
@@ -45,42 +45,14 @@ const ruleFormRef = ref()
const show: any = ref(false) const show: any = ref(false)
const fileList = ref([]) const fileList = ref([])
const tableStore = new TableStore({ const tableStore = new TableStore({
url: '/supervision-boot/userReport/getUserReport', url: '/supervision-boot/deVReport/list',
publicHeight: 65, publicHeight: 65,
method: 'POST', method: 'POST',
column: [ column: [
{ title: '序号', type: 'seq', width: 80 }, { title: '序号', type: 'seq', width: 80 },
{ field: 'projectName', title: '工程名称', minWidth: 170 }, { field: 'orgName', title: '填报部门名称' },
{ { field: 'reportDate', title: '填报日期'},
field: 'userType', { field: 'reporter', title: '填报人', minWidth: 80 },
title: '用户性质',
minWidth: 150,
formatter: (obj: any) => {
const userType = obj.row.userType
return getUserTypeName(userType)
}
},
{ field: 'city', title: '所属地市', minWidth: 80 },
{ field: 'responsibleDepartment', title: '归口管理部门', minWidth: 130 },
{
field: 'userStatus',
title: '用户状态',
minWidth: 100,
render: 'tag',
custom: {
0: 'primary',
1: 'primary',
2: 'success',
3: 'warning'
},
replaceValue: {
0: '可研',
1: '建设',
2: '运行',
3: '退运'
}
},
{ field: 'substation', title: '变电站', minWidth: 100 },
{ {
field: 'status', field: 'status',
title: '审核状态', title: '审核状态',
@@ -99,7 +71,43 @@ const tableStore = new TableStore({
4: '已取消' 4: '已取消'
} }
}, },
{ field: 'createTime', title: '开始时间', minWidth: 170 }, { field: 'monitoringTerminalName', title: '设备名称', minWidth: 170 },
{ field: 'substation', title: '所属变电站', minWidth: 170 },
// {
// field: 'userType',
// title: '用户性质',
// minWidth: 150,
// formatter: (obj: any) => {
// const userType = obj.row.userType
// return getUserTypeName(userType)
// }
// },
// { field: 'informationSecurityTestReport', title: '信息安全检测报告', minWidth: 170 },
// { field: 'otherAttachments', title: '其他附件', minWidth: 170 },
// { field: 'orgName', title: '填报部门名称'},
// { field: 'performanceTestReport', title: '性能检测报告', minWidth: 170 },
// {
// field: 'userStatus',
// title: '用户状态',
// minWidth: 100,
// render: 'tag',
// custom: {
// 0: 'primary',
// 1: 'primary',
// 2: 'success',
// 3: 'warning'
// },
// replaceValue: {
// 0: '可研',
// 1: '建设',
// 2: '运行',
// 3: '退运'
// }
// },
// { field: 'substation', title: '变电站', minWidth: 100 },
// { field: 'createTime', title: '开始时间', minWidth: 170 },
{ {
title: '操作', title: '操作',
minWidth: 150, minWidth: 150,
@@ -122,13 +130,14 @@ const tableStore = new TableStore({
beforeSearchFun: () => { beforeSearchFun: () => {
tableStore.table.params.orgNo = tableStore.table.params.deptIndex tableStore.table.params.orgNo = tableStore.table.params.deptIndex
tableStore.table.params.relationUserName = tableStore.table.params.userName // tableStore.table.params.relationUserName = tableStore.table.params.userName
} }
}) })
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)

View File

@@ -707,7 +707,7 @@ import type { ComponentSize, FormInstance, FormRules } from 'element-plus'
import { useAdminInfo } from '@/stores/adminInfo' import { useAdminInfo } from '@/stores/adminInfo'
import { queryByAllCode } from '@/api/system-boot/dictTree' import { queryByAllCode } from '@/api/system-boot/dictTree'
import { uploadFile } from '@/api/system-boot/file' import { uploadFile } from '@/api/system-boot/file'
import { submitFormData } from '@/api/supervise/interfere/index' import { submitFormData } from '@/api/supervision-boot/interfere/index'
defineProps({ defineProps({
openType: { openType: {
type: String, type: String,

View File

@@ -9,9 +9,9 @@
<interferenceUserTable v-if="activeName == '3'" /> <interferenceUserTable v-if="activeName == '3'" />
</el-tab-pane> </el-tab-pane>
<!-- <el-tab-pane label="实测报告审核" name="4"><report v-if="activeName == '4'" /></el-tab-pane>--> <!-- <el-tab-pane label="实测报告审核" name="4"><report v-if="activeName == '4'" /></el-tab-pane>-->
<el-tab-pane label="终端入网检测" name="5"> <!-- <el-tab-pane label="终端入网检测" name="5">
<terminalNetworkDetection v-if="activeName == '5'"></terminalNetworkDetection> <terminalNetworkDetection v-if="activeName == '5'"></terminalNetworkDetection>
</el-tab-pane> </el-tab-pane> -->
</el-tabs> </el-tabs>
</div> </div>
</template> </template>