|
|
@@ -40,15 +40,17 @@
|
|
|
|
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
|
- <col style="width:10%" />
|
|
|
- <col style="width:40%" />
|
|
|
- <col style="width:10%" />
|
|
|
- <col style="width:40%" />
|
|
|
+ <col style="width:8%" />
|
|
|
+ <col style="width:25%" />
|
|
|
+ <col style="width:8%" />
|
|
|
+ <col style="width:25%" />
|
|
|
+ <col style="width:8%" />
|
|
|
+ <col style="width:26%" />
|
|
|
</colgroup>
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<th>구분<em class="required" title="필수"></em></th>
|
|
|
- <td colspan="3">
|
|
|
+ <td colspan="5">
|
|
|
<select id="searchType" name="searchType">
|
|
|
<option value="withdrawDt">회수등록일자</option>
|
|
|
<option value="returnDt">반품신청일자</option>
|
|
|
@@ -70,6 +72,10 @@
|
|
|
<td>
|
|
|
<input type="text" name="wdInvoiceNo" class="w200" />
|
|
|
</td>
|
|
|
+ <th>제휴몰 주문번호</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" name="extmallOrderId" class="w200" />
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>환불상태</th>
|
|
|
@@ -84,6 +90,14 @@
|
|
|
<td>
|
|
|
<input type="text" class="w200" name="goodsCd"/>
|
|
|
</td>
|
|
|
+ <th>제휴사</th>
|
|
|
+ <td>
|
|
|
+ <select name="extmallId" id="extmallId" class="w200">
|
|
|
+ <option value="">[전체]</option>
|
|
|
+ <option value="N">제휴사 제외</option>
|
|
|
+ <option th:if="${extmallList}" th:each="oneData, status : ${extmallList}" th:value="${oneData.cd}" th:text=" ${oneData.cdNm}"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>주문자명</th>
|
|
|
@@ -91,7 +105,7 @@
|
|
|
<input type="text" id="ordNm" name="ordNm" class="w200" />
|
|
|
</td>
|
|
|
<th>보내는사람</th>
|
|
|
- <td>
|
|
|
+ <td colspan="3">
|
|
|
<input type="text" id="senderNm" name="senderNm" class="w200" />
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -102,6 +116,7 @@
|
|
|
<li class="center">
|
|
|
<button type="button" class="btn btn-base btn-lg 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>
|
|
|
@@ -137,6 +152,8 @@
|
|
|
<script th:inline="javascript">
|
|
|
/*<![CDATA[*/
|
|
|
// specify the columns
|
|
|
+ // var extmallList = gagajf.convertToArray([[${extmallList}]]);
|
|
|
+
|
|
|
var columnDefs = [
|
|
|
{headerName: "환불상태 ", field: "rfndStat", width: 80, cellClass: 'text-center'},
|
|
|
{headerName: "회수구분", field: "wdGb", width: 80, cellClass: 'text-center'},
|
|
|
@@ -157,6 +174,11 @@
|
|
|
{headerName: "보낸연락처", field: "maskingSenderPhnno", width: 120, cellClass: 'text-center'},
|
|
|
{headerName: "주문자명", field: "maskingOrdNm", width: 100, cellClass: 'text-center'},
|
|
|
{headerName: "주문자연락처", field: "maskingOrdPhnno", width: 120, cellClass: 'text-center'},
|
|
|
+
|
|
|
+ {headerName: "제휴사", field: "extmallId", width: 120, cellClass: 'text-left'},
|
|
|
+ {headerName: "제휴몰 주문번호", field: "extmallOrderId", width: 120, cellClass: 'text-center'},
|
|
|
+
|
|
|
+
|
|
|
{headerName: "도착일", field: "arrivalDt", width: 100, cellClass: 'text-center'},
|
|
|
{headerName: "환불확정일", field: "completeDt", width: 100, cellClass: 'text-center'},
|
|
|
{headerName: "WMS회수메모", field: "wdMemo", width: 200, cellClass: 'text-left'},
|
|
|
@@ -263,6 +285,36 @@
|
|
|
cfnOpenModalPopup(actionUrl, "popupWithdrawDetail");
|
|
|
}
|
|
|
|
|
|
+ /*************************************************************************
|
|
|
+ * 엑셀다운로드
|
|
|
+ **************************************************************************/
|
|
|
+ $('#btnExcel').on('click', function () {
|
|
|
+ var totalRows = withDrawGridOptions.api.getDisplayedRowCount();
|
|
|
+ if (totalRows == 0) {
|
|
|
+ mcxDialog.alert('조회된 내역이 없습니다.');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var date = new Date().format("YYYYMMDDHHmmss");
|
|
|
+ var params = {
|
|
|
+
|
|
|
+ fileName: "환불관리목록_" + date,
|
|
|
+ sheetName: "DATA"
|
|
|
+ }
|
|
|
+ withDrawGridOptions.excelStyles = [
|
|
|
+ {
|
|
|
+ id: 'dateFormat',
|
|
|
+ dataType: 'dateTime',
|
|
|
+ numberFormat: {
|
|
|
+ format: 'YYYY-MM-DD;@'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 'textFormat',
|
|
|
+ dataType: 'string'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ withDrawGridOptions.api.exportDataAsExcel(params);
|
|
|
+ });
|
|
|
|
|
|
/* 회수 삭제 필요성이 현재 없어보임!!!
|
|
|
// 회수 삭제
|