diff --git a/src/components/stocks/StockProductionDetail.tsx b/src/components/stocks/StockProductionDetail.tsx index a07dfc96..0e064d88 100644 --- a/src/components/stocks/StockProductionDetail.tsx +++ b/src/components/stocks/StockProductionDetail.tsx @@ -136,7 +136,7 @@ export function StockProductionDetail({ orderId }: StockProductionDetailProps) {
{/* 기본 정보 */} -
+
@@ -149,6 +149,26 @@ export function StockProductionDetail({ orderId }: StockProductionDetailProps) {
+
+ + {(() => { + const statusConfig: Record = { + draft: { label: '등록', className: 'bg-gray-100 text-gray-700' }, + confirmed: { label: '확정', className: 'bg-blue-100 text-blue-700' }, + in_progress: { label: '생산지시완료', className: 'bg-indigo-100 text-indigo-700' }, + in_production: { label: '생산중', className: 'bg-green-100 text-green-700' }, + produced: { label: '생산완료', className: 'bg-teal-100 text-teal-700' }, + completed: { label: '완료', className: 'bg-gray-500 text-white' }, + cancelled: { label: '취소', className: 'bg-red-100 text-red-700' }, + }; + const s = statusConfig[data.status] || { label: data.status || '-', className: 'bg-gray-100 text-gray-600' }; + return ( +
+ {s.label} +
+ ); + })()} +