refactor(WEB): 품목관리 경로 통합 - /items 삭제 및 /production/screen-production으로 일원화
- /items 폴더 삭제 (중복 경로 제거) - /production/screen-production에 신버전 DynamicItemForm 기반 페이지 적용 - 구버전 ItemForm 연결 제거로 등록/수정 오류 해결 - 컴포넌트 내부 경로 참조 /items → /production/screen-production 변경 - ItemListClient, ItemForm, ItemDetailClient, ItemDetailEdit, DynamicItemForm Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
This commit is contained in:
@@ -152,12 +152,12 @@ export default function ItemListClient() {
|
||||
|
||||
const handleView = (itemCode: string, itemType: string, itemId: string) => {
|
||||
// itemType을 query param으로 전달 (Materials 조회를 위해)
|
||||
router.push(`/items/${encodeURIComponent(itemCode)}?type=${itemType}&id=${itemId}`);
|
||||
router.push(`/production/screen-production/${encodeURIComponent(itemCode)}?type=${itemType}&id=${itemId}`);
|
||||
};
|
||||
|
||||
const handleEdit = (itemCode: string, itemType: string, itemId: string) => {
|
||||
// itemType을 query param으로 전달 (Materials 조회를 위해)
|
||||
router.push(`/items/${encodeURIComponent(itemCode)}/edit?type=${itemType}&id=${itemId}`);
|
||||
router.push(`/production/screen-production/${encodeURIComponent(itemCode)}/edit?type=${itemType}&id=${itemId}`);
|
||||
};
|
||||
|
||||
// 삭제 확인 다이얼로그 열기
|
||||
@@ -312,7 +312,7 @@ export default function ItemListClient() {
|
||||
// 등록 버튼 (createButton 사용 - headerActions 대신)
|
||||
createButton: {
|
||||
label: '품목 등록',
|
||||
onClick: () => router.push('/items/create'),
|
||||
onClick: () => router.push('/production/screen-production/create'),
|
||||
icon: Plus,
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user