Merge branch 'dev' into deploy-dev-front
This commit is contained in:
@@ -31,18 +31,18 @@
|
||||
<span class="btn-txt">추가 등록</span>
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-m btn-link btn-full" id="callPastInfoBtn">
|
||||
<button type="button" class="btn btn-m btn-link btn-full" id="callPastInfoBtn" onclick="formControl.checkUsePastData()">
|
||||
<span class="btn-txt">이전 정보 불러오기</span>
|
||||
</button>
|
||||
|
||||
|
||||
<div class="component-input align-center" id="forestProductStatusDiv">
|
||||
<label class="checkbox-inner">
|
||||
<input type="checkbox" id="forestProductStatus" name="forestProductStatus"
|
||||
th:value="${MonthStatus.NOTHING}" onchange="formControl.handleNoDataToggle()">
|
||||
<span class="checkbox-item"><span class="checkbox-txt">이번달 등록내용 없음</span></span>
|
||||
</label>
|
||||
</div>
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
<!-- <div class="component-input align-center" id="forestProductStatusDiv">-->
|
||||
<!-- <label class="checkbox-inner">-->
|
||||
<!-- <input type="checkbox" id="forestProductStatus" name="forestProductStatus"-->
|
||||
<!-- th:value="${MonthStatus.NOTHING}" onchange="formControl.handleNoDataToggle()">-->
|
||||
<!-- <span class="checkbox-item"><span class="checkbox-txt">이번달 등록내용 없음</span></span>-->
|
||||
<!-- </label>-->
|
||||
<!-- </div>-->
|
||||
|
||||
</section>
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
|
||||
|
||||
|
||||
</div>"/api/front/info/bank/create"
|
||||
</div>
|
||||
|
||||
<section layout:fragment="script">
|
||||
<script th:inline="javascript">
|
||||
@@ -122,7 +122,7 @@
|
||||
editable: /*[[${editable}]]*/,
|
||||
},
|
||||
elementRefs: {
|
||||
noDataCheckbox: document.getElementById("forestProductStatus"),
|
||||
// noDataCheckbox: document.getElementById("forestProductStatus"),
|
||||
select:{
|
||||
cropCodeSelect : null,
|
||||
transferCategoryCodeSelect : null,
|
||||
@@ -190,7 +190,8 @@
|
||||
const callPastInfoBtn = document.getElementById("callPastInfoBtn");
|
||||
|
||||
//데이터 없음 버튼
|
||||
const forestProductStatus = document.getElementById("forestProductStatus");
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// const forestProductStatus = document.getElementById("forestProductStatus");
|
||||
|
||||
//등록 완료 버튼
|
||||
const next = document.getElementById('complateBtn');
|
||||
@@ -206,15 +207,17 @@
|
||||
if (ENV.data.pastStatus && ENV.data.pastStatus == "REGISTERED" && ENV.data.pastBankList.length > 0) {
|
||||
this.checkUsePastData();
|
||||
}
|
||||
} else if (ENV.data.currentStatus == "NOTHING") {
|
||||
|
||||
|
||||
addItemBtn.disabled = true;
|
||||
icon.classList.toggle("ico-add", false);
|
||||
icon.classList.toggle("ico-add-disabled", true);
|
||||
callPastInfoBtn.disabled = true;
|
||||
forestProductStatus.checked = true;
|
||||
next.disabled = true;
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// }
|
||||
// else if (ENV.data.currentStatus == "NOTHING") {
|
||||
//
|
||||
//
|
||||
// addItemBtn.disabled = true;
|
||||
// icon.classList.toggle("ico-add", false);
|
||||
// icon.classList.toggle("ico-add-disabled", true);
|
||||
// callPastInfoBtn.disabled = true;
|
||||
// forestProductStatus.checked = true;
|
||||
// next.disabled = true;
|
||||
|
||||
} else if (ENV.data.currentStatus == "REGISTERED") {
|
||||
if (ENV.data.bankList.length > 0) {
|
||||
@@ -240,7 +243,7 @@
|
||||
icon.classList.toggle("ico-add", false);
|
||||
icon.classList.toggle("ico-add-disabled", true);
|
||||
callPastInfoBtn.disabled = true;
|
||||
forestProductStatus.disabled = true;
|
||||
// forestProductStatus.disabled = true;
|
||||
next.disabled = true;
|
||||
next.style.display = "none";
|
||||
clearAllItems.style.display = "none";
|
||||
@@ -321,12 +324,12 @@
|
||||
},
|
||||
updateLayout() {
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// const btn = document.getElementById("addItemBtn");
|
||||
// const isChecked = ENV.elementRefs.noDataCheckbox.checked;
|
||||
// const icon = btn.querySelector("i");
|
||||
// const status = document.getElementById('forestProductStatusDiv');
|
||||
|
||||
const isChecked = ENV.elementRefs.noDataCheckbox.checked;
|
||||
const btn = document.getElementById("addItemBtn");
|
||||
const icon = btn.querySelector("i");
|
||||
|
||||
const status = document.getElementById('forestProductStatusDiv');
|
||||
const callPastInfoBtn = document.getElementById("callPastInfoBtn");
|
||||
|
||||
const next = document.getElementById('complateBtn');
|
||||
@@ -334,20 +337,20 @@
|
||||
const count = document.getElementById('listCount');
|
||||
const totalItems = document.getElementById('totalItems');
|
||||
const total = ENV.data.bankList.length;
|
||||
const isData = total > 0;
|
||||
|
||||
|
||||
header.style.display = total > 0 ? '' : 'none';
|
||||
status.style.display = total > 0 ? 'none' : '';
|
||||
callPastInfoBtn.style.display = total > 0 ? 'none' : '';
|
||||
header.style.display = isData ? '' : 'none';
|
||||
// status.style.display = total > 0 ? 'none' : '';
|
||||
callPastInfoBtn.style.display = isData? 'none' : '';
|
||||
count.textContent = total;
|
||||
totalItems.textContent = total;
|
||||
|
||||
|
||||
btn.disabled = isChecked;
|
||||
icon.classList.toggle("ico-add", !isChecked);
|
||||
icon.classList.toggle("ico-add-disabled", isChecked);
|
||||
if (isChecked) {
|
||||
next.disabled = !isChecked;
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// btn.disabled = isData;
|
||||
// icon.classList.toggle("ico-add", !isData);
|
||||
// icon.classList.toggle("ico-add-disabled", isData);
|
||||
if (isData) {
|
||||
next.disabled = !isData;
|
||||
} else {
|
||||
next.disabled = total <= 0;
|
||||
}
|
||||
@@ -486,7 +489,7 @@
|
||||
ajaxUtil._ajaxAsync(
|
||||
ENV.httpUrl.save,
|
||||
{
|
||||
status: ENV.elementRefs.noDataCheckbox.checked,
|
||||
// status: ENV.elementRefs.noDataCheckbox.checked,
|
||||
id: ENV.data.id,
|
||||
transferType:"code.bank.input",
|
||||
bankList: ENV.data.bankList
|
||||
|
||||
@@ -31,18 +31,18 @@
|
||||
<span class="btn-txt">추가 등록</span>
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-m btn-link btn-full" id="callPastInfoBtn">
|
||||
<button type="button" class="btn btn-m btn-link btn-full" id="callPastInfoBtn" onclick="formControl.checkUsePastData()">
|
||||
<span class="btn-txt">이전 정보 불러오기</span>
|
||||
</button>
|
||||
|
||||
|
||||
<div class="component-input align-center" id="forestProductStatusDiv">
|
||||
<label class="checkbox-inner">
|
||||
<input type="checkbox" id="forestProductStatus" name="forestProductStatus"
|
||||
th:value="${MonthStatus.NOTHING}" onchange="formControl.handleNoDataToggle()">
|
||||
<span class="checkbox-item"><span class="checkbox-txt">이번달 등록내용 없음</span></span>
|
||||
</label>
|
||||
</div>
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
<!-- <div class="component-input align-center" id="forestProductStatusDiv">-->
|
||||
<!-- <label class="checkbox-inner">-->
|
||||
<!-- <input type="checkbox" id="forestProductStatus" name="forestProductStatus"-->
|
||||
<!-- th:value="${MonthStatus.NOTHING}" onchange="formControl.handleNoDataToggle()">-->
|
||||
<!-- <span class="checkbox-item"><span class="checkbox-txt">이번달 등록내용 없음</span></span>-->
|
||||
<!-- </label>-->
|
||||
<!-- </div>-->
|
||||
|
||||
</section>
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
editable: /*[[${editable}]]*/,
|
||||
},
|
||||
elementRefs: {
|
||||
noDataCheckbox: document.getElementById("forestProductStatus"),
|
||||
// noDataCheckbox: document.getElementById("forestProductStatus"),
|
||||
select:{
|
||||
transferCategoryCodeSelect : null,
|
||||
unitCodeSelect : null,
|
||||
@@ -189,7 +189,8 @@
|
||||
const callPastInfoBtn = document.getElementById("callPastInfoBtn");
|
||||
|
||||
//데이터 없음 버튼
|
||||
const forestProductStatus = document.getElementById("forestProductStatus");
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// const forestProductStatus = document.getElementById("forestProductStatus");
|
||||
|
||||
//등록 완료 버튼
|
||||
const next = document.getElementById('complateBtn');
|
||||
@@ -205,15 +206,16 @@
|
||||
if (ENV.data.pastStatus && ENV.data.pastStatus == "REGISTERED" && ENV.data.pastBankList.length > 0) {
|
||||
this.checkUsePastData();
|
||||
}
|
||||
} else if (ENV.data.currentStatus == "NOTHING") {
|
||||
|
||||
|
||||
addItemBtn.disabled = true;
|
||||
icon.classList.toggle("ico-add", false);
|
||||
icon.classList.toggle("ico-add-disabled", true);
|
||||
callPastInfoBtn.disabled = true;
|
||||
forestProductStatus.checked = true;
|
||||
next.disabled = true;
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// } else if (ENV.data.currentStatus == "NOTHING") {
|
||||
//
|
||||
//
|
||||
// addItemBtn.disabled = true;
|
||||
// icon.classList.toggle("ico-add", false);
|
||||
// icon.classList.toggle("ico-add-disabled", true);
|
||||
// callPastInfoBtn.disabled = true;
|
||||
// forestProductStatus.checked = true;
|
||||
// next.disabled = true;
|
||||
|
||||
} else if (ENV.data.currentStatus == "REGISTERED") {
|
||||
if (ENV.data.bankList.length > 0) {
|
||||
@@ -239,7 +241,7 @@
|
||||
icon.classList.toggle("ico-add", false);
|
||||
icon.classList.toggle("ico-add-disabled", true);
|
||||
callPastInfoBtn.disabled = true;
|
||||
forestProductStatus.disabled = true;
|
||||
// forestProductStatus.disabled = true;
|
||||
next.disabled = true;
|
||||
next.style.display = "none";
|
||||
clearAllItems.style.display = "none";
|
||||
@@ -313,11 +315,11 @@
|
||||
updateLayout() {
|
||||
|
||||
|
||||
const isChecked = ENV.elementRefs.noDataCheckbox.checked;
|
||||
const btn = document.getElementById("addItemBtn");
|
||||
const icon = btn.querySelector("i");
|
||||
|
||||
const status = document.getElementById('forestProductStatusDiv');
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// const isChecked = ENV.elementRefs.noDataCheckbox.checked;
|
||||
// const btn = document.getElementById("addItemBtn");
|
||||
// const icon = btn.querySelector("i");
|
||||
// const status = document.getElementById('forestProductStatusDiv');
|
||||
const callPastInfoBtn = document.getElementById("callPastInfoBtn");
|
||||
|
||||
const next = document.getElementById('complateBtn');
|
||||
@@ -325,20 +327,21 @@
|
||||
const count = document.getElementById('listCount');
|
||||
const totalItems = document.getElementById('totalItems');
|
||||
const total = ENV.data.bankList.length;
|
||||
const isData = total > 0;
|
||||
|
||||
|
||||
header.style.display = total > 0 ? '' : 'none';
|
||||
status.style.display = total > 0 ? 'none' : '';
|
||||
callPastInfoBtn.style.display = total > 0 ? 'none' : '';
|
||||
header.style.display = isData ? '' : 'none';
|
||||
// status.style.display = total > 0 ? 'none' : '';
|
||||
callPastInfoBtn.style.display = isData ? 'none' : '';
|
||||
count.textContent = total;
|
||||
totalItems.textContent = total;
|
||||
|
||||
|
||||
btn.disabled = isChecked;
|
||||
icon.classList.toggle("ico-add", !isChecked);
|
||||
icon.classList.toggle("ico-add-disabled", isChecked);
|
||||
if (isChecked) {
|
||||
next.disabled = !isChecked;
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// btn.disabled = isData;
|
||||
// icon.classList.toggle("ico-add", !isData);
|
||||
// icon.classList.toggle("ico-add-disabled", isData);
|
||||
if (isData) {
|
||||
next.disabled = !isData;
|
||||
} else {
|
||||
next.disabled = total <= 0;
|
||||
}
|
||||
@@ -480,7 +483,7 @@
|
||||
ajaxUtil._ajaxAsync(
|
||||
ENV.httpUrl.save,
|
||||
{
|
||||
status: ENV.elementRefs.noDataCheckbox.checked,
|
||||
// status: ENV.elementRefs.noDataCheckbox.checked,
|
||||
id: ENV.data.id,
|
||||
transferType:"code.bank.output",
|
||||
bankList: ENV.data.bankList
|
||||
|
||||
Reference in New Issue
Block a user