[ST] - fix: 일반 검증 타입 총계 검증일 시 group by 항목 렌더링 되지 않게 수정

This commit is contained in:
2026-08-27 15:44:45 +09:00
parent d7cc579335
commit 214ff1a435
2 changed files with 14 additions and 9 deletions
@@ -1036,6 +1036,7 @@ const DetailComponent = ({ selectedVrfcRow }: DetailComponentProps) => {
);
}
}}
vrfcClsfCd={detailInfo?.commonInfo.vrfcClsfCd}
/>
</div>
);
@@ -18,6 +18,7 @@ interface FormulaComponentsProps {
data?: VerifyDetailResponseDto | null,
index?: number,
) => void;
vrfcClsfCd?: string;
}
const zoneClassName: Record<ClauseZone, string> = {
@@ -43,6 +44,7 @@ const FormulaComponents = ({
onDelete,
onOperatorChange,
handleFomulaDialog,
vrfcClsfCd,
}: FormulaComponentsProps) => {
const cmprOpert = data?.cmprOpert;
const displayFormula = data
@@ -77,15 +79,17 @@ const FormulaComponents = ({
onValueChange={onOperatorChange}
/>
</div>
<label className="flex w-[96px] shrink-0 items-center justify-end gap-1.5 text-[#4b5563] cursor-pointer">
<input
type="checkbox"
className="cursor-pointer accent-[#3a6df0]"
checked={groupBy}
onChange={(e) => onGroupByChange?.(e.target.checked)}
/>
group by
</label>
{vrfcClsfCd !== "TOTAL" &&
<label className="flex w-[96px] shrink-0 items-center justify-end gap-1.5 text-[#4b5563] cursor-pointer">
<input
type="checkbox"
className="cursor-pointer accent-[#3a6df0]"
checked={groupBy}
onChange={(e) => onGroupByChange?.(e.target.checked)}
/>
group by
</label>
}
</div>
);
};