From 3b556ce46a4154fbe67b92fd00a3e0791e47a568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Sat, 5 Jul 2025 16:48:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A1=A8=E6=A0=BC=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/oa/reportDetail.js | 44 ++ api/oa/reportSummary.js | 81 ++ pages.json | 10 +- pages/workbench/construction/construction.vue | 407 +++++++++- pages/workbench/construction/detail.vue | 702 ++++++++++++++++++ pages/workbench/reportWork/reportWork.vue | 115 +-- 6 files changed, 1299 insertions(+), 60 deletions(-) create mode 100644 api/oa/reportDetail.js create mode 100644 api/oa/reportSummary.js create mode 100644 pages/workbench/construction/detail.vue diff --git a/api/oa/reportDetail.js b/api/oa/reportDetail.js new file mode 100644 index 0000000..b1ff790 --- /dev/null +++ b/api/oa/reportDetail.js @@ -0,0 +1,44 @@ +import request from "@/util/oaRequest" + +// 查询设计项目汇报详情列表 +export async function listReportDetail(query) { + return request({ + url: '/system/reportDetail/list', + method: 'get', + params: query + }) +} + +// 查询设计项目汇报详情详细 +export function getReportDetail(id) { + return request({ + url: '/system/reportDetail/' + id, + method: 'get' + }) +} + +// 新增设计项目汇报详情 +export function addReportDetail(data) { + return request({ + url: '/system/reportDetail', + method: 'post', + data: data + }) +} + +// 修改设计项目汇报详情 +export function updateReportDetail(data) { + return request({ + url: '/system/reportDetail', + method: 'put', + data: data + }) +} + +// 删除设计项目汇报详情 +export function delReportDetail(id) { + return request({ + url: '/system/reportDetail/' + id, + method: 'delete' + }) +} diff --git a/api/oa/reportSummary.js b/api/oa/reportSummary.js new file mode 100644 index 0000000..62218e4 --- /dev/null +++ b/api/oa/reportSummary.js @@ -0,0 +1,81 @@ +import request from "@/util/oaRequest" + +// 查询设计项目汇报概述列表 +export async function listReportSummary(query) { + // return { + // rows: [ + // { + // reportSummaryId: 1, + // reportTitle: '汇报标题', + // reportDate: '汇报日期', + // reporter: '汇报人', + // projectName: '设计项目', + // projectId: '1' + // }, + // { + // reportSummaryId: 2, + // reportTitle: '汇报标题', + // reportDate: '汇报日期', + // reporter: '汇报人', + // projectName: '设计项目', + // projectId: '1' + // }, + // { + // reportSummaryId: 3, + // reportTitle: '汇报标题', + // reportDate: '汇报日期', + // reporter: '汇报人', + // projectName: '设计项目', + // projectId: '1' + // }, + // { + // reportSummaryId: 4, + // reportTitle: '汇报标题', + // reportDate: '汇报日期', + // reporter: '汇报人', + // projectName: '设计项目', + // projectId: '1' + // }, + // ], + // total: 1, + // } + return request({ + url: '/system/reportSummary/list', + method: 'get', + params: query + }) +} + +// 查询设计项目汇报概述详细 +export function getReportSummary(id) { + return request({ + url: '/system/reportSummary/' + id, + method: 'get' + }) +} + +// 新增设计项目汇报概述 +export function addReportSummary(data) { + return request({ + url: '/system/reportSummary', + method: 'post', + data: data + }) +} + +// 修改设计项目汇报概述 +export function updateReportSummary(data) { + return request({ + url: '/system/reportSummary', + method: 'put', + data: data + }) +} + +// 删除设计项目汇报概述 +export function delReportSummary(id) { + return request({ + url: '/system/reportSummary/' + id, + method: 'delete' + }) +} diff --git a/pages.json b/pages.json index 8d9fb30..2a85608 100644 --- a/pages.json +++ b/pages.json @@ -261,7 +261,15 @@ "navigationBarTitleText" : "施工进度", "navigationStyle": "default" } - } + }, + { + "path" : "pages/workbench/construction/detail", + "style" : + { + "navigationBarTitleText" : "施工进度详情", + "navigationStyle": "default" + } + } ], "tabBar": { "color": "#8E9AB0", diff --git a/pages/workbench/construction/construction.vue b/pages/workbench/construction/construction.vue index 8183fd0..3430234 100644 --- a/pages/workbench/construction/construction.vue +++ b/pages/workbench/construction/construction.vue @@ -1,22 +1,411 @@ - diff --git a/pages/workbench/construction/detail.vue b/pages/workbench/construction/detail.vue new file mode 100644 index 0000000..649f184 --- /dev/null +++ b/pages/workbench/construction/detail.vue @@ -0,0 +1,702 @@ + + + + + \ No newline at end of file diff --git a/pages/workbench/reportWork/reportWork.vue b/pages/workbench/reportWork/reportWork.vue index 71d9375..76a8f80 100644 --- a/pages/workbench/reportWork/reportWork.vue +++ b/pages/workbench/reportWork/reportWork.vue @@ -7,52 +7,56 @@ - - - - + + + + + + + + 项目代号 + 项目名称 + 项目编号 + 经办人 + 工作地点 + 国内/国外 + 报工时间 + + + + + + + + + + + + + + {{ item.projectName }} + + {{ item.projectNum }} + + {{ item.nickName }} + ({{ item.deptName }}) + + {{ item.workPlace }} + + + + {{ formatDate(item.createTime) }} + + - 项目代号 - 项目名称 - 项目编号 - 经办人 - 工作地点 - 国内/国外 - 报工时间 - - - - - - - - - - - - - - {{ item.projectName }} - - {{ item.projectNum }} - - {{ item.nickName }} - ({{ item.deptName }}) - - {{ item.workPlace }} - - - - {{ formatDate(item.createTime) }} - - + @@ -414,26 +418,35 @@ export default { margin-bottom: 20rpx; } -.table-container { +.table-wrapper { background-color: #fff; border-radius: 10rpx; overflow: hidden; } +.table-scroll { + width: 100%; +} + +.table-container { + min-width: 1400rpx; // 设置最小宽度,确保表格内容不会被压缩 +} + .table-header { display: flex; background-color: #f8f9fa; border-bottom: 1rpx solid #e9ecef; .header-cell { - flex: 1; + width: 200rpx; // 固定列宽 padding: 20rpx 10rpx; text-align: center; font-weight: bold; font-size: 28rpx; + flex-shrink: 0; // 防止列被压缩 &.checkbox { - flex: 0.5; + width: 100rpx; // 复选框列宽度 } } } @@ -448,7 +461,7 @@ export default { } .table-cell { - flex: 1; + width: 200rpx; // 固定列宽 padding: 20rpx 10rpx; text-align: center; font-size: 26rpx; @@ -456,9 +469,11 @@ export default { align-items: center; justify-content: center; flex-direction: column; + flex-shrink: 0; // 防止列被压缩 + word-break: break-all; // 长文本换行 &.checkbox { - flex: 0.5; + width: 100rpx; // 复选框列宽度 } } }