refactor(WEB): 견적관리 목록 페이지 V2 URL 패턴 적용
- 목록 페이지에서 V1 등록 로직 제거 - ?mode=new → /new 리다이렉트 처리 (V1 호환) - QuoteManagementClient 링크 V2 패턴으로 변경 - 견적 등록: ?mode=new → /new - 상세 보기: ?mode=view 제거 (기본 view) - DevToolbar test URL → V2 URL로 업데이트
This commit is contained in:
@@ -42,11 +42,9 @@ import { useDevFillContext, type DevFillPageType } from './DevFillContext';
|
||||
|
||||
// 페이지 경로와 타입 매핑 (pathname만으로 매칭되는 패턴)
|
||||
const PAGE_PATTERNS: { pattern: RegExp; type: DevFillPageType; label: string }[] = [
|
||||
// 판매/생산 플로우
|
||||
{ pattern: /\/quote-management\/test-new/, type: 'quoteV2', label: '견적V2' },
|
||||
{ pattern: /\/quote-management\/test\/\d+/, type: 'quoteV2', label: '견적V2' },
|
||||
{ pattern: /\/quote-management\/new/, type: 'quote', label: '견적' },
|
||||
{ pattern: /\/quote-management\/\d+\/edit/, type: 'quote', label: '견적' },
|
||||
// 판매/생산 플로우 (V2 URL 패턴 적용)
|
||||
{ pattern: /\/quote-management\/new$/, type: 'quoteV2', label: '견적V2' },
|
||||
{ pattern: /\/quote-management\/\d+$/, type: 'quoteV2', label: '견적V2' },
|
||||
{ pattern: /\/order-management-sales\/new/, type: 'order', label: '수주' },
|
||||
{ pattern: /\/order-management-sales\/\d+\/edit/, type: 'order', label: '수주' },
|
||||
{ pattern: /\/work-orders\/create/, type: 'workOrder', label: '작업지시' },
|
||||
@@ -73,8 +71,7 @@ const MODE_NEW_PAGES: { pattern: RegExp; type: DevFillPageType; label: string }[
|
||||
|
||||
// 플로우 단계 정의
|
||||
const FLOW_STEPS: { type: DevFillPageType; label: string; icon: typeof FileText; path: string }[] = [
|
||||
{ type: 'quoteV2', label: '견적V2', icon: FileText, path: '/sales/quote-management/test-new' },
|
||||
{ type: 'quote', label: '견적', icon: FileText, path: '/sales/quote-management/new' },
|
||||
{ type: 'quoteV2', label: '견적', icon: FileText, path: '/sales/quote-management/new' },
|
||||
{ type: 'order', label: '수주', icon: ClipboardList, path: '/sales/order-management-sales?mode=new' },
|
||||
{ type: 'workOrder', label: '작업지시', icon: Wrench, path: '/production/work-orders/create' },
|
||||
{ type: 'workOrderComplete', label: '완료', icon: CheckCircle2, path: '' }, // 상세 페이지에서 처리
|
||||
|
||||
Reference in New Issue
Block a user