feat(WEB): DevToolbar ?mode=new URL 패턴 지원 추가
- MODE_NEW_PAGES에 수주 페이지 패턴 추가 - /new 경로와 ?mode=new 쿼리 파라미터 둘 다 지원 - FLOW_STEPS 수주 경로를 ?mode=new로 변경
This commit is contained in:
@@ -62,7 +62,11 @@ const PAGE_PATTERNS: { pattern: RegExp; type: DevFillPageType; label: string }[]
|
||||
];
|
||||
|
||||
// ?mode=new 쿼리 파라미터를 사용하는 페이지 매핑
|
||||
// 기존 /new 경로에서 ?mode=new로 마이그레이션 중인 페이지들
|
||||
const MODE_NEW_PAGES: { pattern: RegExp; type: DevFillPageType; label: string }[] = [
|
||||
// 판매/생산 플로우
|
||||
{ pattern: /\/order-management-sales$/, type: 'order', label: '수주' },
|
||||
// 회계 플로우
|
||||
{ pattern: /\/accounting\/deposits$/, type: 'deposit', label: '입금' },
|
||||
{ pattern: /\/accounting\/withdrawals$/, type: 'withdrawal', label: '출금' },
|
||||
];
|
||||
@@ -71,7 +75,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: 'order', label: '수주', icon: ClipboardList, path: '/sales/order-management-sales/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: '' }, // 상세 페이지에서 처리
|
||||
{ type: 'shipment', label: '출하', icon: Truck, path: '/outbound/shipments/new' },
|
||||
|
||||
Reference in New Issue
Block a user