diff --git a/frontend/components/pop/hardcoded/production/WorkOrderList.tsx b/frontend/components/pop/hardcoded/production/WorkOrderList.tsx index b354f923..870b847c 100644 --- a/frontend/components/pop/hardcoded/production/WorkOrderList.tsx +++ b/frontend/components/pop/hardcoded/production/WorkOrderList.tsx @@ -307,25 +307,37 @@ function CompressedProcessSteps({ const currentIdx = sorted.findIndex((p) => p.seq_no === currentSeqNo); if (currentIdx < 0) return null; - // For completed status: show all as checkmarks + // For completed status: show progress up to current card's seq position if (status === "completed") { + const currentSeqNum = parseInt(currentSeqNo, 10); + const allDone = currentIdx === sorted.length - 1; // 마지막 공정이면 전체 완료 return (
- {sorted.map((proc, idx) => ( - - {idx > 0 && } - - ✓ - - - ))} - 전체 완료 + {sorted.map((proc, idx) => { + const seqNum = parseInt(proc.seq_no, 10); + const isDone = seqNum <= currentSeqNum; // 현재 카드 seq 이하만 완료 + return ( + + {idx > 0 && } + + {isDone ? "\u2713" : idx + 1} + + + ); + })} + + {allDone ? "전체 완료" : `${currentIdx + 1}/${sorted.length} 완료`} +
); }