[FO] 일계부 수입 Form 에 영수증 등록 html 추가
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -39,3 +39,7 @@ META-INF
|
|||||||
.jpd
|
.jpd
|
||||||
|
|
||||||
*.log
|
*.log
|
||||||
|
front/src/main/resources/static/kri_appimg.png
|
||||||
|
front/src/main/resources/static/kri_favicon.ico
|
||||||
|
front/src/main/resources/static/manifest.json
|
||||||
|
front/web/WEB-INF/web.xml
|
||||||
|
|||||||
@@ -7,9 +7,10 @@
|
|||||||
<div class="component-btns type-tab"
|
<div class="component-btns type-tab"
|
||||||
th:if="not ${detail.updated}">
|
th:if="not ${detail.updated}">
|
||||||
<div class="btns-row">
|
<div class="btns-row">
|
||||||
<button type="button" class="btn active">수기 등록</button>
|
<button type="button" class="btn active" onclick="modalControl.changeModal('self')">수기 등록</button>
|
||||||
<!--/* TODO : 2차 오픈 */-->
|
<th:block th:if="${@systemProperties['spring.profiles.active'] eq 'local'}">
|
||||||
<!--<button type="button" class="btn">영수증 등록</button>-->
|
<button type="button" class="btn" onclick="modalControl.changeModal('ocr')">영수증 등록</button>
|
||||||
|
</th:block>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -17,6 +18,8 @@
|
|||||||
<form name="reqModalForm">
|
<form name="reqModalForm">
|
||||||
<input type="hidden" name="inputType" th:value="${#strings.defaultString(detail.inputType, 'SELF')}">
|
<input type="hidden" name="inputType" th:value="${#strings.defaultString(detail.inputType, 'SELF')}">
|
||||||
<input type="hidden" name="id" th:value="${detail.id}">
|
<input type="hidden" name="id" th:value="${detail.id}">
|
||||||
|
<!--/* 수기 등록 s */-->
|
||||||
|
<div id="modelSelf">
|
||||||
<section class="form-group">
|
<section class="form-group">
|
||||||
<div class="segment-label">
|
<div class="segment-label">
|
||||||
<p class="label-txt">
|
<p class="label-txt">
|
||||||
@@ -198,6 +201,58 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--/* 수기 등록 e */-->
|
||||||
|
<!--/* 영수증 등록 s */-->
|
||||||
|
<div id="modelOcr" style="display: none;">
|
||||||
|
<section class="form-group">
|
||||||
|
<div class="segment-label">
|
||||||
|
<p class="label-txt">
|
||||||
|
영수증 첨부
|
||||||
|
<i class="ico-required-mark" role="img" aria-label="필수">*</i>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="component-segment">
|
||||||
|
<div class="component-file">
|
||||||
|
<div class="file-list">
|
||||||
|
<div class="file-item">
|
||||||
|
<img class="profile-image-add" src="../../assets/images/acco/file_sample.png" alt="이미지샘플" />
|
||||||
|
<button type="button" class="btn-delete"><span class="hide-txt">삭제</span></button>
|
||||||
|
</div>
|
||||||
|
<div class="file-item">
|
||||||
|
<img class="profile-image-add" src="../../assets/images/acco/file_sample.png" alt="이미지샘플" />
|
||||||
|
<button type="button" class="btn-delete"><span class="hide-txt">삭제</span></button>
|
||||||
|
</div>
|
||||||
|
<div class="file-item">
|
||||||
|
<img class="profile-image-add" src="../../assets/images/acco/file_sample.png" alt="이미지샘플" />
|
||||||
|
<button type="button" class="btn-delete"><span class="hide-txt">삭제</span></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button type="button" class="btn btn-m btn-link btn-full">
|
||||||
|
<i class="ico-add ico-small" aria-hidden="true"></i>
|
||||||
|
<span class="btn-txt">사진 첨부</span>
|
||||||
|
</button>
|
||||||
|
<ul class="guide-info">
|
||||||
|
<li>영수증은 일일 최대 3개 등록하실 수 있습니다.</li>
|
||||||
|
<li>
|
||||||
|
최대 갯수 등록 후에는 수기 입력만 가능합니다. <br>
|
||||||
|
(사진 1개당 5MB 이하)
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="component-btns">
|
||||||
|
<div class="btns-row">
|
||||||
|
<!-- 버튼비활성 스타일 속성에 disabled 추가 -->
|
||||||
|
<button type="button" class="btn btn-full btn-l btn-primary">
|
||||||
|
<span class="btn-txt">등록</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--/* 영수증 등록 e */-->
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</th:block>
|
</th:block>
|
||||||
|
|||||||
@@ -239,6 +239,15 @@
|
|||||||
$input.val('').attr('disabled', true);
|
$input.val('').attr('disabled', true);
|
||||||
$input.parent().parent().closest('.component-input').addClass('input-disabled');
|
$input.parent().parent().closest('.component-input').addClass('input-disabled');
|
||||||
},
|
},
|
||||||
|
changeModal(type) {
|
||||||
|
if (type === 'self') {
|
||||||
|
$('#modelSelf').show();
|
||||||
|
$('#modelOcr').hide();
|
||||||
|
} else {
|
||||||
|
$('#modelSelf').hide();
|
||||||
|
$('#modelOcr').show();
|
||||||
|
}
|
||||||
|
},
|
||||||
createVaild() {
|
createVaild() {
|
||||||
modalControl.create();
|
modalControl.create();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user