|
|
@@ -7,11 +7,11 @@
|
|
|
* @desc : 회원 상세 팝업 Page
|
|
|
*============================================================================
|
|
|
* STYLE24
|
|
|
- * Copyright(C) 2020 TSIT, All rights reserved.
|
|
|
+ * Copyright(C) 2021 TSIT, All rights reserved.
|
|
|
*============================================================================
|
|
|
* VER DATE AUTHOR DESCRIPTION
|
|
|
* === =========== ========== =============================================
|
|
|
- * 1.0 2020.01.18 jsshin 최초 작성
|
|
|
+ * 1.0 2021.01.18 jsshin 최초 작성
|
|
|
*******************************************************************************
|
|
|
-->
|
|
|
<div class="modalPopup" id="popupCustomerDetail" data-width="1600">
|
|
|
@@ -37,7 +37,7 @@
|
|
|
<tbody>
|
|
|
<th>이름</th>
|
|
|
<td>
|
|
|
- <span id="custNm" name="custNm"></span>
|
|
|
+ <span id="spanCustNm" name="spanCustNm"></span>
|
|
|
<span id="managedRsnNm" name="managedRsnNm" class="infoTxt cRed h5"></span>
|
|
|
</td>
|
|
|
<th>아이디</th>
|
|
|
@@ -80,142 +80,147 @@
|
|
|
<li class="tab on" id="tab1">
|
|
|
<!-- TAB1 PANELSTYLE -->
|
|
|
<div class="panelStyle">
|
|
|
- <h4>기본정보</h4>
|
|
|
- <table class="frmStyle">
|
|
|
- <colgroup>
|
|
|
- <col style="width:10%;"/>
|
|
|
- <col style="width:40%;"/>
|
|
|
- <col style="width:10%;"/>
|
|
|
- <col/>
|
|
|
- </colgroup>
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <th class="dashR">회원구분<i class="star"></i></th>
|
|
|
- <td class="dashR">
|
|
|
- <select id="custGb" name="custGb">
|
|
|
- <option th:if="${custGbList}" th:each="oneData, status : ${custGbList}" th:value="${oneData.cd}"
|
|
|
- th:text="|${oneData.cdNm}|"></option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <th class="dashR">회원등급<i class="star"></i></th>
|
|
|
- <td class="dashR">
|
|
|
- <select id="custGrade" name="custGrade">
|
|
|
- <option th:if="${custGradeList}" th:each="oneData, status : ${custGradeList}" th:value="${oneData.cd}"
|
|
|
- th:text="|${oneData.cdNm}|"></option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="dashR">관리대상</th>
|
|
|
- <td class="dashR">
|
|
|
- <select id="managedRsn" name="managedRsn">
|
|
|
- <option value="">일반</option>
|
|
|
- <option th:if="${managedRsnList}" th:each="oneData, status : ${managedRsnList}" th:value="${oneData.cd}"
|
|
|
- th:text="|${oneData.cdNm}|"></option>
|
|
|
- </select>
|
|
|
- <span class="infoTxt cRed h5" id="managedRsnDp" name="managedRsnDp"></span>
|
|
|
- </td>
|
|
|
- <th class="dashR">관리대상 지정 날짜</th>
|
|
|
- <td class="dashR" id="managedDt" name="managedDt">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="dashR">관리대상 지정 사유</th>
|
|
|
- <td class="dashR" colspan="3">
|
|
|
- <input type="text" id="managedDtlRsn" name="managedDtlRsn" class="w600" />
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="dashR">비밀번호</th>
|
|
|
- <td class="dashR" colspan="3">
|
|
|
- *******
|
|
|
- <button type="button" id="btnResetPassword" class="btn btn-info btn-lg">초기화</button>
|
|
|
- <span class="infoTxt cBlue">
|
|
|
- <i class="fa fa-info-circle"></i>회원에게 임시비밀번호를 발송합니다. (이메일, 알림톡)
|
|
|
- </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="dashR">생년월일</th>
|
|
|
- <td class="dashR">
|
|
|
- <input type="text" id="birthYmd" name="birthYmd" class="schDate w100" data-valid-name="생년월일"/>
|
|
|
- </td>
|
|
|
- <th class="dashR">성별</th>
|
|
|
- <td class="dashR" id="sexGb" name="sexGb"></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="dashR">자택주소</th>
|
|
|
- <td class="dashR" colspan="3">
|
|
|
- <input type="text" id="homePostNo" name="homePostNo" class="w100" readonly="readonly"/>
|
|
|
- <button type="button" class="btn btn-info btn-lg" onclick="fnOpenDaumAddr('custInfo');">우편번호찾기</button>
|
|
|
- <br/>
|
|
|
- <input type="text" id="homeBaseAddr" name="homeBaseAddr" class="w300" readonly="readonly"/>
|
|
|
- <input type="text" id="homeDtlAddr" name="homeDtlAddr" class="w300"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="dashR">휴대전화번호<i class="star"></i></th>
|
|
|
- <td class="dashR">
|
|
|
- <select id="cellPhnno1" name="cellPhnno1">
|
|
|
- <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="cellPhnno2" name="cellPhnno2" class="w50" maxlength="4" required="required"
|
|
|
- data-valid-type="numeric" data-valid-name="휴대전화번호"/> -
|
|
|
- <input type="text" id="cellPhnno3" name="cellPhnno3" 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>
|
|
|
- </td>
|
|
|
- <th class="dashR">SMS수신여부<i class="star"></i></th>
|
|
|
- <td class="dashR">
|
|
|
- <label class="rdoBtn"><input type="radio" name="smsAgreeYn" value="Y"/>수신</label>
|
|
|
- <label class="rdoBtn"><input type="radio" name="smsAgreeYn" value="N"/>미수신</label>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="dashR">이메일<i class="star"></i></th>
|
|
|
- <td class="dashR">
|
|
|
- <input type="text" id="email1" name="email1" class="w300"/>
|
|
|
- @
|
|
|
- <input type="text" id="email2" name="email2" class="w150"/>
|
|
|
- <select name="emailDomain">
|
|
|
- <option value="">선택하세요</option>
|
|
|
- <option th:if="${emailDomainList}" th:each="oneData, status : ${emailDomainList}" th:value="${oneData.cd}"
|
|
|
- th:text="|${oneData.cdNm}|"></option>
|
|
|
- </select>
|
|
|
- <button type="button" id="btnCustSendEmail" class="btn btn-info btn-lg" >이메일발송</button>
|
|
|
- </td>
|
|
|
- <th class="dashR">메일수신여부<i class="star"></i></th>
|
|
|
- <td class="dashR">
|
|
|
- <label class="rdoBtn"><input type="radio" name="emailAgreeYn" value="Y"/>수신</label>
|
|
|
- <label class="rdoBtn"><input type="radio" name="emailAgreeYn" value="N"/>미수신</label>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="dashR">가입일시</th>
|
|
|
- <td class="dashR" id="joinDt" name="joinDt"></td>
|
|
|
- <th class="dashR">최종로그인일시</th>
|
|
|
- <td class="dashR" id="loginDt" name="loginDt"></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="dashR">내외국인</th>
|
|
|
- <td class="dashR" id="foreignerYn" name="foreignerYn"></td>
|
|
|
- <th class="dashR">탈퇴여부</th>
|
|
|
- <td class="dashR" id="secedeRsnYn" name="secedeRsnYn"></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th class="dashR">SNS가입유형</th>
|
|
|
- <td class="dashR" id="snsType" name="snsType" colspan="3"></td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- <ul class="panelBar">
|
|
|
- <li class="right">
|
|
|
- <button type="button" id="btnCustInfoSave" class="btn btn-success btn-lg">저장</button>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ <form id="custInfoForm" name="custInfoForm" action="#" method="post">
|
|
|
+ <input type="hidden" name="custNo" th:value="${custNo}"/>
|
|
|
+ <h4>기본정보</h4>
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width:10%;"/>
|
|
|
+ <col style="width:40%;"/>
|
|
|
+ <col style="width:10%;"/>
|
|
|
+ <col/>
|
|
|
+ </colgroup>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">회원구분<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select id="custGb" name="custGb">
|
|
|
+ <option th:if="${custGbList}" th:each="oneData, status : ${custGbList}" th:value="${oneData.cd}"
|
|
|
+ th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">회원등급<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select id="custGrade" name="custGrade">
|
|
|
+ <option th:if="${custGradeList}" th:each="oneData, status : ${custGradeList}" th:value="${oneData.cd}"
|
|
|
+ th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">관리대상</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <select id="managedRsn" name="managedRsn">
|
|
|
+ <option value="">일반</option>
|
|
|
+ <option th:if="${managedRsnList}" th:each="oneData, status : ${managedRsnList}" th:value="${oneData.cd}"
|
|
|
+ th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ <span class="infoTxt cRed h5" id="managedRsnDp" name="managedRsnDp"></span>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">관리대상 지정 날짜</th>
|
|
|
+ <td class="dashR" id="managedDt" name="managedDt">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">관리대상 지정 사유</th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" id="managedDtlRsn" name="managedDtlRsn" class="w600" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">비밀번호</th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ *******
|
|
|
+ <button type="button" id="btnResetPassword" class="btn btn-info btn-lg">초기화</button>
|
|
|
+ <span class="infoTxt cBlue">
|
|
|
+ <i class="fa fa-info-circle"></i>회원에게 임시비밀번호를 발송합니다. (이메일, 알림톡)
|
|
|
+ </span>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">생년월일</th>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="text" id="birthYmd" name="birthYmd" class="schDate w100" data-valid-name="생년월일"/>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">성별</th>
|
|
|
+ <td class="dashR" id="sexGb" name="sexGb"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">자택주소</th>
|
|
|
+ <td class="dashR" colspan="3">
|
|
|
+ <input type="text" id="homePostNo" name="homePostNo" class="w100" readonly="readonly"/>
|
|
|
+ <button type="button" class="btn btn-info btn-lg" onclick="fnOpenDaumAddr('custInfoForm');">우편번호찾기</button>
|
|
|
+ <br/>
|
|
|
+ <input type="text" id="homeBaseAddr" name="homeBaseAddr" class="w300" readonly="readonly"/>
|
|
|
+ <input type="text" id="homeDtlAddr" name="homeDtlAddr" class="w300"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">휴대전화번호<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="hidden" name="cellPhnno" data-valid-name="휴대전화"/>
|
|
|
+ <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="middleNo" name="middleNo" class="w50" maxlength="4" required="required"
|
|
|
+ data-valid-type="numeric" data-valid-name="휴대전화번호"/> -
|
|
|
+ <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>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">SMS수신여부<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <label class="rdoBtn"><input type="radio" name="smsAgreeYn" value="Y"/>수신</label>
|
|
|
+ <label class="rdoBtn"><input type="radio" name="smsAgreeYn" value="N"/>미수신</label>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">이메일<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <input type="hidden" name="email" data-valid-name="이메일"/>
|
|
|
+ <input type="text" id="emailId" name="emailId" class="w300"/>
|
|
|
+ @
|
|
|
+ <input type="text" id="emailDomain" name="emailDomain" class="w150"/>
|
|
|
+ <select id="emailDomainList" name="emailDomainList">
|
|
|
+ <option value="">선택하세요</option>
|
|
|
+ <option th:if="${emailDomainList}" th:each="oneData, status : ${emailDomainList}" th:value="${oneData.cd}"
|
|
|
+ th:text="|${oneData.cdNm}|"></option>
|
|
|
+ </select>
|
|
|
+ <button type="button" id="btnCustSendEmail" class="btn btn-info btn-lg" >이메일발송</button>
|
|
|
+ </td>
|
|
|
+ <th class="dashR">메일수신여부<i class="star"></i></th>
|
|
|
+ <td class="dashR">
|
|
|
+ <label class="rdoBtn"><input type="radio" name="emailAgreeYn" value="Y"/>수신</label>
|
|
|
+ <label class="rdoBtn"><input type="radio" name="emailAgreeYn" value="N"/>미수신</label>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">가입일시</th>
|
|
|
+ <td class="dashR" id="joinDt" name="joinDt"></td>
|
|
|
+ <th class="dashR">최종로그인일시</th>
|
|
|
+ <td class="dashR" id="loginDt" name="loginDt"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">내외국인</th>
|
|
|
+ <td class="dashR" id="foreignerYn" name="foreignerYn"></td>
|
|
|
+ <th class="dashR">탈퇴여부</th>
|
|
|
+ <td class="dashR" id="secedeRsnYn" name="secedeRsnYn"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="dashR">SNS가입유형</th>
|
|
|
+ <td class="dashR" id="snsType" name="snsType" colspan="3"></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <ul class="panelBar">
|
|
|
+ <li class="right">
|
|
|
+ <button type="button" id="btnCustInfoSave" class="btn btn-success btn-lg">저장</button>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
<!-- //TAB1 PANELSTYLE -->
|
|
|
</li>
|
|
|
@@ -236,80 +241,88 @@
|
|
|
<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">
|
|
|
+ <input type="hidden" name="custNo" th:value="${custNo}"/>
|
|
|
+ <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 th:type="hidden" id="recipTelno" name="recipTelno">
|
|
|
+ <select class="w100" id="telFirstNo" name="telFirstNo"/>
|
|
|
+ <option value="">선택</option>
|
|
|
+ <option th:if="${nationalNumberList}" th:each="oneData, status : ${nationalNumberList}"
|
|
|
+ th:value="${oneData.cd}" th:text="|${oneData.cd}|"></option>
|
|
|
+ </select> -
|
|
|
+ <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 th:type="hidden" id="recipPhnno" name="recipPhnno"/>
|
|
|
+ <select class="w100" id="recipFirstNo" name="recipFirstNo">
|
|
|
+ <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" class="w100" id="recipMiddleNo" name="recipMiddleNo" maxlength="4" required="required" data-valid-type="numeric"
|
|
|
+ data-valid-name="휴대전화번호"/> -
|
|
|
+ <input type="text" class="w100" id="recipLastNo" 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 : 배송지정보 -->
|
|
|
@@ -538,8 +551,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) {
|
|
|
@@ -553,11 +566,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문의 내역 그리드
|
|
|
@@ -829,111 +842,134 @@
|
|
|
|
|
|
gridCouponOptions.rowSelection = 'multiple';
|
|
|
|
|
|
- // 비밀번호 초기화 버튼
|
|
|
+ // 기본정보 - 비밀번호 초기화 버튼
|
|
|
$('#btnResetPassword').on('click', function () {
|
|
|
|
|
|
- //이메일
|
|
|
- let email = $('#email1').val() + '@' + $('#email2').val();
|
|
|
-
|
|
|
- if (!fnCheckValidationEmail(email)) {
|
|
|
+ if (!fnCheckValidationEmail('#custInfoForm')) {
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
- let customer = {};
|
|
|
- customer.custNo = custNo;
|
|
|
|
|
|
mcxDialog.confirm("초기화 하시겠습니까?", {
|
|
|
cancelBtnText: "취소",
|
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function () {
|
|
|
- let jsonData = JSON.stringify(customer);
|
|
|
+ let jsonData = JSON.stringify($('#custInfoForm').serializeObject());
|
|
|
gagajf.ajaxJsonSubmit('/customer/password/reset', jsonData, fnSearchCustInfo);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
- // LMS발송 버튼
|
|
|
+ // 기본정보 - LMS발송 버튼
|
|
|
$('#btnCustSendLms').on('click', function () {
|
|
|
+
|
|
|
+ if (!fnCheckValidationPhnno('#custInfoForm')) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
let param = {};
|
|
|
- param.elementCellPhnno = '#cellPhnno';
|
|
|
- param.elementCustNo = '#custNo';
|
|
|
+ param.elementCellPhnno = '#custInfoForm input[name=cellPhnno]';
|
|
|
+ param.elementCustNo = '#custInfoForm input[name=custNo]';
|
|
|
+
|
|
|
cfnOpenLmsPopup(param);
|
|
|
});
|
|
|
|
|
|
|
|
|
- // 이메일발송 버튼
|
|
|
+ // 기본정보 - 이메일발송 버튼
|
|
|
$('#btnCustSendEmail').on('click', function () {
|
|
|
+
|
|
|
+ if (!fnCheckValidationEmail('#custInfoForm')) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
let param = {};
|
|
|
- param.elementRecipEmail = '#email';
|
|
|
- param.elementCustNm = '#custNm';
|
|
|
- param.elementCustNo = '#custNo';
|
|
|
+ param.elementEmail = '#custInfoForm input[name=email]';
|
|
|
+ param.elementCustNo ='#custInfoForm input[name=custNo]';
|
|
|
+
|
|
|
cfnOpenEmailPopup(param);
|
|
|
});
|
|
|
|
|
|
- // 이메일 도메인 선택 이벤트
|
|
|
- $('#emailDomain').on('change', function () {
|
|
|
+ // 기본정보 - 이메일 도메인 선택 이벤트
|
|
|
+ $('#emailDomainList').on('change', function () {
|
|
|
let domain = $(this).val();
|
|
|
- let $email2 = $('#email2');
|
|
|
+ let $emailDomain = $('#emailDomain');
|
|
|
|
|
|
if (domain === '99') { //기타(직접입력)
|
|
|
- $email2.val('');
|
|
|
+ $emailDomain.val('');
|
|
|
} else if (domain !== '99' && !gagajf.isNull(domain)) {
|
|
|
- $email2.val(domain);
|
|
|
+ $emailDomain.val(domain);
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
- // 저장 버튼
|
|
|
+ // 기본정보 - 저장버튼
|
|
|
$('#btnCustInfoSave').on('click', function () {
|
|
|
-
|
|
|
- let cellPhnno = $('#cellPhnno1').val() + '-' + $('#cellPhnno2').val() + '-' + $('#cellPhnno3').val();
|
|
|
- let email = $('#email1').val() + '@' + $('#email2').val();
|
|
|
+ let custInfoFrom = '#custInfoForm';
|
|
|
|
|
|
//휴대폰번호
|
|
|
- if (!fnCheckValidationPhnno(cellPhnno))
|
|
|
+ if (!fnCheckValidationPhnno(custInfoFrom))
|
|
|
return false;
|
|
|
|
|
|
//이메일
|
|
|
- if (!fnCheckValidationEmail(email))
|
|
|
+ if (!fnCheckValidationEmail(custInfoFrom))
|
|
|
return false;
|
|
|
|
|
|
-
|
|
|
let managedRsn = $('#managedRsn').val();
|
|
|
let managedDtlRsn = $('#managedDtlRsn').val();
|
|
|
|
|
|
-
|
|
|
if (!gagajf.isNull(managedRsn) && gagajf.isNull(managedDtlRsn)) {
|
|
|
mcxDialog.alert("관리대상 지정 사유를 입력해주세요");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- let customer = {};
|
|
|
- customer.custNo = custNo;
|
|
|
- customer.managedRsn = managedRsn;
|
|
|
- customer.managedDtlRsn = managedDtlRsn;
|
|
|
- customer.email = email;
|
|
|
- customer.custGb = $('#custGb').val();
|
|
|
- customer.custGrade = $('#custGrade').val();
|
|
|
- customer.birthYmd = $('#birthYmd').val();
|
|
|
- customer.homePostNo = $('#homePostNo').val();
|
|
|
- customer.homeBaseAddr = $('#homeBaseAddr').val();
|
|
|
- customer.homeDtlAddr = $('#homeDtlAddr').val();
|
|
|
- customer.emailAgreeYn = $('input:radio[name=emailAgreeYn]:checked').val();
|
|
|
- customer.smsAgreeYn = $('input:radio[name=smsAgreeYn]:checked').val();
|
|
|
-
|
|
|
-
|
|
|
mcxDialog.confirm("기본정보를 수정 하시겠습니까?", {
|
|
|
cancelBtnText: "취소",
|
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function () {
|
|
|
- let jsonData = JSON.stringify(customer);
|
|
|
+ let jsonData = JSON.stringify($(custInfoFrom).serializeObject());
|
|
|
//console.log(jsonData);
|
|
|
gagajf.ajaxJsonSubmit('/customer/info/save', jsonData, fnSearchCustInfo);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ // 배송지정보 - 신규버튼
|
|
|
+ $('#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);
|
|
|
@@ -971,45 +1007,7 @@
|
|
|
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 () {
|
|
|
@@ -1068,34 +1066,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);
|
|
|
|
|
|
}
|
|
|
};
|
|
|
@@ -1105,7 +1103,7 @@
|
|
|
$.get('/customer/info/' + custNo
|
|
|
, function (data) {
|
|
|
if (!gagajf.isNull(data)) {
|
|
|
- $('#custNm').text(data.maskingCustNm);
|
|
|
+ $('#spanCustNm').text(data.maskingCustNm);
|
|
|
$('#custId').text(data.maskingCustId);
|
|
|
$('#siteNm').text(gagaAgGrid.lookupValue(siteList, data.siteCd));
|
|
|
$('#custGrade').val(data.custGrade);
|
|
|
@@ -1136,7 +1134,10 @@
|
|
|
fnDisplaySmsAgree(data.smsAgreeYn); // SMS 수신여부
|
|
|
fnDisplayEmail(data.maskingEmail); // EMAIL
|
|
|
fnDisplayCellPhnno(data.maskingCellPhnno); // 핸드폰
|
|
|
- fnDisplayManaged(data.managedRsnNm); // 관리대상
|
|
|
+ fnDisplayManaged(data.managedRsn); // 관리대상
|
|
|
+
|
|
|
+ //custInfoForm Hidden : LMS팝업 사용시 필요
|
|
|
+ $('#custNm').val(data.maskingCustNm);
|
|
|
|
|
|
//기존데이트 저장
|
|
|
orgData = data;
|
|
|
@@ -1218,15 +1219,16 @@
|
|
|
let daumZip = new daum.Postcode({
|
|
|
oncomplete: function(data) {
|
|
|
// 우편번호와 주소 정보를 해당 필드에 넣는다.
|
|
|
- if (id === 'custInfo') {
|
|
|
+ if (id === 'custInfoForm') {
|
|
|
$('#homePostNo').val(data.zonecode);
|
|
|
$('#homeBaseAddr').val(cfnGetDaumRoadAddr(data));
|
|
|
$('#homeDtlAddr').focus();
|
|
|
}
|
|
|
|
|
|
- if (id === 'custAddr') {
|
|
|
- $('#recipPostNo').val(data.zonecode);
|
|
|
+ if (id === 'custAddrForm') {
|
|
|
+ $('#recipZipNo').val(data.zonecode);
|
|
|
$('#recipBaseAddr').val(cfnGetDaumRoadAddr(data));
|
|
|
+ $('#recipDtlAddr').focus();
|
|
|
}
|
|
|
|
|
|
cfnCloseDaumAddr();
|
|
|
@@ -1237,36 +1239,31 @@
|
|
|
cfnOpenDaumAddr(daumZip);
|
|
|
}
|
|
|
|
|
|
- // 휴대전화 유효성체크
|
|
|
- var fnCheckValidationPhnno = function (cellPhnno) {
|
|
|
+ // 휴대전화 유효성 체크 및 데이터 셋팅
|
|
|
+ var fnCheckValidationPhnno = function (formId) {
|
|
|
let result = true;
|
|
|
- let regexp = /^(01(?:0|1|[6-9])-(?:\d{3}|\d{4})-\d{4})$/ ;
|
|
|
-
|
|
|
- if (!regexp.test(cellPhnno)) {
|
|
|
- mcxDialog.alertC('휴대전화의 형식이 잘못되었습니다.', {
|
|
|
- sureBtnText: "확인",
|
|
|
- sureBtnClick: function() {
|
|
|
- $('#cellPhnno1').select();
|
|
|
- $('#cellPhnno1').focus();
|
|
|
- }
|
|
|
- });
|
|
|
+
|
|
|
+ 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})$/)) {
|
|
|
result = false;
|
|
|
}
|
|
|
+
|
|
|
return result;
|
|
|
};
|
|
|
|
|
|
- // 이메일 체크
|
|
|
- var fnCheckValidationEmail = function (email) {
|
|
|
+ // 이메일 체크 및 데이터 셋팅
|
|
|
+ var fnCheckValidationEmail = function (formId) {
|
|
|
let result = true;
|
|
|
- let regexp = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/;
|
|
|
+ let emailId = $(formId + ' input[name=emailId]').val();
|
|
|
+ let emailDomain = $(formId + ' input[name=emailDomain]').val();
|
|
|
+ $(formId + ' input[name=email]').val(emailId + '@' + emailDomain);
|
|
|
|
|
|
- if (!regexp.test(email)) {
|
|
|
- mcxDialog.alertC('이메일 형식이 잘못되었습니다.', {
|
|
|
- sureBtnText: "확인",
|
|
|
- sureBtnClick: function() {
|
|
|
- $('#email1').focus();
|
|
|
- }
|
|
|
- });
|
|
|
+ if (!gagajf.testRegexp($(formId + ' input[name=email]'), /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/)) {
|
|
|
result = false;
|
|
|
}
|
|
|
|
|
|
@@ -1299,15 +1296,14 @@
|
|
|
};
|
|
|
|
|
|
// 관리대상
|
|
|
- var fnDisplayManaged = function (managedRsnNm) {
|
|
|
+ var fnDisplayManaged = function (managedRsn) {
|
|
|
const $managedRsnNm = $('#managedRsnNm');
|
|
|
const $managedRsnDp = $('#managedRsnDp');
|
|
|
-
|
|
|
$managedRsnNm.text('');
|
|
|
$managedRsnNm.hide();
|
|
|
$managedRsnDp.text('');
|
|
|
$managedRsnDp.hide();
|
|
|
- if (!gagajf.isNull(managedRsnNm)) {
|
|
|
+ if (!gagajf.isNull(managedRsn)) {
|
|
|
let html = '<i class="fa fa-info-circle"></i>';
|
|
|
$managedRsnNm.html(html);
|
|
|
$managedRsnNm.show();
|
|
|
@@ -1317,12 +1313,11 @@
|
|
|
|
|
|
};
|
|
|
|
|
|
-
|
|
|
// 탈퇴여부
|
|
|
var fnGetSecedeRsnYn = function (custStat, secedeRsn) {
|
|
|
let secedeRsnYn = gagajf.isNull(secedeRsn) ? '아니요' : '예';
|
|
|
if (custStat === '10') {
|
|
|
- secedeRsnYn += '<button type="button" class="btn btn-danger btn-lg marL5"onClick="fnCustomerSecede();">';
|
|
|
+ secedeRsnYn += '<button type="button" class="btn btn-danger btn-lg marL5" onClick="fnCustomerSecede();">';
|
|
|
secedeRsnYn += ' 회원탈퇴';
|
|
|
secedeRsnYn += '</button>';
|
|
|
}
|
|
|
@@ -1333,9 +1328,9 @@
|
|
|
var fnDisplayCellPhnno = function (cellPhnno) {
|
|
|
if (!gagajf.isNull(cellPhnno)) {
|
|
|
let cellPhSplit = cellPhnno.split("-");
|
|
|
- $('#cellPhnno1').val(cellPhSplit[0]);
|
|
|
- $('#cellPhnno2').val(cellPhSplit[1]);
|
|
|
- $('#cellPhnno3').val(cellPhSplit[2]);
|
|
|
+ $('#firstNo').val(cellPhSplit[0]);
|
|
|
+ $('#middleNo').val(cellPhSplit[1]);
|
|
|
+ $('#lastNo').val(cellPhSplit[2]);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -1343,8 +1338,8 @@
|
|
|
var fnDisplayEmail = function (email) {
|
|
|
if (!gagajf.isNull(email)) {
|
|
|
let emailSplit = email.split("@");
|
|
|
- $('#email1').val(emailSplit[0]);
|
|
|
- $('#email2').val(emailSplit[1]);
|
|
|
+ $('#emailId').val(emailSplit[0]);
|
|
|
+ $('#emailDomain').val(emailSplit[1]);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -1394,6 +1389,18 @@
|
|
|
return snsType;
|
|
|
};
|
|
|
|
|
|
+ // 생년월일 달력 설정
|
|
|
+ var fnDisplayBirthYmd = function () {
|
|
|
+ const $birthYmd = $('#birthYmd');
|
|
|
+ let currentYear = new Date().format('YYYY');
|
|
|
+ $birthYmd.datepicker("destroy");
|
|
|
+ $birthYmd.datepicker({
|
|
|
+ changeMonth: true,
|
|
|
+ changeYear: true,
|
|
|
+ yearRange: (currentYear - 100) + ' : ' + (currentYear - 14),
|
|
|
+ defaultDate: $birthYmd.val()
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
$('#btnLogin').on('click', function () {
|
|
|
let custId = $('span[name=custId]').text();
|
|
|
@@ -1404,19 +1411,10 @@
|
|
|
})
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
- // 생년월일 달력 설정
|
|
|
- const $birthYmd = $('#birthYmd');
|
|
|
- let currentYear = new Date().format('YYYY');
|
|
|
- $birthYmd.datepicker("destroy");
|
|
|
- $birthYmd.datepicker({
|
|
|
- changeMonth: true,
|
|
|
- changeYear: true,
|
|
|
- yearRange: (currentYear - 100) + ' : ' + (currentYear - 14),
|
|
|
- defaultDate: $birthYmd.val()
|
|
|
- });
|
|
|
|
|
|
- //회원정보 조회
|
|
|
- fnSearchCustInfo();
|
|
|
+ fnDisplayBirthYmd(); //생년월일 달력 설정
|
|
|
+
|
|
|
+ fnSearchCustInfo(); //회원정보 조회
|
|
|
|
|
|
gagaAgGrid.createGrid('custOrderList', gridOrderOptions); // 주문내역
|
|
|
|