|
|
@@ -93,7 +93,8 @@
|
|
|
검색결과 : <strong><span id="gridRowTotalCount">0</span> 건</strong>
|
|
|
쪽번호 <span id="pgNo">0</span>/ <strong id="endPgNo">0</strong>
|
|
|
<select id="pageSize" name="pageSize">
|
|
|
- <option value="20" selected="selected">20개씩 보기</option>
|
|
|
+ <option value="20" selected="selected">10개씩 보기</option>
|
|
|
+ <option value="20">20개씩 보기</option>
|
|
|
<option value="50">50개씩 보기</option>
|
|
|
<option value="100">100개씩 보기</option>
|
|
|
<option value="500">500개씩 보기</option>
|
|
|
@@ -102,7 +103,7 @@
|
|
|
<input type="hidden" name="pageNo" id="pageNo" value ="1"/>
|
|
|
</li>
|
|
|
</ul>
|
|
|
- <div id="gridList" style="width:100%; height: 700px;" class="ag-theme-balham"></div>
|
|
|
+ <div id="gridList" style="width:100%; height: 500px;" class="ag-theme-balham"></div>
|
|
|
<ul class="panelBar">
|
|
|
<li class="center">
|
|
|
<div class="tablePaging" id="withdrawExceptionListPagination"></div>
|
|
|
@@ -132,13 +133,13 @@
|
|
|
cellRenderer: function(params) {
|
|
|
var btnText = '';
|
|
|
if(params.data.recallStat === 'P') {
|
|
|
- btnText= '<a href="javascript:void(0);" onclick="fnComplete(\''+params.data.recallExceptionNo+'\')" class="btn btn-success btn-ssm">대기</a>';
|
|
|
+ btnText= '<a href="javascript:void(0);" class="btn btn-success btn-ssm">대기</a>';
|
|
|
} else { btnText = '완료' }
|
|
|
return btnText;
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- {headerName: "주문번호", field: "orderNo", width: 200, cellClass: 'text-center', rowSpan: params => params.data.rowspanRank === 1 ? params.data.rowspanCnt : 1,
|
|
|
+ {headerName: "주문번호", field: "orderNo", width: 100, cellClass: 'text-center', rowSpan: params => params.data.rowspanRank === 1 ? params.data.rowspanCnt : 1,
|
|
|
cellClassRules: {
|
|
|
'cell-span': "data.rowspanRank == 1"
|
|
|
},
|
|
|
@@ -150,13 +151,12 @@
|
|
|
return params.value;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
{headerName: "주문자명", field: "customerName", width: 100, cellClass: 'text-center'},
|
|
|
- {headerName: "택배사명", field: "logisticsName", width: 100, cellClass: 'text-center'},
|
|
|
- {headerName: "반송장번호", field: "invoiceNo", width: 120, cellClass: 'text-center'},
|
|
|
+ {headerName: "예외사유", field: "reasonCd", width: 150, cellClass: 'text-center'},
|
|
|
+ {headerName: "WMS메시지", field: "adminMemo", width: 300, cellClass: 'text-left'},
|
|
|
{headerName: "요금구분", field: "chargeType", width: 80, cellClass: 'text-center'},
|
|
|
- {headerName: "배송비", field: "chargeAmount", width: 100, cellClass: 'text-right'
|
|
|
+ {headerName: "동봉비", field: "chargeAmount", width: 100, cellClass: 'text-right'
|
|
|
,valueFormatter: function(params) {
|
|
|
if (params.value > 0) {
|
|
|
return params.value.addComma();
|
|
|
@@ -165,9 +165,16 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ {headerName: "추가비용", field: "csAddFee", width: 100, cellClass: 'text-right',editable: true,
|
|
|
+ cellEditor: 'textCellEditor',
|
|
|
+ cellEditorParams: { maxlength: 20, validType: "numeric" }
|
|
|
+ },
|
|
|
+ {headerName: "CS메모", field: "csMemo", width: 200, cellClass: 'text-left',editable: true,
|
|
|
+ cellEditor: 'textCellEditor',
|
|
|
+ cellEditorParams: { maxlength: 1000, required: true }
|
|
|
+ },
|
|
|
{headerName: "작업자", field: "userNameCreated", width: 100, cellClass: 'text-center'},
|
|
|
- {headerName: "예외사유", field: "reasonCd", width: 150, cellClass: 'text-center'},
|
|
|
- {headerName: "WMS메시지", field: "adminMemo", width: 300, cellClass: 'text-left'},
|
|
|
+
|
|
|
{headerName: "브랜드명", field: "brandNm", width: 150, cellClass: 'text-center'},
|
|
|
{headerName: "상품코드", field: "productCode", width: 100, cellClass: 'text-center',
|
|
|
cellRenderer: function (params) {
|
|
|
@@ -176,13 +183,16 @@
|
|
|
} else {
|
|
|
return params.value;
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
{headerName: "SKU코드", field: "skuCode", width: 100, cellClass: 'text-center'},
|
|
|
{headerName: "상품명", field: "productName", width: 200, cellClass: 'text-left'},
|
|
|
{headerName: "속성", field: "skuValue", width: 80, cellClass: 'text-center'},
|
|
|
{headerName: "원코드", field: "skuModelNo", width: 150, cellClass: 'text-left'},
|
|
|
- {headerName: "수량", field: "exceptionQty", width: 80, cellClass: 'text-right'},
|
|
|
+ {headerName: "주문수량", field: "qty", width: 80, cellClass: 'text-right'},
|
|
|
+ {headerName: "입고수량", field: "exceptionQty", width: 80, cellClass: 'text-right'},
|
|
|
+ {headerName: "택배사명", field: "logisticsName", width: 100, cellClass: 'text-center'},
|
|
|
+ {headerName: "반송장번호", field: "invoiceNo", width: 120, cellClass: 'text-center'},
|
|
|
{headerName: "주문경로", field: "siteCd", width: 100, cellClass: 'text-left'},
|
|
|
{headerName: "등록일시", field: "dateCreated", width: 150, cellClass: 'text-center'}
|
|
|
|
|
|
@@ -190,6 +200,10 @@
|
|
|
|
|
|
var gridOptions = gagaAgGrid.getGridOptions(columnDefs);
|
|
|
gridOptions.suppressRowTransform =true;
|
|
|
+ //gridOptions.defaultColDef.editable = true;
|
|
|
+ //gridOptions.columnDefs[9].cellEditor=true;
|
|
|
+ //gridOptions.columnDefs[10].cellEditor=true;
|
|
|
+
|
|
|
//gridOptions.rowSelection = 'multiple';
|
|
|
|
|
|
gridOptions.rowHeight = 35;
|
|
|
@@ -248,9 +262,39 @@
|
|
|
/*************************************************************************
|
|
|
* 회수예외 처리완료 버튼 - 대기->완료 업데이트
|
|
|
**************************************************************************/
|
|
|
- var fnComplete = function(recallExceptionNo) {
|
|
|
+ gridOptions.onCellClicked = function(event) {
|
|
|
+
|
|
|
+ if (event.colDef.field == 'recallStat'){
|
|
|
+ if(event.data.recallStat == "P" && event.data.rowspanRank == "1"){
|
|
|
+ var params = {};
|
|
|
+ params.recallExceptionNo = event.data.recallExceptionNo;
|
|
|
+ params.csAddFee = event.data.csAddFee;
|
|
|
+ params.csMemo = event.data.csMemo;
|
|
|
+
|
|
|
+ mcxDialog.confirm('처리완료 하시겠습니까?', {
|
|
|
+ cancelBtnText: "취소",
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function(){
|
|
|
+ var jsonData = JSON.stringify(params);
|
|
|
+ gagajf.ajaxJsonSubmit('/withdraw/exception/complete', jsonData, fnCompleteCallback);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /*
|
|
|
+ var fnComplete = function(recallExceptionNo,csAddFee,csMemo) {
|
|
|
var params = {};
|
|
|
params.recallExceptionNo = recallExceptionNo;
|
|
|
+ params.csAddFee = csAddFee;
|
|
|
+ params.csMemo = csMemo;
|
|
|
+
|
|
|
+
|
|
|
+ alert("recallExceptionNo:"+recallExceptionNo);
|
|
|
+ alert("csAddFee: "+csAddFee);
|
|
|
+ alert("csMemo: "+csMemo);
|
|
|
+
|
|
|
+ return;
|
|
|
mcxDialog.confirm('처리완료 하시겠습니까?', {
|
|
|
cancelBtnText: "취소",
|
|
|
sureBtnText: "확인",
|
|
|
@@ -260,7 +304,7 @@
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
+ */
|
|
|
/*************************************************************************
|
|
|
* 회수예외 처리완료 콜백
|
|
|
**************************************************************************/
|