견문 목록 일괄결재 오류 수정.
parent
57a6e547fa
commit
794c09f147
|
|
@ -162,33 +162,33 @@ $(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){
|
||||
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 = {};
|
||||
affairRating["affairKey"] = Number($(el).find(".affairKey").val());
|
||||
affairRating["headApprv"] = chkbox.val();
|
||||
if(selectorValue !== ""){
|
||||
affairRating["affairRate"] = selectorValue;
|
||||
affairRating["organUp"] = $(el).find(".organUpChkBox").prop("checked")?"T":"F";
|
||||
}else{
|
||||
if(chkbox.val()==="DST006"){
|
||||
//부장승인 & 평가 미입력.
|
||||
affairRateFlag = false;
|
||||
} else {
|
||||
const selectorValue = $(el).find(".ratingSelector").val()
|
||||
if(chkbox.length>0){
|
||||
const affairRating = {};
|
||||
affairRating["affairKey"] = Number($(el).find(".affairKey").val());
|
||||
affairRating["headApprv"] = chkbox.val();
|
||||
if(selectorValue !== ""){
|
||||
affairRating["affairRate"] = selectorValue;
|
||||
affairRating["organUp"] = $(el).find(".organUpChkBox").prop("checked")?"T":"F";
|
||||
}else{
|
||||
if(chkbox.val()==="DST006"){
|
||||
//부장승인 & 평가 미입력.
|
||||
affairRateFlag = false;
|
||||
}
|
||||
}
|
||||
ratingList.push(affairRating);
|
||||
}
|
||||
ratingList.push(affairRating);
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
if(affairRateFlag){
|
||||
affairStateChange(ratingList);
|
||||
|
|
|
|||
|
|
@ -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}">
|
||||
|
|
|
|||
Loading…
Reference in New Issue