민원상세 화면 차적조회 수정

main
이범준 10 months ago
parent 63aee2f7c5
commit 625bd666a6

@ -891,7 +891,10 @@ $(document).ready(function(){
return;
}
var resp = await getVhclInfo($("#sggCd--${pageName}").val(), vhrno, crdnYmd);
var resp = null;
resp = await getVhclInfo($("#sggCd--${pageName}").val(), vhrno, crdnYmd);
if(!resp.found){
dialog.alert({
@ -960,6 +963,16 @@ $(document).ready(function(){
$("#addr--${pageName}").val(vehicle.road_nm_adres); //주소
$("#dtlAddr--${pageName}").val(vehicle.use_strnghld_adres_nm); //상세주소
if("${taskSeCd}" == "DPV"){
resp = await getVhclDisabledParkingInfo(vhrno);
if(resp.parkingInfo.BOHUN_PARKING_PSBL_YN == "Y" || resp.parkingInfo.PARKING_PSBL_YN == "Y") {
$("#parkngPsbltyRsltCd--${pageName}").val("2");
} else {
$("#parkngPsbltyRsltCd--${pageName}").val("1");
}
}
});

@ -36,3 +36,22 @@ async function getVhclInfo(sggCd, vhrno, levy_stdde){
});
});
};
/**************************************************************************
* 장애인 차량여부 조회
**************************************************************************/
async function getVhclDisabledParkingInfo(vhrno){
return new Promise((resolve, reject) => {
json.get({
url: wctx.url("/intf/disabledParking/parkingInfo"),
data: {
vehicleNo : vhrno
},
success: function(resp, textStatus, jqXHR) {
resolve(resp);
},
error: function(jqXHR, textStatus, error) {
}
});
});
}
Loading…
Cancel
Save