feat(tbm): TBM 완료 후 작업보고서 페이지 이동 안내
- 완료 처리 성공 → confirm으로 보고서 작성 페이지 이동 제안 - 세션 날짜를 date 파라미터로 전달 (전날 TBM 지연 완료 대응) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -812,8 +812,13 @@
|
||||
});
|
||||
if (res && res.success) {
|
||||
closeCompleteSheet();
|
||||
window.showToast('TBM이 완료 처리되었습니다.', 'success');
|
||||
await loadData();
|
||||
var session = allSessions.find(function(s) { return s.session_id === completeSessionId; });
|
||||
var sDate = session && session.session_date ? session.session_date.split('T')[0] : '';
|
||||
if (confirm('TBM이 완료되었습니다.\n작업보고서를 작성하시겠습니까?')) {
|
||||
location.href = '/pages/work/report-create-mobile.html' + (sDate ? '?date=' + sDate : '');
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
window.showToast('완료 처리에 실패했습니다.', 'error');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user