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