이전 불러오기 버튼 수정

This commit is contained in:
주수현
2025-07-14 16:33:42 +09:00
parent 5d089b91cc
commit 64bd2f0052

View File

@@ -204,10 +204,11 @@
const clearAllItems = document.getElementById('clearAllItems'); const clearAllItems = document.getElementById('clearAllItems');
if (ENV.data.editable) { if (ENV.data.editable) {
if(ENV.data.preEditable && ENV.data.pastBankList.length === 0 && ENV.data.currentMonth >= "202508"){ if( ENV.data.pastBankList.length === 0) {
callPastInfoBtn.disabled = true; callPastInfoBtn.disabled = true;
const handlePageShow = function(event) { if (ENV.data.preEditable && ENV.data.pastBankList.length === 0 && ENV.data.currentMonth >= "202508") {
const handlePageShow = function (event) {
if ('sessionStorage' in window && window['sessionStorage'] !== null) { if ('sessionStorage' in window && window['sessionStorage'] !== null) {
// history.back으로 돌아온 경우 (navigation.type == 2) // history.back으로 돌아온 경우 (navigation.type == 2)
if (event.persisted || (window.performance && window.performance.navigation.type === 2)) { if (event.persisted || (window.performance && window.performance.navigation.type === 2)) {
@@ -220,12 +221,11 @@
kri.isReturn = true; kri.isReturn = true;
const hasShownAlert = sessionStorage.getItem('pastInputAlertShown'); const hasShownAlert = sessionStorage.getItem('pastInputAlertShown');
if (!hasShownAlert && ENV.data.pastBankList.length === 0) { if (!hasShownAlert && ENV.data.pastBankList.length === 0) {
callPastInfoBtn.disabled = true;
etUI.dialog.alert({ etUI.dialog.alert({
title: '지난달 정보 등록하기', title: '지난달 정보 등록하기',
message: '지난달 정보를 아직 입력하지 않으셨네요.\n정확한 조사를 위해 지난달 정보를 입력해주세요.\n\n확인 버튼을 누르시면 지난달 은행자동이체 내역등록으로 이동합니다.', message: '지난달 정보를 아직 입력하지 않으셨네요.\n정확한 조사를 위해 지난달 정보를 입력해주세요.\n\n확인 버튼을 누르시면 지난달 은행자동이체 내역등록으로 이동합니다.',
type: 'alert', type: 'alert',
callback: function() { callback: function () {
sessionStorage.setItem('pastInputAlertShown', 'true'); sessionStorage.setItem('pastInputAlertShown', 'true');
location.href = ENV.httpUrl.preMonth + "/" + ENV.data.pastBankId; location.href = ENV.httpUrl.preMonth + "/" + ENV.data.pastBankId;
}, },
@@ -236,9 +236,10 @@
}; };
// 초기 로드 시 실행 // 초기 로드 시 실행
handlePageShow({ persisted: false, performance: window.performance }); handlePageShow({persisted: false, performance: window.performance});
} }
}
if (ENV.data.currentStatus == "NONE") { if (ENV.data.currentStatus == "NONE") {
if (ENV.data.pastStatus && ENV.data.pastStatus == "REGISTERED" && ENV.data.pastBankList.length > 0) { if (ENV.data.pastStatus && ENV.data.pastStatus == "REGISTERED" && ENV.data.pastBankList.length > 0) {
this.checkUsePastData(); this.checkUsePastData();