diff --git a/src/components/production/WorkerScreen/MaterialInputModal.tsx b/src/components/production/WorkerScreen/MaterialInputModal.tsx index 076e3939..4ddbb2f1 100644 --- a/src/components/production/WorkerScreen/MaterialInputModal.tsx +++ b/src/components/production/WorkerScreen/MaterialInputModal.tsx @@ -506,9 +506,29 @@ export function MaterialInputModal({ 자재 투입{workOrderItemName ? ` - ${workOrderItemName}` : ''}
-

- 로트를 선택하면 필요수량만큼 자동 배분됩니다. -

+
+

+ 로트를 선택하면 필요수량만큼 자동 배분됩니다. +

+ {!isLoading && materialGroups.length > 0 && (() => { + const fulfilled = materialGroups.filter((g) => { + const target = getGroupTargetQty(g); + if (target <= 0 && g.alreadyInputted <= 0) return true; + const allocated = g.lots.reduce((sum, lot) => sum + (allocations.get(getLotKey(lot, g.groupKey)) || 0), 0); + return allocated >= target; + }).length; + const total = materialGroups.length; + return ( + + {fulfilled === total ? : null} + {fulfilled} / {total} 배정완료 + + ); + })()} +
{!isLoading && materials.length > 0 && (