[FO] 일계부 노동시간 invaild 수정

This commit is contained in:
김현주
2025-06-24 15:07:02 +09:00
parent df2b13950e
commit 497f081908
3 changed files with 22 additions and 5 deletions

View File

@@ -163,14 +163,13 @@ var ajaxUtil = {
kri.logger.error('statusCode: 403');
},
422:function(rstData, status) {
console.log(rstData)
console.log('422', rstData)
/**
* TODO
* 폼이 너무 여러가지 형식이 있는데 서버에러를 가지고 처리하는게 맞는지 검토 필요
* 코드 정리는 나중에 하려고 그냥 만듬.... 정리 필요.
*/
let isResetDone = false;
$(rstData.responseJSON.fieldErrors).each((idx, oj) => {
@@ -241,6 +240,10 @@ var ajaxUtil = {
if ($('.input-invalid').length != 0) {
$('.input-invalid').eq(0).find('input,select').focus();
}
if (typeof errorCallback !== 'undefined') {
errorCallback(rstData.status, rstData);
}
},
500:function(rstData){
ajaxUtil._hideWaiting();
@@ -268,6 +271,7 @@ var ajaxUtil = {
},
error : function(rstData) {
ajaxUtil._hideWaiting();
if (!(rstData.status == 500 || rstData.status == 422)) {
if (typeof errorCallback !== 'undefined') {
errorCallback(rstData.status, rstData);