|
|
@@ -22,20 +22,20 @@
|
|
|
text-indent: -100em;
|
|
|
}
|
|
|
</style>
|
|
|
-
|
|
|
+
|
|
|
<div id="main">
|
|
|
<!-- 메인타이틀 영역 -->
|
|
|
<div class="main-title">
|
|
|
</div>
|
|
|
<!-- //메인타이틀 영역 -->
|
|
|
-
|
|
|
+
|
|
|
<!-- 메뉴 설명 -->
|
|
|
<div class="infoBox menu-desc">
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<form id="searchForm" name="searchForm" action="#" th:action="@{'/order/list'}">
|
|
|
<input type="hidden" id="searchGb" name="searchGb" />
|
|
|
-
|
|
|
+
|
|
|
<!-- 패널 영역1 -->
|
|
|
<div class="panelStyle" >
|
|
|
<!-- 검색조건 영역 -->
|
|
|
@@ -48,7 +48,7 @@
|
|
|
<i class="fa fa-chevron-up"></i>
|
|
|
</span>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="panelContent">
|
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
|
@@ -136,6 +136,7 @@
|
|
|
<td rowspan="5">
|
|
|
<select name="search" id="search">
|
|
|
<option value="searchOrdNo">주문번호</option>
|
|
|
+ <option value="searchCustId">고객ID</option>
|
|
|
<option value="searchExtmallOrderId">외부몰주문번호</option>
|
|
|
<option value="searchAgentOrderId">에이전트주문번호</option>
|
|
|
</select>
|
|
|
@@ -211,14 +212,14 @@
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
-
|
|
|
+
|
|
|
<ul class="panelBar">
|
|
|
<li class="center">
|
|
|
<button type="button" class="btn btn-info btn-lg" id="btnOrderSearch">조회</button>
|
|
|
<button type="button" class="btn btn-gray btn-lg" id="btnInit">초기화</button>
|
|
|
</li>
|
|
|
</ul>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -226,7 +227,7 @@
|
|
|
<ul class="panelBar">
|
|
|
<li>
|
|
|
<button type="button" class="btn btn-info btn-lg" onclick="fnOrderExcelList();">엑셀다운로드</button>
|
|
|
- <!--
|
|
|
+ <!--
|
|
|
<button type="button" class="btn btn-info btn-lg" th:if="${userNo == 8 or userNo == 14 or userNo == 11}" onclick="fnCreateSampleOrder();">주문생성</button>
|
|
|
-->
|
|
|
</li>
|
|
|
@@ -242,7 +243,7 @@
|
|
|
<input type="hidden" name="pageNo" id="pageNo" value ="1"/>
|
|
|
</li>
|
|
|
</ul>
|
|
|
-
|
|
|
+
|
|
|
<div class="panelContent" style="overflow: hidden;">
|
|
|
<div id="gridOrderList" style="width: 100%; height: 600px;" class="ag-theme-balham lh60"></div>
|
|
|
</div>
|
|
|
@@ -304,7 +305,7 @@ var columnDefsOrderList = [
|
|
|
if (!gagajf.isNull(params.data.custNo)) {
|
|
|
custNo = params.data.custNo;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
var roleCd = [[${sessionInfo.roleCd}]];
|
|
|
if (!roleCd.startsWith("C") && !gagajf.isNull(params.data.custNo) && params.data.mallGb === '10' ) {
|
|
|
return '<a href="javascript:void(0);" onclick=\"cfnOpenCustDetailPopup(' + params.data.custNo + ');\">' + params.value + ' (' + params.data.custId + ')' + '</a>';
|
|
|
@@ -322,8 +323,8 @@ var columnDefsOrderList = [
|
|
|
, width : 80
|
|
|
, cellClass : 'text-center'
|
|
|
, hide : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.lookupValue(siteCdList, params.data.siteCd);
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.lookupValue(siteCdList, params.data.siteCd);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -332,8 +333,8 @@ var columnDefsOrderList = [
|
|
|
, width : 80
|
|
|
, cellClass : 'text-center'
|
|
|
, sortable : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.lookupValue(frontGbList, params.data.frontGb);
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.lookupValue(frontGbList, params.data.frontGb);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -342,8 +343,8 @@ var columnDefsOrderList = [
|
|
|
, width : 60
|
|
|
, cellClass : 'text-center'
|
|
|
, hide : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.lookupValue(mallGbList, params.data.mallGb);
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.lookupValue(mallGbList, params.data.mallGb);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -352,8 +353,8 @@ var columnDefsOrderList = [
|
|
|
, width : 140
|
|
|
, cellClass : 'text-center'
|
|
|
, sortable : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.toDateTimeFormat(params.data.ordDt);
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.toDateTimeFormat(params.data.ordDt);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -362,8 +363,8 @@ var columnDefsOrderList = [
|
|
|
, width : 100
|
|
|
, cellClass : 'text-center'
|
|
|
, hide : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.lookupValue(payMeansList, params.data.payMeans);
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.lookupValue(payMeansList, params.data.payMeans);
|
|
|
}
|
|
|
},
|
|
|
{headerName: "원주문/교환" , field: "exchGbNm" , width: 100 , cellClass: 'text-center' , sortable: true},
|
|
|
@@ -397,8 +398,8 @@ var columnDefsOrderList = [
|
|
|
, width : 110
|
|
|
, cellClass : 'text-center'
|
|
|
, hide : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.lookupValue(vendorList, params.data.vendorId);
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.lookupValue(vendorList, params.data.vendorId);
|
|
|
}
|
|
|
},
|
|
|
{headerName: "외부몰주문번호" , field: "extmallOrderId" , width: 120, cellClass: 'textFormat', sortable: true},
|
|
|
@@ -408,8 +409,8 @@ var columnDefsOrderList = [
|
|
|
, field : "ordQty"
|
|
|
, width : 80
|
|
|
, cellClass : 'text-center'
|
|
|
- , valueGetter: function (params) {
|
|
|
- return params.data.ordQty.addComma();
|
|
|
+ , valueGetter: function (params) {
|
|
|
+ return params.data.ordQty.addComma();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -417,8 +418,8 @@ var columnDefsOrderList = [
|
|
|
, field : "cnclRtnQty"
|
|
|
, width : 80
|
|
|
, cellClass : 'text-center'
|
|
|
- , valueGetter : function (params) {
|
|
|
- return params.data.cnclRtnQty.addComma();
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return params.data.cnclRtnQty.addComma();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -426,8 +427,8 @@ var columnDefsOrderList = [
|
|
|
, field : "ordAmt"
|
|
|
, width : 80
|
|
|
, cellClass : 'text-right'
|
|
|
- , valueGetter : function (params) {
|
|
|
- return params.data.ordAmt.addComma();
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return params.data.ordAmt.addComma();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -435,8 +436,8 @@ var columnDefsOrderList = [
|
|
|
, field : "cnclRtnAmt"
|
|
|
, width : 120
|
|
|
, cellClass : 'text-right'
|
|
|
- , valueGetter : function (params) {
|
|
|
- return params.data.cnclRtnAmt.addComma();
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return params.data.cnclRtnAmt.addComma();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -444,8 +445,8 @@ var columnDefsOrderList = [
|
|
|
, field : "totDcAmt"
|
|
|
, width : 120
|
|
|
, cellClass : 'text-right'
|
|
|
- , valueGetter: function (params) {
|
|
|
- return params.data.totDcAmt.addComma();
|
|
|
+ , valueGetter: function (params) {
|
|
|
+ return params.data.totDcAmt.addComma();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -453,8 +454,8 @@ var columnDefsOrderList = [
|
|
|
, field : "realOrdAmt"
|
|
|
, width : 100
|
|
|
, cellClass : 'text-right'
|
|
|
- , valueGetter : function (params) {
|
|
|
- return params.data.realOrdAmt.addComma();
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return params.data.realOrdAmt.addComma();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -462,9 +463,9 @@ var columnDefsOrderList = [
|
|
|
, field : "formalGb"
|
|
|
, width : 100
|
|
|
, cellClass : 'text-center'
|
|
|
- , sortable : true
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.lookupValue(formalGbList, params.data.formalGb);
|
|
|
+ , sortable : true
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.lookupValue(formalGbList, params.data.formalGb);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -472,8 +473,8 @@ var columnDefsOrderList = [
|
|
|
, field : "delvAssignDt"
|
|
|
, width : 150
|
|
|
, cellClass : 'text-center'
|
|
|
- , valueGetter : function (params) {
|
|
|
- return gagaAgGrid.toDateTimeFormat(params.data.delvAssignDt);
|
|
|
+ , valueGetter : function (params) {
|
|
|
+ return gagaAgGrid.toDateTimeFormat(params.data.delvAssignDt);
|
|
|
}
|
|
|
},
|
|
|
{headerName: "출고택배사" , field: "shipCompNm" , width: 150, cellClass: 'text-center'},
|
|
|
@@ -483,7 +484,7 @@ var columnDefsOrderList = [
|
|
|
, field : "delvStdt"
|
|
|
, width : 150
|
|
|
, cellClass : 'text-center'
|
|
|
- , valueGetter: function (params) {
|
|
|
+ , valueGetter: function (params) {
|
|
|
return gagaAgGrid.toDateTimeFormat(params.data.delvStdt);
|
|
|
}
|
|
|
}
|
|
|
@@ -518,10 +519,10 @@ var fnSearchList = function () {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
gagaPaging.init('searchForm', fnSearchCallBack, 'orderListPagination', $('#searchForm').find('#pageSize').val());
|
|
|
gagaPaging.load($("#searchForm input[name=pageNo]").val());
|
|
|
-
|
|
|
+
|
|
|
// 2020.12.08 페이징 처리 때문에 주석 처리
|
|
|
//gagaAgGrid.fetch($('#searchForm').prop('action'), gridOptionsOrderList, '#searchForm', function (result) {
|
|
|
//$("#rowCntOrderList").text(gridOptionsOrderList.api.getDisplayedRowCount());
|
|
|
@@ -535,7 +536,7 @@ var fnSearchCallBack = function(result){
|
|
|
$('#searchForm').find('#pageNo').val(result.pageing.pageable.pageNo.addComma());
|
|
|
$('#searchForm').find('#pgNo').html(result.pageing.pageable.pageNo.addComma());
|
|
|
$('#searchForm').find('#endPgNo').html(result.pageing.pageable.totalPage.addComma());
|
|
|
-
|
|
|
+
|
|
|
gridOptionsOrderList.api.setRowData(result.orderList);
|
|
|
gagaPaging.createPagination(result.pageing.pageable);
|
|
|
}
|
|
|
@@ -555,17 +556,17 @@ var fnExcelUpoadCallback = function (data) {
|
|
|
// 초기화 클릭시
|
|
|
$('#btnInit').on('click', function() {
|
|
|
$('#searchForm')[0].reset();
|
|
|
-
|
|
|
+
|
|
|
$("#searchForm #supplyCompSearchTxt").text("");
|
|
|
$("#searchForm #brandText").text("");
|
|
|
-
|
|
|
+
|
|
|
$('#searchForm input[name=brandList]').val('');
|
|
|
$('#searchForm input[name=supplyCompList]').val('');
|
|
|
});
|
|
|
|
|
|
// 엑셀 다운로드
|
|
|
// 2020.12.11 현재는 그리드의 조회 목록을 엑셀 다운로드 하고 있지만 추후 에는 조건의 엑셀 조회 후 다운로드 기능으로 변경 해야 할듯함
|
|
|
-// 기존의 주문목록은 페이징 기능이 없었지만 페이징 기능을 추가 하면서 엑셀다운로드시 조회 후 파일다운 기능 필요
|
|
|
+// 기존의 주문목록은 페이징 기능이 없었지만 페이징 기능을 추가 하면서 엑셀다운로드시 조회 후 파일다운 기능 필요
|
|
|
var fnOrderExcelList = function () {
|
|
|
gagaAgGrid.showOrHideColumn(gridOptionsOrderList , "custNo", true);
|
|
|
gagaAgGrid.exportToExcel('주문목록' , gridOptionsOrderList);
|
|
|
@@ -580,23 +581,23 @@ var fnOpenOrderDetailPopup = function (ordNo) {
|
|
|
var fnReOpenOrderDetailPopup = function () {
|
|
|
cfnOpenOrderDetailPopup(currOrdNo);
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 자사/입점 변경여부
|
|
|
$("#searchForm input[name=selfYn]").bind('click change', function () {
|
|
|
var radioValue = $(this).val();
|
|
|
var selfGb = "S"; // 자사 공급 업체
|
|
|
-
|
|
|
+
|
|
|
if (radioValue == "N"){
|
|
|
selfGb = "E"; //입점 공급업체
|
|
|
}
|
|
|
-
|
|
|
- var actionUrl = '/renderer/supply/company/list/'+ selfGb;
|
|
|
+
|
|
|
+ var actionUrl = '/renderer/supply/company/list/'+ selfGb;
|
|
|
|
|
|
$('#searchForm').find('#multiBrand').empty();
|
|
|
|
|
|
cfnCreateCombo(actionUrl, $('#searchForm select[name=supplyCompCd]'), "[전체]", "");
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
// 업체변경시
|
|
|
$('#searchForm select[name=supplyCompCd]').on('change', function() {
|
|
|
var actionUrl = '/renderer/supplyCompany/brand/list/' + $(this).val();
|
|
|
@@ -657,23 +658,23 @@ var fnSetSupplyCompInfo = function(result) {
|
|
|
var arrSupplyComp = [];
|
|
|
var supplyCompText = "";
|
|
|
var sIndex = 0;
|
|
|
-
|
|
|
+
|
|
|
$('#searchForm').find('#supplyCompText').html('');
|
|
|
$('#searchForm input[name=supplyCompSearchTxt]').val('');
|
|
|
-
|
|
|
+
|
|
|
result.forEach(function(supplyComp){
|
|
|
sIndex++;
|
|
|
arrSupplyComp.push(supplyComp.supplyCompCd);
|
|
|
});
|
|
|
|
|
|
- // 조회값이 하나일 경우 화면에 코드 노출 그외는 갯수 처리
|
|
|
+ // 조회값이 하나일 경우 화면에 코드 노출 그외는 갯수 처리
|
|
|
if (sIndex == 1) {
|
|
|
$('#searchForm input[name=supplyCompSearchTxt]').val(arrSupplyComp[0]);
|
|
|
} else {
|
|
|
supplyCompText = sIndex + " 개";
|
|
|
$('#searchForm').find('#supplyCompText').html(supplyCompText);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
var jsonData = JSON.stringify(arrSupplyComp);
|
|
|
$("#searchForm input[name=supplyCompList]").val(jsonData);
|
|
|
}
|
|
|
@@ -688,21 +689,21 @@ var fnSetBrandInfo = function(result) {
|
|
|
var arrbrandCd = [];
|
|
|
var brandText = "";
|
|
|
var bIndex = 0;
|
|
|
-
|
|
|
+
|
|
|
$('#searchForm').find('#brandText').html('');
|
|
|
$('#searchForm input[name=searchTxt]').val('');
|
|
|
-
|
|
|
+
|
|
|
result.forEach(function(brand){
|
|
|
- bIndex++;
|
|
|
+ bIndex++;
|
|
|
arrbrandCd.push(brand.brandCd);
|
|
|
});
|
|
|
|
|
|
- // 조회값이 하나일 경우 화면에 코드 노출 그외는 갯수 처리
|
|
|
+ // 조회값이 하나일 경우 화면에 코드 노출 그외는 갯수 처리
|
|
|
if (bIndex == 1) {
|
|
|
$('#searchForm input[name=searchTxt]').val(arrbrandCd[0]);
|
|
|
}else{
|
|
|
brandText = bIndex + " 개";
|
|
|
- $('#searchForm').find('#brandText').html(brandText);
|
|
|
+ $('#searchForm').find('#brandText').html(brandText);
|
|
|
}
|
|
|
var jsonData = JSON.stringify(arrbrandCd);
|
|
|
$("#searchForm input[name=brandList]").val(jsonData);
|