fix: 신청서 접수 취급일자 선택 적용 반영

dev
Jonguk. Lim 5 months ago
parent 12174f1c9e
commit f81c474c9c

@ -12,7 +12,7 @@
<form id="frmSearch--${pageName}" name="frmSearch"> <form id="frmSearch--${pageName}" name="frmSearch">
<div class="container-search"> <div class="container-search">
<div class="row g-1"> <div class="row g-1">
<div class="col-10"> <div class="col-5">
<label class="form-label fw-bold form-search-title text-end" for="schSggCd--${pageName}">관할관청</label> <label class="form-label fw-bold form-search-title text-end" for="schSggCd--${pageName}">관할관청</label>
<select class="form-select" id="schSggCd--${pageName}" name="schSggCd"> <select class="form-select" id="schSggCd--${pageName}" name="schSggCd">
<option value="">전체</option> <option value="">전체</option>
@ -21,18 +21,19 @@
<option value="05">처인구</option> <option value="05">처인구</option>
</select> </select>
</div> </div>
<%--
<div class="col-5"> <div class="col-7">
<label class="form-label fw-bold form-search-title text-end"">취급일자</label> <label class="form-label fw-bold form-search-title text-end">취급일자</label>
<span class="form-search-linebox"> <span class="form-search-linebox" id="inputHdrDe">
<input type="text" class="form-control form-date" id="schDateFrom--${pageName}" name="schDateFrom" data-fmt-type="day" autocomplete="off" title="시작 날짜 선택" /> <input type="text" class="form-control form-date" id="schDateFrom--${pageName}" name="schDateFrom" data-fmt-type="day" autocomplete="off" title="시작 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button> <button type="button" class="bx bx-sm bx-calendar bg-white"></button>
~ ~
<input type="text" class="form-control form-date" id="schDateTo--${pageName}" name="schDateTo" data-fmt-type="day" autocomplete="off" title="종료 날짜 선택" /> <input type="text" class="form-control form-date" id="schDateTo--${pageName}" name="schDateTo" data-fmt-type="day" autocomplete="off" title="종료 날짜 선택" />
<button type="button" class="bx bx-sm bx-calendar bg-white"></button> <button type="button" class="bx bx-sm bx-calendar bg-white"></button>
</span> </span>
<input type="checkbox" id="chkHdrDe--${pageName}" name="chkHdrDe" title="취급일자 적용" style="align-items: baseline"/>&nbsp;<strong>취급일자 적용</strong>
</div> </div>
--%>
<!-- 업체명 --> <!-- 업체명 -->
<div class="col-5"> <div class="col-5">
<label class="form-label fw-bold form-search-title text-end" for="schBsshNm--${pageName}">업체명</label> <label class="form-label fw-bold form-search-title text-end" for="schBsshNm--${pageName}">업체명</label>
@ -200,8 +201,6 @@
$P.control = new DatasetControl({ $P.control = new DatasetControl({
urls : { urls : {
load : wctx.url("/adds/nims/dsuseMgtReceipt-list.do") load : wctx.url("/adds/nims/dsuseMgtReceipt-list.do")
// FIXME: POST로 변경
//load : '<c:url value="${apiHost}/api/biz/nims/v1/getDsuseMgts" />'
} }
, prefix: "dsuseMgtReceipt" , prefix: "dsuseMgtReceipt"
, prefixName: "신청서접수" , prefixName: "신청서접수"
@ -210,8 +209,7 @@
, appendData: true , appendData: true
, infoSize: "xl" , infoSize: "xl"
, formats: { , formats: {
RPT_DE: dateFormat HDR_DE: dateFormat
, HDR_DE: dateFormat
, DSUSE_DE: dateFormat , DSUSE_DE: dateFormat
} }
}); });
@ -224,8 +222,6 @@
$P.detailControl = new DatasetControl({ $P.detailControl = new DatasetControl({
urls : { urls : {
load : wctx.url("/adds/nims/dsuseMgtDetail-list.do") load : wctx.url("/adds/nims/dsuseMgtDetail-list.do")
// FIXME: POST로 변경
//load : '<c:url value="${apiHost}/api/biz/nims/v1/getDsuseMgts" />'
} }
// , query.schDscdmngId : $P.control.getValue("DSCDMNG_ID") // , query.schDscdmngId : $P.control.getValue("DSCDMNG_ID")
// , data : {"schDscdmngId" : $P.control.getValue("DSCDMNG_ID")} // , data : {"schDscdmngId" : $P.control.getValue("DSCDMNG_ID")}
@ -423,8 +419,8 @@
$("#schRgtrNm--${pageName}").val(userNm); // 사용자 명 $("#schRgtrNm--${pageName}").val(userNm); // 사용자 명
} }
// 전자우편 안내문 등록 버튼 이벤트 // 폐기신청서 접수 등록 버튼 이벤트
$P.fnCreateEpostGdcc = (title) => { $P.fnCreateDsuseMGT = (title) => {
$P.control.getInfo(); $P.control.getInfo();
} }
@ -454,6 +450,11 @@
$P.fnSearchList = () => { $P.fnSearchList = () => {
// 검색조건 // 검색조건
$P.control.query = $P.formFields.get(); // 검색 조건 $P.control.query = $P.formFields.get(); // 검색 조건
if(!$('#chkHdrDe--${pageName}').is(":checked")){
$P.control.query.schDateFrom = '';
$P.control.query.schDateTo = '';
}
$P.control.query.fetchSize = $P.control.defaultFetchSize; // 한번에 조회되는 자료 건수 $P.control.query.fetchSize = $P.control.defaultFetchSize; // 한번에 조회되는 자료 건수
$P.control.query.delYn = "N"; // 삭제 여부 $P.control.query.delYn = "N"; // 삭제 여부
@ -495,9 +496,9 @@
} }
}); });
// 안내문 등록 버튼 이벤트 // 폐기신청서 접수
$("#btnCreateDsuseMGT--${pageName}").on("click", function() { $("#btnCreateDsuseMGT--${pageName}").on("click", function() {
$P.fnCreateEpostGdcc($(this).attr("title")); $P.fnCreateDsuseMGT($(this).attr("title"));
}); });
// form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용 // form-date 항목에서 키보드로 입력시 날짜 포맷팅 적용

Loading…
Cancel
Save