diff --git a/src/components/production/WorkerScreen/index.tsx b/src/components/production/WorkerScreen/index.tsx index 5c772479..705527fd 100644 --- a/src/components/production/WorkerScreen/index.tsx +++ b/src/components/production/WorkerScreen/index.tsx @@ -1044,9 +1044,12 @@ export default function WorkerScreen() { })); toast.success(result.data.is_completed ? `${step.name} 완료` : `${step.name} 완료 취소`); - // 모든 단계 완료 시 작업지시 자동 완료 → 목록 새로고침 + // 모든 단계 완료 시 작업지시 자동 완료 → 생산일자 저장 + 목록 새로고침 if (result.data.work_order_status_changed) { toast.success('모든 공정 단계 완료 — 작업지시가 자동 완료되었습니다.'); + const today = new Date().toISOString().slice(0, 10); + await updateWorkOrderInfo(orderId, { scheduled_date: today }); + setProductionDate(today); try { const refreshResult = await getMyWorkOrders(); if (refreshResult.success) setWorkOrders(refreshResult.data);