feat(WEB): 전체 페이지 ?mode= URL 네비게이션 패턴 적용
- 등록(?mode=new), 상세(?mode=view), 수정(?mode=edit) URL 패턴 일괄 적용
- 중복 패턴 제거: /edit?mode=edit → ?mode=edit (16개 파일)
- 제목 일관성: {기능} 등록/상세/수정 패턴 적용
- 검수 체크리스트 문서 추가 (79개 페이지)
- UniversalListPage, IntegratedDetailTemplate 공통 컴포넌트 개선
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -555,9 +555,11 @@ export function SalesDetail({ mode, salesId }: SalesDetailProps) {
|
||||
const templateMode = isNewMode ? 'create' : mode;
|
||||
|
||||
// ===== 동적 config =====
|
||||
// IntegratedDetailTemplate: create → "{title} 등록", view → "{title}", edit → "{title} 수정"
|
||||
// view 모드에서 "매출 상세"로 표시하려면 직접 설정 필요
|
||||
const dynamicConfig = {
|
||||
...salesConfig,
|
||||
title: isNewMode ? '매출' : '매출 상세',
|
||||
title: isViewMode ? '매출 상세' : '매출',
|
||||
actions: {
|
||||
...salesConfig.actions,
|
||||
submitLabel: isNewMode ? '등록' : '저장',
|
||||
|
||||
@@ -180,7 +180,7 @@ export function SalesManagement({ initialData, initialPagination }: SalesManagem
|
||||
|
||||
// ===== 핸들러 =====
|
||||
const handleRowClick = useCallback((item: SalesRecord) => {
|
||||
router.push(`/ko/accounting/sales/${item.id}`);
|
||||
router.push(`/ko/accounting/sales/${item.id}?mode=view`);
|
||||
}, [router]);
|
||||
|
||||
const handleEdit = useCallback((item: SalesRecord) => {
|
||||
|
||||
Reference in New Issue
Block a user