From 613d0c1069f62a264ceea40f06a5d7ea33181929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Fri, 13 Mar 2026 10:14:30 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[work-order]=20=EA=B8=B0=ED=83=80=20?= =?UTF-8?q?=ED=83=AD=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TAB_OTHER 상수 및 관련 로직 삭제 - 보조공정/미배정 작업은 API에서 필터링 --- .../production/WorkOrders/WorkOrderList.tsx | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/components/production/WorkOrders/WorkOrderList.tsx b/src/components/production/WorkOrders/WorkOrderList.tsx index 39980432..68ed5030 100644 --- a/src/components/production/WorkOrders/WorkOrderList.tsx +++ b/src/components/production/WorkOrders/WorkOrderList.tsx @@ -47,7 +47,6 @@ const ITEMS_PER_PAGE = 20; // 특수 탭 상수 const TAB_ALL = 'all'; // 전체 -const TAB_OTHER = 'other'; // 기타 (공정 미지정) // 필터 설정: 공통 프리셋 사용 (상태 + 우선순위) const filterConfig = [WORK_STATUS_FILTER, COMMON_PRIORITY_FILTER]; @@ -103,12 +102,9 @@ export function WorkOrderList() { const bp = result.data.byProcess; const counts: Record = { [TAB_ALL]: result.data.total, - [TAB_OTHER]: bp['none'] || 0, }; for (const [processId, count] of Object.entries(bp)) { - if (processId !== 'none') { - counts[processId] = count; - } + counts[processId] = count; } setTabCounts(counts); } @@ -144,7 +140,6 @@ export function WorkOrderList() { label: `${p.processName} 공정`, count: tabCounts[String(p.id)], })), - { value: TAB_OTHER, label: '기타', count: tabCounts[TAB_OTHER] }, ], [processList, tabCounts] ); @@ -215,9 +210,7 @@ export function WorkOrderList() { // 'all' → 필터 없음 (전체), 'other' → 'none' (미지정), 그 외 → 공정 ID const processId = tabValue === TAB_ALL ? ('all' as const) - : tabValue === TAB_OTHER - ? ('none' as const) - : Number(tabValue); + : Number(tabValue); // 필터 값 추출 const statusFilter = params?.filters?.status as string | undefined; @@ -244,12 +237,9 @@ export function WorkOrderList() { const bp = statsResult.data.byProcess; const counts: Record = { [TAB_ALL]: statsResult.data.total, - [TAB_OTHER]: bp['none'] || 0, }; for (const [processId, count] of Object.entries(bp)) { - if (processId !== 'none') { - counts[processId] = count; - } + counts[processId] = count; } setTabCounts(counts); }