diff --git a/frontend/static/pages/mechanic/repair.html b/frontend/static/pages/mechanic/repair.html index 15a7041..bfb1bda 100644 --- a/frontend/static/pages/mechanic/repair.html +++ b/frontend/static/pages/mechanic/repair.html @@ -130,8 +130,8 @@
- ✅ 조치 완료 저장은 처리 완료로 확정됩니다.
- 💾 상태 저장은 왼쪽 상태로 임시 저장됩니다. + ✅ 조치 완료 저장은 항상 완료로 저장됩니다.
+ 💾 상태 저장은 왼쪽 선택 상태로 저장됩니다.
@@ -247,8 +247,14 @@ async function loadEdit() { if (repair.started_at) document.getElementById('startedAt').value = toLocalDtInput(repair.started_at); if (repair.completed_at) document.getElementById('completedAt').value = toLocalDtInput(repair.completed_at); const sel = document.getElementById('resultStatus'); - if (repair.result_status && sel.querySelector(`option[value="${repair.result_status}"]`)) + if (repair.result_status === 'done') { + const opt = document.createElement('option'); + opt.value = 'done'; opt.textContent = '✅ 완료'; + sel.insertBefore(opt, sel.firstChild); + sel.value = 'done'; + } else if (sel.querySelector(`option[value="${repair.result_status}"]`)) { sel.value = repair.result_status; + } // 기존 사진 표시 renderExistingPhotos(repair);