feat(WEB): 견적서 V2 컴포넌트 개선 및 미리보기 모달 패턴 적용

- LocationDetailPanel: 6개 탭 구현 (본체, 가이드레일, 케이스, 하단마감재, 모터&제어기, 부자재)
- 각 탭별 다른 테이블 컬럼 구조 적용
- QuoteSummaryPanel: 개소별/상세별 합계 패널 개선
- QuotePreviewModal: EstimateDocumentModal 패턴 적용 (헤더+버튼 영역 분리)
- Input value → defaultValue 변경으로 React 경고 해결
- 팩스/카카오톡 버튼 제거

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
byeongcheolryu
2026-01-12 15:26:17 +09:00
parent e56b7d53a4
commit d036ce4f42
40 changed files with 5292 additions and 141 deletions

View File

@@ -7,10 +7,12 @@ import {
endOfMonth,
startOfWeek,
endOfWeek,
startOfDay,
eachDayOfInterval,
isSameMonth,
isSameDay,
isToday,
isBefore,
format,
addMonths,
subMonths,
@@ -71,6 +73,15 @@ export function checkIsToday(date: Date): boolean {
return isToday(date);
}
/**
* 날짜가 오늘 이전인지 확인 (지난 일자)
*/
export function checkIsPast(date: Date): boolean {
const today = startOfDay(new Date());
const targetDate = startOfDay(date);
return isBefore(targetDate, today);
}
/**
* 두 날짜가 같은지 확인
*/