견문 목록 일괄결재 오류 수정.

master
강석 최 2023-05-02 14:28:43 +09:00
parent 57a6e547fa
commit 794c09f147
2 changed files with 20 additions and 20 deletions

View File

@ -162,16 +162,14 @@ $(document).on('click', '#tableApprvBtn', function (){
const apprvAuth = $(this).attr("data-apprvauth")
let affairRateFlag = true;
$.each($(".apprvTd"), function (idx, el) {
if (apprvAuth === "APC003" || apprvAuth === "APC004") {
const chkbox = $(el).find(".apprvChkbox:checked")
if(chkbox.length>0){
if (chkbox.val() === "DST003" || chkbox.val() === "DST004") {
const affairRating = {};
affairRating["affairKey"] = Number($(el).find(".affairKey").val());
affairRating["sectionApprv"] = chkbox.val();
ratingList.push(affairRating);
}
} else {
const chkbox = $(el).find(".apprvChkbox:checked")
const selectorValue = $(el).find(".ratingSelector").val()
if(chkbox.length>0){
const affairRating = {};
@ -189,6 +187,8 @@ $(document).on('click', '#tableApprvBtn', function (){
ratingList.push(affairRating);
}
}
}
})
if(affairRateFlag){
affairStateChange(ratingList);

View File

@ -134,7 +134,7 @@
</th:block>
</label>
<div class="col-11">
<div class="row" th:if="${rate.sectionApprv eq null}">
<div class="row" th:if="${rate.sectionApprv eq null and rate.headApprv eq null}">
<label class="col-sm-12 col-form-label col-form-label-sm text-center bg-white">결재정보가 없습니다.</label>
</div>
<div class="row border-top-0 border-secondary" th:if="${rate.sectionApprv ne null}">