From 83334bc0904b9021ffd8f840575d0e953b873204 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 18 Dec 2025 17:38:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9C=88=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=A1=AB=E6=8A=A5=20=E6=97=A5=E8=AE=A1=E5=88=92=E5=A1=AB?= =?UTF-8?q?=E6=8A=A5=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/planMange/dailyPlan/addForm.vue | 143 +++++++++ src/views/planMange/dailyPlan/config.js | 82 ++++++ src/views/planMange/dailyPlan/edit.vue | 308 ++++++++++++++++++++ src/views/planMange/dailyPlan/index.vue | 110 ++++++- src/views/planMange/monthlyPlan/addForm.vue | 40 ++- src/views/planMange/monthlyPlan/config.js | 9 + src/views/planMange/monthlyPlan/index.vue | 24 +- 7 files changed, 689 insertions(+), 27 deletions(-) create mode 100644 src/views/planMange/dailyPlan/addForm.vue create mode 100644 src/views/planMange/dailyPlan/config.js create mode 100644 src/views/planMange/dailyPlan/edit.vue diff --git a/src/views/planMange/dailyPlan/addForm.vue b/src/views/planMange/dailyPlan/addForm.vue new file mode 100644 index 0000000..549b94a --- /dev/null +++ b/src/views/planMange/dailyPlan/addForm.vue @@ -0,0 +1,143 @@ + + + + + diff --git a/src/views/planMange/dailyPlan/config.js b/src/views/planMange/dailyPlan/config.js new file mode 100644 index 0000000..3640884 --- /dev/null +++ b/src/views/planMange/dailyPlan/config.js @@ -0,0 +1,82 @@ +import { reactive } from 'vue' + +// 静态选项(可后续替换为接口下拉) +const stationOptions = [ + { label: '昆明运检站', value: 1 }, + { label: '大理运检站', value: 2 }, +] + +const majorOptions = [ + { label: '输电专业', value: 1 }, + { label: '变电专业', value: 2 }, +] + +const businessTypeOptions = [ + { label: '日常巡视', value: 1 }, + { label: '缺陷处理', value: 2 }, +] + +const riskLevelOptions = [ + { label: '低风险', value: 1 }, + { label: '中风险', value: 2 }, + { label: '高风险', value: 3 }, +] + +// 月计划列表搜索表单配置 +export const buildFormColumns = () => [ + { + type: 'month', + prop: 'month', + placeholder: '请选择月份', + }, + + { + type: 'input', + prop: 'keyword', + placeholder: '请输入关键字', + }, + { + type: 'input', + prop: 'keyword', + placeholder: '请输入项目名称', + }, + { + type: 'input', + prop: 'keyword', + placeholder: '请输入工作任务', + }, + { + type: 'select', + prop: 'riskLevel', + placeholder: '请选择计划状态', + options: riskLevelOptions, + }, +] + +// 月计划列表表格列 +export const tableColumns = [ + { prop: 'stationName', label: '日期' }, + { prop: 'majorName', label: '运检站' }, + { prop: 'businessTypeName', label: '专业' }, + { prop: 'projectName', label: '项目名称' }, + { prop: 'workTask', label: '工作任务' }, + { prop: 'riskLevelName', label: '风险等级' }, + { prop: 'categoryName', label: '几乎工作量(基)' }, + { prop: 'workAmount', label: '拟投入作业人员数量' }, + { prop: 'baseCount', label: '拟投入作业人员姓名' }, + { prop: 'planStartDate', label: '拟投诉车辆' }, +] + +export const dialogConfig = reactive({ + outerVisible: false, + outerTitle: '新增计划', + outerWidth: '70%', // 根据图片缩小宽度更美观 + minHeight: '70vh', + maxHeight: '90vh', +}) + +export default { + tableColumns, + dialogConfig, + buildFormColumns, +} diff --git a/src/views/planMange/dailyPlan/edit.vue b/src/views/planMange/dailyPlan/edit.vue new file mode 100644 index 0000000..b0384d6 --- /dev/null +++ b/src/views/planMange/dailyPlan/edit.vue @@ -0,0 +1,308 @@ + + + + + diff --git a/src/views/planMange/dailyPlan/index.vue b/src/views/planMange/dailyPlan/index.vue index 7b0655d..87e2988 100644 --- a/src/views/planMange/dailyPlan/index.vue +++ b/src/views/planMange/dailyPlan/index.vue @@ -1,10 +1,112 @@ - + + + diff --git a/src/views/planMange/monthlyPlan/addForm.vue b/src/views/planMange/monthlyPlan/addForm.vue index 4c958b2..549b94a 100644 --- a/src/views/planMange/monthlyPlan/addForm.vue +++ b/src/views/planMange/monthlyPlan/addForm.vue @@ -20,36 +20,34 @@ /> - - - - - - - + + + + + - - + + diff --git a/src/views/planMange/monthlyPlan/config.js b/src/views/planMange/monthlyPlan/config.js index 5a4005b..d40553a 100644 --- a/src/views/planMange/monthlyPlan/config.js +++ b/src/views/planMange/monthlyPlan/config.js @@ -74,7 +74,16 @@ export const tableColumns = [ { prop: 'planStartDate', label: '计划开始时间' }, ] +export const dialogConfig = reactive({ + outerVisible: false, + outerTitle: '新增计划', + outerWidth: '70%', // 根据图片缩小宽度更美观 + minHeight: '70vh', + maxHeight: '90vh', +}) + export default { tableColumns, + dialogConfig, buildFormColumns, } diff --git a/src/views/planMange/monthlyPlan/index.vue b/src/views/planMange/monthlyPlan/index.vue index b79a194..d29216a 100644 --- a/src/views/planMange/monthlyPlan/index.vue +++ b/src/views/planMange/monthlyPlan/index.vue @@ -17,6 +17,7 @@