렌트 업무 단속 첨부파일 추가

main
xitpc\xituser 1 month ago
parent a6c8a31022
commit e1dd00612d

@ -9,7 +9,7 @@
</form> </form>
<div class="col-md-12 d-flex justify-content-between"> <div class="col-md-12 d-flex justify-content-between">
<div class="my-1"> <div class="my-1" name="divBtn">
<button type="button" name="btnOpenVideoCapture" class="btn btn-primary"> <button type="button" name="btnOpenVideoCapture" class="btn btn-primary">
동영상 캡쳐 동영상 캡쳐
</button> </button>
@ -64,6 +64,20 @@
</li> </li>
</template> </template>
<template name="imgRadioTemplateRentInfo">
<li class="d-flex">
<label class="mx-1 d-flex flex-row">
<input type="radio" name="{name}" class="form-check-input" value="{value}" checked="" />
<div class="position-relative">
<img src="{src}" width="210" height="140"
data-crdn-photo-id="{crdnPhotoId}"
data-mosaic="{mosaic}"
onload='fn_photoMask($("#photoMask--top").is(":checked"),this);' />
</div>
</label>
</li>
</template>
<script> <script>
LoadScript("photoMainJspScript","/webjars/js/fims/photo-main.js"); LoadScript("photoMainJspScript","/webjars/js/fims/photo-main.js");
</script> </script>

@ -77,9 +77,9 @@
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="vhrno">차량번호</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="vhrno">차량번호</label>
<input is="id-input" type="text" class="form-control w-45" name="vhrno" data-map="VHRNO" readonly /> <input is="id-input" type="text" class="form-control w-45" name="vhrno" data-map="VHRNO" readonly />
</div> </div>
<!-- 위반 내용 --> <!-- 위반 항목 -->
<div class="col-md-4"> <div class="col-md-4">
<label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="vltnArtcl">위반내용</label> <label is="name-label" class="col-form-label bg-lighter pe-2 w-px-120 text-sm-end" for="vltnArtcl">위반항목</label>
<input is="id-input" type="text" class="form-control w-45" name="vltnArtcl" data-map="VLTN_ARTCL" readonly /> <input is="id-input" type="text" class="form-control w-45" name="vltnArtcl" data-map="VLTN_ARTCL" readonly />
<span slot="edit"> <span slot="edit">
<template class="dpv"> <!-- 장애인 --> <template class="dpv"> <!-- 장애인 -->

@ -122,7 +122,9 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
// pageName에 따라 template이 다르다. // pageName에 따라 template이 다르다.
var template; var template;
if (pageName == "sprt02020") { if (pageName == "rent02020") {
template = $P.findn("imgRadioTemplateRentInfo").innerHTML;
} else if (pageName == "sprt02020") {
template = $P.findn("imgRadioTemplateTotalInfo").innerHTML; template = $P.findn("imgRadioTemplateTotalInfo").innerHTML;
} else { } else {
template = $P.findn("imgRadioTemplate").innerHTML; template = $P.findn("imgRadioTemplate").innerHTML;
@ -245,8 +247,6 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
} }
}); });
} }
} else if(flag == "delete"){ } else if(flag == "delete"){
fileProcessingURL = wctx.url("crdn/crdn06/deleteCrdnImageFile.do"); fileProcessingURL = wctx.url("crdn/crdn06/deleteCrdnImageFile.do");
@ -264,7 +264,6 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
for(var i=0; i < inputs.length; i++){ for(var i=0; i < inputs.length; i++){
formData.append("orderedKeys", inputs[i].value); formData.append("orderedKeys", inputs[i].value);
} }
} }
ajax.post({ ajax.post({
@ -291,9 +290,7 @@ function settingPhotoMain(pageName, crdnIdElement, carInfoFunc, carLinkFunc){
} }
}, },
}); });
} }
} }
function initPhotoMain(pageName, fileList, existVideo){ function initPhotoMain(pageName, fileList, existVideo){
@ -307,6 +304,11 @@ function initPhotoMain(pageName, fileList, existVideo){
$P.$findn("btnOpenVideoCapture").hide(); $P.$findn("btnOpenVideoCapture").hide();
} }
// 렌트업무에서는 버튼을 숨긴다.
if (pageName == "rent02020") {
$P.$findn("divBtn").hide();
}
$P.existFileArr = []; $P.existFileArr = [];
if(fileList){ if(fileList){
fileList.forEach(function(item){ fileList.forEach(function(item){

Loading…
Cancel
Save