From c3d6c6e9bed32f09ab5e509f1666d31039585f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Wed, 18 Mar 2026 22:28:40 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20[stocks]=20=EC=9E=AC=EA=B3=A0?= =?UTF-8?q?=EC=83=9D=EC=82=B0=20=EC=83=81=EC=84=B8=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EC=83=81=ED=83=9C=20=ED=95=84=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 목록에서 이미 상태 확인 가능하므로 상세 화면에서 제거 - 기본 정보 4칼럼 → 3칼럼 (생산번호, 등록일, 수량) --- .../stocks/StockProductionDetail.tsx | 28 +------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/src/components/stocks/StockProductionDetail.tsx b/src/components/stocks/StockProductionDetail.tsx index 305f32d8..6e1d405d 100644 --- a/src/components/stocks/StockProductionDetail.tsx +++ b/src/components/stocks/StockProductionDetail.tsx @@ -22,7 +22,6 @@ import { import { toast } from 'sonner'; import { IntegratedDetailTemplate } from '@/components/templates/IntegratedDetailTemplate'; import { FormSection } from '@/components/organisms/FormSection'; -import { BadgeSm } from '@/components/atoms/BadgeSm'; import { getStockOrderById, getBendingCodeMap, @@ -50,25 +49,6 @@ const stockDetailConfig: DetailConfig = { }, }; -// ============================================================================ -// 상태 뱃지 -// ============================================================================ - -const STATUS_CONFIG: Record = { - draft: { label: '등록', className: 'bg-gray-100 text-gray-700 border-gray-200' }, - confirmed: { label: '확정', className: 'bg-blue-100 text-blue-700 border-blue-200' }, - in_progress: { label: '진행중', className: 'bg-green-100 text-green-700 border-green-200' }, - in_production: { label: '생산중', className: 'bg-green-100 text-green-700 border-green-200' }, - produced: { label: '생산완료', className: 'bg-blue-600 text-white border-blue-600' }, - completed: { label: '완료', className: 'bg-gray-500 text-white border-gray-500' }, - cancelled: { label: '취소', className: 'bg-red-100 text-red-700 border-red-200' }, -}; - -function getStatusBadge(status: string) { - const config = STATUS_CONFIG[status] || { label: status, className: 'bg-gray-100 text-gray-700 border-gray-200' }; - return {config.label}; -} - // ============================================================================ // Props // ============================================================================ @@ -154,17 +134,11 @@ export function StockProductionDetail({ orderId }: StockProductionDetailProps) {
{/* 기본 정보 */} -
+
-
- -
- {getStatusBadge(data.status)} -
-