Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -2748,11 +2748,8 @@
|
||||
const title = $(this).attr('title');
|
||||
|
||||
if (fn_is_empty(val) && (name === 'recpntNm' || name === 'recpntMbtlnb')) {
|
||||
|
||||
alert(title + '을 입력해 주십시요');
|
||||
|
||||
$('#dlvylcForm').find('input[name="' + name + '"]').focus();
|
||||
|
||||
alert(title + '을 입력해 주십시오');
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
@@ -2763,9 +2760,14 @@
|
||||
|
||||
} else {
|
||||
// console.log("dlvylcDvCd : ",dlvylcDvCd);
|
||||
const requiredMap = {
|
||||
KR: 'cstmclerCd',
|
||||
JP: 'prefcd'
|
||||
};
|
||||
|
||||
if ('New' === dlvylcDvCd) {
|
||||
const dlvylcAreaCd2 = $('#dlvylcForm').find('input[name="dlvylcAreaCd"]').val();
|
||||
console.log("dlvylcAreaCd(new) : ",dlvylcAreaCd2);
|
||||
const dlvylcAreaCdNew = $('#dlvylcForm').find('input[name="dlvylcAreaCd"]').val();
|
||||
// console.log("dlvylcAreaCd(new) : ",dlvylcAreaCdNew);
|
||||
|
||||
|
||||
$('#dlvylcForm').find('.rqrd').each(function () {
|
||||
@@ -2773,39 +2775,51 @@
|
||||
|
||||
if (fn_is_empty(val)) {
|
||||
const name = $(this).attr('name');
|
||||
|
||||
if('JP' !== dlvylcAreaCd2 || 'cstmclerCd' !== name ) {
|
||||
const title = $(this).attr('title');
|
||||
|
||||
alert(title + '을 입력해 주십시요');
|
||||
|
||||
$('#dlvylcForm').find('input[name="' + name + '"]').focus();
|
||||
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
const dlvylcAreaCd = $('#dlvylcAreaCd').val();
|
||||
// console.log("dlvylcAreaCd(dft) : ",dlvylcAreaCd);
|
||||
|
||||
if('KR' === dlvylcAreaCd){
|
||||
// console.log("KR");
|
||||
|
||||
const val = $('#cstmclerCd').val();
|
||||
|
||||
if (fn_is_empty(val)) {
|
||||
|
||||
alert('개인통관번호를 입력해 주십시요');
|
||||
const title = $(this).attr('title');
|
||||
|
||||
$('#dlvylcForm').find('input[name="' + name + '"]').focus();
|
||||
|
||||
alert(title + '을 입력해 주십시오');
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
const required = requiredMap[dlvylcAreaCdNew];
|
||||
if (required) {
|
||||
const $input = $('input.new[name="' + required + '"]');
|
||||
const title = $input.attr('title');
|
||||
const value = $input.val();
|
||||
|
||||
if (fn_is_empty(value)) {
|
||||
alert(title + '을 입력해 주십시오');
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
const dlvylcAreaCd = $('#dlvylcAreaCd').val();
|
||||
// console.log("dlvylcAreaCd(dft) : ",dlvylcAreaCd);
|
||||
|
||||
const required = requiredMap[dlvylcAreaCd];
|
||||
if (required) {
|
||||
const $input = $('input.new[name="' + required + '"]');
|
||||
const title = $input.attr('title');
|
||||
const value = $input.val();
|
||||
|
||||
if (fn_is_empty(value)) {
|
||||
alert(title + '을 입력해 주십시오');
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
alert('배송지역코드를 입력해 주십시오');
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3764,28 +3778,24 @@
|
||||
<span class="orderInfo__text recpntMbtlnb_ordrInfo_text"><c:out value="${dftDlvylc.mbtlnb}"/></span>
|
||||
</td>
|
||||
</tr>
|
||||
<c:choose>
|
||||
<c:when test="${dftDlvylc.dlvylcAreaCd eq 'KR'}">
|
||||
<tr class="deliveryAddressDefault">
|
||||
<th><span class="orderInfo__title">개인통관번호</span></th>
|
||||
<td>
|
||||
<input type="hidden" id="cstmclerCd" class="dft" value="<c:out value="${dftDlvylc.cstmclerCd}"/>">
|
||||
<%-- <span class="orderInfo__text cstmclerCd_ordrInfo_text"><c:out value="${dftDlvylc.cstmclerCd}"/></span>--%>
|
||||
<c:if test="${dftDlvylc.dlvylcAreaCd eq 'KR'}">
|
||||
<tr class="deliveryAddressDefault">
|
||||
<th><span class="orderInfo__title">개인통관번호</span></th>
|
||||
<td>
|
||||
<input type="hidden" id="cstmclerCd" class="dft" value="<c:out value="${dftDlvylc.cstmclerCd}"/>">
|
||||
<span class="orderInfo__text cstmclerCd_ordrInfo_text">
|
||||
<c:choose>
|
||||
<c:when test="${not empty dftDlvylc.cstmclerCd}">
|
||||
<input type="text" name="cstmclerCd" maxlength="13" class="orderInfo__text cstmclerCd_ordrInfo_text" title="개인통관번호" value="<c:out value="${dftDlvylc.cstmclerCd}"/>" placeholder="배송지 관리에서 입력하세요.">
|
||||
<c:out value="${dftDlvylc.cstmclerCd}"/>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="text" name="cstmclerCd" maxlength="13" class="orderInfo__text cstmclerCd_ordrInfo_text" title="개인통관번호" value="<c:out value="${dftDlvylc.cstmclerCd}"/>" placeholder="배송지 관리에서 입력하세요." readonly>
|
||||
배송지 관리에서 입력하세요.
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</tr>
|
||||
</td>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="hidden" id="cstmclerCd" name="cstmclerCd" class="dft" value="<c:out value="${dftDlvylc.cstmclerCd}"/>">
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<!-- 기본 배송지 선택 시 End -->
|
||||
<!-- 신규 배송지 선택 시 Start -->
|
||||
<tr class="deliveryAddressNew" style="display:none;">
|
||||
@@ -3806,9 +3816,8 @@
|
||||
<input type="hidden" name="dlvylcAdresDvCd" class="new">
|
||||
<input type="hidden" name="dlvylcLnbAdres" class="new">
|
||||
<input type="hidden" name="dlvylcRnmAdres" class="new">
|
||||
<input type="hidden" name="dlvylcAreaCd" class="new">
|
||||
<input type="hidden" name="prefcd" class="new">
|
||||
<input type="hidden" name="cstmclerCd" class="new">
|
||||
<input type="hidden" name="dlvylcAreaCd" class="new rqrd" title="배송지역코드">
|
||||
<input type="hidden" name="prefcd" class="new" title="도도부현코드">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -3821,7 +3830,7 @@
|
||||
<tr class="deliveryAddressNew cstmclerArea" style="display:none;">
|
||||
<th> <span class="orderInfo__title">개인통관번호</span></th>
|
||||
<td>
|
||||
<input type="text" name="cstmclerCd" maxlength="13" class="new rqrd input-text rqrd_gift" title="개인통관번호" placeholder="배송지 관리에서 입력하세요." readonly>
|
||||
<input type="text" name="cstmclerCd" maxlength="13" class="new input-text" title="개인통관번호" placeholder="배송지 관리에서 입력하세요." readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- 신규 배송지 선택 시 End -->
|
||||
|
||||
@@ -58,7 +58,10 @@
|
||||
|
||||
/* 주문/배송 목록 화면 이동 버튼 선택 이벤트 */
|
||||
$('#btnOrdrList').on('click', function() {
|
||||
location.href = '<c:url value="/sopmal/mpage/ordr/selectMbrOrdrListInqire"/>';
|
||||
const subsvcAt = '${data.order.subsvcAt}';
|
||||
location.href = subsvcAt === 'Y'
|
||||
? '<c:url value="/sopmal/mpage/ordr/selectMbrSubsvcOrdrListInqireRForm"/>'
|
||||
: '<c:url value="/sopmal/mpage/ordr/selectMbrOrdrListInqire"/>';
|
||||
});
|
||||
}
|
||||
|
||||
@@ -94,6 +97,90 @@
|
||||
<h2 class="cartOrder__title">주문완료</h2>
|
||||
<div class="sub-right-content">
|
||||
<c:choose>
|
||||
<c:when test="${order.subsvcAt eq 'Y'}">
|
||||
<div class="sub-right-content__section">
|
||||
<div class="sub-right-content__section">
|
||||
<div class="cartOrder__list">
|
||||
<div class="table-wrapper">
|
||||
<table class="table vertical">
|
||||
<caption>주문상세내역</caption>
|
||||
<colgroup>
|
||||
<col style="width: auto;">
|
||||
<col style="width: 40px;">
|
||||
<col style="width: 10%;">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>상품명</th>
|
||||
<th>수량</th>
|
||||
<th>상품금액</th>
|
||||
<th>할인금액</th>
|
||||
<th>할인적용금액</th>
|
||||
<th>적립금</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:choose>
|
||||
<c:when test="${not empty data.goodsList}">
|
||||
<c:forEach var="goods" items="${data.goodsList}">
|
||||
<tr>
|
||||
<td>
|
||||
<div class="cartItem">
|
||||
<div class="cartItem__image">
|
||||
<img src="<c:out value="${cdnurl}${goods.goodsImgCours}"/>" onerror="this.src='/pc/images/image_placeholder.png'" alt="<c:out value="${goods.goodsNm}"/>">
|
||||
</div>
|
||||
<div class="cartItem__productInfo">
|
||||
<a href="javascript:void(0);" class="cartItem__productTitle"><c:out value="${goods.goodsNm}"/></a>
|
||||
<span class="cartItem__productOption"><span class="option-badge">옵션</span> <c:out value="${goods.optnNm}"/></span>
|
||||
<c:if test="${not empty goods.inputOptnText}">
|
||||
<span class="cartItem__productOption"><c:out value="${goods.inputOptnText}"/></span>
|
||||
</c:if>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<span><fmt:formatNumber value="${goods.ordrQy}" pattern="#,###"/></span>
|
||||
<input type="hidden" class="goodsInnb" name="goodsInnb" value ="${goods.goodsInnb}"/>
|
||||
</td>
|
||||
<td>
|
||||
<span class="cartItem__normalPrice">
|
||||
<span class=" comma"><fmt:formatNumber value="${goods.slepric}" pattern="#,###"/></span>
|
||||
<span class="priceUnit">${curUnit}</span>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="cartItem__discountPrice">
|
||||
<span class="cartItem__discountMinus">(-)</span>
|
||||
<span class="comma"><fmt:formatNumber value="${goods.dscntAmt}" pattern="#,###"/></span>
|
||||
<span class="priceUnit">${curUnit}</span>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="cartItem__afterPrice">
|
||||
<span class="comma"><fmt:formatNumber value="${goods.applyDscntAmt}" pattern="#,###"/></span>
|
||||
<span class="priceUnit">${curUnit}</span>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="cartItem__mileage">
|
||||
<span class=" comma"><fmt:formatNumber value="${goods.mlgAmt}" pattern="#,###"/></span>
|
||||
<span class="priceUnit">${curUnit}</span>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr><td colspan="100%" ><spring:message code="common.nodata"/></td></tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</c:when>
|
||||
<c:when test="${'04' == order.ordrTyCd || '05' == order.ordrTyCd}">
|
||||
<div class="sub-right-content__section">
|
||||
<c:choose>
|
||||
@@ -335,44 +422,45 @@
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
<c:if test="${'04' != order.ordrTyCd && '05' != order.ordrTyCd}">
|
||||
<c:if test="${order.subsvcAt eq 'Y' || '04' != order.ordrTyCd && '05' != order.ordrTyCd}">
|
||||
<div class="sub-right-content__section">
|
||||
<h3 class="sub-right-content__innerTitle">배송지 정보</h3>
|
||||
<c:choose>
|
||||
<c:when test="${not empty data.shippingList}">
|
||||
<c:forEach var="shipping" items="${data.shippingList}" varStatus="status">
|
||||
<div class="table-wrapper orderDetail__table">
|
||||
<table class="table">
|
||||
<caption>배송지 정보</caption>
|
||||
<colgroup>
|
||||
<col style="width: 220px;">
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>받는분</th>
|
||||
<td><c:out value="${shipping.recpntNm}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>주소</th>
|
||||
<td>
|
||||
<c:out value="${not empty shipping.dlvylcZip ? '(' += shipping.dlvylcZip += ')' : ''}"/>
|
||||
<c:out value="${shipping.adres}"/>
|
||||
<c:out value="${shipping.dlvylcAdresDtl}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>휴대폰번호</th>
|
||||
<td><c:out value="${shipping.recpntMbtlnb}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>배송 시 요청사항</th>
|
||||
<td><c:out value="${shipping.dlvyMssageCn}"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<c:if test="${order.subsvcAt ne 'Y' || status.first}">
|
||||
<div class="table-wrapper orderDetail__table">
|
||||
<table class="table">
|
||||
<caption>배송지 정보</caption>
|
||||
<colgroup>
|
||||
<col style="width: 220px;">
|
||||
<col style="width: auto;">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>받는분</th>
|
||||
<td><c:out value="${shipping.recpntNm}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>주소</th>
|
||||
<td>
|
||||
<c:out value="${not empty shipping.dlvylcZip ? '(' += shipping.dlvylcZip += ')' : ''}"/>
|
||||
<c:out value="${shipping.adres}"/>
|
||||
<c:out value="${shipping.dlvylcAdresDtl}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>휴대폰번호</th>
|
||||
<td><c:out value="${shipping.recpntMbtlnb}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>배송 시 요청사항</th>
|
||||
<td><c:out value="${shipping.dlvyMssageCn}"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
|
||||
@@ -58,6 +58,17 @@
|
||||
history.replaceState(null, '', '/sopmal/ordr/selectMbrPurchsForm');
|
||||
}
|
||||
|
||||
const subsvcInnb = $('#subsvcInnb').val();
|
||||
if (!fn_is_empty(subsvcInnb)) {
|
||||
$(form).attr('action', '<c:url value="/sopmal/ordr/selectSubsvcPurchsForm"/>');
|
||||
$('<input>', {
|
||||
type: 'hidden',
|
||||
name: 'subsvcInnb',
|
||||
value: subsvcInnb
|
||||
}).appendTo(form);
|
||||
history.replaceState(null, '', '/sopmal/ordr/selectSubsvcPurchsForm');
|
||||
}
|
||||
|
||||
$(form).submit();
|
||||
}
|
||||
</script>
|
||||
@@ -77,6 +88,7 @@
|
||||
<c:forEach var="cartGoods" items="${data.cartGoodsList}">
|
||||
<input type="hidden" name="cartInnbs" value="<c:out value="${cartGoods.cartInnb}"/>"/>
|
||||
</c:forEach>
|
||||
<input type="hidden" name="subsvcInnb" id="subsvcInnb" value="<c:out value="${paramVO.subsvcInnb}"/>"/>
|
||||
</form>
|
||||
<div class="sub-wrapper">
|
||||
<div class="sub-content">
|
||||
|
||||
@@ -118,6 +118,7 @@
|
||||
<input type="hidden" name="sesion_id" value="${data.ordr.sesionId}" />
|
||||
<input type="hidden" name="pg_cmpny_nm" value="${data.setle.pgCmpnyNm}" />
|
||||
<input type="hidden" name="setle_ty_cd" value="${data.setle.setleTyCd}" />
|
||||
<input type="hidden" name="subsvc_innb" value="${subsvcInnb}" />
|
||||
|
||||
<!-- 가상계좌 유효기간 -->
|
||||
<c:set var="expireTerm" value="${data.setle.dueDt - 1}" />
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
$(form).append($('<input/>', {type:'hidden', name:'mbrId', value:$('#mbrId').val()}));
|
||||
$(form).append($('<input/>', {type:'hidden', name:'sesionId', value:$('#sesionId').val()}));
|
||||
$(form).append($('<input/>', {type:'hidden', name:'message', value:$('#message').val()}));
|
||||
$(form).append($('<input/>', {type:'hidden', name:'subsvcInnb', value:$('#subsvcInnb').val()}));
|
||||
|
||||
$(form).attr('method', 'post');
|
||||
$(form).attr('action', '<c:url value="/sopmal/ordr/selectOrdrFailr"/>');
|
||||
@@ -73,6 +74,7 @@
|
||||
<input type="hidden" name="mbrInnb" id="mbrInnb" value="${paramVO.mbrInnb}"/>
|
||||
<input type="hidden" name="mbrId" id="mbrId" value="${paramVO.mbrId}"/>
|
||||
<input type="hidden" name="sesionId" id="sesionId" value="${paramVO.sesionId}"/>
|
||||
<input type="hidden" name="subsvcInnb" id="subsvcInnb" value="${subsvcInnb}"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -53,6 +53,7 @@
|
||||
$(form).append($('<input/>', {type:'hidden', name:'sesionId', value:$('#sesionId').val()}));
|
||||
$(form).append($('<input/>', {type:'hidden', name:'message', value:$('#message').val()}));
|
||||
$(form).append($('<input/>', {type:'hidden', name:'ordrTyCd', value:$('#ordrTyCd').val()}));
|
||||
$(form).append($('<input/>', {type:'hidden', name:'subsvcInnb', value:$('#subsvcInnb').val()}));
|
||||
|
||||
$(form).attr('method', 'post');
|
||||
$(form).attr('action', '<c:url value="/sopmal/ordr/selectOrdrFailr"/>');
|
||||
@@ -75,6 +76,7 @@
|
||||
<input type="hidden" name="mbrId" id="mbrId" value="${paramVO.mbrId}"/>
|
||||
<input type="hidden" name="sesionId" id="sesionId" value="${paramVO.sesionId}"/>
|
||||
<input type="hidden" name="ordrTyCd" id="ordrTyCd" value="${ordrTyCd}"/>
|
||||
<input type="hidden" name="subsvcInnb" id="subsvcInnb" value="${subsvcInnb}"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -2719,11 +2719,8 @@
|
||||
const title = $(this).attr('title');
|
||||
|
||||
if (fn_is_empty(val) && (name === 'recpntNm' || name === 'recpntMbtlnb')) {
|
||||
|
||||
alert(title + '을 입력해 주십시요');
|
||||
|
||||
$('#dlvylcForm').find('input[name="' + name + '"]').focus();
|
||||
|
||||
alert(title + '을 입력해 주십시오');
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
@@ -2734,49 +2731,65 @@
|
||||
|
||||
} else {
|
||||
// console.log("dlvylcDvCd : ",dlvylcDvCd);
|
||||
if ('New' === dlvylcDvCd) {
|
||||
const dlvylcAreaCd2 = $('#dlvylcForm').find('input[name="dlvylcAreaCd"]').val();
|
||||
console.log("dlvylcAreaCd(new) : ",dlvylcAreaCd2);
|
||||
const requiredMap = {
|
||||
KR: 'cstmclerCd',
|
||||
JP: 'prefcd'
|
||||
};
|
||||
|
||||
if ('New' === dlvylcDvCd) {
|
||||
const dlvylcAreaCdNew = $('#dlvylcForm').find('input[name="dlvylcAreaCd"]').val();
|
||||
// console.log("dlvylcAreaCd(new) : ",dlvylcAreaCdNew);
|
||||
|
||||
$('#dlvylcForm').find('.rqrd').each(function () {
|
||||
const val = $(this).val();
|
||||
|
||||
if (fn_is_empty(val)) {
|
||||
const name = $(this).attr('name');
|
||||
|
||||
if('JP' !== dlvylcAreaCd2 || 'cstmclerCd' !== name ) {
|
||||
const title = $(this).attr('title');
|
||||
|
||||
alert(title + '을 입력해 주십시요');
|
||||
|
||||
$('#dlvylcForm').find('input[name="' + name + '"]').focus();
|
||||
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
const dlvylcAreaCd = $('#dlvylcAreaCd').val();
|
||||
// console.log("dlvylcAreaCd(dft) : ",dlvylcAreaCd);
|
||||
|
||||
if('KR' === dlvylcAreaCd){
|
||||
// console.log("KR");
|
||||
|
||||
const val = $('#cstmclerCd').val();
|
||||
|
||||
if (fn_is_empty(val)) {
|
||||
|
||||
alert('개인통관번호를 입력해 주십시오');
|
||||
const title = $(this).attr('title');
|
||||
|
||||
$('#dlvylcForm').find('input[name="' + name + '"]').focus();
|
||||
|
||||
alert(title + '을 입력해 주십시오');
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
const required = requiredMap[dlvylcAreaCdNew];
|
||||
if (required) {
|
||||
const $input = $('input.new[name="' + required + '"]');
|
||||
const title = $input.attr('title');
|
||||
const value = $input.val();
|
||||
|
||||
if (fn_is_empty(value)) {
|
||||
alert(title + '을 입력해 주십시오');
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
const dlvylcAreaCd = $('#dlvylcAreaCd').val();
|
||||
// console.log("dlvylcAreaCd(dft) : ",dlvylcAreaCd);
|
||||
|
||||
const required = requiredMap[dlvylcAreaCd];
|
||||
if (required) {
|
||||
const $input = $('input.new[name="' + required + '"]');
|
||||
const title = $input.attr('title');
|
||||
const value = $input.val();
|
||||
|
||||
if (fn_is_empty(value)) {
|
||||
alert(title + '을 입력해 주십시오');
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
alert('배송지역코드를 입력해 주십시오');
|
||||
isValid = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2823,7 +2836,7 @@
|
||||
let name = $(this).attr('name');
|
||||
let title = $(this).attr('title');
|
||||
|
||||
alert(title + '을 입력해 주십시요');
|
||||
alert(title + '을 입력해 주십시오');
|
||||
|
||||
$(form).find('input[name="' + name + '"]').focus();
|
||||
|
||||
@@ -2898,7 +2911,7 @@
|
||||
const id = $(this).attr('id');
|
||||
const title = $(this).attr('title');
|
||||
|
||||
alert(title + ' 항목을 입력해 주십시요');
|
||||
alert(title + ' 항목을 입력해 주십시오');
|
||||
|
||||
$('#' + id).focus();
|
||||
|
||||
@@ -2950,7 +2963,7 @@
|
||||
|
||||
|
||||
if (fn_is_empty(pgCmpnyNm)) {
|
||||
alert('결제유형을 선택해 주십시요.');
|
||||
alert('결제유형을 선택해 주십시오.');
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -2959,7 +2972,7 @@
|
||||
const div = $('#setleForm').find('.order-method-normal');
|
||||
|
||||
if (!$(div).find('.order-method-normal__btn-container button').hasClass('active')) {
|
||||
alert('결제방법을 선택해 주십시요.');
|
||||
alert('결제방법을 선택해 주십시오.');
|
||||
|
||||
isValid = false;
|
||||
|
||||
@@ -2971,7 +2984,7 @@
|
||||
const input = $(div).find('#rcpmnyerNm');
|
||||
|
||||
if (fn_is_empty($(input).val())) {
|
||||
alert($(input).attr('title') + ' 항목을 입력해 주십시요');
|
||||
alert($(input).attr('title') + ' 항목을 입력해 주십시오');
|
||||
|
||||
$('#' + $(input).attr('id')).focus();
|
||||
|
||||
@@ -2983,7 +2996,7 @@
|
||||
const rcpmnyAcntnb = $(div).find('#rcpmnyAcntnb option:selected');
|
||||
|
||||
if (fn_is_empty($(rcpmnyAcntnb).val())) {
|
||||
alert($(div).find('#rcpmnyAcntnb').attr('title') + ' 항목을 선택해 주십시요');
|
||||
alert($(div).find('#rcpmnyAcntnb').attr('title') + ' 항목을 선택해 주십시오');
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -3007,7 +3020,7 @@
|
||||
const input = $(div).find('#' + id);
|
||||
|
||||
if (fn_is_empty($(input).val())) {
|
||||
alert($(div).find('#' + id).attr('title') + ' 항목을 입력해 주십시요');
|
||||
alert($(div).find('#' + id).attr('title') + ' 항목을 입력해 주십시오');
|
||||
|
||||
$(div).find('#' + id).focus();
|
||||
|
||||
@@ -3028,7 +3041,7 @@
|
||||
const input = $(content).find('#' + id);
|
||||
|
||||
if (fn_is_empty($(input).val())) {
|
||||
alert($(content).find('#' + id).attr('title') + ' 항목을 입력해 주십시요');
|
||||
alert($(content).find('#' + id).attr('title') + ' 항목을 입력해 주십시오');
|
||||
|
||||
$(content).find('#' + id).focus();
|
||||
|
||||
@@ -3087,7 +3100,7 @@
|
||||
const input = $(content).find('#' + id);
|
||||
|
||||
if (fn_is_empty($(input).val())) {
|
||||
alert($(content).find('#' + id).attr('title') + ' 항목을 입력해 주십시요');
|
||||
alert($(content).find('#' + id).attr('title') + ' 항목을 입력해 주십시오');
|
||||
|
||||
$(content).find('#' + id).focus();
|
||||
|
||||
@@ -3653,28 +3666,24 @@
|
||||
<span class="orderInfo__text recpntMbtlnb_ordrInfo_text"><c:out value="${dftDlvylc.mbtlnb}"/></span>
|
||||
</td>
|
||||
</tr>
|
||||
<c:choose>
|
||||
<c:when test="${dftDlvylc.dlvylcAreaCd eq 'KR'}">
|
||||
<tr class="deliveryAddressDefault">
|
||||
<th><span class="orderInfo__title">개인통관번호</span></th>
|
||||
<td>
|
||||
<input type="hidden" id="cstmclerCd" class="dft" value="<c:out value="${dftDlvylc.cstmclerCd}"/>">
|
||||
<%-- <span class="orderInfo__text cstmclerCd_ordrInfo_text"><c:out value="${dftDlvylc.cstmclerCd}"/></span>--%>
|
||||
<c:if test="${dftDlvylc.dlvylcAreaCd eq 'KR'}">
|
||||
<tr class="deliveryAddressDefault">
|
||||
<th><span class="orderInfo__title">개인통관번호</span></th>
|
||||
<td>
|
||||
<input type="hidden" id="cstmclerCd" class="dft" value="<c:out value="${dftDlvylc.cstmclerCd}"/>">
|
||||
<span class="orderInfo__text cstmclerCd_ordrInfo_text">
|
||||
<c:choose>
|
||||
<c:when test="${not empty dftDlvylc.cstmclerCd}">
|
||||
<input type="text" name="cstmclerCd" maxlength="13" class="orderInfo__text cstmclerCd_ordrInfo_text" title="개인통관번호" value="<c:out value="${dftDlvylc.cstmclerCd}"/>" placeholder="배송지 관리에서 입력하세요.">
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="text" name="cstmclerCd" maxlength="13" class="orderInfo__text cstmclerCd_ordrInfo_text" title="개인통관번호" value="<c:out value="${dftDlvylc.cstmclerCd}"/>" placeholder="배송지 관리에서 입력하세요." readonly>
|
||||
</c:otherwise>
|
||||
<c:when test="${not empty dftDlvylc.cstmclerCd}">
|
||||
<c:out value="${dftDlvylc.cstmclerCd}"/>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
배송지 관리에서 입력하세요.
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</tr>
|
||||
</span>
|
||||
</td>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="hidden" id="cstmclerCd" name="cstmclerCd" class="dft" value="<c:out value="${dftDlvylc.cstmclerCd}"/>">
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</tr>
|
||||
</c:if>
|
||||
<!-- 기본 배송지 선택 시 End -->
|
||||
<!-- 신규 배송지 선택 시 Start -->
|
||||
<tr class="deliveryAddressNew" style="display:none;">
|
||||
@@ -3695,9 +3704,8 @@
|
||||
<input type="hidden" name="dlvylcAdresDvCd" class="new">
|
||||
<input type="hidden" name="dlvylcLnbAdres" class="new">
|
||||
<input type="hidden" name="dlvylcRnmAdres" class="new">
|
||||
<input type="hidden" name="dlvylcAreaCd" class="new">
|
||||
<input type="hidden" name="prefcd" class="new">
|
||||
<input type="hidden" name="cstmclerCd" class="new">
|
||||
<input type="hidden" name="dlvylcAreaCd" class="new rqrd" title="배송지역코드">
|
||||
<input type="hidden" name="prefcd" class="new" title="도도부현코드">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -3710,7 +3718,7 @@
|
||||
<tr class="deliveryAddressNew cstmclerArea" style="display:none;">
|
||||
<th> <span class="orderInfo__title">개인통관번호</span></th>
|
||||
<td>
|
||||
<input type="text" name="cstmclerCd" maxlength="13" class="new rqrd input-text rqrd_gift" title="개인통관번호" placeholder="배송지 관리에서 입력하세요." readonly>
|
||||
<input type="text" name="cstmclerCd" maxlength="13" class="new input-text" title="개인통관번호" placeholder="배송지 관리에서 입력하세요." readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- 신규 배송지 선택 시 End -->
|
||||
|
||||
Reference in New Issue
Block a user