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)} -
-