fix(WEB): 산출중량/면적 표시 수정 및 개소별 합계 스크롤 제거

- 산출중량: K ?? WEIGHT fallback으로 경동 전용 변수 지원
- 산출면적: M ?? AREA fallback으로 경동 전용 변수 지원
- 개소별 합계 섹션 max-h/overflow-y-auto 스크롤 제거
This commit is contained in:
2026-02-04 12:37:04 +09:00
parent b5095602ca
commit 3500e3f520
2 changed files with 5 additions and 5 deletions

View File

@@ -433,16 +433,16 @@ export function LocationDetailPanel({
<div>
<span className="text-xs text-gray-500"></span>
<p className="font-semibold">
{location.bomResult?.variables?.K
? `${Number(location.bomResult.variables.K).toFixed(2)} kg`
{(location.bomResult?.variables?.K ?? location.bomResult?.variables?.WEIGHT)
? `${Number(location.bomResult?.variables?.K ?? location.bomResult?.variables?.WEIGHT).toFixed(2)} kg`
: "-"}
</p>
</div>
<div>
<span className="text-xs text-gray-500"></span>
<p className="font-semibold">
{location.bomResult?.variables?.M
? `${Number(location.bomResult.variables.M).toFixed(2)}`
{(location.bomResult?.variables?.M ?? location.bomResult?.variables?.AREA)
? `${Number(location.bomResult?.variables?.M ?? location.bomResult?.variables?.AREA).toFixed(2)}`
: "-"}
</p>
</div>

View File

@@ -154,7 +154,7 @@ export function QuoteSummaryPanel({
<p className="text-sm"> </p>
</div>
) : (
<div className="space-y-2 max-h-[300px] overflow-y-auto pr-2">
<div className="space-y-2">
{locationTotals.map((loc) => (
<div
key={loc.id}