[BO] 월초이월금

This commit is contained in:
김현주
2025-07-10 17:51:14 +09:00
parent 4ba5324c48
commit 28118e1e42
6 changed files with 44 additions and 2 deletions

View File

@@ -72,6 +72,13 @@
</div>
</section>
<!-- 월초이월금 -->
<section class="table-group _monthlyCarryOver" style="display: none;">
<div class="table-tit-group">
<h3>월초이월금 <strong id="carryOver">(0원)</strong></h3>
</div>
</section>
<!-- 수입 -->
<section class="table-group">
<div class="table-tit-group">
@@ -435,7 +442,7 @@
ajaxUtil._ajaxMethod(
'/api/household/dailyRecordStatus',
{ recordSeq: id },
{ recordSeq: id, recordMonth: f.recordMonth.value },
function(response) { // 성공
console.log("일계부 등록 상세 데이터 : ", response);
@@ -462,6 +469,18 @@
gridPowerTable(response.status.powerStatus, response.powers);
gridForestryTable(response.status.forestryStatus, response.forestries);
gridFarmingTable(response.status.farmingStatus, response.farmings);
if (groupNo === 1) {
console.log(groupNo, response.monthlyCarryOver)
if (response.monthlyCarryOver != null) {
$('#carryOver').text(Number(response.monthlyCarryOver).toLocaleString() + '원');
} else {
$('#carryOver').text('계산중입니다.');
}
$('._monthlyCarryOver').show();
} else {
$('._monthlyCarryOver').hide();
}
},
function (code, rstData) { // 실패
console.log("error : ", code);