|
|
@@ -90,7 +90,7 @@
|
|
|
<td>
|
|
|
<input type="text" class="w200" name="goodsCd"/>
|
|
|
</td>
|
|
|
- <th>제휴사</th>
|
|
|
+ <th>제휴몰명</th>
|
|
|
<td>
|
|
|
<select name="extmallId" id="extmallId" class="w200">
|
|
|
<option value="">[전체]</option>
|
|
|
@@ -104,9 +104,13 @@
|
|
|
<td>
|
|
|
<input type="text" id="ordNm" name="ordNm" class="w200" />
|
|
|
</td>
|
|
|
- <th>보내는사람</th>
|
|
|
- <td colspan="3">
|
|
|
- <input type="text" id="senderNm" name="senderNm" class="w200" />
|
|
|
+ <th>주문자연락처</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" id="ordPhnno" name="orderPhnno" class="w200" maxlength="20"/>
|
|
|
+ </td>
|
|
|
+ <th>SKU-CODE</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" id="optCd" name="optCd" class="w200" maxlength="40"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
@@ -121,6 +125,7 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<!-- 리스트 영역 -->
|
|
|
<div class="panelStyle">
|
|
|
<ul class="panelBar">
|
|
|
@@ -157,12 +162,8 @@
|
|
|
// var extmallList = gagajf.convertToArray([[${extmallList}]]);
|
|
|
|
|
|
var columnDefs = [
|
|
|
- {headerName: "환불상태 ", field: "rfndStat", width: 80, cellClass: 'text-center'},
|
|
|
- {headerName: "회수구분", field: "wdGb", width: 80, cellClass: 'text-center'},
|
|
|
- {headerName: "주문번호", field: "ordNo", width: 100, cellClass: 'text-center'},
|
|
|
- {headerName: "주문상세번호", field: "ordDtlNo", width: 100, cellClass: 'text-center'},
|
|
|
- {headerName: "주문변경번호", field: "ordChgSq", width: 100, cellClass: 'text-center'},
|
|
|
- {headerName: "환불컨펌", field: "refundConfirm", width: 120, cellClass: 'text-center',
|
|
|
+ {headerName: "클레임접수일 ", field: "chgRegDt", width: 120, cellClass: 'text-center'},
|
|
|
+ {headerName: "환불컨펌", field: "refundConfirm", width: 120, cellClass: 'text-center',
|
|
|
cellRenderer: function(params) {
|
|
|
if (params.data.rfndStat == '환불완료') {
|
|
|
return "<a href=\"javascript:void(0);\" class=\"btn btn-dark btn-sm\">환불완료</a>";
|
|
|
@@ -171,37 +172,98 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- {headerName: "회수송장번호", field: "wdInvoiceNo", width: 100, cellClass: 'text-center'},
|
|
|
- {headerName: "보내는사람", field: "maskingSenderNm", width: 100, cellClass: 'text-center'},
|
|
|
- {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: "extmallNm", width: 120, cellClass: 'text-left'},
|
|
|
- {headerName: "제휴사코드", field: "extmallId", width: 120, cellClass: 'text-center'},
|
|
|
- {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'},
|
|
|
- {headerName: "요청사유", field: "chgReasonNm", width: 150, cellClass: 'text-center'},
|
|
|
- {headerName: "클레임메모", field: "chgMemo", width: 200, cellClass: 'text-left'},
|
|
|
- {headerName: "상품코드", field: "goodsCd", width: 150, cellClass: 'text-center'},
|
|
|
- {headerName: "옵션1", field: "optCd1", width: 80, cellClass: 'text-center'},
|
|
|
- {headerName: "옵션2", field: "optCd2", width: 80, cellClass: 'text-center'},
|
|
|
- {headerName: "반품수량", field: "chgQty", width: 80, cellClass: 'text-center'},
|
|
|
- {headerName: "회수수량", field: "wdQty", width: 80, cellClass: 'text-center'},
|
|
|
- {headerName: "회수등록일", field: "wdRegDt", width: 80, cellClass: 'text-center'},
|
|
|
- {headerName: "반품신청일", field: "rcRegDt", width: 80, cellClass: 'text-center'},
|
|
|
- {headerName: "반품완료일", field: "wdEddt", width: 80, cellClass: 'text-center'}
|
|
|
-
|
|
|
+ {headerName: "환불상태 ", field: "rfndStat", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "회수구분", field: "wdGb", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "몰구분", field: "mallGbNm", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "제휴몰명", field: "extmallNm", width: 120, cellClass: 'text-left'},
|
|
|
+ {headerName: "제휴몰 주문번호", field: "extmallOrderId", width: 120, cellClass: 'text-center'},
|
|
|
+ {
|
|
|
+ headerName : "주문번호"
|
|
|
+ , field : 'ordNo'
|
|
|
+ , width : 80
|
|
|
+ , cellClass : 'text-center'
|
|
|
+ , sortable : true
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ var roleCd = [[${sessionInfo.roleCd}]];
|
|
|
+ if (!roleCd.startsWith("C")) {
|
|
|
+ return "<a href=\"javascript:void(0);\" onclick=\"fnOpenOrderDetailPopup('" + params.value + "');\">" + params.value + "</a>";
|
|
|
+ } else {
|
|
|
+ return params.value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {headerName: "주문상세번호", field: "ordDtlNo", width: 100, cellClass: 'text-center'},
|
|
|
+ {
|
|
|
+ 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;
|
|
|
+ paramData += '@' + params.data.delvFeeCdGrp;
|
|
|
+ paramData += '@' + params.data.chgStat;
|
|
|
+
|
|
|
+ // 취소요청
|
|
|
+ if (params.data.chgGb == "G680_20") {
|
|
|
+ rtnStr = '<a href="javascript:void(0);" onclick="fnCancelRequest(\'' + paramData + '\',\'' + params.value + '\');">' + params.value + '</a>';
|
|
|
+ }
|
|
|
+ // 반품요청
|
|
|
+ else if (params.data.chgGb == "G680_30") {
|
|
|
+ rtnStr = '<a href="javascript:void(0);" onclick="fnReturnRequest(\'' + paramData + '\',\'' + params.value + '\');">' + params.value + '</a>';
|
|
|
+ }
|
|
|
+ // 교환요청
|
|
|
+ else if (params.data.chgGb == "G680_40") {
|
|
|
+ rtnStr = '<a href="javascript:void(0);" onclick="fnExchangeRequest(\'' + paramData + '\',\'' + params.value + '\');">' + params.value + '</a>';
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ rtnStr = params.value;
|
|
|
+ }
|
|
|
+ return rtnStr;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {headerName: "주문변경번호", field: "ordChgSq", width: 100, cellClass: 'text-center', hide: true},
|
|
|
+ {headerName: "배송정책그룹", field: "delvFeeCdGrp", width: 100, cellClass: 'text-center', hide: true},
|
|
|
+ {headerName: "배송정책", field: "delvFeeCd", width: 100, cellClass: 'text-center', hide: true},
|
|
|
+ {headerName: "변경구분", field: "chgGb", width: 100, cellClass: 'text-center', hide: true},
|
|
|
+ {headerName: "변경상태", field: "chgStat", width: 100, cellClass: 'text-center', hide: true},
|
|
|
+ {
|
|
|
+ headerName : "주문자명"
|
|
|
+ , field : "maskingOrdNm"
|
|
|
+ , width : 140
|
|
|
+ , cellClass : 'text-left'
|
|
|
+ , sortable : true
|
|
|
+ , cellRenderer : function (params) {
|
|
|
+ if (params.data.custNo > 0) {
|
|
|
+ return '<a href="javascript:void(0);" onclick=\"cfnOpenCustDetailPopup(' + params.data.custNo + ');\">' + params.value + '</a>';
|
|
|
+ } else {
|
|
|
+ return params.value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {headerName: "고객고유번호", field: "custNo" , width: 120, cellClass: 'text-center', hide: true},
|
|
|
+ {headerName: "주문자연락처", field: "maskingOrdPhnno", width: 120, cellClass: 'text-center'},
|
|
|
+ {headerName: "회수송장번호", field: "wdInvoiceNo", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "도착일", field: "arrivalDt", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "반품완료일", field: "wdEddt", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "회수등록일", field: "wdRegDt", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "요청사유", field: "chgReasonNm", width: 150, cellClass: 'text-center'},
|
|
|
+ {headerName: "WMS회수메모", field: "wdMemo", width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "상품코드", field: "goodsCd", width: 150, cellClass: 'text-center'},
|
|
|
+ {headerName: "상품타입", field: "goodsTypeNm", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "SKU-CODE", field: "optCd", width: 120, cellClass: 'text-center'},
|
|
|
+ {headerName: "옵션1", field: "optCd1", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "옵션2", field: "optCd2", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "반품수량", field: "chgQty", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "회수수량", field: "wdQty", width: 80, cellClass: 'text-center'},
|
|
|
+ {headerName: "보내는사람", field: "maskingSenderNm", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "보낸연락처", field: "maskingSenderPhnno",width: 120, cellClass: 'text-center'}
|
|
|
];
|
|
|
|
|
|
// Get GridOptions
|
|
|
var withDrawGridOptions = gagaAgGrid.getGridOptions(columnDefs);
|
|
|
-
|
|
|
- // Grid editable
|
|
|
- //withDrawGridOptions.defaultColDef.editable = false;
|
|
|
-
|
|
|
-
|
|
|
/*************************************************************************
|
|
|
* init
|
|
|
**************************************************************************/
|
|
|
@@ -211,8 +273,6 @@
|
|
|
cfnCreateCalendar('#terms', 'stDate', 'edDate', true, '조회');
|
|
|
|
|
|
gagajf.setDate('#terms', 'stDate', 'edDate', '7d');
|
|
|
-
|
|
|
-
|
|
|
});
|
|
|
|
|
|
/*************************************************************************
|
|
|
@@ -248,7 +308,6 @@
|
|
|
* 조회 콜백
|
|
|
**************************************************************************/
|
|
|
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());
|
|
|
@@ -323,25 +382,112 @@
|
|
|
withDrawGridOptions.api.exportDataAsExcel(params);
|
|
|
});
|
|
|
|
|
|
- /* 회수 삭제 필요성이 현재 없어보임!!!
|
|
|
- // 회수 삭제
|
|
|
- var fnWithdrawDelete = function(wdInvoiceNo, goodsCd, sizeCd) {
|
|
|
- var params = new Object();
|
|
|
- params.wdInvoiceNo = wdInvoiceNo;
|
|
|
- params.goodsCd = goodsCd;
|
|
|
- params.sizeCd = sizeCd;
|
|
|
+ var fnOpenOrderDetailPopup = function (ordNo) {
|
|
|
+ currOrdNo = ordNo;
|
|
|
+ cfnOpenOrderDetailPopup(ordNo);
|
|
|
+ };
|
|
|
+
|
|
|
+ // 2021.01.25 추가
|
|
|
+ // 취소요청, 교환요청, 반품요청 일때는 요청 정보 확인 팝업 정보
|
|
|
+ var fnCancelRequest = function (paramData, ordChgSq) {
|
|
|
+ // 취소요청 구분 (orChgSq null 이면 취소요청화면 있으면 취소요청정보화면)
|
|
|
+ if (ordChgSq == null) {
|
|
|
+ ordChgSq = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ var paramArr = paramData.split("@");
|
|
|
+ var param = "";
|
|
|
+ param += "&ordNo=" + paramArr[0];
|
|
|
+ param += "&ordDtlNo=" + paramArr[1];
|
|
|
+ param += "&delvFeeCd=" + paramArr[2];
|
|
|
+ param += "&delvFeeCdGrp=" + paramArr[3];
|
|
|
+ param += "&chgStat=" + paramArr[4];
|
|
|
+ param += "&ordChgSq=" + ordChgSq;
|
|
|
+
|
|
|
+ var actionUrl = "/orderChange/cncl/req/form?" + param;
|
|
|
+
|
|
|
+ // 2021.06.30 취소완료일때 취소완료정보 조회
|
|
|
+ if (paramArr[4] == "G685_17" || paramArr[4] == "G685_18") {
|
|
|
+ actionUrl = "/orderChange/cnclRtn/complete/view?" + param;
|
|
|
+ }
|
|
|
+
|
|
|
+ cfnOpenModalPopup(actionUrl, 'popupCancelRequestForm');
|
|
|
+
|
|
|
+ return false;
|
|
|
+ };
|
|
|
+
|
|
|
+ //2021.01.25 추가
|
|
|
+ // 반품요청
|
|
|
+ var fnReturnRequest = function (paramData, ordChgSq) {
|
|
|
+
|
|
|
+ // 취소요청 구분 (orChgSq null 이면 취소요청화면 있으면 취소요청정보화면)
|
|
|
+ if (ordChgSq == null) {
|
|
|
+ ordChgSq = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ var param = "";
|
|
|
+ var paramArr = paramData.split("@");
|
|
|
+ param += "&ordNo=" + paramArr[0];
|
|
|
+ param += "&ordDtlNo=" + paramArr[1];
|
|
|
+ param += "&delvFeeCd=" + paramArr[2];
|
|
|
+ param += "&delvFeeCdGrp=" + paramArr[3];
|
|
|
+ param += "&chgStat=" + paramArr[4];
|
|
|
+ param += "&ordChgSq=" + ordChgSq;
|
|
|
+
|
|
|
+ var actionUrl = "/orderChange/rtn/req/form?" + param;
|
|
|
+
|
|
|
+ // 2021.06.30 취소완료일때 취소완료정보 조회
|
|
|
+ if (paramArr[4] == "G685_60") {
|
|
|
+ actionUrl = "/orderChange/cnclRtn/complete/view?" + param;
|
|
|
+ }
|
|
|
+
|
|
|
+ cfnOpenModalPopup(actionUrl, 'popupReturnRequestForm');
|
|
|
+ };
|
|
|
+
|
|
|
+ // 교환요청
|
|
|
+ var fnExchangeRequest = function (paramData, ordChgSq) {
|
|
|
+ // 취소요청 구분 (orChgSq null 이면 취소요청화면 있으면 취소요청정보화면)
|
|
|
+ if (ordChgSq == null) {
|
|
|
+ ordChgSq = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ var paramArr = paramData.split("@");
|
|
|
+ var param = "";
|
|
|
+ param += "&ordNo=" + paramArr[0];
|
|
|
+ param += "&ordDtlNo=" + paramArr[1];
|
|
|
+ param += "&delvFeeCd=" + paramArr[2];
|
|
|
+ param += "&delvFeeCdGrp=" + paramArr[3];
|
|
|
+ param += "&chgStat=" + paramArr[4];
|
|
|
+ param += "&ordChgSq=" + ordChgSq;
|
|
|
+ //param += "&ordChgGb=G681_20";
|
|
|
+ var actionUrl = "/orderChange/exchange/request/form?" + param;
|
|
|
+ cfnOpenModalPopup(actionUrl, 'popupExchangeRequestForm');
|
|
|
+ };
|
|
|
|
|
|
- var jsonData = JSON.stringify(params);
|
|
|
- mcxDialog.confirm('회수 데이터를 삭제 하시겠습니까?', {
|
|
|
- cancelBtnText: "취소",
|
|
|
- sureBtnText: "확인",
|
|
|
- sureBtnClick: function(){
|
|
|
- gagajf.ajaxJsonSubmit('/withdraw/refund/Withdraw/delete', jsonData, fnSearch);
|
|
|
+ // 반품요청 철회
|
|
|
+ var fnReturnReqeustCancel = function (ordChgSq, ordDtlNo, rowIdx) {
|
|
|
+ mcxDialog.confirm('반품요청을 철회하시겠습니까?', {
|
|
|
+ cancelBtnText : "취소",
|
|
|
+ sureBtnText : "확인",
|
|
|
+ sureBtnClick : function () {
|
|
|
+ var data = new Object();
|
|
|
+ data.ordChgSq = ordChgSq;
|
|
|
+ data.ordDtlNo = ordDtlNo;
|
|
|
+
|
|
|
+ var jsonData = JSON.stringify(data);
|
|
|
+ gagajf.ajaxJsonSubmit(
|
|
|
+ '/order/return/request/cancel'
|
|
|
+ , jsonData
|
|
|
+ , function (result) {
|
|
|
+ if (result.message != '회수컨펌 된 내역이 있습니다.') {
|
|
|
+ var selectedRow = gridOptionsOrderChangeInfo.api.getRowNode(rowIdx).data;
|
|
|
+ gridOptionsOrderChangeInfo.api.updateRowData({remove: [selectedRow]});
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
- */
|
|
|
-
|
|
|
+ };
|
|
|
/*]]>*/
|
|
|
</script>
|
|
|
</html>
|