|
|
@@ -19,6 +19,7 @@
|
|
|
<div class="main-title">
|
|
|
</div>
|
|
|
<!-- //메인타이틀 영역 -->
|
|
|
+
|
|
|
<!-- 메뉴 설명 -->
|
|
|
<div class="infoBox menu-desc">
|
|
|
</div>
|
|
|
@@ -26,6 +27,7 @@
|
|
|
|
|
|
<!-- 검색조건 영역 -->
|
|
|
<form id="searchForm" name="searchForm" action="#" th:action="@{'/withdraw/direct/list'}" onsubmit="$('#btnSearch').trigger('click'); return false;">
|
|
|
+
|
|
|
<div class="panelStyle">
|
|
|
<!-- TITLE -->
|
|
|
<div class="panelTitle">
|
|
|
@@ -35,91 +37,108 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<!-- //TITLE -->
|
|
|
- <div class="panelContent">
|
|
|
-
|
|
|
- <table class="frmStyle">
|
|
|
- <colgroup>
|
|
|
- <col style="width:8%;"/>
|
|
|
- <col style="width:12%;"/>
|
|
|
- <col style="width:8%;"/>
|
|
|
- <col style="width:12%;"/>
|
|
|
- <col style="width:8%;"/>
|
|
|
- <col style="width:12%;"/>
|
|
|
- </colgroup>
|
|
|
- <tr>
|
|
|
- <th>주문자명</th>
|
|
|
- <td>
|
|
|
- <input type="text" class="w40p" name="ordNm" placeholder="" maxlength="20"/>
|
|
|
- </td>
|
|
|
- <th>주문번호</th>
|
|
|
- <td>
|
|
|
- <input type="text" class="w40p" name="ordNo" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" placeholder="" maxlength="20"/>
|
|
|
- </td>
|
|
|
- <th>주문변경번호</th>
|
|
|
- <td>
|
|
|
- <input type="text" class="w40p" name="ordChgSq" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" placeholder="" maxlength="20"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>회수구분</th>
|
|
|
- <td>
|
|
|
- <select name="chgGb"class="w100">
|
|
|
- <option value=""> 전체 </option>
|
|
|
- <option value="G680_30"> 반품요청 </option>
|
|
|
- <option value="G680_40"> 교환요청 </option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <th>진행상태</th>
|
|
|
- <td>
|
|
|
- <select name="chgStat" class="w100">
|
|
|
- <option value="">전체</option>
|
|
|
- <option th:if="${chgStatList}" th:each="oneData, status : ${chgStatList}" th:value="${oneData.cd}" th:text="${oneData.cdNm}"></option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <th>반품방식</th>
|
|
|
- <td>
|
|
|
- <select name="wdGb" class="w100">
|
|
|
- <option value=""> 전체 </option>
|
|
|
- <option value="W">방문회수</option>
|
|
|
- <option value="D">직접배송</option>
|
|
|
-
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>택배사전송여부</th>
|
|
|
- <td>
|
|
|
- <select name="sendYn" class="w100">
|
|
|
- <option value="">전체</option>
|
|
|
- <option value="Y">전송</option>
|
|
|
- <option value="N">미전송</option>
|
|
|
-
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <th>CJ회수상태</th>
|
|
|
- <td colspan="3">
|
|
|
- <select name="wdShipState" class="w100">
|
|
|
- <option value="">전체</option>
|
|
|
- <option th:if="${wdShipStateList}" th:each="oneData, status : ${wdShipStateList}" th:value="${oneData.cd}" th:text="${oneData.cdNm}"></option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <th>회수요청일</th>
|
|
|
- <td colspan="5" id="terms">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
+
|
|
|
+ <div class="panelContent">
|
|
|
+ <table class="frmStyle">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width:8%;"/>
|
|
|
+ <col style="width:12%;"/>
|
|
|
+ <col style="width:8%;"/>
|
|
|
+ <col style="width:12%;"/>
|
|
|
+ <col style="width:8%;"/>
|
|
|
+ <col style="width:12%;"/>
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>주문자명</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="w40p" name="ordNm" placeholder="" maxlength="20"/>
|
|
|
+ </td>
|
|
|
+ <th>주문번호</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="w40p" name="ordNo" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" placeholder="" maxlength="20"/>
|
|
|
+ </td>
|
|
|
+ <th>주문변경번호</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="w40p" name="ordChgSq" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" placeholder="" maxlength="20"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>제휴몰명</th>
|
|
|
+ <td>
|
|
|
+ <input type="hidden" class="w40p" name="vendorId" placeholder="" maxlength="20" th:value="${vendorId}"/>
|
|
|
+ <select name="extmallId">
|
|
|
+ <option value="">선택안함</option>
|
|
|
+ <option th:if="${extmallList}" th:each="oneData, status : ${extmallList}" th:value="${oneData.extmallId}" th:text="${'[' + oneData.extmallId + '] ' + oneData.extmallNm}"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th>제휴몰 주문번호</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="w40p" name="extmallOrderId" placeholder="" maxlength="40"/>
|
|
|
+ </td>
|
|
|
+ <th>SKU-CODE</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="w40p" name="optCd" placeholder="" maxlength="40"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>회수구분</th>
|
|
|
+ <td>
|
|
|
+ <select name="chgGb"class="w100">
|
|
|
+ <option value=""> 전체 </option>
|
|
|
+ <option value="G680_30"> 반품요청 </option>
|
|
|
+ <option value="G680_40"> 교환요청 </option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th>진행상태</th>
|
|
|
+ <td>
|
|
|
+ <select name="chgStat" class="w100">
|
|
|
+ <option value="">전체</option>
|
|
|
+ <option th:if="${chgStatList}" th:each="oneData, status : ${chgStatList}" th:value="${oneData.cd}" th:text="${oneData.cdNm}"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th>반품방식</th>
|
|
|
+ <td>
|
|
|
+ <select name="wdGb" class="w100">
|
|
|
+ <option value=""> 전체 </option>
|
|
|
+ <option value="W">방문회수</option>
|
|
|
+ <option value="D">직접배송</option>
|
|
|
+
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>택배사전송여부</th>
|
|
|
+ <td>
|
|
|
+ <select name="sendYn" class="w100">
|
|
|
+ <option value="">전체</option>
|
|
|
+ <option value="Y">전송</option>
|
|
|
+ <option value="N">미전송</option>
|
|
|
+
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th>CJ회수상태</th>
|
|
|
+ <td colspan="3">
|
|
|
+ <select name="wdShipState" class="w100">
|
|
|
+ <option value="">전체</option>
|
|
|
+ <option th:if="${wdShipStateList}" th:each="oneData, status : ${wdShipStateList}" th:value="${oneData.cd}" th:text="${oneData.cdNm}"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>회수요청일</th>
|
|
|
+ <td colspan="5" id="terms">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
|
|
|
- <ul class="panelBar">
|
|
|
- <li class="center">
|
|
|
+ <ul class="panelBar">
|
|
|
+ <li class="center">
|
|
|
<button type="button" class="btn btn-base btn-lg" id="btnSearch">조회</button>
|
|
|
<button type="button" class="btn btn-gray btn-lg" onclick="$('#searchForm')[0].reset(); fnInitCalendar();">초기화</button>
|
|
|
<button type="button" id="btnExcel" class="btn btn-info btn-lg" >엑셀다운로드</button>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
-
|
|
|
- </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<!-- //검색조건 영역 -->
|
|
|
|
|
|
@@ -143,26 +162,46 @@
|
|
|
</li>
|
|
|
</ul>
|
|
|
<div id="gridList" style="width:100%; height: 500px;" class="ag-theme-balham"></div>
|
|
|
+
|
|
|
<ul class="panelBar">
|
|
|
<li class="center">
|
|
|
<div class="tablePaging" id="delvWithdrawListPagination"></div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</form>
|
|
|
<!-- //리스트 영역 -->
|
|
|
</div>
|
|
|
<script type="text/javascript" src="/ux/plugins/gaga/gaga.paging.js?v=20210114"></script>
|
|
|
+
|
|
|
<script th:inline="javascript">
|
|
|
/*<![CDATA[*/
|
|
|
// 사이트목록
|
|
|
var currOrdNo =0;
|
|
|
var columnDefs = [
|
|
|
- {headerName: "주문변경번호", field: "ordChgSq", width: 100, cellClass: "text-center",
|
|
|
+ {headerName: "회수구분", field: "chgGbNm", width: 80, cellClass: "text-center"},
|
|
|
+ {headerName: "진행상태", field: "chgStatNm", width: 100, cellClass: "text-center"},
|
|
|
+ {headerName: "CJ회수상태", field: "wdShipStateNm", width: 120, cellClass: "text-center"},
|
|
|
+ {headerName: "몰구분", field: "mallGb", width: 100, cellClass: "text-center",
|
|
|
+ cellRenderer: function(params) {
|
|
|
+ var rtnStr = "자사몰";
|
|
|
+ if (params.value == 'G011_20') {
|
|
|
+ rtnStr = "외부몰";
|
|
|
+ }
|
|
|
+ return rtnStr;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {headerName: "제휴몰명", field: "extmallNm", width: 120, cellClass: "text-center"},
|
|
|
+ {headerName: "제휴몰주문번호", field: "extmallOrderId", width: 120, cellClass: "text-center"},
|
|
|
+ {headerName: "주문번호", field: "ordNo", width: 100, cellClass: "text-center",
|
|
|
+ cellRenderer: function(params) {
|
|
|
+ return gagajf.isNull(params.value) ? '' : "<a href=\"javascript:void(0);\" onclick=\"fnOrderDetailPopup('" + params.data.ordNo + "');\">" + params.data.ordNo + "</a>";
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {headerName: "주문변경번호", field: "ordChgSq", width: 100, cellClass: "text-center",
|
|
|
cellRenderer : function(params) {
|
|
|
var rtnStr = "";
|
|
|
-
|
|
|
var paramData = params.data.ordNo;
|
|
|
paramData += '@' + params.data.ordDtlNo;
|
|
|
paramData += '@' + params.data.delvFeeCd;
|
|
|
@@ -182,28 +221,26 @@
|
|
|
rtnStr = params.value;
|
|
|
}
|
|
|
return rtnStr;
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- {headerName: "주문번호", field: "ordNo", width: 100, cellClass: "text-center",
|
|
|
- cellRenderer: function(params) {
|
|
|
- return gagajf.isNull(params.value) ? '' : "<a href=\"javascript:void(0);\" onclick=\"fnOrderDetailPopup('" + params.data.ordNo + "');\">" + params.data.ordNo + "</a>";
|
|
|
}
|
|
|
},
|
|
|
- {headerName: "주문상세번호", field: "ordDtlNo", width: 100, cellClass: "text-center"},
|
|
|
- {headerName: "회수구분", field: "chgGbNm", width: 80, cellClass: "text-center"},
|
|
|
-
|
|
|
- {headerName: "사유", field: "chgReasonNm", width: 150, cellClass: "text-left"},
|
|
|
- {headerName: "회수요청일", field: "regDt", width: 100, cellClass: "text-center"},
|
|
|
- {headerName: "진행상태", field: "chgStatNm", width: 100, cellClass: "text-center"},
|
|
|
- {headerName: "상품코드", field: "goodsCd", width: 120, cellClass: "text-center",
|
|
|
+ {headerName: "주문상세번호", field: "ordDtlNo", width: 100, cellClass: "text-center"},
|
|
|
+ {headerName: "주문자명", field: "maskingOrdNm", width: 100, cellClass: "text-center"},
|
|
|
+ {headerName: "클레임접수일", field: "chgRegDt", width: 100, cellClass: "text-center"},
|
|
|
+ {headerName: "회수요청일", field: "regDt", width: 100, cellClass: "text-center"},
|
|
|
+ {headerName: "회수상태수신일시", field: "wdStateDt", width: 120, cellClass: "text-center"},
|
|
|
+ {headerName: "상품코드", field: "goodsCd", width: 120, cellClass: "text-center",
|
|
|
cellRenderer: function(params) { return gagajf.isNull(params.value) ? '' : '<a href="javascript:void(0);">' + params.value + '</a>'; }
|
|
|
},
|
|
|
- {headerName: "상품명", field: "goodsNm", width: 200, cellClass: "text-left"},
|
|
|
- {headerName: "수량", field: "chgQty", width: 80, cellClass: "text-center"},
|
|
|
- {headerName: "반품방식", field: "wdGbNm", width: 80, cellClass: "text-center"},
|
|
|
- {headerName: "택배사전송", field: "sendYn", width: 80, cellClass: "text-center"},
|
|
|
- {headerName: "회수송장번호", field: "wdInvoiceNo", width: 100, cellClass: "text-center"
|
|
|
+ {headerName: "SKU-CODE", field: "optCd", width: 80, cellClass: "text-left"},
|
|
|
+ {headerName: "상품명", field: "goodsNm", width: 200, cellClass: "text-left"},
|
|
|
+ {headerName: "옵션1", field: "optCd1", width: 80, cellClass: "text-left"},
|
|
|
+ {headerName: "옵션2", field: "optCd2", width: 80, cellClass: "text-left"},
|
|
|
+ {headerName: "수량", field: "chgQty", width: 80, cellClass: "text-center"},
|
|
|
+ {headerName: "사유", field: "chgReasonNm", width: 150, cellClass: "text-left"},
|
|
|
+ {headerName: "반품방식", field: "wdGbNm", width: 80, cellClass: "text-center"},
|
|
|
+ {headerName: "네이버주문형", field: "npayOrdYn", width: 80, cellClass: "text-center"},
|
|
|
+ {headerName: "택배사전송", field: "sendYn", width: 80, cellClass: "text-center"},
|
|
|
+ {headerName: "회수송장번호", field: "wdInvoiceNo", width: 100, cellClass: "text-center"
|
|
|
, cellRenderer : function (params) {
|
|
|
var retStr = '';
|
|
|
if (!gagajf.isNull(params.value) && !gagajf.isNull(params.data.shipCompCd)) {
|
|
|
@@ -212,19 +249,17 @@
|
|
|
return retStr;
|
|
|
}
|
|
|
},
|
|
|
- {headerName: "CJ회수상태", field: "wdShipStateNm", width: 120, cellClass: "text-center"},
|
|
|
- {headerName: "회수상태수신일시", field: "wdStateDt", width: 120, cellClass: "text-center"},
|
|
|
- {headerName: "미회수사유", field: "wdReasonCdNm", width: 100, cellClass: "text-center"},
|
|
|
- {headerName: "재회수지시", field: "wdShipState", width: 100, cellClass: 'text-center',
|
|
|
+ {headerName: "미회수사유", field: "wdReasonCdNm", width: 100, cellClass: "text-center"},
|
|
|
+ {headerName: "재회수지시", field: "wdShipState", width: 100, cellClass: 'text-center',
|
|
|
cellRenderer: function(params) {
|
|
|
return params.value == '12' && params.data.chgStat == 'G685_30' ? '<button type="button" class="btn btn-base btn-sm" onclick="fnReRecallOrder(\'' + params.data.chgGb + '\',\'' + params.data.ordDtlNo + '\',\''+params.data.ordChgSq+'\',\''+params.data.ordNo+'\');"> 재회수지시 </button>' : "";
|
|
|
}
|
|
|
},
|
|
|
- {headerName: "교환선발송여부 ", field: "wdBfSendYn", width: 110, cellClass: "text-center"},
|
|
|
- {headerName: "배송시작일시", field: "wdStdt", width: 120, cellClass: "text-center"},
|
|
|
- {headerName: "배송종료일시", field: "wdEddt", width: 120, cellClass: "text-center"},
|
|
|
- {headerName: "수취인명", field: "recipNm", width: 120, cellClass: "text-center"},
|
|
|
- {headerName: "알림톡", field: "", width: 140, cellClass: "text-center",
|
|
|
+ {headerName: "교환선발송여부 ", field: "wdBfSendYn", width: 110, cellClass: "text-center"},
|
|
|
+ {headerName: "배송시작일시", field: "wdStdt", width: 120, cellClass: "text-center"},
|
|
|
+ {headerName: "배송종료일시", field: "wdEddt", width: 120, cellClass: "text-center"},
|
|
|
+ {headerName: "수취인명", field: "recipNm", width: 120, cellClass: "text-center"},
|
|
|
+ {headerName: "알림톡", field: "", width: 140, cellClass: "text-center",
|
|
|
cellRenderer: function(params) {
|
|
|
if (params.data.wdShipState == '12' && params.data.chgStat == 'G685_30') {
|
|
|
|
|
|
@@ -232,9 +267,12 @@
|
|
|
paramData += '@' + params.data.wdReasonCd;
|
|
|
paramData += '@' + params.data.chgGb;
|
|
|
|
|
|
- if(params.data.chgGb == 'G680_30'){ // 반품요청
|
|
|
+ // 반품요청
|
|
|
+ if (params.data.chgGb == 'G680_30'){
|
|
|
return '<button type="button" class="btn btn-base btn-sm" onclick="fnKaKao(\'' + paramData + '\');"> 반품철회알림톡 </button>';
|
|
|
- } else if(params.data.chgGb == 'G680_40'){ // 교환요청
|
|
|
+ }
|
|
|
+ // 교환요청
|
|
|
+ else if(params.data.chgGb == 'G680_40'){
|
|
|
return '<button type="button" class="btn btn-base btn-sm" onclick="fnKaKao(\'' + paramData + '\');"> 교환철회알림톡 </button>';
|
|
|
}
|
|
|
}
|
|
|
@@ -245,12 +283,11 @@
|
|
|
return '<button type="button" class="btn btn-base btn-sm" onclick="fnLms(\'' + params.data.chgerPhnno + '\',\'' + params.data.custNo + '\');"> LMS </button>';
|
|
|
}
|
|
|
},
|
|
|
- {headerName: "보내시는분", field: "maskingChgerNm", width: 100, cellClass: "text-center"},
|
|
|
+ {headerName: "보내시는분", field: "maskingChgerNm", width: 100, cellClass: "text-center"},
|
|
|
{headerName: "반품회수지휴대전화", field: "maskingChgerPhnno", width: 120, cellClass: "text-center"},
|
|
|
{headerName: "반품회수지우편번호", field: "chgerZipcode", width: 120, cellClass: "text-center"},
|
|
|
{headerName: "반품회수지기본주소", field: "chgerBaseAddr", width: 300, cellClass: "text-left"},
|
|
|
{headerName: "변경자상세주소", field: "maskingChgerDtlAddr", width: 200, cellClass: "text-left"},
|
|
|
- {headerName: "주문자명", field: "maskingOrdNm", width: 100, cellClass: "text-center"},
|
|
|
{headerName: "주문자휴대전화", field: "maskingOrdPhnno", width: 120, cellClass: "text-center"},
|
|
|
{headerName: "주문자전화번호", field: "ordTelno", width: 120, cellClass: "text-center"},
|
|
|
{headerName: "주문자이메일", field: "maskingOrdEmail", width: 120, cellClass: "text-left"}
|
|
|
@@ -298,7 +335,6 @@
|
|
|
|
|
|
var searchChk = "N";
|
|
|
|
|
|
-
|
|
|
if ($('#searchForm input[name=ordNo]').val() != '') {
|
|
|
searchChk = "Y";
|
|
|
}
|
|
|
@@ -307,22 +343,22 @@
|
|
|
searchChk = "Y";
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- if(searchChk == "N"){
|
|
|
- if($('#stDate').val() == ''){
|
|
|
+ if (searchChk == "N") {
|
|
|
+ if ($('#stDate').val() == '') {
|
|
|
mcxDialog.alert('시작 기간을 입력하세요.');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if($('#edDate').val() == ''){
|
|
|
+ if ($('#edDate').val() == '') {
|
|
|
mcxDialog.alert('종료 기간을 입력하세요.');
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
// 날짜 유효성 체크
|
|
|
if (Number($('#stDate').val().replaceAll("-", "")) > Number($('#edDate').val().replaceAll("-", ""))) {
|
|
|
mcxDialog.alert("시작일은 종료일보다 클 수 없습니다.");
|
|
|
return;
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
gagaPaging.init('searchForm', fnSearchCallBack, 'delvWithdrawListPagination', $('#searchForm').find('#pageSize').val());
|
|
|
@@ -333,14 +369,13 @@
|
|
|
* 조회 콜백
|
|
|
**************************************************************************/
|
|
|
var fnSearchCallBack = function(result){
|
|
|
-
|
|
|
$('#searchForm').find('#gridRowTotalCount').html(result.pageing.pageable.totalCount.addComma());
|
|
|
$('#searchForm').find('#pageNo').val(result.pageing.pageable.pageNo.addComma());
|
|
|
$('#searchForm').find('#pgNo').html(result.pageing.pageable.pageNo.addComma());
|
|
|
$('#searchForm').find('#endPgNo').html(result.pageing.pageable.totalPage.addComma());
|
|
|
+
|
|
|
gridOptions.api.setRowData(result.directList);
|
|
|
gagaPaging.createPagination(result.pageing.pageable);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
// 페이징
|
|
|
@@ -348,29 +383,27 @@
|
|
|
$("#searchForm input[name=pageNo]").val('1');
|
|
|
fnSearchList();
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
/*************************************************************************
|
|
|
* 재회수지시
|
|
|
**************************************************************************/
|
|
|
var fnReRecallOrder = function(chgGb, ordDtlNo, ordChgSq, ordNo ){
|
|
|
mcxDialog.confirm("재회수지시 하시겠습니까?", {
|
|
|
- cancelBtnText: "취소",
|
|
|
- sureBtnText: "확인",
|
|
|
+ cancelBtnText : "취소",
|
|
|
+ sureBtnText : "확인",
|
|
|
sureBtnClick: function() {
|
|
|
var param = new Object;
|
|
|
param.chgGb = chgGb;
|
|
|
param.ordDtlNo = ordDtlNo;
|
|
|
param.ordNo = ordNo;
|
|
|
param.ordChgSq = ordChgSq;
|
|
|
+
|
|
|
var jsonData = JSON.stringify(param);
|
|
|
gagajf.ajaxJsonSubmit('/withdraw/direct/recallorder', jsonData, fnSearchList);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/*************************************************************************
|
|
|
* KAKAO(알림톡)
|
|
|
**************************************************************************/
|
|
|
@@ -384,32 +417,41 @@
|
|
|
var ordChgSq = paramArr[0];
|
|
|
var wdReasonCd = paramArr[1];
|
|
|
var chgGb = paramArr[2];
|
|
|
-
|
|
|
- if(chgGb == "G680_30"){ // 반품
|
|
|
- if(wdReasonCd == "18" || wdReasonCd == "14" || wdReasonCd == "16" || wdReasonCd == "25"){ // 고객부재
|
|
|
+
|
|
|
+ // 반품
|
|
|
+ if (chgGb == "G680_30") {
|
|
|
+ // 고객부재
|
|
|
+ if (wdReasonCd == "18" || wdReasonCd == "14" || wdReasonCd == "16" || wdReasonCd == "25") {
|
|
|
gubun = "RETURN_CANCEL_CUSTOMER";
|
|
|
- } else if(wdReasonCd == "21" ){ // 고객정보(주소) 오류
|
|
|
+ }
|
|
|
+ // 고객정보(주소) 오류
|
|
|
+ else if (wdReasonCd == "21" ){
|
|
|
gubun = "RETURN_CANCEL_ADDR";
|
|
|
}
|
|
|
- msg = "반품 철회 알림톡 발송 하시겠습니까?";
|
|
|
|
|
|
- } else if(chgGb == "G680_40"){ // 교환
|
|
|
- if(wdReasonCd == "18" || wdReasonCd == "14" || wdReasonCd == "16" || wdReasonCd == "25"){ // 고객부재
|
|
|
+ msg = "반품 철회 알림톡 발송 하시겠습니까?";
|
|
|
+ }
|
|
|
+ // 교환
|
|
|
+ else if (chgGb == "G680_40") {
|
|
|
+ // 고객부재
|
|
|
+ if (wdReasonCd == "18" || wdReasonCd == "14" || wdReasonCd == "16" || wdReasonCd == "25") {
|
|
|
gubun = "EXCHANGE_CANCEL_CUSTOMER";
|
|
|
- } else if(wdReasonCd == "21" ){ // 고객정보(주소) 오류
|
|
|
+ }
|
|
|
+ // 고객정보(주소) 오류
|
|
|
+ else if(wdReasonCd == "21" ) {
|
|
|
gubun = "EXCHANGE_CANCEL_ADDR";
|
|
|
}
|
|
|
msg = "교환 철회 알림톡 발송 하시겠습니까?";
|
|
|
}
|
|
|
|
|
|
- if(gubun == ""){
|
|
|
+ if (gubun == "") {
|
|
|
mcxDialog.alert('알림톡 대상이 아닙니다.');
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
mcxDialog.confirm(msg, {
|
|
|
- cancelBtnText: "취소",
|
|
|
- sureBtnText: "확인",
|
|
|
+ cancelBtnText : "취소",
|
|
|
+ sureBtnText : "확인",
|
|
|
sureBtnClick: function() {
|
|
|
var param = new Object;
|
|
|
param.ordChgSq = ordChgSq;
|
|
|
@@ -421,7 +463,6 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/*************************************************************************
|
|
|
* LMS
|
|
|
**************************************************************************/
|
|
|
@@ -477,12 +518,11 @@
|
|
|
cfnOpenModalPopup(actionUrl, 'popupExchangeRequestForm');
|
|
|
};
|
|
|
|
|
|
- //엑셀다운로드
|
|
|
+ // 엑셀다운로드
|
|
|
$('#btnExcel').on('click', function() {
|
|
|
-
|
|
|
-
|
|
|
var totalRows = gridOptions.api.getDisplayedRowCount();
|
|
|
- if(totalRows==0){
|
|
|
+
|
|
|
+ if (totalRows == 0) {
|
|
|
mcxDialog.alert('조회된 내역이 없습니다.');
|
|
|
return;
|
|
|
}
|
|
|
@@ -492,6 +532,7 @@
|
|
|
fileName : "회수지시목록_"+ date,
|
|
|
sheetName: "DATA"
|
|
|
}
|
|
|
+
|
|
|
gridOptions.excelStyles = [
|
|
|
{
|
|
|
id: 'dateFormat',
|
|
|
@@ -506,10 +547,9 @@
|
|
|
}
|
|
|
]
|
|
|
gridOptions.api.exportDataAsExcel(params);
|
|
|
-
|
|
|
});
|
|
|
|
|
|
- // 2021.06.17스윗트래커 송장조회
|
|
|
+ // 2021.06.17 스윗트래커 송장조회
|
|
|
var fnSweetTracker = function (shipCompCd, invoiceNo) {
|
|
|
var actionUrl = "/order/delivery/sweetTrackerDeliveryInfo?shipCompCd=" + shipCompCd + "&invoiceNo=" + invoiceNo;
|
|
|
cfnOpenModalPopup(actionUrl, 'popupSweetTrackerDeliveryInfo');
|
|
|
@@ -521,6 +561,7 @@
|
|
|
gagaAgGrid.createGrid('gridList', gridOptions);
|
|
|
var hideList = ["btnThisWeek", "btnYesterWeek", "btnThisMonth", "btnYesterMonth", "btnRecent3Month"];
|
|
|
cfnCreateCalendar('#terms', 'stDate', 'edDate', true, '','', hideList);
|
|
|
+
|
|
|
// grid 높이 조절
|
|
|
//uifnFitGrid('auto');
|
|
|
gagajf.setDate('#terms', 'stDate', 'edDate', '7d');
|