diff --git a/src/api/advance-boot/bearingCapacity.ts b/src/api/advance-boot/bearingCapacity.ts index b3b5b9cf..b7907bac 100644 --- a/src/api/advance-boot/bearingCapacity.ts +++ b/src/api/advance-boot/bearingCapacity.ts @@ -15,6 +15,7 @@ export function addUse(data) { method: 'post', data }) + } //承载能力评估用户编辑 export function updateUse(data) { diff --git a/src/api/process-boot/electricitymanagement.ts b/src/api/process-boot/electricitymanagement.ts new file mode 100644 index 00000000..545c0a56 --- /dev/null +++ b/src/api/process-boot/electricitymanagement.ts @@ -0,0 +1,177 @@ +import createAxios from '@/utils/request' + +//获取电能质量问题查询维护数据 +export function getIssues(data) { + return createAxios({ + url: '/process-boot/electricityQuality/getIssues', + method: 'POST', + data + }) +} + +//填报普测超标问题 新增 +export function addGeneralSurveyIssues(data) { + return createAxios({ + url: '/process-boot/electricityQuality/addGeneralSurveyIssues', + method: 'POST', + data + }) +} +//填报运维监控异常问题 新增 +export function addAbnormalIssues(data) { + return createAxios({ + url: '/process-boot/electricityQuality/addAbnormalIssues', + method: 'POST', + data + }) +} +//填报用户投诉问题 新增 +export function addComplaintIssues(data) { + return createAxios({ + url: '/process-boot/electricityQuality/addComplaintIssues', + method: 'POST', + data + }) +} +//填报在线监测超标问题 新增 +export function addExcessiveIssues(data) { + return createAxios({ + url: '/process-boot/electricityQuality/addExcessiveIssues', + method: 'POST', + data + }) +} +//填报计划整改措施 +export function correctiveAction(data) { + return createAxios({ + url: '/process-boot/electricityQuality/correctiveAction', + method: 'POST', + data + }) +} +//填报实际采取措施 +export function takeAction(data) { + return createAxios({ + url: '/process-boot/electricityQuality/takeAction', + method: 'POST', + data + }) +} +//填报实际采取措施 +export function effectAnalysis(data) { + return createAxios({ + url: '/process-boot/electricityQuality/effectAnalysis', + method: 'POST', + data + }) +} +//原因分析 +export function reasonAnalysis(data) { + return createAxios({ + url: '/process-boot/electricityQuality/reasonAnalysis', + method: 'POST', + data + }) +} +//查询在线监测超标问题详情 +export function getExcessiveDetail(data) { + return createAxios({ + url: '/process-boot/electricityQuality/getExcessiveDetail?powerQualityProblemNo=' + data, + method: 'POST' + }) +} +//查询普测超标问题详情 +export function getGeneralSurveyDetail(data) { + return createAxios({ + url: '/process-boot/electricityQuality/getGeneralSurveyDetail?powerQualityProblemNo=' + data, + method: 'POST' + }) +} +//查询用户投诉问题详情 +export function getComplaintDetail(data) { + return createAxios({ + url: '/process-boot/electricityQuality/getComplaintDetail?powerQualityProblemNo=' + data, + method: 'POST' + }) +} +//查询运维异常问题详情 +export function getAbnormalDetail(data) { + return createAxios({ + url: '/process-boot/electricityQuality/getAbnormalDetail?powerQualityProblemNo=' + data, + method: 'POST' + }) +} + +//删除问题 +export function deleteIssues(data) { + return createAxios({ + url: '/process-boot/electricityQuality/deleteIssues?powerQualityProblemNo=' + data, + method: 'POST' + }) +} +//问题归档 +export function queryCheckTrack(data) { + return createAxios({ + url: '/process-boot/electricityQuality/queryCheckTrack?powerQualityProblemNo=' + data, + method: 'POST' + }) +} +//问题归档 +export function archive(data) { + return createAxios({ + url: '/process-boot/electricityQuality/archive?powerQualityProblemNo=' + data, + method: 'POST' + }) +} + +// device-boot +//告警明细查看(主配网) +export function getAllAlarmDetailList(data) { + return createAxios({ + url: '/device-boot/rMpPwAlarmDetail/getAllAlarmDetailList', + method: 'POST', + data + }) +} +//获取用电用户列表 +export function getPowerUtilizationUserList(data) { + return createAxios({ + url: '/device-boot/pms/powerClient/getPowerUtilizationUserList', + method: 'POST', + data + }) +} +//获取用发电户列表 +export function getGenerateElectricityUserList(data) { + return createAxios({ + url: '/device-boot/pms/powerGenerationUser/getGenerateElectricityUserList', + method: 'POST', + data + }) +} + +// pqs-procees +//普测计划名称查询 +export function querySurveyPlanOnQuestion(data) { + return createAxios({ + url: '/process-boot/rGeneralSurveyPlan/querySurveyPlanOnQuestion', + method: 'POST', + data + }) +} +export function querySurveyPlanName(data) { + return createAxios({ + url: '/process-boot/rGeneralSurveyPlan/querySurveyPlanName', + method: 'POST', + data + }) +} +// 电能质量问题审核 +export function checkPowerQuality(data) { + return createAxios({ + url: '/process-boot/electricityQuality/checkPowerQuality', + method: 'POST', + data + }) +} + diff --git a/src/api/process-boot/terminal.ts b/src/api/process-boot/terminal.ts new file mode 100644 index 00000000..5e17224f --- /dev/null +++ b/src/api/process-boot/terminal.ts @@ -0,0 +1,100 @@ +import createAxios from '@/utils/request' + +//新增-修改普测计划 +export function getTerminalPage(data) { + return createAxios({ + url: '/process-boot/process/pmsTerminalDetection/getTerminalPage', + method: 'post', + data + }) +} +//导出终端入网检测录入模板 +export function DownloadExport() { + return createAxios({ + url: '/process-boot/process/pmsTerminalDetection/export', + method: 'GET', + responseType: 'blob' + }) +} +//终端检测监督删除 +export function delTerminal(data) { + return createAxios({ + url: '/process-boot/process/pmsTerminalDetection/delTerminal', + method: 'post', + data + }) +} + +//终端检测监督单条新增 +export function insertTerminal(data) { + return createAxios({ + url: '/process-boot/process/pmsTerminalDetection/insertTerminal', + method: 'post', + data + }) +} +//终端检测监督修改 +export function updateTerminal(data) { + return createAxios({ + url: '/process-boot/process/pmsTerminalDetection/updateTerminal', + method: 'post', + data + }) +} +//检测报告下载 +export function reportDownload(params) { + return createAxios({ + url: '/process-boot/process/pmsTerminalDetection/reportDownload', + method: 'get', + params, + responseType: 'blob' + }) +} + +//终端入网检测台账统计 +export function getStatistics(data) { + return createAxios({ + url: '/process-boot/process/pmsTerminalDetection/getStatistics', + method: 'post', + data + }) +} +//终端入网检测台账统计 +export function getCycleStatistics(data) { + return createAxios({ + url: '/process-boot/process/pmsTerminalDetection/getCycleStatistics', + method: 'post', + data + }) +} + +//批量导入检测报告 +export function importReport(data) { + return createAxios({ + url: '/process-boot/process/pmsTerminalDetection/importReport', + method: 'post', + data, + responseType: 'blob' + }) +} + +//批量导入终端入网检测录入 +export function batchTerminal(file) { + let form = new FormData() + form.append('file', file) + return createAxios({ + url: '/process-boot/process/pmsTerminalDetection/batchTerminal', + method: 'post', + data: form + }) +} +// 上传文件 +export function upload(file) { + let form = new FormData() + form.append('file', file) + return createAxios({ + url: '/process-boot/process/pmsTerminalDetection/upload', + method: 'POST', + data: form + }) +} diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 4b5794af..ba30f8cc 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -142,10 +142,11 @@ defineExpose({ border-right: 1px solid #e4e7e9; border-bottom: 1px solid #e4e7e9; } -::v-deep .el-pagination__sizes { + +:deep(.el-pagination__sizes) { .el-select { min-width: 128px; } } -@/components/table/column/GroupColumn.vue@/components/table/column/GroupColumn.vue + diff --git a/src/styles/app.scss b/src/styles/app.scss index 42edaf2c..20cb97ab 100644 --- a/src/styles/app.scss +++ b/src/styles/app.scss @@ -69,6 +69,27 @@ body, background: #fff; margin: var(--ba-main-space) var(--ba-main-space) 0px var(--ba-main-space); } +.form-style { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + .el-form-item { + display: flex; + width: 48%; + .el-form-item__content { + flex: 1; + .el-select { + width: 100%; + } + .el-input__inner { + width: 100%; + } + .el-date-editor { + width: 100%; + } + } + } +} .zoom-handle { position: absolute; diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index ef5a0362..e6896de3 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -57,7 +57,7 @@ const layout = mainHeight(123) as any width: 100%; height: 500px; } -::v-deep(.el-tabs__content) { +:deep(.el-tabs__content) { height: v-bind('layout.height'); overflow-y: auto; } diff --git a/src/views/pqs/bearingCapacity/evaluationList/components/photovoltaic.vue b/src/views/pqs/bearingCapacity/evaluationList/components/photovoltaic.vue index c1fe5ee8..4c0cb2cd 100644 --- a/src/views/pqs/bearingCapacity/evaluationList/components/photovoltaic.vue +++ b/src/views/pqs/bearingCapacity/evaluationList/components/photovoltaic.vue @@ -496,10 +496,10 @@ const handleNodeClick = (data: any, node: any) => { right: 10px; } } -::v-deep .vxe-table--header thead tr:first-of-type th:first-of-type { +:deep(.vxe-table--header thead tr:first-of-type th:first-of-type) { background: #f8f8f9; } -::v-deep .vxe-table--header thead tr:first-of-type th:first-of-type:before { +:deep(.vxe-table--header thead tr:first-of-type th:first-of-type:before) { content: ''; position: absolute; width: 1px; @@ -512,7 +512,7 @@ const handleNodeClick = (data: any, node: any) => { transform: rotate(-66deg); /*这里需要自己调整,根据线的位置*/ transform-origin: top; } -::v-deep .vxe-table--header thead tr:last-of-type th:first-of-type:before { +:deep(.vxe-table--header thead tr:last-of-type th:first-of-type:before) { content: ''; position: absolute; width: 1px; diff --git a/src/views/pqs/bearingCapacity/evaluationList/components/policy.vue b/src/views/pqs/bearingCapacity/evaluationList/components/policy.vue index 88f33bc1..04833518 100644 --- a/src/views/pqs/bearingCapacity/evaluationList/components/policy.vue +++ b/src/views/pqs/bearingCapacity/evaluationList/components/policy.vue @@ -226,10 +226,10 @@ const handleClose = () => { diff --git a/src/views/pqs/supervise/electricalEnergy/components/filling.vue b/src/views/pqs/supervise/electricalEnergy/components/filling.vue new file mode 100644 index 00000000..5a4a7023 --- /dev/null +++ b/src/views/pqs/supervise/electricalEnergy/components/filling.vue @@ -0,0 +1,165 @@ + + + diff --git a/src/views/pqs/supervise/electricalEnergy/components/maintenance.vue b/src/views/pqs/supervise/electricalEnergy/components/maintenance.vue index 8d77fc37..0fdf73c2 100644 --- a/src/views/pqs/supervise/electricalEnergy/components/maintenance.vue +++ b/src/views/pqs/supervise/electricalEnergy/components/maintenance.vue @@ -2,57 +2,59 @@ - + + + + + diff --git a/src/views/pqs/supervise/interfere/index.vue b/src/views/pqs/supervise/interfere/index.vue index 7a348a01..fcc1156f 100644 --- a/src/views/pqs/supervise/interfere/index.vue +++ b/src/views/pqs/supervise/interfere/index.vue @@ -34,7 +34,7 @@ const layout = mainHeight(63) as any width: 100%; height: 500px; } -::v-deep(.el-tabs__content) { +:deep(.el-tabs__content) { height: v-bind('layout.height'); overflow-y: auto; } diff --git a/src/views/pqs/supervise/technology/index.vue b/src/views/pqs/supervise/technology/index.vue index eb4a4ea9..3e3ebe55 100644 --- a/src/views/pqs/supervise/technology/index.vue +++ b/src/views/pqs/supervise/technology/index.vue @@ -33,7 +33,7 @@ const layout = mainHeight(63) as any width: 100%; height: 500px; } -::v-deep(.el-tabs__content) { +:deep(.el-tabs__content) { height: v-bind('layout.height'); overflow-y: auto; } diff --git a/src/views/pqs/supervise/terminal/components/add.vue b/src/views/pqs/supervise/terminal/components/add.vue index 8209c435..7af639a7 100644 --- a/src/views/pqs/supervise/terminal/components/add.vue +++ b/src/views/pqs/supervise/terminal/components/add.vue @@ -1,5 +1,59 @@ @@ -58,21 +86,19 @@ import Table from '@/components/table/index.vue' import TableHeader from '@/components/table/header/index.vue' import newlyIncreased from './add.vue' import { ElMessage, ElMessageBox } from 'element-plus' -import { mainHeight } from '@/utils/layout' +import { DownloadExport, reportDownload, batchTerminal } from '@/api/process-boot/terminal' import { useDictData } from '@/stores/dictData' -import { addUse, updateUse, removeUse } from '@/api/advance-boot/bearingCapacity' const dictData = useDictData() -const uploadData = [ +const manufactorList = dictData.getBasicData('Dev_Manufacturers') +const testResultsList = [ { id: 0, - - label: '未上传' + name: '未展开' }, { id: 1, - - label: '已上传' + name: '已展开' } ] @@ -82,7 +108,7 @@ const addRef = ref() const ruleFormRef = ref() const tableStore = new TableStore({ - url: '/system-boot/area/areaSelect', + url: '/process-boot/process/pmsTerminalDetection/getTerminalPage', publicHeight: 85, method: 'POST', column: [ @@ -91,7 +117,13 @@ const tableStore = new TableStore({ { field: 'orgName', title: '所属单位' }, { field: 'id', title: '终端编号' }, { field: 'name', title: '终端名称' }, - { field: 'manufacture', title: '生产厂家' }, + { + field: 'manufacture', + title: '生产厂家', + formatter(row: any) { + return manufactorList.filter(item => item.id == row.cellValue)[0]?.name + } + }, { field: 'installPlace', title: '安装位置' }, { field: 'inspectionUnit', title: '送检单位' }, { field: 'testResults', title: '检测结果' }, @@ -112,7 +144,9 @@ const tableStore = new TableStore({ disabled: row => { return row.originalReport == null }, - click: row => {} + click: row => { + download(row, 0) + } }, { name: 'edit', @@ -123,24 +157,20 @@ const tableStore = new TableStore({ disabled: row => { return row.inspectionReport == null }, - click: row => {} + click: row => { + download(row, 1) + } } ] } - ], - - loadCallback: () => { - tableStore.table.data = [ - { - status: 2 - } - ] - } + ] }) -tableStore.table.params.searchState = '' -tableStore.table.params.searchValue = '' -tableStore.table.params.type = '' +tableStore.table.params.name = '' +tableStore.table.params.id = dictData.state.area[0].id +tableStore.table.params.testResults = '' +tableStore.table.params.manufacture = [] +tableStore.table.params.type = 0 provide('tableStore', tableStore) @@ -149,7 +179,47 @@ const add = () => { title: '新增' }) } +// 关闭弹窗查询 +const onsubmit = () => {} +// 下载模版 +const Export = () => { + DownloadExport().then(res => { + let blob = new Blob([res], { + type: 'application/vnd.ms-excel' + }) + const url = window.URL.createObjectURL(blob) + const link = document.createElement('a') // 创建a标签 + link.href = url + link.download = '终端入网检测录入模板' // 设置下载的文件名 + document.body.appendChild(link) + link.click() //执行下载 + }) +} +// 下载报告 +const download = (row: any, type: number) => { + reportDownload({ + id: row.id, + type: type + }).then(res => { + let blob = new Blob([res], { + type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document;charset=UTF-8' + }) + + const url = window.URL.createObjectURL(blob) + const link = document.createElement('a') // 创建a标签 + link.href = url + link.download = type == 1 ? row.inspectionName : row.originalName // 设置下载的文件名 + document.body.appendChild(link) + link.click() //执行下载 + }) +} +// excel导入 +const choose = (e: any) => { + batchTerminal(e.raw).then(res => { + console.log('🚀 ~ batchTerminal ~ res:', res) + }) +} onMounted(() => { tableStore.index() }) diff --git a/src/views/pqs/supervise/terminal/index.vue b/src/views/pqs/supervise/terminal/index.vue index 79245494..cb98d3fa 100644 --- a/src/views/pqs/supervise/terminal/index.vue +++ b/src/views/pqs/supervise/terminal/index.vue @@ -43,7 +43,7 @@ const layout = mainHeight(63) as any width: 100%; height: 500px; } -::v-deep(.el-tabs__content) { +:deep(.el-tabs__content) { height: v-bind('layout.height'); overflow-y: auto; } diff --git a/src/views/pqs/voltageSags/Region/components/Tableabove.vue b/src/views/pqs/voltageSags/Region/components/Tableabove.vue index 1512bb77..34feee11 100644 --- a/src/views/pqs/voltageSags/Region/components/Tableabove.vue +++ b/src/views/pqs/voltageSags/Region/components/Tableabove.vue @@ -112,7 +112,7 @@ const layout = mainHeight(185) as any const defaultMain = mainHeight(195) as any