|
@@ -164,6 +164,7 @@
|
|
|
<input type="text" name="maskingCellPhnno" class="w130" readonly="readonly"/>
|
|
<input type="text" name="maskingCellPhnno" class="w130" readonly="readonly"/>
|
|
|
<button type="button" id="btnCustSendLms" class="btn btn-info btn-lg">LMS전송</button>
|
|
<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>
|
|
<button type="button" id="btnCustCrtfd" class="btn btn-info btn-lg">번호변경</button>
|
|
|
|
|
+ <button type="button" class="btn btn-info btn-lg" id="btnInitializeCI">CI초기화</button>
|
|
|
</td>
|
|
</td>
|
|
|
<th class="dashR">SMS수신여부<em class="required" title="필수"></em></th>
|
|
<th class="dashR">SMS수신여부<em class="required" title="필수"></em></th>
|
|
|
<td class="dashR">
|
|
<td class="dashR">
|
|
@@ -194,6 +195,25 @@
|
|
|
<label class="rdoBtn"><input type="radio" name="emailAgreeYn" value="N"/>미수신</label>
|
|
<label class="rdoBtn"><input type="radio" name="emailAgreeYn" value="N"/>미수신</label>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th class="dashR">환불계좌</th>
|
|
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
|
|
+ <div id="divRefundAccountTxt" style="display: none;">
|
|
|
|
|
+ <span id="refundAccount"></span>
|
|
|
|
|
+ <button type="button" class="btn btn-info btn-lg" id="btnDeleteRefundAccount">등록계좌삭제</button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div id="divRefundAccountInput" style="display: none;">
|
|
|
|
|
+ <select name="bankCd">
|
|
|
|
|
+ <option value="">[은행 선택]</option>
|
|
|
|
|
+ <option th:if="${bankList}" th:each="oneData, status : ${bankList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] '+oneData.cdNm}"></option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <input type="text" name="accountNo" class="w200" placeholder="계좌번호" maxlength="20" data-valid-type="numeric"/>
|
|
|
|
|
+ <input type="text" name="accountNm" class="w100" placeholder="예금주" maxlength="10"/>
|
|
|
|
|
+ <button type="button" class="btn btn-info btn-lg" id="btnCertifyRefundAccount">계좌인증</button>
|
|
|
|
|
+ <button type="button" class="btn btn-info btn-lg" id="btnRegisterRefundAccount">계좌등록</button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
<th class="dashR">가입일시</th>
|
|
<th class="dashR">가입일시</th>
|
|
|
<td class="dashR" id="joinDt" name="joinDt"></td>
|
|
<td class="dashR" id="joinDt" name="joinDt"></td>
|
|
@@ -1270,13 +1290,165 @@
|
|
|
fnDisplayCellPhnno(data.cellPhnno, data.maskingCellPhnno);
|
|
fnDisplayCellPhnno(data.cellPhnno, data.maskingCellPhnno);
|
|
|
fnDisplayManaged(data.managedRsn);
|
|
fnDisplayManaged(data.managedRsn);
|
|
|
|
|
|
|
|
- orgData = data; // 기존 데이터
|
|
|
|
|
-
|
|
|
|
|
|
|
+ orgData = data; // 기존 데이터
|
|
|
|
|
+
|
|
|
|
|
+ // 고객계좌정보 조회
|
|
|
|
|
+ fnGetCustAccountInfo();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // 고객계좌정보 조회
|
|
|
|
|
+ var accountCertify = false;
|
|
|
|
|
+ var fnGetCustAccountInfo = function() {
|
|
|
|
|
+ accountCertify = false;
|
|
|
|
|
+
|
|
|
|
|
+ $.get('/customer/account/info/' + custNo, function(result) {
|
|
|
|
|
+ if (!gagajf.isNull(result)) {
|
|
|
|
|
+ let refundAccount = result.bankNm + ' / ' + result.accountNo + ' / ' + result.accountNm
|
|
|
|
|
+ + ' (' + result.regNm + ', ' + result.regDt + ')';
|
|
|
|
|
+ $('#refundAccount').text(refundAccount);
|
|
|
|
|
+
|
|
|
|
|
+ $('#divRefundAccountTxt').show();
|
|
|
|
|
+ $('#divRefundAccountInput').hide();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $('#custInfoForm select[name=bankCd]').val('');
|
|
|
|
|
+ $('#custInfoForm input[name=accountNo]').val('');
|
|
|
|
|
+ $('#custInfoForm input[name=accountNm]').val('');
|
|
|
|
|
+ $('#custInfoForm select[name=bankCd]').attr('disabled', false);
|
|
|
|
|
+ $('#custInfoForm input[name=accountNo]').attr('readonly', false);
|
|
|
|
|
+ $('#custInfoForm input[name=accountNm]').attr('readonly', false);
|
|
|
|
|
+ $('#divRefundAccountTxt').hide();
|
|
|
|
|
+ $('#divRefundAccountInput').show();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 등록계좌삭제
|
|
|
|
|
+ $('#btnDeleteRefundAccount').on('click', function () {
|
|
|
|
|
+ mcxDialog.confirm("등록한 계좌를 삭제하시겠습니까?", {
|
|
|
|
|
+ cancelBtnText: "취소",
|
|
|
|
|
+ sureBtnText: "확인",
|
|
|
|
|
+ sureBtnClick: function() {
|
|
|
|
|
+ gagajf.ajaxJsonSubmit('/customer/account/delete/' + custNo, null, function() {
|
|
|
|
|
+ // 고객계좌정보 조회
|
|
|
|
|
+ fnGetCustAccountInfo();
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // 은행계좌 유효성체크
|
|
|
|
|
+ var fnIsRefundAccountValidation = function () {
|
|
|
|
|
+ let bankCd = $('#custInfoForm select[name=bankCd]').val();
|
|
|
|
|
+ let accountNo = $('#custInfoForm input[name=accountNo]').val();
|
|
|
|
|
+ let accountNm = $('#custInfoForm input[name=accountNm]').val();
|
|
|
|
|
+
|
|
|
|
|
+ if (gagajf.isNull(bankCd)) {
|
|
|
|
|
+ mcxDialog.alertC('은행을 선택해 주세요.',{
|
|
|
|
|
+ sureBtnText: "확인",
|
|
|
|
|
+ sureBtnClick: function() {
|
|
|
|
|
+ $('#custInfoForm select[name=bankCd]').focus();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (gagajf.isNull(accountNo)) {
|
|
|
|
|
+ mcxDialog.alertC('계좌번호를 입력해 주세요.',{
|
|
|
|
|
+ sureBtnText: "확인",
|
|
|
|
|
+ sureBtnClick: function() {
|
|
|
|
|
+ $('#custInfoForm input[name=accountNo]').focus();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (gagajf.isNull(accountNm)) {
|
|
|
|
|
+ mcxDialog.alertC('예금주를 입력해 주세요.',{
|
|
|
|
|
+ sureBtnText: "확인",
|
|
|
|
|
+ sureBtnClick: function() {
|
|
|
|
|
+ $('#custInfoForm input[name=accountNm]').focus();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 계좌인증
|
|
|
|
|
+ $('#btnCertifyRefundAccount').on('click', function () {
|
|
|
|
|
+ if (!fnIsRefundAccountValidation()) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ let custInfo = {};
|
|
|
|
|
+ custInfo.custNo = custNo;
|
|
|
|
|
+ custInfo.bankCd = $('#custInfoForm select[name=bankCd]').val();
|
|
|
|
|
+ custInfo.accountNo = $('#custInfoForm input[name=accountNo]').val();
|
|
|
|
|
+ custInfo.accountNm = $('#custInfoForm input[name=accountNm]').val();
|
|
|
|
|
+ let jsonData = JSON.stringify(custInfo);
|
|
|
|
|
+ gagajf.ajaxJsonSubmit('/customer/account/check', jsonData, function(result) {
|
|
|
|
|
+ let msg = '계좌가 인증되었습니다.';
|
|
|
|
|
+ if (result.isValid) { // 유효하면
|
|
|
|
|
+ $('#custInfoForm select[name=bankCd]').attr('disabled', true);
|
|
|
|
|
+ $('#custInfoForm input[name=accountNo]').attr('readonly', true);
|
|
|
|
|
+ $('#custInfoForm input[name=accountNm]').attr('readonly', true);
|
|
|
|
|
+ accountCertify = true;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ accountCertify = false;
|
|
|
|
|
+ msg = '인증에 실패했습니다. 은행/계좌번호/예금주를 다시 확인해 주세요.';
|
|
|
|
|
+ }
|
|
|
|
|
+ mcxDialog.alert(msg);
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // 계좌등록
|
|
|
|
|
+ $('#btnRegisterRefundAccount').on('click', function () {
|
|
|
|
|
+ if (!fnIsRefundAccountValidation()) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (!accountCertify) {
|
|
|
|
|
+ mcxDialog.alert("계좌인증 후 등록해 주세요.");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ mcxDialog.confirm("계좌를 등록하시겠습니까?", {
|
|
|
|
|
+ cancelBtnText: "취소",
|
|
|
|
|
+ sureBtnText: "확인",
|
|
|
|
|
+ sureBtnClick: function() {
|
|
|
|
|
+ let custInfo = {};
|
|
|
|
|
+ custInfo.custNo = custNo;
|
|
|
|
|
+ custInfo.bankCd = $('#custInfoForm select[name=bankCd]').val();
|
|
|
|
|
+ custInfo.accountNm = $('#custInfoForm input[name=accountNm]').val();
|
|
|
|
|
+ custInfo.accountNo = $('#custInfoForm input[name=accountNo]').val();
|
|
|
|
|
+ let jsonData = JSON.stringify(custInfo);
|
|
|
|
|
+ gagajf.ajaxJsonSubmit('/customer/account/create', jsonData, function() {
|
|
|
|
|
+ // 고객계좌정보 조회
|
|
|
|
|
+ fnGetCustAccountInfo();
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // CI초기화
|
|
|
|
|
+ $('#btnInitializeCI').on('click', function () {
|
|
|
|
|
+ mcxDialog.confirm("휴대전화번호와 CI 값이 삭제됩니다. 계속하시겠습니까?", {
|
|
|
|
|
+ cancelBtnText: "취소",
|
|
|
|
|
+ sureBtnText: "확인",
|
|
|
|
|
+ sureBtnClick: function() {
|
|
|
|
|
+ let custInfo = {};
|
|
|
|
|
+ custInfo.custNo = custNo;
|
|
|
|
|
+ let jsonData = JSON.stringify(custInfo);
|
|
|
|
|
+ gagajf.ajaxJsonSubmit('/customer/cellphnno/delete', jsonData, function() {
|
|
|
|
|
+ $('#custInfoForm input[name=cellPhnno]').val('');
|
|
|
|
|
+ $('#custInfoForm input[name=maskingCellPhnno]').val('');
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
$('#custOrderListFrom select[name=pageSize]').on('click', function () {
|
|
$('#custOrderListFrom select[name=pageSize]').on('click', function () {
|
|
|
fnSearchOrder();
|
|
fnSearchOrder();
|
|
|
});
|
|
});
|
|
@@ -1576,7 +1748,7 @@
|
|
|
let popupWidth = window.screen.width;
|
|
let popupWidth = window.screen.width;
|
|
|
let popupHeight = window.screen.height;
|
|
let popupHeight = window.screen.height;
|
|
|
window.open(actionUrl);
|
|
window.open(actionUrl);
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
$(document).ready(function () {
|
|
|
|
|
|