From ed7d25f1c0f0dae88570f5662931c4720361570d Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 26 Dec 2025 10:36:01 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/personManage/Person/config.js | 2 +- src/views/personManage/Person/index.vue | 32 +++++++++++++++++++++---- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/src/views/personManage/Person/config.js b/src/views/personManage/Person/config.js index 8be1227..8d557f4 100644 --- a/src/views/personManage/Person/config.js +++ b/src/views/personManage/Person/config.js @@ -9,7 +9,7 @@ export const buildFormColumns = ( ) => [ { type: 'input', - prop: 'personName', + prop: 'name', placeholder: '请输入姓名', }, { diff --git a/src/views/personManage/Person/index.vue b/src/views/personManage/Person/index.vue index 791fb49..1d083e1 100644 --- a/src/views/personManage/Person/index.vue +++ b/src/views/personManage/Person/index.vue @@ -17,8 +17,8 @@ @@ -207,8 +207,32 @@ const onCloseDialogOuter = (visible) => { } } +// 获取 longTermSecondment 的值,统一转换为字符串格式 +const getLongTermSecondmentValue = (row) => { + const value = row.longTermSecondment + if (value === null || value === undefined) { + return '0' + } + // 如果是数字,转换为字符串;如果已经是字符串,直接返回 + return String(value) +} + // 是否长期借调 -const onHandleLongTermSecondmentChange = (row) => { - console.log(row) +const onHandleLongTermSecondmentChange = (value, row) => { + // 更新 row 数据,保持与 switch 组件的值同步 + row.longTermSecondment = value + + // 组装参数:将字符串转换为数字('1' -> 1, '0' -> 0) + const params = { + id: row.id, + longTermSecondment: value === '1' ? 1 : 0, + } + + updatePersonAPI(params).then((res) => { + if (res.code === 200) { + proxy.$modal.msgSuccess('更新成功') + comTableRef.value?.refresh() + } + }) } From 3659b0ffe3ab76f1b6ebc8d52659efb24d6c17b8 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 26 Dec 2025 13:22:01 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basicManage/businessType/config.js | 3 +- src/views/basicManage/businessType/index.vue | 2 +- .../basicManage/inspectionStation/config.js | 3 +- .../basicManage/inspectionStation/index.vue | 2 +- .../basicManage/personCategory/config.js | 1 + src/views/basicManage/personNature/config.js | 1 + src/views/basicManage/planCategory/config.js | 7 +- .../basicManage/planProfessional/config.js | 1 + src/views/basicManage/position/config.js | 1 + src/views/basicManage/projectDept/config.js | 1 + .../basicManage/workloadCategory/config.js | 1 + src/views/planMange/monthlyPlan/addForm.vue | 5 +- src/views/planMange/monthlyPlan/edit.vue | 138 +++++++++--- src/views/planMange/monthlyPlan/index.vue | 15 -- src/views/planMange/plan/addAndEditForm.vue | 208 ++++++++++++++++-- src/views/planMange/plan/index.vue | 20 +- 16 files changed, 338 insertions(+), 71 deletions(-) diff --git a/src/views/basicManage/businessType/config.js b/src/views/basicManage/businessType/config.js index cb00256..fff4a88 100644 --- a/src/views/basicManage/businessType/config.js +++ b/src/views/basicManage/businessType/config.js @@ -15,12 +15,13 @@ export default { { prop: 'remark', label: '备注', + width: '200', }, ], dialogConfig: reactive({ outerVisible: false, - outerTitle: '新增业务类型', + outerTitle: '新建业务类型', outerWidth: '720px', minHeight: '320px', maxHeight: '80vh', diff --git a/src/views/basicManage/businessType/index.vue b/src/views/basicManage/businessType/index.vue index 091fb4e..131e601 100644 --- a/src/views/basicManage/businessType/index.vue +++ b/src/views/basicManage/businessType/index.vue @@ -122,7 +122,7 @@ const actionColumns = [ // 新增 const onHandleAdd = () => { editId.value = null - dialogConfig.outerTitle = '新增业务类型' + dialogConfig.outerTitle = '新建业务类型' dialogConfig.outerVisible = true // 重置表单数据 addAndEditForm.value = getInitFormData() diff --git a/src/views/basicManage/inspectionStation/config.js b/src/views/basicManage/inspectionStation/config.js index c9a9929..5fdff68 100644 --- a/src/views/basicManage/inspectionStation/config.js +++ b/src/views/basicManage/inspectionStation/config.js @@ -15,12 +15,13 @@ export default { { prop: 'remark', label: '备注', + width: '200', }, ], dialogConfig: reactive({ outerVisible: false, - outerTitle: '新增运检站', + outerTitle: '新建运检站', outerWidth: '720px', minHeight: '320px', maxHeight: '80vh', diff --git a/src/views/basicManage/inspectionStation/index.vue b/src/views/basicManage/inspectionStation/index.vue index 9b99396..0d9cfe2 100644 --- a/src/views/basicManage/inspectionStation/index.vue +++ b/src/views/basicManage/inspectionStation/index.vue @@ -132,7 +132,7 @@ const actionColumns = [ // 新增 const onHandleAdd = () => { editId.value = null - dialogConfig.outerTitle = '新增运检站' + dialogConfig.outerTitle = '新建运检站' dialogConfig.outerVisible = true // 重置表单数据 addAndEditForm.value = getInitFormData() diff --git a/src/views/basicManage/personCategory/config.js b/src/views/basicManage/personCategory/config.js index 0325225..b3147da 100644 --- a/src/views/basicManage/personCategory/config.js +++ b/src/views/basicManage/personCategory/config.js @@ -15,6 +15,7 @@ export default { { prop: 'remark', label: '备注', + width: '200', }, ], diff --git a/src/views/basicManage/personNature/config.js b/src/views/basicManage/personNature/config.js index 290a476..b7ee2b3 100644 --- a/src/views/basicManage/personNature/config.js +++ b/src/views/basicManage/personNature/config.js @@ -15,6 +15,7 @@ export default { { prop: 'remark', label: '备注', + width: '200', }, ], diff --git a/src/views/basicManage/planCategory/config.js b/src/views/basicManage/planCategory/config.js index cb00256..7e1fe72 100644 --- a/src/views/basicManage/planCategory/config.js +++ b/src/views/basicManage/planCategory/config.js @@ -4,23 +4,24 @@ export default { { type: 'input', prop: 'planMajorName', - placeholder: '请输入业务类型名称', + placeholder: '请输入计划类别名称', }, ], tableColumns: [ { prop: 'planMajorName', - label: '业务类型名称', + label: '计划类别名称', }, { prop: 'remark', label: '备注', + width: '200', }, ], dialogConfig: reactive({ outerVisible: false, - outerTitle: '新增业务类型', + outerTitle: '新建计划类别', outerWidth: '720px', minHeight: '320px', maxHeight: '80vh', diff --git a/src/views/basicManage/planProfessional/config.js b/src/views/basicManage/planProfessional/config.js index 7469ef5..c869e22 100644 --- a/src/views/basicManage/planProfessional/config.js +++ b/src/views/basicManage/planProfessional/config.js @@ -15,6 +15,7 @@ export default { { prop: 'remark', label: '备注', + width: '200', }, ], diff --git a/src/views/basicManage/position/config.js b/src/views/basicManage/position/config.js index 9e6a86d..19326d4 100644 --- a/src/views/basicManage/position/config.js +++ b/src/views/basicManage/position/config.js @@ -15,6 +15,7 @@ export default { { prop: 'remark', label: '备注', + width: '200', }, ], diff --git a/src/views/basicManage/projectDept/config.js b/src/views/basicManage/projectDept/config.js index d8b844f..87a946d 100644 --- a/src/views/basicManage/projectDept/config.js +++ b/src/views/basicManage/projectDept/config.js @@ -15,6 +15,7 @@ export default { { prop: 'remark', label: '备注', + width: '200', }, ], diff --git a/src/views/basicManage/workloadCategory/config.js b/src/views/basicManage/workloadCategory/config.js index 5c257df..1ca05db 100644 --- a/src/views/basicManage/workloadCategory/config.js +++ b/src/views/basicManage/workloadCategory/config.js @@ -20,6 +20,7 @@ export default { { prop: 'remark', label: '备注', + width: '200', }, ], diff --git a/src/views/planMange/monthlyPlan/addForm.vue b/src/views/planMange/monthlyPlan/addForm.vue index 28b073b..10f42d2 100644 --- a/src/views/planMange/monthlyPlan/addForm.vue +++ b/src/views/planMange/monthlyPlan/addForm.vue @@ -7,7 +7,7 @@ :model="formData" :rules="rules" label-width="140px" - size="default" + size="large" class="month-form" > @@ -47,6 +47,7 @@ @selection-change="onSelectionChange" class="task-table" stripe + border :header-cell-style="{ background: '#f5f7fa', color: '#606266', fontWeight: 600 }" > @@ -54,8 +55,8 @@ prop="projectName" label="项目名称" min-width="260" - show-overflow-tooltip align="center" + show-overflow-tooltip /> @@ -74,12 +74,12 @@ @@ -90,15 +90,15 @@ @@ -110,7 +110,7 @@ - + diff --git a/src/views/planMange/dailyPlan/config.js b/src/views/planMange/dailyPlan/config.js index 5ac74a0..84fca36 100644 --- a/src/views/planMange/dailyPlan/config.js +++ b/src/views/planMange/dailyPlan/config.js @@ -55,11 +55,11 @@ export const buildFormColumns = () => [ // 月计划列表表格列 export const tableColumns = [ - { prop: 'stationName', label: '日期', fixed: true }, - { prop: 'majorName', label: '运检站', fixed: true }, - { prop: 'businessTypeName', label: '专业', fixed: true }, + { prop: 'dayPlan', label: '日期', fixed: true, width: '140' }, + { prop: 'inspectionStationName', label: '运检站', fixed: true }, + { prop: 'planMajorName', label: '专业', fixed: true }, { prop: 'projectName', label: '项目名称', fixed: true }, - { prop: 'workTask', label: '工作任务' }, + { prop: 'workContent', label: '工作任务' }, { prop: 'riskLevelName', label: '风险等级' }, { prop: 'categoryName', label: '计划工作量(基)' }, ] @@ -107,7 +107,7 @@ export const tableColumns_2 = [ export const dialogConfig = reactive({ outerVisible: false, - outerTitle: '新增计划', + outerTitle: '添加计划任务', outerWidth: '70%', // 根据图片缩小宽度更美观 minHeight: '70vh', maxHeight: '90vh', diff --git a/src/views/planMange/dailyPlan/edit.vue b/src/views/planMange/dailyPlan/edit.vue index b0384d6..c19a164 100644 --- a/src/views/planMange/dailyPlan/edit.vue +++ b/src/views/planMange/dailyPlan/edit.vue @@ -1,301 +1,671 @@ - diff --git a/src/views/planMange/dailyPlan/forms/projectForm.vue b/src/views/planMange/dailyPlan/forms/projectForm.vue new file mode 100644 index 0000000..882ca73 --- /dev/null +++ b/src/views/planMange/dailyPlan/forms/projectForm.vue @@ -0,0 +1,175 @@ + + + + + diff --git a/src/views/planMange/dailyPlan/forms/repairForm.vue b/src/views/planMange/dailyPlan/forms/repairForm.vue new file mode 100644 index 0000000..b018d7b --- /dev/null +++ b/src/views/planMange/dailyPlan/forms/repairForm.vue @@ -0,0 +1,1034 @@ + + + + + diff --git a/src/views/planMange/dailyPlan/forms/runForm.vue b/src/views/planMange/dailyPlan/forms/runForm.vue new file mode 100644 index 0000000..b54f11f --- /dev/null +++ b/src/views/planMange/dailyPlan/forms/runForm.vue @@ -0,0 +1,591 @@ + + + + + diff --git a/src/views/planMange/dailyPlan/index.vue b/src/views/planMange/dailyPlan/index.vue index f9304c3..09fc001 100644 --- a/src/views/planMange/dailyPlan/index.vue +++ b/src/views/planMange/dailyPlan/index.vue @@ -2,9 +2,9 @@
- - - + + + 下载统计表 @@ -15,13 +15,15 @@ :key="tableType" :show-toolbar="true" :show-action="true" - :load-data="listPlanAPI" :form-columns="formColumns" + :load-data="listDailyPlanAPI" :table-columns="initTableColumns" :action-columns="actionColumns" + :defaultQueryParams="{ dayPlanType: tableType }" >