diff --git a/system1-factory/web/js/monthly-comparison.js b/system1-factory/web/js/monthly-comparison.js
index b023b87..5995de8 100644
--- a/system1-factory/web/js/monthly-comparison.js
+++ b/system1-factory/web/js/monthly-comparison.js
@@ -164,10 +164,23 @@ async function loadMyRecords() {
}
comparisonData = res.data;
+
+ // detail 모드: 작업자 이름 표시
+ if (currentMode === 'detail' && comparisonData.user) {
+ document.getElementById('pageTitle').textContent =
+ (comparisonData.user.worker_name || '') + ' 근무 비교';
+ }
+
renderSummaryCards(comparisonData.summary);
renderMismatchAlert(comparisonData.summary);
renderDailyList(comparisonData.daily_records || []);
renderConfirmationStatus(comparisonData.confirmation);
+
+ // detail 모드: 검토완료 버튼 표시
+ var adminCheckBtn = document.getElementById('adminCheckBtn');
+ if (adminCheckBtn && currentMode === 'detail') {
+ adminCheckBtn.classList.remove('hidden');
+ }
} catch (e) {
listEl.innerHTML = '
';
}
@@ -511,6 +524,24 @@ async function downloadExcel() {
}
}
+// ===== Admin Check (검토완료 태깅) =====
+async function markAdminChecked() {
+ if (!currentUserId || isProcessing) return;
+ isProcessing = true;
+ try {
+ var res = await window.apiCall('/monthly-comparison/admin-check', 'POST', {
+ user_id: currentUserId, year: currentYear, month: currentMonth, checked: true
+ });
+ if (res && res.success) {
+ showToast((comparisonData?.user?.worker_name || '') + ' 검토완료', 'success');
+ history.back();
+ } else {
+ showToast(res?.message || '처리 실패', 'error');
+ }
+ } catch (e) { showToast('네트워크 오류', 'error'); }
+ finally { isProcessing = false; }
+}
+
// ===== Review Send (확인요청 일괄 발송) =====
async function sendReviewAll() {
if (isProcessing) return;
diff --git a/system1-factory/web/pages/attendance/monthly-comparison.html b/system1-factory/web/pages/attendance/monthly-comparison.html
index 6370618..705226b 100644
--- a/system1-factory/web/pages/attendance/monthly-comparison.html
+++ b/system1-factory/web/pages/attendance/monthly-comparison.html
@@ -86,6 +86,13 @@
+
+
+
+
+
@@ -162,7 +169,7 @@
-
+