Merge remote-tracking branch 'origin/master'

This commit is contained in:
이경숙
2026-04-06 14:43:08 +09:00
12 changed files with 120 additions and 25 deletions

View File

@@ -322,15 +322,16 @@
}
// 텍스트 입력 내용중 필수 항목 체크
$(':text[required]').each(function () {
const inputVal = $(this).val().trim();
if($(this).hasClass('number')){
if ($(this).val().trim() == '' || $(this).val().trim() == '0') {
if (inputVal == '' || inputVal == '0' && !$(this).hasClass('allow-zero')) {
alert($(this).prop('title')+"은(는) 필수입니다");
$(this).focus();
retVal = false;
return false;
}
}else{
if ($(this).val().trim() == '') {
if (inputVal == '') {
alert($(this).prop('title')+"은(는) 필수입니다");
$(this).focus();
retVal = false;
@@ -372,8 +373,11 @@
$('#expsrEndDt').val(expsrEndDt);
}
//선택한 재고정책
const choiceInvntryPolicyCd = $('input[name="invntryPolicyCd"]:checked').val()
//재고가 있으면 판매인 경우 개수 품절처리 필수
if($('input[name="invntryPolicyCd"]:checked').val() == '01'){
if(choiceInvntryPolicyCd == '01'){
if($('#avlinvLmttQy').val() == ''){
alert($('#avlinvLmttQy').prop('title')+"은(는) 노출여부가 노출예약인 경우 필수입니다");
$('#avlinvLmttQy').focus();
@@ -574,7 +578,7 @@
<th>구독기간<span class="red-7">*</span></th>
<td>
<div class="td-inner">
<input class="input-text xsm number text-right" type="text" title="구독기간" id="subPd" name="subPd" maxlength="3" value="<c:if test='${resultMap.subsvcDtl != null}'>${resultMap.subsvcDtl.subPd}</c:if>" required> 개월
<input class="input-text xsm number text-right allow-zero" type="text" title="구독기간" id="subPd" name="subPd" maxlength="3" value="<c:if test='${resultMap.subsvcDtl != null}'>${resultMap.subsvcDtl.subPd}</c:if>" required> 개월
</div>
</td>
</tr>
@@ -596,7 +600,7 @@
<th>배송횟수<span class="red-7">*</span></th>
<td>
<div class="td-inner">
<input class="input-text xsm number text-right" type="text" title="배송횟수" id="dlvyCnt" name="dlvyCnt" maxlength="3" value="<c:if test='${resultMap.subsvcDtl != null}'>${resultMap.subsvcDtl.dlvyCnt}</c:if>" required> 회
<input class="input-text xsm number text-right allow-zero" type="text" title="배송횟수" id="dlvyCnt" name="dlvyCnt" maxlength="3" value="<c:if test='${resultMap.subsvcDtl != null}'>${resultMap.subsvcDtl.dlvyCnt}</c:if>" required> 회
</div>
</td>
<th>배송주기<span class="red-7">*</span></th>
@@ -631,13 +635,13 @@
<th>구독료<span class="red-7">*</span></th>
<td>
<div class="td-inner">
<input class="input-text sm number text-right" type="text" title="구독료" id="subsvcCt" name="subsvcCt" maxlength="11" value="<c:if test='${resultMap.subsvcDtl != null}'>${resultMap.subsvcDtl.subsvcCt}</c:if>" required> 円(엔)
<input class="input-text sm number text-right allow-zero" type="text" title="구독료" id="subsvcCt" name="subsvcCt" maxlength="11" value="<c:if test='${resultMap.subsvcDtl != null}'>${resultMap.subsvcDtl.subsvcCt}</c:if>" required> 円(엔)
</div>
</td>
<th>1회 배송비<span class="red-7">*</span></th>
<td>
<div class="td-inner">
<input class="input-text sm number text-right" type="text" title="1회 배송비" id="tmeDlvyAmt" name="tmeDlvyAmt" maxlength="11" value="<c:if test='${resultMap.subsvcDtl != null}'>${resultMap.subsvcDtl.tmeDlvyAmt}</c:if>" required> 円(엔)
<input class="input-text sm number text-right allow-zero" type="text" title="1회 배송비" id="tmeDlvyAmt" name="tmeDlvyAmt" maxlength="11" value="<c:if test='${resultMap.subsvcDtl != null}'>${resultMap.subsvcDtl.tmeDlvyAmt}</c:if>" required> 円(엔)
</div>
</td>
</tr>
@@ -651,7 +655,7 @@
<th>실판매가<span class="red-7">*</span></th>
<td>
<div class="td-inner">
<input class="input-text sm number text-right" type="text" title="실판매가" id="selpric" name="selpric" maxlength="11" value="<c:if test='${resultMap.subsvcDtl != null}'>${resultMap.subsvcDtl.selpric}</c:if>" readonly> 円(엔)
<input class="input-text sm number text-right allow-zero" type="text" title="실판매가" id="selpric" name="selpric" maxlength="11" value="<c:if test='${resultMap.subsvcDtl != null}'>${resultMap.subsvcDtl.selpric}</c:if>" readonly> 円(엔)
</div>
</td>
</tr>
@@ -686,7 +690,7 @@
<th>가용재고</th>
<td>
<div class="td-inner">
<input class="input-text sm number text-right" type="text" title="가용재고" id="availQt" maxlength="11" value="<c:if test='${resultMap.subsvcDtl != null}'>${resultMap.subsvcDtl.availQt}</c:if>" readonly>
<input class="input-text sm text-right" type="text" title="가용재고" id="availQt" maxlength="11" value="<c:if test='${resultMap.subsvcDtl != null}'>${resultMap.subsvcDtl.availQt}</c:if>" readonly>
</div>
</td>
</tr>

View File

@@ -14,6 +14,21 @@
--%>
<script type="text/javascript">
$( document ).ready(function() {
// const amtCndUseAt = document.querySelector('#amtCndUseAt');
// const amtCndAditAmt = document.querySelector('#amtCndAditAmt');
const cntCndUseAt = document.querySelector('#cntCndUseAt');
const cntCndAditAmt = document.querySelector('#cntCndAditAmt');
// fn_check_BoxControl(amtCndUseAt,amtCndAditAmt);
fn_check_BoxControl(cntCndUseAt,cntCndAditAmt);
// const amtCndUseAt2 = document.querySelector('#amtCndUseAt2');
// const amtCndAditAmt2 = document.querySelector('#amtCndAditAmt2');
const cntCndUseAt2 = document.querySelector('#cntCndUseAt2');
const cntCndAditAmt2 = document.querySelector('#cntCndAditAmt2');
// fn_check_BoxControl(amtCndUseAt2,amtCndAditAmt2);
fn_check_BoxControl(cntCndUseAt2,cntCndAditAmt2);
/** 배송권역 셀렉트박스 컨트롤 */
const dlvyAreaAditAt = document.querySelector('#dlvyAreaAditAt');
const areaAditDlvyAmt = document.querySelector('#areaAditDlvyAmt');
@@ -56,6 +71,32 @@
<col>
</colgroup>
<tbody>
<tr>
<th>개별배송조건(KR)</th>
<td>
<div class="td-inner">
<div class="td-inner vertical">
<div class="b-checkbox-container">
<label class="b-checkbox checkbox">
<input type="checkbox" id="cntCndUseAt" name="cntCndUseAt"
<c:choose>
<c:when test="${ resultMap.dlvyGroup.cntCndUseAt eq 'Y' }"> value="Y" </c:when>
<c:otherwise> value="N" </c:otherwise>
</c:choose>
<c:if test="${ resultMap.dlvyGroup.cntCndUseAt eq 'Y' }">checked="checked"</c:if>>
<span style="margin-right: 5px;" class="check"></span>
<input type="text" class="input-text sm right number" <c:if test="${ resultMap.dlvyGroup.cntCndUseAt ne 'Y' }">disabled="disabled"</c:if> value="<fmt:formatNumber value='${resultMap.dlvyGroup.cntCndAditAmt}' pattern="#,###" />" title="구매 개수 조건" id="cntCndAditAmt" name="cntCndAditAmt" maxlength="13">
</label>
<span class="control-label">개 단위로 개별배송</span>
</div>
<div class="gray-7">
<p class="fyi">값을 1개 이상 입력 하신 경우 설정이 가능 합니다.</p>
<p class="fyi">설정한 개수의 배수로 배송이 분리됩니다.</p>
</div>
</div>
</div>
</td>
</tr>
<tr>
<th rowspan="2">배송 권역(KR)</th>
<td>
@@ -131,6 +172,32 @@
<col>
</colgroup>
<tbody>
<tr>
<th>개별배송조건(JP)</th>
<td>
<div class="td-inner">
<div class="td-inner vertical">
<div class="b-checkbox-container">
<label class="b-checkbox checkbox">
<input type="checkbox" id="cntCndUseAt2" name="cntCndUseAt2"
<c:choose>
<c:when test="${ resultMap.dlvyGroup.cntCndUseAt2 eq 'Y' }"> value="Y" </c:when>
<c:otherwise> value="N" </c:otherwise>
</c:choose>
<c:if test="${ resultMap.dlvyGroup.cntCndUseAt2 eq 'Y' }">checked="checked"</c:if>>
<span style="margin-right: 5px;" class="check"></span>
<input type="text" class="input-text sm right number" <c:if test="${ resultMap.dlvyGroup.cntCndUseAt2 ne 'Y' }">disabled="disabled"</c:if> value="<fmt:formatNumber value='${resultMap.dlvyGroup.cntCndAditAmt2}' pattern="#,###" />" title="구매 개수 조건" id="cntCndAditAmt2" name="cntCndAditAmt2" maxlength="13">
</label>
<span class="control-label">개 단위로 개별배송</span>
</div>
<div class="gray-7">
<p class="fyi">값을 1개 이상 입력 하신 경우 설정이 가능 합니다.</p>
<p class="fyi">설정한 개수의 배수로 배송이 분리됩니다.</p>
</div>
</div>
</div>
</td>
</tr>
<tr>
<th rowspan="2">배송 권역(JP)</th>
<td>