|
|
@@ -82,7 +82,6 @@
|
|
|
<div class="panelStyle">
|
|
|
<form id="custInfoForm" name="custInfoForm" action="#" method="post">
|
|
|
<input type="hidden" id="custNo" name="custNo" th:value="${custNo}"/>
|
|
|
- <input type="hidden" id="custNm" name="custNm"/>
|
|
|
<h4>기본정보</h4>
|
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
|
@@ -160,14 +159,14 @@
|
|
|
<th class="dashR">휴대전화번호<i class="star"></i></th>
|
|
|
<td class="dashR">
|
|
|
<input type="hidden" name="cellPhnno" data-valid-name="휴대전화"/>
|
|
|
- <select id="firstNumber" name="firstNumber">
|
|
|
+ <select id="firstNo" name="firstNo">
|
|
|
<option value="">선택</option>
|
|
|
<option th:if="${nationalHpNumberList}" th:each="oneData, status : ${nationalHpNumberList}"
|
|
|
th:value="${oneData.cd}" th:text="|${oneData.cd}|"></option>
|
|
|
</select> -
|
|
|
- <input type="text" id="middleNumber" name="middleNumber" class="w50" maxlength="4" required="required"
|
|
|
+ <input type="text" id="middleNo" name="middleNo" class="w50" maxlength="4" required="required"
|
|
|
data-valid-type="numeric" data-valid-name="휴대전화번호"/> -
|
|
|
- <input type="text" id="lastNumber" name="lastNumber" class="w50" maxlength="4" required="required"
|
|
|
+ <input type="text" id="lastNo" name="lastNo" class="w50" maxlength="4" required="required"
|
|
|
data-valid-type="numeric" data-valid-name="휴대전화번호"/>
|
|
|
<button type="button" id="btnCustSendLms" class="btn btn-info btn-lg">LMS전송</button>
|
|
|
<button type="button" id="btnCustCrtfd" class="btn btn-info btn-lg">번호변경</button>
|
|
|
@@ -242,80 +241,79 @@
|
|
|
<li id="tab3" class="tab">
|
|
|
<!-- TAB3 PANELSTYLE -->
|
|
|
<div class="panelStyle">
|
|
|
- <h4>배송지정보</h4>
|
|
|
- <div id="custAddrList" class="ag-theme-balham" style="width: 100%; height: 300px;" ></div>
|
|
|
+ <form id="custAddrForm" name="custAddrForm" action="#" method="post">
|
|
|
+ <h4>배송지정보</h4>
|
|
|
+ <div id="custAddrList" class="ag-theme-balham" style="width: 100%; height: 300px;" ></div>
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width:5%;"/>
|
|
|
+ <col style="width:25%;"/>
|
|
|
+ <col style="width:5%;"/>
|
|
|
+ <col style="width:25%;"/>
|
|
|
+ <col style="width:5%;"/>
|
|
|
+ <col style="width:25%;"/>
|
|
|
+ <col/>
|
|
|
+ </colgroup>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <th>배송지명<i class="star"></i></th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="w200" name="delvAddrNm" maxlength="30" required="required" data-valid-name="배송지명"/>
|
|
|
+ <label class="chkBox">
|
|
|
+ <input type="checkbox" name="defaultYn" value="Y"/>기본
|
|
|
+ </label>
|
|
|
+ </td>
|
|
|
+ <th>수령인<i class="star"></i></th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="w200" name="recipNm" maxlength="10" required="required" data-valid-name="수령인"/>
|
|
|
+ </td>
|
|
|
+ <th>삭제여부</th>
|
|
|
+ <td>
|
|
|
+ <label class="chkBox">
|
|
|
+ <input type="checkbox" name="delYn" value="Y"/>
|
|
|
+ </label>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>전화번호</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="w100" name="telFirstNo" maxlength="4" data-valid-type="numeric"
|
|
|
+ data-valid-name="전화번호"/> -
|
|
|
+ <input type="text" class="w100" name="telMiddleNo" maxlength="4" data-valid-type="numeric"
|
|
|
+ data-valid-name="전화번호"/> -
|
|
|
+ <input type="text" class="w100" name="telLastNo" maxlength="4" data-valid-type="numeric"
|
|
|
+ data-valid-name="전화번호"/>
|
|
|
+ </td>
|
|
|
+ <th>휴대전화번호<i class="star"></i></th>
|
|
|
+ <td colspan="4">
|
|
|
+ <input type="text" class="w100" name="recipFirstNo" maxlength="4" required="required" data-valid-type="numeric"
|
|
|
+ data-valid-name="휴대전화번호"/> -
|
|
|
+ <input type="text" class="w100" name="recipMiddleNo" maxlength="4" required="required" data-valid-type="numeric"
|
|
|
+ data-valid-name="휴대전화번호"/> -
|
|
|
+ <input type="text" class="w100" name="recipLastNo" maxlength="4" required="required" data-valid-type="numeric"
|
|
|
+ data-valid-name="휴대전화번호"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>주소<i class="star"></i></th>
|
|
|
+ <td colspan="5">
|
|
|
+ <input type="text" id="recipZipNo" name="recipZipNo" class="w100" maxlength="10" required="required" data-valid-name="주소"/>
|
|
|
+ <button type="button" class="btn btn-info btn-lg" onclick="fnOpenDaumAddr('custAddrForm');">우편번호찾기</button>
|
|
|
+ <br/>
|
|
|
+ <input type="text" id="recipBaseAddr" name="recipBaseAddr" class="w300" maxlength="50" required="required" data-valid-name="주소"/>
|
|
|
+ <input type="text" id="recipDtlAddr" name="recipDtlAddr" class="w300" maxlength="30" required="required" data-valid-name="상세주소"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <ul class="panelBar">
|
|
|
+ <li class="right">
|
|
|
+ <button type="button" class="btn btn-info btn-lg" id="btnCustAddrNew">신규</button>
|
|
|
+ <button type="button" class="btn btn-success btn-lg" id="btnCustAddrSave">저장</button>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
- <ul class="panelBar">
|
|
|
- <li class="right">
|
|
|
- <button type="button" class="btn btn-info btn-lg" id="btnCustAddrNew">신규</button>
|
|
|
- <button type="button" class="btn btn-success btn-lg" id="btnCustAddrSave">저장</button>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <table class="frmStyle">
|
|
|
- <colgroup>
|
|
|
- <col style="width:5%;"/>
|
|
|
- <col style="width:25%;"/>
|
|
|
- <col style="width:5%;"/>
|
|
|
- <col style="width:25%;"/>
|
|
|
- <col style="width:5%;"/>
|
|
|
- <col style="width:25%;"/>
|
|
|
- <col/>
|
|
|
- </colgroup>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <th>배송지명<i class="star"></i></th>
|
|
|
- <td>
|
|
|
- <input type="text" class="w200" name="delvAddrNm" maxlength="30" required="required" data-valid-name="배송지명"/>
|
|
|
- <label><input type="checkbox" name="defaultYn" value="Y"/>기본</label>
|
|
|
- </td>
|
|
|
-
|
|
|
- <th>이메일</th>
|
|
|
- <td>
|
|
|
- <input type="text" class="w200" name="recipEmail" maxlength="50" data-valid-type="email" data-valid-name="이메일"/>
|
|
|
- </td>
|
|
|
-
|
|
|
- <th>삭제여부</th>
|
|
|
- <td>
|
|
|
- <label><input type="checkbox" name="delYn" value="Y"/></label>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>수령인<i class="star"></i></th>
|
|
|
- <td>
|
|
|
- <input type="text" class="w200" name="recipNm" maxlength="10" required="required" data-valid-name="수령인"/>
|
|
|
- </td>
|
|
|
-
|
|
|
- <th>전화번호</th>
|
|
|
- <td>
|
|
|
- <input type="text" class="w100" name="recipTelno1" maxlength="4" data-valid-type="numeric"
|
|
|
- data-valid-name="전화번호"/> -
|
|
|
- <input type="text" class="w100" name="recipTelno2" maxlength="4" data-valid-type="numeric"
|
|
|
- data-valid-name="전화번호"/> -
|
|
|
- <input type="text" class="w100" name="recipTelno3" maxlength="4" data-valid-type="numeric"
|
|
|
- data-valid-name="전화번호"/>
|
|
|
- </td>
|
|
|
- <th>휴대전화번호<i class="star"></i></th>
|
|
|
- <td>
|
|
|
- <input type="text" class="w100" name="recipPhnno1" maxlength="4" required="required" data-valid-type="numeric"
|
|
|
- data-valid-name="휴대전화번호"/> -
|
|
|
- <input type="text" class="w100" name="recipPhnno2" maxlength="4" required="required" data-valid-type="numeric"
|
|
|
- data-valid-name="휴대전화번호"/> -
|
|
|
- <input type="text" class="w100" name="recipPhnno3" maxlength="4" required="required" data-valid-type="numeric"
|
|
|
- data-valid-name="휴대전화번호"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>주소<i class="star"></i></th>
|
|
|
- <td colspan="5">
|
|
|
- <input type="text" name="recipPostNo" class="w100" maxlength="10" required="required" data-valid-name="주소"/>
|
|
|
- <button type="button" class="btn btn-info btn-lg" onclick="fnOpenDaumAddr('custAddr');">우편번호찾기</button>
|
|
|
- <br/>
|
|
|
- <input type="text" name="recipBaseAddr" class="w300" maxlength="50" required="required" data-valid-name="주소"/>
|
|
|
- <input type="text" name="recipDtlAddr" class="w300" maxlength="30" required="required" data-valid-name="상세주소"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
<!-- //TAB3 PANELSTYLE -->
|
|
|
</li>
|
|
|
<!-- //TAB3 : 배송지정보 -->
|
|
|
@@ -544,8 +542,8 @@
|
|
|
return gagaAgGrid.toDateTimeFormat(params.value);
|
|
|
}
|
|
|
},
|
|
|
- {headerName: "주문자전화번호", field: "orderTelno", width: 120, cellClass: 'text-center'},
|
|
|
- {headerName: "주문자휴대폰", field: "orderPhnno", width: 130, cellClass: 'text-center'},
|
|
|
+ {headerName: "주문자전화번호", field: "ordTelno", width: 120, cellClass: 'text-center'},
|
|
|
+ {headerName: "주문자휴대폰", field: "ordPhnno", width: 130, cellClass: 'text-center'},
|
|
|
{
|
|
|
headerName: "주문상세상태", field: "ordDtlStat", width: 100, cellClass: 'text-center',
|
|
|
valueFormatter: function (params) {
|
|
|
@@ -559,11 +557,11 @@
|
|
|
return '<a href="javascript:void(0);">' + params.value + '</a>';
|
|
|
}
|
|
|
},
|
|
|
- {headerName: "사이즈", field: "sizeCd", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "색상", field: "optCd1", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "사이즈", field: "optCd2", width: 100, cellClass: 'text-center'},
|
|
|
{headerName: "상품명", field: "goodsNm", width: 250, cellClass: 'text-left'},
|
|
|
{headerName: "주문수량", field: "ordQty", width: 100, cellClass: 'text-center'},
|
|
|
{headerName: "판매상품가격", field: "currPrice", width: 100, cellClass: 'text-center'},
|
|
|
- {headerName: "총 판매 상품가격", field: "totCurrPrice", width: 150, cellClass: 'text-center'}
|
|
|
];
|
|
|
|
|
|
// 1:1문의 내역 그리드
|
|
|
@@ -835,11 +833,10 @@
|
|
|
|
|
|
gridCouponOptions.rowSelection = 'multiple';
|
|
|
|
|
|
- // 비밀번호 초기화 버튼
|
|
|
+ // 기본정보 - 비밀번호 초기화 버튼
|
|
|
$('#btnResetPassword').on('click', function () {
|
|
|
- let custInfoForm = '#custInfoForm';
|
|
|
|
|
|
- if (!fnCheckValidationEmail(custInfoForm)) {
|
|
|
+ if (!fnCheckValidationEmail('#custInfoForm')) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
@@ -847,44 +844,43 @@
|
|
|
cancelBtnText: "취소",
|
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function () {
|
|
|
- let jsonData = JSON.stringify($(custInfoForm).serializeObject());
|
|
|
+ let jsonData = JSON.stringify($('#custInfoForm').serializeObject());
|
|
|
gagajf.ajaxJsonSubmit('/customer/password/reset', jsonData, fnSearchCustInfo);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
- // LMS발송 버튼
|
|
|
+ // 기본정보 - LMS발송 버튼
|
|
|
$('#btnCustSendLms').on('click', function () {
|
|
|
- let custInfoForm = '#custInfoForm';
|
|
|
|
|
|
- if (!fnCheckValidationPhnno(custInfoForm)) {
|
|
|
+ if (!fnCheckValidationPhnno('#custInfoForm')) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
let param = {};
|
|
|
- param.elementCellPhnno = custInfoForm + ' input[name=cellPhnno]';
|
|
|
- param.elementCustNo = custInfoForm + ' input[name=custNo]';
|
|
|
+ param.elementCellPhnno = '#custInfoForm input[name=cellPhnno]';
|
|
|
+ param.elementCustNo = '#custInfoForm input[name=custNo]';
|
|
|
+
|
|
|
cfnOpenLmsPopup(param);
|
|
|
});
|
|
|
|
|
|
|
|
|
- // 이메일발송 버튼
|
|
|
+ // 기본정보 - 이메일발송 버튼
|
|
|
$('#btnCustSendEmail').on('click', function () {
|
|
|
- let custInfoForm = '#custInfoForm';
|
|
|
|
|
|
- if (!fnCheckValidationEmail(custInfoForm)) {
|
|
|
+ if (!fnCheckValidationEmail('#custInfoForm')) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
let param = {};
|
|
|
- param.elementEmail = custInfoForm +' input[name=email]';
|
|
|
- param.elementCustNm = custInfoForm +' input[name=custNm]';
|
|
|
- param.elementCustNo = custInfoForm +' input[name=custNo]';
|
|
|
+ param.elementEmail = '#custInfoForm input[name=email]';
|
|
|
+ param.elementCustNo ='#custInfoForm input[name=custNo]';
|
|
|
+
|
|
|
cfnOpenEmailPopup(param);
|
|
|
});
|
|
|
|
|
|
- // 이메일 도메인 선택 이벤트
|
|
|
+ // 기본정보 - 이메일 도메인 선택 이벤트
|
|
|
$('#emailDomainList').on('change', function () {
|
|
|
let domain = $(this).val();
|
|
|
let $emailDomain = $('#emailDomain');
|
|
|
@@ -897,7 +893,7 @@
|
|
|
|
|
|
});
|
|
|
|
|
|
- // 저장 버튼
|
|
|
+ // 기본정보 - 저장버튼
|
|
|
$('#btnCustInfoSave').on('click', function () {
|
|
|
let custInfoFrom = '#custInfoForm';
|
|
|
|
|
|
@@ -928,6 +924,43 @@
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ // 배송지정보 - 신규버튼
|
|
|
+ $('#btnCustAddrNew').on('click', function () {
|
|
|
+ $('#custAddrForm')[0].reset();
|
|
|
+ $('#custAddrForm input[name=custDelvAddrSq]').val('');
|
|
|
+ $('#custAddrForm input[name=recipPhnno]').val('');
|
|
|
+ $('#custAddrForm input[name=recipTelno]').val('');
|
|
|
+ });
|
|
|
+
|
|
|
+ // 배송지정보 - 저장버튼
|
|
|
+ $('#btnCustAddrSave').on('click', function () {
|
|
|
+ if (!gagajf.validation('#custAddrForm'))
|
|
|
+ return false;
|
|
|
+
|
|
|
+ // 전화번호
|
|
|
+ let telFirstNo = $('#custAddrForm input[name=telFirstNo]').val();
|
|
|
+ let telMiddleNo = $('#custAddrForm input[name=telMiddleNo]').val();
|
|
|
+ let telLastNo = $('#custAddrForm input[name=telLastNo]').val();
|
|
|
+ $('#custAddrForm input[name=recipTelno]').val(telFirstNo + '-' + telMiddleNo + '-' + telLastNo);
|
|
|
+
|
|
|
+ // 핸드폰번호 필수값 validation 함수에서 null 체크
|
|
|
+ let recipFirstNo = $('#custAddrForm input[name=recipFirstNo]').val();
|
|
|
+ let recipMiddleNo = $('#custAddrForm input[name=recipMiddleNo]').val();
|
|
|
+ let recipLastNo = $('#custAddrForm input[name=recipLastNo]').val();
|
|
|
+ $('#custAddrForm input[name=recipPhnno]').val(recipFirstNo + '-' + recipMiddleNo + '-' + recipLastNo);
|
|
|
+
|
|
|
+ mcxDialog.confirm("저장하시겠습니까?", {
|
|
|
+ cancelBtnText: "취소",
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function () {
|
|
|
+ gagajf.removeCommaAtNumberFormattedInput('#custAddrForm');
|
|
|
+ let jsonData = JSON.stringify($('#custAddrForm').serializeObject());
|
|
|
+ gagajf.ajaxJsonSubmit('/customer/delivery/addr/save', jsonData, fnSearchDelivery);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
// 쿠폰삭제 버튼
|
|
|
$('#btnCustCouponDelete').on('click', function () {
|
|
|
let removedData = gagaAgGrid.removeRowData(gridCouponOptions);
|
|
|
@@ -965,46 +998,8 @@
|
|
|
cfnCpnPubForCustPopup();
|
|
|
});
|
|
|
|
|
|
- // 배송지정보 신규
|
|
|
- $('#btnCustAddrNew').on('click', function () {
|
|
|
- $('#custAddr')[0].reset();
|
|
|
- $('#custAddr input[name=custDelvAddrSq]').val('');
|
|
|
- $('#custAddr input[name=recipPhnno]').val('');
|
|
|
- $('#custAddr input[name=recipTelno]').val('');
|
|
|
- });
|
|
|
-
|
|
|
- // 배송지정보 저장
|
|
|
- $('#btnCustAddrSave').on('click', function () {
|
|
|
-
|
|
|
- if (!gagajf.validation('#custAddr'))
|
|
|
- return false;
|
|
|
-
|
|
|
- // 전화번호
|
|
|
- let recipTelno1 = $('#custAddr input[name=recipTelno1]').val();
|
|
|
- let recipTelno2 = $('#custAddr input[name=recipTelno2]').val();
|
|
|
- let recipTelno3 = $('#custAddr input[name=recipTelno3]').val();
|
|
|
-
|
|
|
- $('#custAddr input[name=recipTelno]').val(recipTelno1 + '-' + recipTelno2 + '-' + recipTelno3);
|
|
|
|
|
|
|
|
|
- // 핸드폰번호 필수값 validation 함수에서 null 체크
|
|
|
- let recipPhnno1 = $('#custAddr input[name=recipPhnno1]').val();
|
|
|
- let recipPhnno2 = $('#custAddr input[name=recipPhnno2]').val();
|
|
|
- let recipPhnno3 = $('#custAddr input[name=recipPhnno3]').val();
|
|
|
- $('#custAddr input[name=recipPhnno]').val(recipPhnno1 + '-' + recipPhnno2 + '-' + recipPhnno3);
|
|
|
-
|
|
|
- mcxDialog.confirm("저장하시겠습니까?", {
|
|
|
- cancelBtnText: "취소",
|
|
|
- sureBtnText: "확인",
|
|
|
- sureBtnClick: function () {
|
|
|
- gagajf.removeCommaAtNumberFormattedInput('#custAddr');
|
|
|
- let jsonData = JSON.stringify($('#custAddr').serializeObject());
|
|
|
- gagajf.ajaxJsonSubmit('/customer/delivery/addr/save', jsonData, fnSearchDelivery);
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
// 회원접촉이력 저장
|
|
|
$('#btnSaveContact').on('click', function () {
|
|
|
if (!gagajf.validation('#custContact')) {
|
|
|
@@ -1062,34 +1057,34 @@
|
|
|
return;
|
|
|
|
|
|
if (!gagajf.isNull(event.data)) {
|
|
|
- $('#custAddr input[name=custDelvAddrSq]').val(event.data.custDelvAddrSq);
|
|
|
- $('#custAddr input[name=delvAddrNm]').val(event.data.delvAddrNm);
|
|
|
- $('#custAddr input[name=recipEmail]').val(event.data.recipEmail);
|
|
|
- $('#custAddr input[name=recipNm]').val(event.data.recipNm);
|
|
|
+ $('#custAddrForm input[name=custDelvAddrSq]').val(event.data.custDelvAddrSq);
|
|
|
+ $('#custAddrForm input[name=delvAddrNm]').val(event.data.delvAddrNm);
|
|
|
+ $('#custAddrForm input[name=recipEmail]').val(event.data.recipEmail);
|
|
|
+ $('#custAddrForm input[name=recipNm]').val(event.data.recipNm);
|
|
|
|
|
|
if (!gagajf.isNull(event.data.recipPhnno)) {
|
|
|
- let recipPhnno = event.data.recipPhnno.split("-");
|
|
|
- $('#custAddr input[name=recipPhnno1]').val(recipPhnno[0]);
|
|
|
- $('#custAddr input[name=recipPhnno2]').val(recipPhnno[1]);
|
|
|
- $('#custAddr input[name=recipPhnno3]').val(recipPhnno[2]);
|
|
|
+ let phnNoSplit = event.data.recipPhnno.split("-");
|
|
|
+ $('#custAddrForm input[name=recipFirstNo]').val(phnNoSplit[0]);
|
|
|
+ $('#custAddrForm input[name=recipMiddleNo]').val(phnNoSplit[1]);
|
|
|
+ $('#custAddrForm input[name=recipLastNo]').val(phnNoSplit[2]);
|
|
|
}
|
|
|
|
|
|
if (!gagajf.isNull(event.data.recipTelno)) {
|
|
|
- let recipTelno = event.data.recipTelno.split("-");
|
|
|
- $('#custAddr input[name=recipTelno1]').val(recipTelno[0]);
|
|
|
- $('#custAddr input[name=recipTelno2]').val(recipTelno[1]);
|
|
|
- $('#custAddr input[name=recipTelno3]').val(recipTelno[2]);
|
|
|
+ let telNoSplit = event.data.recipTelno.split("-");
|
|
|
+ $('#custAddrForm input[name=telFirstNo]').val(telNoSplit[0]);
|
|
|
+ $('#custAddrForm input[name=telMiddleNo]').val(telNoSplit[1]);
|
|
|
+ $('#custAddrForm input[name=telLiastNo]').val(telNoSplit[2]);
|
|
|
}
|
|
|
|
|
|
- $('#custAddr input[name=recipPostNo]').val(event.data.recipPostNo);
|
|
|
- $('#custAddr input[name=recipBaseAddr]').val(event.data.recipBaseAddr);
|
|
|
- $('#custAddr input[name=recipDtlAddr]').val(event.data.recipDtlAddr);
|
|
|
+ $('#custAddrForm input[name=recipZipNo]').val(event.data.recipZipNo);
|
|
|
+ $('#custAddrForm input[name=recipBaseAddr]').val(event.data.recipBaseAddr);
|
|
|
+ $('#custAddrForm input[name=recipDtlAddr]').val(event.data.recipDtlAddr);
|
|
|
|
|
|
let defaultYn = event.data.defaultYn === 'Y' ? true : false;
|
|
|
let delYn = event.data.delYn === 'Y' ? true : false;
|
|
|
|
|
|
- $('#custAddr input:checkbox[name=defaultYn]').prop('checked', defaultYn);
|
|
|
- $('#custAddr input:checkbox[name=delYn]').prop('checked', delYn);
|
|
|
+ $('#custAddrForm input:checkbox[name=defaultYn]').prop('checked', defaultYn);
|
|
|
+ $('#custAddrForm input:checkbox[name=delYn]').prop('checked', delYn);
|
|
|
|
|
|
}
|
|
|
};
|
|
|
@@ -1221,9 +1216,10 @@
|
|
|
$('#homeDtlAddr').focus();
|
|
|
}
|
|
|
|
|
|
- if (id === 'custAddr') {
|
|
|
- $('#recipPostNo').val(data.zonecode);
|
|
|
+ if (id === 'custAddrForm') {
|
|
|
+ $('#recipZipNo').val(data.zonecode);
|
|
|
$('#recipBaseAddr').val(cfnGetDaumRoadAddr(data));
|
|
|
+ $('#recipDtlAddr').focus();
|
|
|
}
|
|
|
|
|
|
cfnCloseDaumAddr();
|
|
|
@@ -1238,10 +1234,10 @@
|
|
|
var fnCheckValidationPhnno = function (formId) {
|
|
|
let result = true;
|
|
|
|
|
|
- let firstNumber = $(formId + ' select[name=firstNumber]').val();
|
|
|
- let middleNumber = $(formId + ' input[name=middleNumber]').val();
|
|
|
- let lastNumber = $(formId + ' input[name=lastNumber]').val();
|
|
|
- let cellPhnno = firstNumber + '-' + middleNumber + '-' + lastNumber;
|
|
|
+ let firstNo = $(formId + ' select[name=firstNo]').val();
|
|
|
+ let middleNo = $(formId + ' input[name=middleNo]').val();
|
|
|
+ let lastNo = $(formId + ' input[name=lastNo]').val();
|
|
|
+ let cellPhnno = firstNo + '-' + middleNo + '-' + lastNo;
|
|
|
$(formId + ' input[name=cellPhnno]').val(cellPhnno);
|
|
|
|
|
|
if (!gagajf.testRegexp($(formId + ' input[name=cellPhnno]'), /^(01(?:0|1|[6-9])-(?:\d{3}|\d{4})-\d{4})$/)) {
|
|
|
@@ -1323,9 +1319,9 @@
|
|
|
var fnDisplayCellPhnno = function (cellPhnno) {
|
|
|
if (!gagajf.isNull(cellPhnno)) {
|
|
|
let cellPhSplit = cellPhnno.split("-");
|
|
|
- $('#firstNumber').val(cellPhSplit[0]);
|
|
|
- $('#middleNumber').val(cellPhSplit[1]);
|
|
|
- $('#lastNumber').val(cellPhSplit[2]);
|
|
|
+ $('#firstNo').val(cellPhSplit[0]);
|
|
|
+ $('#middleNo').val(cellPhSplit[1]);
|
|
|
+ $('#lastNo').val(cellPhSplit[2]);
|
|
|
}
|
|
|
};
|
|
|
|