|
|
@@ -242,6 +242,7 @@
|
|
|
<!-- TAB3 PANELSTYLE -->
|
|
|
<div class="panelStyle">
|
|
|
<form id="custAddrForm" name="custAddrForm" action="#" method="post">
|
|
|
+ <input type="hidden" name="custDelvAddrSq"/>
|
|
|
<input type="hidden" name="custNo" th:value="${custNo}"/>
|
|
|
<h4>배송지정보</h4>
|
|
|
<div id="custAddrList" class="ag-theme-balham" style="width: 100%; height: 300px;" ></div>
|
|
|
@@ -334,9 +335,6 @@
|
|
|
<h4>쿠폰 내역</h4>
|
|
|
<div id="custCouponList" class="ag-theme-balham" style="width: 100%; height: 510px;" ></div>
|
|
|
<ul class="panelBar">
|
|
|
- <li class="left">
|
|
|
- <button type="button" id="btnCustCouponDelete" class="btn btn-danger btn-lg">쿠폰삭제</button>
|
|
|
- </li>
|
|
|
<li class="right">
|
|
|
<button type="button" id="btnCustCouponCreate" class="btn btn-info btn-lg" >쿠폰발급</button>
|
|
|
</li>
|
|
|
@@ -350,20 +348,23 @@
|
|
|
<li id="tab5" class="tab">
|
|
|
<!-- TAB5 PANELSTYLE -->
|
|
|
<div class="panelStyle">
|
|
|
+ <form id="custPointForm" name="custPointForm" action="#" method="post">
|
|
|
<h4>포인트 내역</h4>
|
|
|
<table class="tableStyle">
|
|
|
<colgroup>
|
|
|
+ <col style="width:15%;"/>
|
|
|
+ <col style="width:15%;"/>
|
|
|
+ <col style="width:15%;"/>
|
|
|
<col style="width:20%;"/>
|
|
|
<col style="width:20%;"/>
|
|
|
- <col style="width:20%;"/>
|
|
|
- <col style="width:20%;"/>
|
|
|
- <col style="width:20%;"/>
|
|
|
+ <col style="width:25%;"/>
|
|
|
</colgroup>
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<th>가용포인트</th>
|
|
|
- <th>누적 포인트</th>
|
|
|
+ <th>누적포인트</th>
|
|
|
<th>사용포인트</th>
|
|
|
+ <th>소멸포인트</th>
|
|
|
<th>적립예정포인트</th>
|
|
|
<th>소멸예정포인트(30일)</th>
|
|
|
</tr>
|
|
|
@@ -371,6 +372,7 @@
|
|
|
<td name="availPntAmt">0 P</td>
|
|
|
<td name="accumPntAmt">0 P</td>
|
|
|
<td name="usePntAmt">0 P</td>
|
|
|
+ <td name="expirePntAmt">0 P</td>
|
|
|
<td name="expectedPntAmt">0 P</td>
|
|
|
<td name="expectedExpirePntAmt">0 P</td>
|
|
|
</tr>
|
|
|
@@ -383,6 +385,7 @@
|
|
|
<button type="button" id="btnCustPointCreate" class="btn btn-info btn-lg">포인트부여</button>
|
|
|
</li>
|
|
|
</ul>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
<!-- //TAB5 PANELSTYLE -->
|
|
|
</li>
|
|
|
@@ -905,6 +908,18 @@
|
|
|
cfnOpenLmsPopup(param);
|
|
|
});
|
|
|
|
|
|
+ // 기본정보 - 번호변경
|
|
|
+ $('#btnCustCrtfd').on('click', function () {
|
|
|
+ if (!fnCheckValidationPhnno('#custInfoForm')) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ let elementCellPhnno = '#custInfoForm input[name=cellPhnno]';
|
|
|
+ let elementCustNo = '#custInfoForm input[name=custNo]';
|
|
|
+
|
|
|
+ const actionUrl = '/customer/cellphone/change/popup/form?elementCellPhnno=' + encodeURIComponent(elementCellPhnno)
|
|
|
+ + '&elementCustNo=' + encodeURIComponent(elementCustNo)
|
|
|
+ cfnOpenModalPopup(actionUrl, 'popupCellphoneForm');
|
|
|
+ });
|
|
|
|
|
|
// 기본정보 - 이메일발송 버튼
|
|
|
$('#btnCustSendEmail').on('click', function () {
|
|
|
@@ -970,6 +985,7 @@
|
|
|
$('#custAddrForm input[name=custDelvAddrSq]').val('');
|
|
|
$('#custAddrForm input[name=recipPhnno]').val('');
|
|
|
$('#custAddrForm input[name=recipTelno]').val('');
|
|
|
+ fnDisplayDeliveryCheckBox('N', 'N');
|
|
|
});
|
|
|
|
|
|
// 배송지정보 - 저장버튼
|
|
|
@@ -1039,7 +1055,6 @@
|
|
|
});
|
|
|
|
|
|
|
|
|
-
|
|
|
// 회원접촉이력 저장
|
|
|
$('#btnSaveContact').on('click', function () {
|
|
|
if (!gagajf.validation('#custContactHstForm')) {
|
|
|
@@ -1119,12 +1134,7 @@
|
|
|
$('#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;
|
|
|
-
|
|
|
- $('#custAddrForm input:checkbox[name=defaultYn]').prop('checked', defaultYn);
|
|
|
- $('#custAddrForm input:checkbox[name=delYn]').prop('checked', delYn);
|
|
|
-
|
|
|
+ fnDisplayDeliveryCheckBox(event.data.defaultYn, event.data.delYn);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -1176,16 +1186,11 @@
|
|
|
gagaAgGrid.fetch(actionUrl, gridOrderOptions);
|
|
|
};
|
|
|
|
|
|
- // 1:1문의 내역 조회
|
|
|
- var fnSearchCounsel = function () {
|
|
|
- const actionUrl = "/customer/counsel/list/" + custNo;
|
|
|
- gagaAgGrid.fetch(actionUrl, gridCounselOptions);
|
|
|
- };
|
|
|
-
|
|
|
- // 상품문의 내역 조회
|
|
|
- var fnSearchGoodsQna = function () {
|
|
|
- const actionUrl = "/customer/goodsQna/list/" + custNo;
|
|
|
- gagaAgGrid.fetch(actionUrl, gridGoodsQnaOptions);
|
|
|
+ // 배송지 조회
|
|
|
+ var fnSearchDelivery = function () {
|
|
|
+ const actionUrl = "/customer/delivery/list/" + custNo;
|
|
|
+ gagaAgGrid.fetch(actionUrl, gridAddrOptions);
|
|
|
+ $('#btnCustAddrNew').trigger('click');
|
|
|
};
|
|
|
|
|
|
// 쿠폰내역 조회
|
|
|
@@ -1199,11 +1204,12 @@
|
|
|
$.get('/customer/point/' + custNo
|
|
|
, function (data) {
|
|
|
if (!gagajf.isNull(data)) {
|
|
|
- $('#custPoint td[name=availPntAmt]').text(data.availPntAmt.addComma() + ' P');
|
|
|
- $('#custPoint td[name=accumPntAmt]').text(data.accumPntAmt.addComma() + ' P');
|
|
|
- $('#custPoint td[name=usePntAmt]').text(data.usePntAmt.addComma() + ' P');
|
|
|
- $('#custPoint td[name=expectedPntAmt]').text(data.expectedPntAmt.addComma() + ' P');
|
|
|
- $('#custPoint td[name=expectedExpirePntAmt]').text(data.expirePntAmt.addComma() + ' P');
|
|
|
+ $('#custPointForm td[name=availPntAmt]').text(data.rmPntAmt.addComma() + ' P');
|
|
|
+ $('#custPointForm td[name=accumPntAmt]').text(data.gvPntAmt.addComma() + ' P');
|
|
|
+ $('#custPointForm td[name=usePntAmt]').text(data.usPntAmt.addComma() + ' P');
|
|
|
+ $('#custPointForm td[name=expirePntAmt]').text(data.expirePntAmt.addComma() + ' P');
|
|
|
+ $('#custPointForm td[name=expectedPntAmt]').text(data.expectedPntAmt.addComma() + ' P');
|
|
|
+ $('#custPointForm td[name=expectedExpirePntAmt]').text(data.expectedExpirePntAmt.addComma() + ' P');
|
|
|
}
|
|
|
});
|
|
|
const actionUrl = "/customer/point/list/" + custNo;
|
|
|
@@ -1222,29 +1228,31 @@
|
|
|
gagaAgGrid.fetch(actionUrl, gridReviewOptions);
|
|
|
};
|
|
|
|
|
|
- // 회원등급변경이력 조회
|
|
|
- var fnSearchChangeGrade = function () {
|
|
|
- const actionUrl = "/customer/change/grade/list/" + custNo;
|
|
|
- gagaAgGrid.fetch(actionUrl, gridGradeOptions);
|
|
|
+ // 1:1문의 내역 조회
|
|
|
+ var fnSearchCounsel = function () {
|
|
|
+ const actionUrl = "/customer/counsel/list/" + custNo;
|
|
|
+ gagaAgGrid.fetch(actionUrl, gridCounselOptions);
|
|
|
};
|
|
|
|
|
|
- // 주소정보 조회
|
|
|
- var fnSearchDelivery = function () {
|
|
|
- const actionUrl = "/customer/delivery/list/" + custNo;
|
|
|
- gagaAgGrid.fetch(actionUrl, gridAddrOptions);
|
|
|
- $('#btnCustAddrNew').trigger('click');
|
|
|
+ // 상품문의 내역 조회
|
|
|
+ var fnSearchGoodsQna = function () {
|
|
|
+ const actionUrl = "/customer/goodsQna/list/" + custNo;
|
|
|
+ gagaAgGrid.fetch(actionUrl, gridGoodsQnaOptions);
|
|
|
};
|
|
|
|
|
|
// 회원접촉이력 조회
|
|
|
var fnSearchContact = function () {
|
|
|
- $('#custContactHstForm select[name=contactType]').val('');
|
|
|
- $('#custContactHstForm select[name=contactMethod]').val('');
|
|
|
- $('#custContactHstForm textarea[name=contactContents]').val('');
|
|
|
-
|
|
|
+ $('#custContactHstForm')[0].reset();
|
|
|
const actionUrl = "/customer/contact/list/" + custNo;
|
|
|
gagaAgGrid.fetch(actionUrl, gridContactOptions);
|
|
|
};
|
|
|
|
|
|
+ // 회원등급변경이력 조회
|
|
|
+ var fnSearchChangeGrade = function () {
|
|
|
+ const actionUrl = "/customer/change/grade/list/" + custNo;
|
|
|
+ gagaAgGrid.fetch(actionUrl, gridGradeOptions);
|
|
|
+ };
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* DAUM을 이용한 우편번호 팝업 레이어
|
|
|
@@ -1434,8 +1442,36 @@
|
|
|
yearRange: (currentYear - 100) + ' : ' + (currentYear - 14),
|
|
|
defaultDate: $birthYmd.val()
|
|
|
});
|
|
|
+ };
|
|
|
+
|
|
|
+ // 배송지 기본,삭제 체크박스 설정
|
|
|
+ var fnDisplayDeliveryCheckBox = function (defaultYn, delYn) {
|
|
|
+ let $defaultYn = $('#custAddrForm input:checkbox[name=defaultYn]');
|
|
|
+ let $delYn = $('#custAddrForm input:checkbox[name=delYn]');
|
|
|
+ let defaultBoolean;
|
|
|
+ let delBoolean;
|
|
|
+
|
|
|
+ if (defaultYn === 'Y') {
|
|
|
+ defaultBoolean = true;
|
|
|
+ $defaultYn.parent().addClass('checked');
|
|
|
+ } else {
|
|
|
+ defaultBoolean = false;
|
|
|
+ $defaultYn.parent().removeClass('checked');
|
|
|
+ }
|
|
|
+
|
|
|
+ if (delYn === 'Y') {
|
|
|
+ delBoolean = true;
|
|
|
+ $delYn.parent().addClass('checked');
|
|
|
+ } else {
|
|
|
+ delBoolean = false;
|
|
|
+ $delYn.parent().removeClass('checked');
|
|
|
+ }
|
|
|
+
|
|
|
+ $defaultYn.prop('checked', defaultBoolean);
|
|
|
+ $delYn.prop('checked', delBoolean);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
$('#btnLogin').on('click', function () {
|
|
|
let custId = $('span[name=custId]').text();
|
|
|
const actionUrl = _frontUrl + '/customer/front/login?custId=' + custId;
|