[BO] 임가 현황 - 임가 등록 작업 중 (5)

This commit is contained in:
kangsunlee
2025-06-15 22:08:17 +09:00
parent 9723b58aa9
commit cfd7d94744
43 changed files with 1341 additions and 216 deletions

View File

@@ -27,7 +27,7 @@
<tr>
<th>가구 연락처</th>
<td>
<span th:text="${householdInfo.householdTel}">031-0000-0000</span>
<span th:text="${householdInfo.householdTel != null ? householdInfo.householdTel : '-'}">031-0000-0000</span>
</td>
<th>휴대폰 번호</th>
<td>
@@ -57,11 +57,11 @@
<tr>
<th>업종 대분류</th>
<td>
<span th:text="${householdInfo.industryLargeName}">40. 수실류재배업</span>
<span th:text="${householdInfo.industryLargeName != null ? householdInfo.industryLargeName : '-'}">40. 수실류재배업</span>
</td>
<th>업종 중분류1</th>
<td>
<span th:text="${householdInfo.industryMiddleName}">42. 대추재배업</span>
<span th:text="${householdInfo.industryMiddleName != null ? householdInfo.industryMiddleName : '-'}">42. 대추재배업</span>
</td>
<th>업종 중분류2</th>
<td>
@@ -91,7 +91,7 @@
<tr>
<th>비고</th>
<td class="radio-group">
<span th:text="${householdInfo.memo != null ? householdInfo.memo : '-'}">-</span>
<span th:text="${householdInfo.memo != null && householdInfo.memo != '' ? householdInfo.memo : '-'}">-</span>
</td>
</tr>
</tbody>
@@ -375,14 +375,13 @@
const getDailyRecords = () => {
const f = document.reqForm;
$.ajax({
method: 'GET',
url: '/api/household/dailyRecordsStatus',
data: {
ajaxUtil._ajaxMethod(
'/api/household/dailyRecordsStatus',
{
householdSeq: f.householdSeq.value,
recordMonth: f.recordMonth.value
},
success(response) {
function(response) { // 성공
console.log("일계부 현황 리스트 조회 : ", response);
const listArea = $('.tab-content .daily-record-list');
const detailArea = $('.tab-content .daily-record-detail');
@@ -420,8 +419,13 @@
});
tbody.append(tmpl);
}
});
},
function (code, rstData) { // 실패
console.log("error : ", code);
},
'get',
'json'
);
}
// 임산물 등록 현황 상세
@@ -438,22 +442,26 @@
listArea.hide();
detailArea.show();
$.ajax({
method: 'GET',
url: '/api/household/dailyRecordStatus',
data: {
ajaxUtil._ajaxMethod(
'/api/household/dailyRecordStatus',
{
householdSeq: f.householdSeq.value,
recordSeq: id,
recordMonth: f.recordMonth.value
},
success(response) {
function(response) { // 성공
console.log("일계부 등록 상세 데이터~ : ", response);
gridIncomeTable(response.incomes);
gridExpenseTable(response.expenses);
gridPowerTable(response.powers);
gridForestryTable(response.forestries);
}
});
},
function (code, rstData) { // 실패
console.log("error : ", code);
},
'get',
'json'
);
}
// 수입 테이블 그리기