|
@@ -22,7 +22,7 @@
|
|
|
<!-- 메뉴 설명 -->
|
|
<!-- 메뉴 설명 -->
|
|
|
<div class="infoBox menu-desc">
|
|
<div class="infoBox menu-desc">
|
|
|
</div>
|
|
</div>
|
|
|
- <form id="goodsPriceHstForm" name="goodsPriceHstForm" action="#" th:action="@{'/goods/price/hst/list'}">
|
|
|
|
|
|
|
+ <form id="goodsPriceHstForm" name="goodsPriceHstForm" action="#" th:action="@{'/goods/supply/price/list'}">
|
|
|
<input type="hidden" id="confirmY" name="confirmY">
|
|
<input type="hidden" id="confirmY" name="confirmY">
|
|
|
<!-- 패널 영역1 -->
|
|
<!-- 패널 영역1 -->
|
|
|
<div class="panelStyle" >
|
|
<div class="panelStyle" >
|
|
@@ -33,7 +33,9 @@
|
|
|
<table class="frmStyle">
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
<colgroup>
|
|
|
<col width="10%"/>
|
|
<col width="10%"/>
|
|
|
- <col width="40%"/>
|
|
|
|
|
|
|
+ <col width="23%"/>
|
|
|
|
|
+ <col width="10%"/>
|
|
|
|
|
+ <col width="23%"/>
|
|
|
<col width="10%"/>
|
|
<col width="10%"/>
|
|
|
<col/>
|
|
<col/>
|
|
|
</colgroup>
|
|
</colgroup>
|
|
@@ -41,7 +43,7 @@
|
|
|
<th>업체/브랜드</th>
|
|
<th>업체/브랜드</th>
|
|
|
<td>
|
|
<td>
|
|
|
<select name="supplyCompCd" id="supplyCompCd">
|
|
<select name="supplyCompCd" id="supplyCompCd">
|
|
|
- <option value="" th:if="${sessionInfo.roleCd} != 'A101'">[전체]</option>
|
|
|
|
|
|
|
+ <option value="" >[전체]</option>
|
|
|
<option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
<option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
</select>
|
|
|
<select name="brandCd" id="brandCd">
|
|
<select name="brandCd" id="brandCd">
|
|
@@ -52,17 +54,24 @@
|
|
|
<td>
|
|
<td>
|
|
|
<input type="text" class="w150" name="goodsCd" id="goodsCd" maxlength="50"/>
|
|
<input type="text" class="w150" name="goodsCd" id="goodsCd" maxlength="50"/>
|
|
|
</td>
|
|
</td>
|
|
|
|
|
+ <th>승인여부</th>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <select name="cfrmYn" id="cfrmYn">
|
|
|
|
|
+ <option value="">[전체]</option>
|
|
|
|
|
+ <option th:if="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
<th>발생일</th>
|
|
<th>발생일</th>
|
|
|
- <td colspan="3" id="sellTerms"></td>
|
|
|
|
|
|
|
+ <td colspan="5" id="sellTerms"></td>
|
|
|
</tr>
|
|
</tr>
|
|
|
</table>
|
|
</table>
|
|
|
<ul class="panelBar">
|
|
<ul class="panelBar">
|
|
|
<li class="center">
|
|
<li class="center">
|
|
|
<button type="button" class="btn btn-gray btn-lg" id="btnInit" >초기화</button>
|
|
<button type="button" class="btn btn-gray btn-lg" id="btnInit" >초기화</button>
|
|
|
<button type="button" class="btn btn-info btn-lg" id="btnSearch" >조회</button>
|
|
<button type="button" class="btn btn-info btn-lg" id="btnSearch" >조회</button>
|
|
|
- <button type="button" class="btn btn-base btn-lg" id="btnConfirmSearch" th:if="${sessionInfo.roleCd == 'G001_0000' OR sessionInfo.roleCd == 'G001_A000' OR sessionInfo.roleCd == 'G001_A101' OR sessionInfo.roleCd == 'G001_A100' OR sessionInfo.roleCd == 'G001_A001'}">미승인목록 조회</button>
|
|
|
|
|
|
|
+ <!-- <button type="button" class="btn btn-base btn-lg" id="btnConfirmSearch" th:if="${sessionInfo.roleCd == 'G001_0000' OR sessionInfo.roleCd == 'G001_A000' OR sessionInfo.roleCd == 'G001_A101' OR sessionInfo.roleCd == 'G001_A100' OR sessionInfo.roleCd == 'G001_A001'}">미승인목록 조회</button> -->
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
@@ -73,12 +82,26 @@
|
|
|
<!-- 상단버튼 영역 -->
|
|
<!-- 상단버튼 영역 -->
|
|
|
<ul class="panelBar">
|
|
<ul class="panelBar">
|
|
|
<li class="right">
|
|
<li class="right">
|
|
|
- <button type="button" class="btn btn-success btn-lg" id="btnSaveGoodsPriceConfirm" th:if="${sessionInfo.roleCd == 'G001_0000' OR sessionInfo.roleCd == 'G001_A000' OR sessionInfo.roleCd == 'G001_A101' OR sessionInfo.roleCd == 'G001_A100' OR sessionInfo.roleCd == 'G001_A001'}">승인</button>
|
|
|
|
|
|
|
+ <!-- <button type="button" class="btn btn-success btn-lg" id="btnSaveGoodsPriceConfirm" th:if="${sessionInfo.roleCd == 'G001_0000' OR sessionInfo.roleCd == 'G001_A000' OR sessionInfo.roleCd == 'G001_A101' OR sessionInfo.roleCd == 'G001_A100' OR sessionInfo.roleCd == 'G001_A001'}">승인</button> -->
|
|
|
|
|
+ 검색결과 : <strong><span id="gridRowTotalCount">0</span> 건</strong>
|
|
|
|
|
+ 쪽번호 <span id="pgNo">0</span>/ <strong id="endPgNo">0</strong>
|
|
|
|
|
+ <select id="pageSize" name="pageSize">
|
|
|
|
|
+ <option value="50" selected="selected">50개씩 보기</option>
|
|
|
|
|
+ <option value="100">100개씩 보기</option>
|
|
|
|
|
+ <option value="500">500개씩 보기</option>
|
|
|
|
|
+ <option value="1000">1000개씩 보기</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <input type="hidden" name="pageNo" id="pageNo" value ="1"/>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<!-- //상단버튼 영역 -->
|
|
<!-- //상단버튼 영역 -->
|
|
|
<!-- 검색결과 영역 -->
|
|
<!-- 검색결과 영역 -->
|
|
|
<div id="gridList" style="width: 100%; height: 550px;" class="ag-theme-balham"></div>
|
|
<div id="gridList" style="width: 100%; height: 550px;" class="ag-theme-balham"></div>
|
|
|
|
|
+ <ul class="panelBar">
|
|
|
|
|
+ <li class="center">
|
|
|
|
|
+ <div class="tablePaging" id="goodsListPagination"></div>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>
|
|
|
<!-- 검색결과 영역 -->
|
|
<!-- 검색결과 영역 -->
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|
|
@@ -94,11 +117,8 @@
|
|
|
columnDefs = [
|
|
columnDefs = [
|
|
|
{width: 40, minWidth: 40, cellClass: 'text-right', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
|
|
{width: 40, minWidth: 40, cellClass: 'text-right', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
|
|
|
{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
|
|
{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
|
|
|
- {headerName: "등록일", field: "regYmd", width: 90, cellClass: 'text-center',
|
|
|
|
|
- cellRenderer: function(params) {
|
|
|
|
|
- return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDD").format("YYYY-MM-DD") : '';
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ {headerName: "업체", field: "supplyCompNm" , width: 100, cellClass: 'text-center'},
|
|
|
|
|
+ {headerName: "브랜드", field: "brandEnm" , width: 100, cellClass: 'text-center'},
|
|
|
{headerName: "상품코드", field: "goodsCd", width: 130, cellClass: 'text-center'
|
|
{headerName: "상품코드", field: "goodsCd", width: 130, cellClass: 'text-center'
|
|
|
,cellRenderer: function(params) {
|
|
,cellRenderer: function(params) {
|
|
|
return '<a href="javascript:void(0);">' + params.value + '</a>';
|
|
return '<a href="javascript:void(0);">' + params.value + '</a>';
|
|
@@ -109,36 +129,45 @@
|
|
|
valueFormatter: function (params) { return gagaAgGrid.lookupValue(goodsStatList, params.value); },
|
|
valueFormatter: function (params) { return gagaAgGrid.lookupValue(goodsStatList, params.value); },
|
|
|
valueParser: function (params) { return gagaAgGrid.lookupKey(goodsStatList, params.newValue); }
|
|
valueParser: function (params) { return gagaAgGrid.lookupKey(goodsStatList, params.newValue); }
|
|
|
},
|
|
},
|
|
|
- {headerName: "온라인 판매가", field: "onPrice", width: 120, cellClass: 'text-right'
|
|
|
|
|
|
|
+ {headerName: "온라인 현재판매가", field: "currPrice", width: 120, cellClass: 'text-right'
|
|
|
,valueFormatter: function(params) {return params.value.addComma();}
|
|
,valueFormatter: function(params) {return params.value.addComma();}
|
|
|
},
|
|
},
|
|
|
- {headerName: "판매가조정대상금액", field: "gapPrice", width: 140, cellClass: 'text-right'
|
|
|
|
|
|
|
+ {headerName: "판매가조정대상금액", field: "resGoodsPrice", width: 140, cellClass: 'text-right'
|
|
|
,cellRenderer: function(params) {
|
|
,cellRenderer: function(params) {
|
|
|
- var gapPrice = Number(params.data.onPrice) - Number(params.data.erpPrice);
|
|
|
|
|
-
|
|
|
|
|
- if (gapPrice >= 0){
|
|
|
|
|
- return '<font color="red"> '+ gapPrice.addComma() +'</font>';
|
|
|
|
|
|
|
+ if (params.data.resGoodsPrice <= 0){
|
|
|
|
|
+ return "-";
|
|
|
}else{
|
|
}else{
|
|
|
- return '<font color="blue"> '+ gapPrice.addComma() +'</font>';
|
|
|
|
|
|
|
+ var gapPrice = Number(params.data.currPrice) - Number(params.data.resGoodsPrice);
|
|
|
|
|
+
|
|
|
|
|
+ if (gapPrice >= 0){
|
|
|
|
|
+ return '<font color="red"> '+ params.value.addComma() +'</font>';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ return '<font color="blue"> '+ params.value.addComma() +'</font>';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- {headerName: "온라인 판매수수료", field: "onTagPrice", width: 140, cellClass: 'text-right'
|
|
|
|
|
|
|
+ {headerName: "온라인 판매수수료", field: "goodsSellFeeRate", width: 140, cellClass: 'text-right'
|
|
|
,valueFormatter: function(params) {return params.value.addComma();}
|
|
,valueFormatter: function(params) {return params.value.addComma();}
|
|
|
},
|
|
},
|
|
|
- {headerName: "판매수수료 조정대상수수료", field: "gapTagPrice", width: 180, cellClass: 'text-right'
|
|
|
|
|
|
|
+ {headerName: "판매수수료 조정대상수수료", field: "sellFeeRate", width: 180, cellClass: 'text-right'
|
|
|
,cellRenderer: function(params) {
|
|
,cellRenderer: function(params) {
|
|
|
- var gapTagPrice = Number(params.data.onTagPrice) - Number(params.data.erpTagPrice);
|
|
|
|
|
-
|
|
|
|
|
- if (gapTagPrice >= 0){
|
|
|
|
|
- return '<font color="red"> '+ gapTagPrice.addComma() +'</font>';
|
|
|
|
|
|
|
+ if (gagajf.isNull(params.data.sellFeeRate)){
|
|
|
|
|
+ return "-";
|
|
|
}else{
|
|
}else{
|
|
|
- return '<font color="blue"> '+ gapTagPrice.addComma() +'</font>';
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ var gapRate = Number(params.data.goodsSellFeeRate) - Number(params.data.sellFeeRate);
|
|
|
|
|
+
|
|
|
|
|
+ if (gapRate >= 0){
|
|
|
|
|
+ return '<font color="red"> '+ params.data.sellFeeRate +'</font>';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ return '<font color="blue"> '+ params.data.sellFeeRate +'</font>';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- {headerName: "승인자", field: "applyId", width: 130, cellClass: 'text-center'},
|
|
|
|
|
- {headerName: "승인일자", field: "applyDt" , width: 150, cellClass: 'text-center',
|
|
|
|
|
|
|
+ {headerName: "승인자", field: "cfrmNm", width: 130, cellClass: 'text-center'},
|
|
|
|
|
+ {headerName: "승인일자", field: "cfrmDt" , width: 150, cellClass: 'text-center',
|
|
|
cellRenderer: function(params) {
|
|
cellRenderer: function(params) {
|
|
|
return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
|
|
return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
|
|
|
}
|
|
}
|
|
@@ -148,7 +177,7 @@
|
|
|
return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
|
|
return !gagajf.isNull(params.value) ? params.value.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD HH:mm:ss") : '';
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- {headerName: "등록자", field: "regId" , width: 100, cellClass: 'text-center'}
|
|
|
|
|
|
|
+ {headerName: "등록자", field: "regNm" , width: 100, cellClass: 'text-center'}
|
|
|
|
|
|
|
|
];
|
|
];
|
|
|
|
|
|
|
@@ -216,8 +245,10 @@
|
|
|
|
|
|
|
|
if(!fnConditionCheck()) return;
|
|
if(!fnConditionCheck()) return;
|
|
|
|
|
|
|
|
- var formId = "#goodsPriceHstForm";
|
|
|
|
|
- gagaAgGrid.fetch($(formId).prop('action'), gridOptions, formId);
|
|
|
|
|
|
|
+ //var formId = "#goodsPriceHstForm";
|
|
|
|
|
+ //gagaAgGrid.fetch($(formId).prop('action'), gridOptions, formId);
|
|
|
|
|
+ gagaPaging.init('goodsPriceHstForm', fnSearchCallBack, 'goodsListPagination', $('#goodsPriceHstForm').find('#pageSize').val());
|
|
|
|
|
+ gagaPaging.load($("#goodsPriceHstForm input[name=pageNo]").val());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//검색 조건 확인
|
|
//검색 조건 확인
|
|
@@ -239,7 +270,7 @@
|
|
|
for (i = 0; i < form.elements.length; i++ ) {
|
|
for (i = 0; i < form.elements.length; i++ ) {
|
|
|
var el = form.elements[i];
|
|
var el = form.elements[i];
|
|
|
|
|
|
|
|
- if ($(el).prop("type") == "text" || ($(el).prop("type") == "select-one" && el.name != "search" && el.name != "dateGbn")) {
|
|
|
|
|
|
|
+ if ($(el).prop("type") == "text" || ($(el).prop("type") == "select-one" && el.name != "search" && el.name != "dateGbn" && el.name != "pageSize")) {
|
|
|
if (!(el.value == null || el.value == "")) {
|
|
if (!(el.value == null || el.value == "")) {
|
|
|
cnt++;
|
|
cnt++;
|
|
|
}
|
|
}
|
|
@@ -257,6 +288,23 @@
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ var fnSearchCallBack = function(result){
|
|
|
|
|
+
|
|
|
|
|
+ $('#goodsPriceHstForm').find('#gridRowTotalCount').html(result.pageing.pageable.totalCount.addComma());
|
|
|
|
|
+ $('#goodsPriceHstForm').find('#pageNo').val(result.pageing.pageable.pageNo.addComma());
|
|
|
|
|
+ $('#goodsPriceHstForm').find('#pgNo').html(result.pageing.pageable.pageNo.addComma());
|
|
|
|
|
+ $('#goodsPriceHstForm').find('#endPgNo').html(result.pageing.pageable.totalPage.addComma());
|
|
|
|
|
+ gridOptions.api.setRowData(result.goodsList);
|
|
|
|
|
+ gagaPaging.createPagination(result.pageing.pageable);
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ //페이징
|
|
|
|
|
+ $('#goodsPriceHstForm select[name=pageSize]').on('change', function() {
|
|
|
|
|
+ $("#goodsPriceHstForm input[name=pageNo]").val('1');
|
|
|
|
|
+ fnGoodsPriceHstListSearch('N');
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
//업체변경시
|
|
//업체변경시
|
|
|
$('#goodsPriceHstForm select[name=supplyCompCd]').on('change', function() {
|
|
$('#goodsPriceHstForm select[name=supplyCompCd]').on('change', function() {
|
|
|
var actionUrl = '/renderer/supplyCompany/brand/list/' + $(this).val();
|
|
var actionUrl = '/renderer/supplyCompany/brand/list/' + $(this).val();
|
|
@@ -324,17 +372,17 @@
|
|
|
$("#goodsPriceHstForm").find('#sellTerms').prepend(selectCode);
|
|
$("#goodsPriceHstForm").find('#sellTerms').prepend(selectCode);
|
|
|
|
|
|
|
|
|
|
|
|
|
- if(sessRoleCd == "G001_A101") {
|
|
|
|
|
|
|
+ if(sessRoleCd == "G001_B000") {
|
|
|
$("#goodsPriceHstForm select[name=supplyCompCd]").val([[${sessionInfo.supplyCompCd}]]);
|
|
$("#goodsPriceHstForm select[name=supplyCompCd]").val([[${sessionInfo.supplyCompCd}]]);
|
|
|
- $("#goodsPriceHstForm select[name=supplyCompCd]").attr("disabled", true);
|
|
|
|
|
- $("select[disabled]").addClass("formControl");
|
|
|
|
|
|
|
+ //$("#goodsPriceHstForm select[name=supplyCompCd]").attr("disabled", true);
|
|
|
|
|
+ //$("select[disabled]").addClass("formControl");
|
|
|
var actionUrl = '/renderer/brand/AuthBrandlist';
|
|
var actionUrl = '/renderer/brand/AuthBrandlist';
|
|
|
cfnCreateCombo(actionUrl, $('#goodsPriceHstForm select[name=brandCd]'), "[전체]");
|
|
cfnCreateCombo(actionUrl, $('#goodsPriceHstForm select[name=brandCd]'), "[전체]");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Create a agGrid
|
|
// Create a agGrid
|
|
|
gagaAgGrid.createGrid('gridList', gridOptions);
|
|
gagaAgGrid.createGrid('gridList', gridOptions);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
/*]]>*/
|
|
/*]]>*/
|