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:
@@ -146,10 +146,18 @@ export default function ProgressBillingDetailForm({
|
||||
</div>
|
||||
);
|
||||
|
||||
// 동적 config 설정
|
||||
// IntegratedDetailTemplate: create → "{title} 등록", view → "{title}", edit → "{title} 수정"
|
||||
// view 모드에서 "기성청구 상세"로 표시하려면 직접 설정 필요
|
||||
const dynamicConfig = {
|
||||
...progressBillingConfig,
|
||||
title: isViewMode ? '기성청구 상세' : '기성청구',
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<IntegratedDetailTemplate
|
||||
config={progressBillingConfig}
|
||||
config={dynamicConfig}
|
||||
mode={mode}
|
||||
initialData={{}}
|
||||
itemId={billingId}
|
||||
|
||||
@@ -90,14 +90,14 @@ export default function ProgressBillingManagementListClient({
|
||||
// ===== 핸들러 =====
|
||||
const handleRowClick = useCallback(
|
||||
(item: ProgressBilling) => {
|
||||
router.push(`/ko/construction/billing/progress-billing-management/${item.id}`);
|
||||
router.push(`/ko/construction/billing/progress-billing-management/${item.id}?mode=view`);
|
||||
},
|
||||
[router]
|
||||
);
|
||||
|
||||
const handleEdit = useCallback(
|
||||
(item: ProgressBilling) => {
|
||||
router.push(`/ko/construction/billing/progress-billing-management/${item.id}/edit`);
|
||||
router.push(`/ko/construction/billing/progress-billing-management/${item.id}?mode=edit`);
|
||||
},
|
||||
[router]
|
||||
);
|
||||
|
||||
@@ -63,7 +63,7 @@ export function useProgressBillingDetailForm({
|
||||
}, [router]);
|
||||
|
||||
const handleEdit = useCallback(() => {
|
||||
router.push('/construction/billing/progress-billing-management/' + billingId + '/edit');
|
||||
router.push('/construction/billing/progress-billing-management/' + billingId + '?mode=edit');
|
||||
}, [router, billingId]);
|
||||
|
||||
const handleCancel = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user