From a1cb84cde532892b4d31ec44ca48ac454ebd4ae2 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 19 Dec 2025 18:27:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E8=AE=A1=E5=88=92=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ComDataTable/index.vue | 15 +++++-- src/components/ComSearchForm/index.vue | 4 +- src/router/index.js | 16 +++++++ src/views/planMange/dailyPlan/config.js | 56 +++++++++++++++++++++---- src/views/planMange/dailyPlan/index.vue | 49 ++++++++++++++++++---- 5 files changed, 119 insertions(+), 21 deletions(-) diff --git a/src/components/ComDataTable/index.vue b/src/components/ComDataTable/index.vue index ff311e9..87c3046 100644 --- a/src/components/ComDataTable/index.vue +++ b/src/components/ComDataTable/index.vue @@ -133,11 +133,18 @@ :highlight-current-row="highlightCurrentRow" :class="`table-density-${density}`" @selection-change="handleSelectionChange" - @row-click="handleRowClick" v-bind="$attrs" + @row-click="handleRowClick" + style="width: 100%" > - + .search-form-card { - margin-bottom: 20px; + margin-bottom: 10px; } .search-form-card :deep(.el-card__body) { - padding: 18px 20px 0; + padding: 20px 20px 5px 20px !important; } .el-form--inline .el-form-item { diff --git a/src/router/index.js b/src/router/index.js index 67e73b5..cb877ac 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -101,6 +101,22 @@ export const constantRoutes = [ }, ], }, + { + path: '/plan/dailyPlanEdit', + component: Layout, + hidden: true, + children: [ + { + path: 'index', + component: () => import('@/views/planMange/dailyPlan/edit.vue'), + name: 'DailyPlanEdit', + meta: { + title: '日计划填报', + activeMenu: '/plan/dailyPlan', // 保持左侧高亮在列表菜单 + }, + }, + ], + }, ] // 动态路由,基于用户权限动态去加载 diff --git a/src/views/planMange/dailyPlan/config.js b/src/views/planMange/dailyPlan/config.js index 3640884..5ac74a0 100644 --- a/src/views/planMange/dailyPlan/config.js +++ b/src/views/planMange/dailyPlan/config.js @@ -55,16 +55,54 @@ export const buildFormColumns = () => [ // 月计划列表表格列 export const tableColumns = [ - { prop: 'stationName', label: '日期' }, - { prop: 'majorName', label: '运检站' }, - { prop: 'businessTypeName', label: '专业' }, - { prop: 'projectName', label: '项目名称' }, + { prop: 'stationName', label: '日期', fixed: true }, + { prop: 'majorName', label: '运检站', fixed: true }, + { prop: 'businessTypeName', label: '专业', fixed: true }, + { prop: 'projectName', label: '项目名称', fixed: true }, { prop: 'workTask', label: '工作任务' }, { prop: 'riskLevelName', label: '风险等级' }, - { prop: 'categoryName', label: '几乎工作量(基)' }, - { prop: 'workAmount', label: '拟投入作业人员数量' }, - { prop: 'baseCount', label: '拟投入作业人员姓名' }, - { prop: 'planStartDate', label: '拟投诉车辆' }, + { prop: 'categoryName', label: '计划工作量(基)' }, +] +export const tableColumns_1 = [ + { prop: 'stationName', label: '拟投入作业人员数量', fixed: false }, + { prop: 'majorName', label: '拟投入作业人员姓名', fixed: false }, + { prop: 'businessTypeName', label: '拟投入车辆', fixed: false }, + { prop: 'projectName', label: '实际投入作业人员数量', fixed: false }, + { prop: 'workTask', label: '实际投入作业人员姓名', fixed: false }, + { prop: 'riskLevelName', label: '实际投入车辆', fixed: false }, + { prop: 'categoryName', label: '实际完成工作量明细', fixed: false }, + { prop: 'categoryName', label: '实际完成工作量(基)', fixed: false }, + { prop: 'categoryName', label: '完成比例', fixed: false }, + { prop: 'categoryName', label: '作业计划完成情况', fixed: false }, + { prop: 'categoryName', label: '计划变更及未完成情况说明', fixed: false }, +] +export const tableColumns_2 = [ + { prop: 'stationName', label: '拟投入高处作业人员数量', fixed: false }, + { prop: 'majorName', label: '高处作业人员姓名', fixed: false }, + { prop: 'businessTypeName', label: '拟投入地面作业人员数量', fixed: false }, + { prop: 'projectName', label: '地面作业人员姓名', fixed: false }, + { prop: 'workTask', label: '拟投入检修熟练工数量(分包高空作业人员)', fixed: false }, + { prop: 'riskLevelName', label: '拟投入检修辅助工数量(分包地面作业人员)', fixed: false }, + { prop: 'categoryName', label: '拟投入车辆', fixed: false }, + { prop: 'categoryName', label: '实际投入高处作业人员数量', fixed: false }, + { prop: 'categoryName', label: '高处作业人员姓名', fixed: false }, + { prop: 'categoryName', label: '实际投入地面作业人员数量', fixed: false }, + { prop: 'categoryName', label: '地面作业人员姓名', fixed: false }, + { + prop: 'categoryName', + label: '实际投入检修熟练工数量(分包高空作业人员)', + fixed: false, + }, + { + prop: 'categoryName', + label: '实际投入检修辅助工数量(分包高空作业人员)', + fixed: false, + }, + { prop: 'categoryName', label: '实际投入车辆', fixed: false }, + { prop: 'categoryName', label: '实际完成工作内容', fixed: false }, + { prop: 'categoryName', label: '完成比例', fixed: false }, + { prop: 'categoryName', label: '作业计划完成情况', fixed: false }, + { prop: 'categoryName', label: '计划变更及未完成情况说明', fixed: false }, ] export const dialogConfig = reactive({ @@ -77,6 +115,8 @@ export const dialogConfig = reactive({ export default { tableColumns, + tableColumns_1, + tableColumns_2, dialogConfig, buildFormColumns, } diff --git a/src/views/planMange/dailyPlan/index.vue b/src/views/planMange/dailyPlan/index.vue index 87e2988..f9304c3 100644 --- a/src/views/planMange/dailyPlan/index.vue +++ b/src/views/planMange/dailyPlan/index.vue @@ -1,17 +1,35 @@