조사 상세현황 배수방식·관종 명칭 표시

This commit is contained in:
kiminchan
2026-07-30 13:17:16 +09:00
parent 3cc0e9de14
commit 474676af17
5 changed files with 60 additions and 4 deletions
@@ -22,7 +22,9 @@ export interface ExmnSurveyDetailRow {
upstreamManhole: string;
downstreamManhole: string;
drainageType: string;
drainageTypeName: string;
pipeType: string;
pipeTypeName: string;
specification: string | number;
extensionM: number;
drivingDistanceM: number;
@@ -108,6 +108,12 @@ const getFixedCellValue = (
row: ExmnSurveyDetailRow,
columnId: ExmnDetailFixedColumnId,
) => {
if (columnId === "drainageType") {
return row.drainageTypeName?.trim() || row.drainageType;
}
if (columnId === "pipeType") {
return row.pipeTypeName?.trim() || row.pipeType;
}
const value = row[columnId];
return typeof value === "number" ? formatNumber(value) : value;
};
@@ -118,8 +124,8 @@ const compareFixedColumnValue = (
right: ExmnSurveyDetailRow,
columnId: ExmnDetailFixedColumnId,
) => {
const leftValue = left[columnId];
const rightValue = right[columnId];
const leftValue = getFixedCellValue(left, columnId);
const rightValue = getFixedCellValue(right, columnId);
if (typeof leftValue === "number" && typeof rightValue === "number") {
return leftValue - rightValue;
}
@@ -603,8 +609,8 @@ export function ExmnSurveyDetailPopupPage({
pipeNo: row.pipeNo,
upstreamManhole: row.upstreamManhole,
downstreamManhole: row.downstreamManhole,
drainageType: row.drainageType,
pipeType: row.pipeType,
drainageType: row.drainageTypeName?.trim() || row.drainageType,
pipeType: row.pipeTypeName?.trim() || row.pipeType,
specification: row.specification,
extensionM: row.extensionM,
drivingDistanceM: row.drivingDistanceM,