feat 对齐接口字段

This commit is contained in:
Ironsp
2026-09-27 15:38:27 +08:00
parent d1b2d981b5
commit f4b0413e42

View File

@@ -182,7 +182,7 @@ function mapReportStatus(status?: ReportItem['reportStatus']) {
function mapApiReportItem(item: ReportItem): ReportListRow { function mapApiReportItem(item: ReportItem): ReportListRow {
return { return {
id: item.reportId, id: item.reportId,
title: item.reportNo || item.projectName || '碾压报告', title: item.constructionSection ? `${item.constructionSection}压实作业报告` : '压实作业报告',
deviceCode: item.deviceId || '-', deviceCode: item.deviceId || '-',
status: mapReportStatus(item.reportStatus), status: mapReportStatus(item.reportStatus),
time: formatDateTimeRange(item.workStartTime, item.workEndTime), time: formatDateTimeRange(item.workStartTime, item.workEndTime),