|
@@ -137,11 +137,11 @@
|
|
|
/*<![CDATA[*/
|
|
/*<![CDATA[*/
|
|
|
// specify the columns
|
|
// specify the columns
|
|
|
var columnDefs = [
|
|
var columnDefs = [
|
|
|
- {headerName: "환불상태 ", field: "rfndStat", width: 80, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "회수구분", field: "wdGb", width: 80, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "주문번호", field: "ordNo", width: 100, minWidth: 190, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "주문상세번호", field: "ordDtlNo", width: 100, minWidth: 190, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "반품요청일련번호", field: "ordChgSq", width: 120, minWidth: 100, cellClass: 'text-center',
|
|
|
|
|
|
|
+ {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: 120, cellClass: 'text-center',
|
|
|
cellRenderer: function(params) {
|
|
cellRenderer: function(params) {
|
|
|
if (params.data.rfndStat == '환불완료') {
|
|
if (params.data.rfndStat == '환불완료') {
|
|
|
return "<a href=\"javascript:void(0);\" class=\"btn btn-dark btn-sm\">환불완료</a>";
|
|
return "<a href=\"javascript:void(0);\" class=\"btn btn-dark btn-sm\">환불완료</a>";
|
|
@@ -150,38 +150,41 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- {headerName: "회수송장번호", field: "wdInvoiceNo", width: 100, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "보내는사람", field: "senderNm", width: 100, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "보낸연락처", field: "senderPhnno", width: 120, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "주문자명", field: "ordNm", width: 100, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "주문자연락처", field: "ordPhnno", width: 120, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "도착일시", field: "arrivalDt", width: 100, minWidth: 120, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "환불확정일자", field: "wdEddt", width: 100, minWidth: 120, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "WMS회수메모", field: "wdMemo", width: 200, minWidth: 100, cellClass: 'text-lecenterft'},
|
|
|
|
|
- {headerName: "상품코드", field: "goodsCd", width: 150, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "옵션1", field: "sizeCd", width: 80, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "옵션2", field: "sizeCd", width: 80, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "반품수량", field: "chgQty", width: 80, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "회수수량", field: "wdQty", width: 80, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "요청사유", field: "chgReason", width: 150, minWidth: 100, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "클레임메모", field: "chgMemo", width: 200, minWidth: 100, cellClass: 'text-lecenterft'},
|
|
|
|
|
|
|
+ {headerName: "회수송장번호", field: "wdInvoiceNo", width: 100, cellClass: 'text-center'},
|
|
|
|
|
+ {headerName: "보내는사람", field: "senderNm", width: 100, cellClass: 'text-center'},
|
|
|
|
|
+ {headerName: "보낸연락처", field: "senderPhnno", width: 120, cellClass: 'text-center'},
|
|
|
|
|
+ {headerName: "주문자명", field: "ordNm", width: 100, cellClass: 'text-center'},
|
|
|
|
|
+ {headerName: "주문자연락처", field: "ordPhnno", 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'}
|
|
|
|
|
+
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
// Get GridOptions
|
|
// Get GridOptions
|
|
|
var withDrawGridOptions = gagaAgGrid.getGridOptions(columnDefs);
|
|
var withDrawGridOptions = gagaAgGrid.getGridOptions(columnDefs);
|
|
|
|
|
|
|
|
// Grid editable
|
|
// Grid editable
|
|
|
- withDrawGridOptions.defaultColDef.editable = false;
|
|
|
|
|
|
|
+ //withDrawGridOptions.defaultColDef.editable = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************
|
|
/*************************************************************************
|
|
|
* init
|
|
* init
|
|
|
**************************************************************************/
|
|
**************************************************************************/
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
|
- cfnCreateCalendar('#terms', 'stDate', 'edDate', true, '조회');
|
|
|
|
|
-
|
|
|
|
|
// Create a agGrid
|
|
// Create a agGrid
|
|
|
gagaAgGrid.createGrid('gridList', withDrawGridOptions);
|
|
gagaAgGrid.createGrid('gridList', withDrawGridOptions);
|
|
|
|
|
+ cfnCreateCalendar('#terms', 'stDate', 'edDate', true, '조회');
|
|
|
|
|
|
|
|
gagajf.setDate('#terms', 'stDate', 'edDate', '3m');
|
|
gagajf.setDate('#terms', 'stDate', 'edDate', '3m');
|
|
|
|
|
|
|
@@ -234,7 +237,6 @@
|
|
|
**************************************************************************/
|
|
**************************************************************************/
|
|
|
withDrawGridOptions.onCellClicked = function(event) {
|
|
withDrawGridOptions.onCellClicked = function(event) {
|
|
|
if (event.colDef.field != 'ordChgSq') return;
|
|
if (event.colDef.field != 'ordChgSq') return;
|
|
|
-
|
|
|
|
|
// 회수등록 팝업
|
|
// 회수등록 팝업
|
|
|
if (event.data.ordChgSq > 0 && !gagajf.isNull(event.data.ordChgSq) && event.data.wdQty > 0) {
|
|
if (event.data.ordChgSq > 0 && !gagajf.isNull(event.data.ordChgSq) && event.data.wdQty > 0) {
|
|
|
// 회수 상세 화면
|
|
// 회수 상세 화면
|
|
@@ -248,7 +250,6 @@
|
|
|
**************************************************************************/
|
|
**************************************************************************/
|
|
|
var detailPopup = function(ordChgSq, ordNo) {
|
|
var detailPopup = function(ordChgSq, ordNo) {
|
|
|
if (ordChgSq == 0) return;
|
|
if (ordChgSq == 0) return;
|
|
|
-
|
|
|
|
|
var actionUrl = "/withdraw/refund/detail/form?ordChgSq=" + ordChgSq + '&ordNo=' + ordNo;
|
|
var actionUrl = "/withdraw/refund/detail/form?ordChgSq=" + ordChgSq + '&ordNo=' + ordNo;
|
|
|
cfnOpenModalPopup(actionUrl, "popupWithdrawDetail");
|
|
cfnOpenModalPopup(actionUrl, "popupWithdrawDetail");
|
|
|
}
|
|
}
|