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:
@@ -177,8 +177,8 @@ export function OrderSalesDetailEdit({ orderId }: OrderSalesDetailEditProps) {
|
||||
}, [orderId, router]);
|
||||
|
||||
const handleCancel = () => {
|
||||
// V2 패턴: ?mode=view로 이동 (기본값이므로 쿼리 없이 이동)
|
||||
router.push(`/sales/order-management-sales/${orderId}`);
|
||||
// V2 패턴: ?mode=view로 이동
|
||||
router.push(`/sales/order-management-sales/${orderId}?mode=view`);
|
||||
};
|
||||
|
||||
// IntegratedDetailTemplate용 onSubmit 핸들러
|
||||
@@ -224,7 +224,7 @@ export function OrderSalesDetailEdit({ orderId }: OrderSalesDetailEditProps) {
|
||||
if (result.success) {
|
||||
toast.success("수주가 수정되었습니다.");
|
||||
// V2 패턴: 저장 후 view 모드로 이동
|
||||
router.push(`/sales/order-management-sales/${orderId}`);
|
||||
router.push(`/sales/order-management-sales/${orderId}?mode=view`);
|
||||
return { success: true };
|
||||
} else {
|
||||
return { success: false, error: result.error || "수주 수정에 실패했습니다." };
|
||||
|
||||
@@ -7,7 +7,7 @@ import type { DetailConfig } from '@/components/templates/IntegratedDetailTempla
|
||||
* 수주 등록 페이지 Config
|
||||
*/
|
||||
export const orderCreateConfig: DetailConfig = {
|
||||
title: '수주 등록',
|
||||
title: '수주',
|
||||
description: '견적을 수주로 전환하거나 새 수주를 등록합니다',
|
||||
icon: FileText,
|
||||
basePath: '/sales/order-management',
|
||||
@@ -24,7 +24,7 @@ export const orderCreateConfig: DetailConfig = {
|
||||
* 수주 수정 페이지 Config
|
||||
*/
|
||||
export const orderEditConfig: DetailConfig = {
|
||||
title: '수주 수정',
|
||||
title: '수주',
|
||||
description: '수주 정보를 수정합니다',
|
||||
icon: FileText,
|
||||
basePath: '/sales/order-management',
|
||||
|
||||
Reference in New Issue
Block a user