[BO] 임가현황 작업 중 (12) - 임가리스트, 상세, 임가수정, 임가등록, 조사원매핑 작업

This commit is contained in:
kangsunlee
2025-06-20 15:14:47 +09:00
parent 79a4f64bd2
commit 23dfffaa43
31 changed files with 892 additions and 159 deletions

View File

@@ -149,47 +149,47 @@
</select>
</div>
</div>
<div class="input-group">
<div class="d-flex">
<div class="component-select">
<div class="input-label">
<p class="label-txt">
당일 1차 방문
</p>
</div>
<select class="select-list" name="isFirstVisited" th:field="*{isFirstVisited}">
<option value="">전체</option>
<option value="true">방문</option>
<option value="false">미방문</option>
</select>
</div>
<div class="component-select">
<div class="input-label">
<p class="label-txt">
당월 2차 방문
</p>
</div>
<select class="select-list" name="isSecondVisited" th:field="*{isSecondVisited}">
<option value="">전체</option>
<option value="true">방문</option>
<option value="false">미방문</option>
</select>
</div>
<div class="component-select">
<div class="input-label">
<p class="label-txt">
답례품 방문
</p>
</div>
<select class="select-list" name="isGiftSent" th:field="*{isGiftSent}">
<option value="">전체</option>
<option value="true">전달</option>
<option value="false">미전달</option>
</select>
</div>
</div>
</div>
<!-- TODO : 2차 오픈 -->
<!-- <div class="input-group">-->
<!-- <div class="d-flex">-->
<!-- <div class="component-select">-->
<!-- <div class="input-label">-->
<!-- <p class="label-txt">-->
<!-- 당일 1차 방문-->
<!-- </p>-->
<!-- </div>-->
<!-- <select class="select-list" name="isFirstVisited" th:field="*{isFirstVisited}">-->
<!-- <option value="">전체</option>-->
<!-- <option value="true">방문</option>-->
<!-- <option value="false">미방문</option>-->
<!-- </select>-->
<!-- </div>-->
<!-- <div class="component-select">-->
<!-- <div class="input-label">-->
<!-- <p class="label-txt">-->
<!-- 당월 2차 방문-->
<!-- </p>-->
<!-- </div>-->
<!-- <select class="select-list" name="isSecondVisited" th:field="*{isSecondVisited}">-->
<!-- <option value="">전체</option>-->
<!-- <option value="true">방문</option>-->
<!-- <option value="false">미방문</option>-->
<!-- </select>-->
<!-- </div>-->
<!-- <div class="component-select">-->
<!-- <div class="input-label">-->
<!-- <p class="label-txt">-->
<!-- 답례품 방문-->
<!-- </p>-->
<!-- </div>-->
<!-- <select class="select-list" name="isGiftSent" th:field="*{isGiftSent}">-->
<!-- <option value="">전체</option>-->
<!-- <option value="true">전달</option>-->
<!-- <option value="false">미전달</option>-->
<!-- </select>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<div class="input-group">
<div class="input-label">
@@ -265,9 +265,10 @@
<th>업종(대분류)</th>
<th>업종(중분류)</th>
<th>당월 일계부 현황</th>
<th>당월 1차 임가방문</th>
<th>당월 2차 임가방문</th>
<th>답례품 전달</th>
<!-- TODO : 2차 오픈 -->
<!-- <th>당월 1차 임가방문</th>-->
<!-- <th>당월 2차 임가방문</th>-->
<!-- <th>답례품 전달</th>-->
<th class="hide-role-researcher">조사원</th>
<th class="hide-role-researcher">조사원 휴대전화</th>
</tr>
@@ -281,7 +282,7 @@
<!-- 페이지네이션 -->
<div class="row paging"></div>
<div class="component-btns bottom-btn-group">
<div class="component-btns bottom-btn-group" th:unless="${activeProfile != 'local'}">
<div class="btns-row align-right">
<button type="button" class="btn">
<span class="btn-txt">엑셀 다운로드 <i class="ico-download ico-small" aria-hidden="true"></i></span>
@@ -343,9 +344,6 @@
<td>${ifNullHyphen(ct.industryLargeName)}</td><!-- 업종 대분류 -->
<td>${ifNullHyphen(ct.industryMiddleName)}</td><!-- 업종 중분류1 -->
<td>${ct.progressPercent}%</td><!-- 임가 진행 상황 -->
<td>${ifNullHyphen(ct.firstVisitDate)}</td><!-- 1차방문날짜 -->
<td>${ifNullHyphen(ct.secondVisitDate)}</td><!-- 2차방문날짜 -->
<td>${ct.isGiftSent ? "전달" : "미전달"}</td> <!-- 답례품 -->
<td class="hide-role-researcher">${ifNullHyphen(ct.researcherName)}</td> <!-- 조사원이름 -->
<td class="hide-role-researcher">${ifNullHyphen(ct.researcherPhone)}</td> <!-- 조사원번호 -->
</tr>
@@ -353,6 +351,32 @@
);
});
// `
// <tr>
// <td>
// <div class="component-input">
// <label class="checkbox-inner">
// <input type="checkbox" id="chkBox_${ct.householdSeq}" name="chkBox" value="${ct.householdSeq}">
// </label>
// </div>
// </td>
// <td class="underline"><a href="/household/households/${ct.householdSeq}?recordMonth=${f.recordMonth.value}">${ct.householdNum}</a></td><!-- 임가번호 -->
// <td class="underline"><a href="/household/households/${ct.householdSeq}?recordMonth=${f.recordMonth.value}">${ct.householdName}</a></td><!-- 경영주 이름 -->
// <td>${ct.householdPhone}</td><!-- 경영주 번호 -->
// <td>${ct.regionMainName}</td><!-- 실사 -->
// <td>${ct.regionSubName}</td><!-- 지역 -->
// <td>${ct.regionDetailName}</td><!-- 세부지역 -->
// <td>${ifNullHyphen(ct.industryLargeName)}</td><!-- 업종 대분류 -->
// <td>${ifNullHyphen(ct.industryMiddleName)}</td><!-- 업종 중분류1 -->
// <td>${ct.progressPercent}%</td><!-- 임가 진행 상황 -->
// <td>${ifNullHyphen(ct.firstVisitDate)}</td><!-- 1차방문날짜 -->
// <td>${ifNullHyphen(ct.secondVisitDate)}</td><!-- 2차방문날짜 -->
// <td>${ct.isGiftSent ? "전달" : "미전달"}</td> <!-- 답례품 -->
// <td class="hide-role-researcher">${ifNullHyphen(ct.researcherName)}</td> <!-- 조사원이름 -->
// <td class="hide-role-researcher">${ifNullHyphen(ct.researcherPhone)}</td> <!-- 조사원번호 -->
// </tr>
// `
// 현재 로그인한 유저의 역할
const isResearcher = f.userRole.value === 'ROLE_RESEARCHER';
const colspanLength = isResearcher ? 13 : 15;
@@ -447,6 +471,10 @@
});
});
</script>
<script th:inline="javascript" th:if="${alertMessage != null}">
alert([[${alertMessage}]]);
</script>
</section>
</html>