|
@@ -115,8 +115,7 @@
|
|
|
검색결과 : <strong><span id="gridRowTotalCount">0</span> 건</strong>
|
|
검색결과 : <strong><span id="gridRowTotalCount">0</span> 건</strong>
|
|
|
쪽번호 <span id="pgNo">0</span>/ <strong id="endPgNo">0</strong>
|
|
쪽번호 <span id="pgNo">0</span>/ <strong id="endPgNo">0</strong>
|
|
|
<select id="pageSize" name="pageSize">
|
|
<select id="pageSize" name="pageSize">
|
|
|
- <option value="20" selected="selected">10개씩 보기</option>
|
|
|
|
|
- <option value="20">20개씩 보기</option>
|
|
|
|
|
|
|
+ <option value="20" selected="selected">20개씩 보기</option>
|
|
|
<option value="50">50개씩 보기</option>
|
|
<option value="50">50개씩 보기</option>
|
|
|
<option value="100">100개씩 보기</option>
|
|
<option value="100">100개씩 보기</option>
|
|
|
<option value="500">500개씩 보기</option>
|
|
<option value="500">500개씩 보기</option>
|
|
@@ -145,6 +144,10 @@
|
|
|
var uploadGoodsUrl = [[${@environment.getProperty('upload.goods.view')}]];
|
|
var uploadGoodsUrl = [[${@environment.getProperty('upload.goods.view')}]];
|
|
|
var roleCd = [[${sessionInfo.roleCd}]];
|
|
var roleCd = [[${sessionInfo.roleCd}]];
|
|
|
|
|
|
|
|
|
|
+ $("#reasonCode option[value='07']").remove();
|
|
|
|
|
+ $("#reasonCode option[value='08']").remove();
|
|
|
|
|
+ $("#reasonCode option[value='10']").remove();
|
|
|
|
|
+
|
|
|
var columnDefs = [
|
|
var columnDefs = [
|
|
|
{headerName: "반품예외처리번호", field: "recallExceptionNo", width: 50, cellClass: 'text-center', hide: true},
|
|
{headerName: "반품예외처리번호", field: "recallExceptionNo", width: 50, cellClass: 'text-center', hide: true},
|
|
|
//{headerName: "No.", field: "rnum", width: 50, cellClass: 'text-center'},
|
|
//{headerName: "No.", field: "rnum", width: 50, cellClass: 'text-center'},
|
|
@@ -179,12 +182,50 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ {headerName: "주문변경번호", field: "ordChgSq", width: 100, cellClass: 'text-center', rowSpan: params => params.data.rowspanRank === 1 ? params.data.rowspanCnt : 1,
|
|
|
|
|
+ cellClassRules: {
|
|
|
|
|
+ 'cell-span': "data.rowspanRank == 1"
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ cellRenderer : function(params) {
|
|
|
|
|
+ var rtnStr = "";
|
|
|
|
|
+
|
|
|
|
|
+ var paramData = params.data.orderNo;
|
|
|
|
|
+ paramData += '@' + params.data.orderDtlNo;
|
|
|
|
|
+ paramData += '@' + params.data.delvFeeCd;
|
|
|
|
|
+ paramData += '@' + 'WMS';
|
|
|
|
|
+
|
|
|
|
|
+ // 반품접수, 반품대기, 회수요청, 상품검수중, 결제대기, 반품진행중
|
|
|
|
|
+ if (params.data.chgStat == 'G685_50' || params.data.chgStat == 'G685_51'
|
|
|
|
|
+ || params.data.chgStat == 'G685_30' || params.data.chgStat == 'G685_31' || params.data.chgStat == 'G685_32' || params.data.chgStat == 'G685_33') {
|
|
|
|
|
+ rtnStr = '<a href="javascript:void(0);" onclick="fnReturnRequest(\'' + paramData + '\',\'' + params.value + '\');">' + params.value + '</a>';
|
|
|
|
|
+ }
|
|
|
|
|
+ // 교환접수, 교환대기, 회수요청, 상품검수중, 결제대기, 교환진행중
|
|
|
|
|
+ else if (params.data.chgStat == 'G685_20' || params.data.chgStat == 'G685_21'
|
|
|
|
|
+ || params.data.chgStat == 'G685_30' || params.data.chgStat == 'G685_31' || params.data.chgStat == 'G685_32' || params.data.chgStat == 'G685_34') {
|
|
|
|
|
+ rtnStr = '<a href="javascript:void(0);" onclick="fnExchangeRequest(\'' + paramData + '\',\'' + params.value + '\');">' + params.value + '</a>';
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+ rtnStr = params.value;
|
|
|
|
|
+ }
|
|
|
|
|
+ return rtnStr;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
{headerName: "주문자명", field: "customerName", width: 100, cellClass: 'text-center'},
|
|
{headerName: "주문자명", field: "customerName", width: 100, cellClass: 'text-center'},
|
|
|
|
|
+ {headerName: "휴대번호", field: "ordPhnno", width: 100, cellClass: 'text-center'},
|
|
|
|
|
+ {headerName: "LMS", field: "ordPhnno", width: 80, cellClass: "text-center",
|
|
|
|
|
+ cellRenderer: function(params) {
|
|
|
|
|
+ return '<button type="button" class="btn btn-base btn-sm" onclick="fnLms(\'' + params.data.ordPhnno + '\',\'' + params.data.custNo + '\');"> LMS </button>';
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
{headerName: "예외사유", field: "reasonCd", width: 150, cellClass: 'text-center'},
|
|
{headerName: "예외사유", field: "reasonCd", width: 150, cellClass: 'text-center'},
|
|
|
- {headerName: "WMS메시지", field: "adminMemo", width: 300, cellClass: 'text-left'},
|
|
|
|
|
|
|
+ {headerName: "WMS메시지", field: "adminMemo", width: 300, cellClass: 'text-left'},
|
|
|
{headerName: "회수요청구분", field: "chgGbNm", width: 90, cellClass: 'text-left'},
|
|
{headerName: "회수요청구분", field: "chgGbNm", width: 90, cellClass: 'text-left'},
|
|
|
{headerName: "반품교환사유", field: "chgReasonNm", width: 150, cellClass: 'text-left'},
|
|
{headerName: "반품교환사유", field: "chgReasonNm", width: 150, cellClass: 'text-left'},
|
|
|
- {headerName: "반품/사유변경", field: "chgReason", width: 120, cellClass: 'text-center',rowSpan: params => params.data.rowspanRank === 1 ? params.data.rowspanCnt : 1,
|
|
|
|
|
|
|
+ {headerName: "네이버 주문형", field: "payGb", width: 100, cellClass: 'text-center'},
|
|
|
|
|
+ {headerName: "반품/사유변경", field: "chgReason", width: 120, cellClass: 'text-center',rowSpan: params => params.data.rowspanRank === 1 ? params.data.rowspanCnt : 1,
|
|
|
cellClassRules: {
|
|
cellClassRules: {
|
|
|
'cell-span': "data.rowspanRank == 1"
|
|
'cell-span': "data.rowspanRank == 1"
|
|
|
},
|
|
},
|
|
@@ -364,8 +405,29 @@
|
|
|
} else if(event.colDef.field == 'chgReason'){
|
|
} else if(event.colDef.field == 'chgReason'){
|
|
|
if(event.data.recallStat == "P" && event.data.rowspanRank == "1" && event.data.chgStat != null){
|
|
if(event.data.recallStat == "P" && event.data.rowspanRank == "1" && event.data.chgStat != null){
|
|
|
|
|
|
|
|
- var actionUrl = "/withdraw/exception/change/form?ordChgSq=" + event.data.ordChgSq + '&chgGb=' + event.data.chgGb;
|
|
|
|
|
- cfnOpenModalPopup(actionUrl, 'popupWithdrawChangeForm');
|
|
|
|
|
|
|
+ if (event.data.reasonCode == '02') { // 미착
|
|
|
|
|
+ param += "&ordNo=" + event.data.orderNo;
|
|
|
|
|
+ param += "&ordDtlNo=" + event.data.orderDtlNo;
|
|
|
|
|
+ param += "&ordChgSq=" + event.data.ordChgSq;
|
|
|
|
|
+ param += "&delvFeeCd=" + event.data.delvFeeCd;
|
|
|
|
|
+ param += "&delvFeeCdGrp=" + "WMS";
|
|
|
|
|
+
|
|
|
|
|
+ if (event.data.chgGb == 'G680_30') { // 반품요청
|
|
|
|
|
+ param += "&ordChgGb=G681_30"; // 반품TO반품
|
|
|
|
|
+ actionUrl = "/orderChange/rtn/req/form?" + param;
|
|
|
|
|
+
|
|
|
|
|
+ cfnOpenModalPopup(actionUrl, 'popupReturnRequestForm');
|
|
|
|
|
+ } else if (event.data.chgGb == 'G680_40') { // 교환요청
|
|
|
|
|
+ param += "&ordChgGb=G681_20"; // 교환TO교환
|
|
|
|
|
+ actionUrl = "/orderChange/exchange/request/form?" + param;
|
|
|
|
|
+
|
|
|
|
|
+ cfnOpenModalPopup(actionUrl, 'popupExchangeRequestForm');
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ actionUrl = "/withdraw/exception/change/form?ordChgSq=" + event.data.ordChgSq + '&chgGb=' + event.data.chgGb;
|
|
|
|
|
+ cfnOpenModalPopup(actionUrl, 'popupWithdrawChangeForm');
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
} else if(event.data.recallStat == "P" && event.data.rowspanRank == "1" && event.data.chgStat == null){
|
|
} else if(event.data.recallStat == "P" && event.data.rowspanRank == "1" && event.data.chgStat == null){
|
|
|
refreshFlag = "ban";
|
|
refreshFlag = "ban";
|
|
|
var ordChgSq = 0;
|
|
var ordChgSq = 0;
|
|
@@ -397,29 +459,63 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- /*
|
|
|
|
|
- var fnComplete = function(recallExceptionNo,csAddFee,csMemo) {
|
|
|
|
|
- var params = {};
|
|
|
|
|
- params.recallExceptionNo = recallExceptionNo;
|
|
|
|
|
- params.csAddFee = csAddFee;
|
|
|
|
|
- params.csMemo = csMemo;
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /*************************************************************************
|
|
|
|
|
+ * LMS
|
|
|
|
|
+ **************************************************************************/
|
|
|
|
|
+ var fnLms = function(chgerPhnno, custNo){
|
|
|
|
|
+ let param = {};
|
|
|
|
|
+ param.elementCellPhnno = chgerPhnno; //'010-4016-1558'; //'#custInfoForm input[name=cellPhnno]';
|
|
|
|
|
+ param.elementCustNo = custNo; //'100025';// '#custInfoForm input[name=custNo]';
|
|
|
|
|
+ param.pageGb = 'delv';
|
|
|
|
|
+ cfnOpenLmsPopup(param);
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ /*************************************************************************
|
|
|
|
|
+ * 반품요청
|
|
|
|
|
+ **************************************************************************/
|
|
|
|
|
+ var fnReturnRequest = function (paramData, ordChgSq) {
|
|
|
|
|
|
|
|
|
|
+ // 취소요청 구분 (orChgSq null 이면 취소요청화면 있으면 취소요청정보화면)
|
|
|
|
|
+ if (ordChgSq == null) {
|
|
|
|
|
+ ordChgSq = 0;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- alert("recallExceptionNo:"+recallExceptionNo);
|
|
|
|
|
- alert("csAddFee: "+csAddFee);
|
|
|
|
|
- alert("csMemo: "+csMemo);
|
|
|
|
|
|
|
+ var param = "";
|
|
|
|
|
+ var paramArr = paramData.split("@");
|
|
|
|
|
+ param += "&ordNo=" + paramArr[0];
|
|
|
|
|
+ param += "&ordDtlNo=" + paramArr[1];
|
|
|
|
|
+ param += "&delvFeeCd=" + paramArr[2];
|
|
|
|
|
+ param += "&delvFeeCdGrp=" + paramArr[3];
|
|
|
|
|
|
|
|
- return;
|
|
|
|
|
- mcxDialog.confirm('처리완료 하시겠습니까?', {
|
|
|
|
|
- cancelBtnText: "취소",
|
|
|
|
|
- sureBtnText: "확인",
|
|
|
|
|
- sureBtnClick: function(){
|
|
|
|
|
- var jsonData = JSON.stringify(params);
|
|
|
|
|
- gagajf.ajaxJsonSubmit('/withdraw/exception/complete', jsonData, fnCompleteCallback);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ param += "&ordChgSq=" + ordChgSq;
|
|
|
|
|
+ var actionUrl = "/orderChange/rtn/req/form?" + param;
|
|
|
|
|
+ cfnOpenModalPopup(actionUrl, 'popupReturnRequestForm');
|
|
|
};
|
|
};
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
|
|
+ /*************************************************************************
|
|
|
|
|
+ * 교환요청
|
|
|
|
|
+ **************************************************************************/
|
|
|
|
|
+ var fnExchangeRequest = function (paramData, ordChgSq) {
|
|
|
|
|
+ console.log(paramData);
|
|
|
|
|
+ // 취소요청 구분 (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 += "&ordChgSq=" + ordChgSq;
|
|
|
|
|
+
|
|
|
|
|
+ var actionUrl = "/orderChange/exchange/request/form?" + param;
|
|
|
|
|
+ cfnOpenModalPopup(actionUrl, 'popupExchangeRequestForm');
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
/*************************************************************************
|
|
/*************************************************************************
|
|
|
* 회수예외 처리완료 콜백
|
|
* 회수예외 처리완료 콜백
|
|
|
**************************************************************************/
|
|
**************************************************************************/
|