|
|
@@ -52,6 +52,8 @@
|
|
|
<tr>
|
|
|
<th>업체/브랜드<em class="required" title="필수"></em></th>
|
|
|
<td colspan="3">
|
|
|
+ <label class="rdoBtn"><input type="radio" name="selfYn" id="selfYnY" value="Y" checked/>자사</label>
|
|
|
+ <label class="rdoBtn"><input type="radio" name="selfYn" id="selfYnN" value="N"/>입점</label>
|
|
|
<select name="supplyCompCd" id="supplyCompCd">
|
|
|
<option value="" th:if="${sessionInfo.roleCd} != 'G001_B000'">[전체]</option>
|
|
|
<option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
@@ -98,25 +100,39 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
</td>
|
|
|
- <th>년도/시즌</th>
|
|
|
+ <th>정상/이월 구분</th>
|
|
|
<td>
|
|
|
- <select name="styleYear" id="styleYear">
|
|
|
- <option value="">[전체]</option>
|
|
|
- <option th:if="${styleYearList}" th:each="oneData, status : ${styleYearList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
- </select>
|
|
|
- <select name="seasonCd" id="seasonCd">
|
|
|
+ <select name="formalGb" id="formalGb">
|
|
|
<option value="">[전체]</option>
|
|
|
- <option th:if="${seasonList}" th:each="oneData, status : ${seasonList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
+ <option th:if="${formalGbList}" th:each="oneData, status : ${formalGbList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <th>정상/이월 구분</th>
|
|
|
+ <th>년도/시즌</th>
|
|
|
<td>
|
|
|
- <select name="formalGb" id="formalGb">
|
|
|
+ <!-- <select name="styleYear" id="styleYear">
|
|
|
<option value="">[전체]</option>
|
|
|
- <option th:if="${formalGbList}" th:each="oneData, status : ${formalGbList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
+ <option th:if="${styleYearList}" th:each="oneData, status : ${styleYearList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
+ <select name="seasonCd" id="seasonCd">
|
|
|
+ <option value="">[전체]</option>
|
|
|
+ <option th:if="${seasonList}" th:each="oneData, status : ${seasonList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
+ </select> -->
|
|
|
+ <div class="multiCheckBox" style="width:140px;">
|
|
|
+ <button type="button" class="sltBtn">[전체]</button>
|
|
|
+ <ul style="overflow:auto; height:140px">
|
|
|
+ <li><label class="chkBox"><input type="checkbox" name="전체선택" id="multiStyleYear" onclick="uifnAllCheck('multiStyleYear')">전체선택</label></li>
|
|
|
+ <li th:if="${styleYearList}" th:each="oneData, status : ${styleYearList}"><label class="chkBox"><input type="checkbox" name="multiStyleYear" th:id="${'styleYear' + oneData.cd}" th:value="${oneData.cd}" ><th:block th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></th:block></label></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <div class="multiCheckBox" style="width:170px;">
|
|
|
+ <button type="button" class="sltBtn">[전체]</button>
|
|
|
+ <ul style="overflow:auto; height:170px">
|
|
|
+ <li><label class="chkBox"><input type="checkbox" name="전체선택" id="multiSeasonCd" onclick="uifnAllCheck('multiSeasonCd')">전체선택</label></li>
|
|
|
+ <li th:if="${seasonList}" th:each="oneData, status : ${seasonList}"><label class="chkBox"><input type="checkbox" name="multiSeasonCd" th:id="${'seasonCd' + oneData.cd}" th:value="${oneData.cd}" ><th:block th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></th:block></label></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
<th>연령대</th>
|
|
|
<td>
|
|
|
@@ -396,7 +412,7 @@
|
|
|
}
|
|
|
},
|
|
|
{headerName: "품목", field: "itemkindNm", width: 150, cellClass: 'text-center'},
|
|
|
- /*{headerName: "판매가능재고", field: "stockQtySum", width: 120, cellClass: 'text-right',
|
|
|
+ {headerName: "판매가능재고", field: "stockQtySum", width: 120, cellClass: 'text-right',
|
|
|
valueFormatter: function(params) { return params.value.addComma();},
|
|
|
cellStyle : function(params){
|
|
|
if ("00" == params.data.goodsStat || "10" == params.data.goodsStat || "20" == params.data.goodsStat || "30" == params.data.goodsStat) {
|
|
|
@@ -408,7 +424,7 @@
|
|
|
}
|
|
|
return { 'background-color': color};
|
|
|
}
|
|
|
- },*/
|
|
|
+ },
|
|
|
{headerName: "상품상태", field: "goodsStat" , width: 100, cellClass: 'text-center',
|
|
|
cellEditorParams: { values: gagaAgGrid.extractValues(goodsStatList) },
|
|
|
valueFormatter: function (params) { return gagaAgGrid.lookupValue(goodsStatList, params.value); },
|
|
|
@@ -936,6 +952,23 @@
|
|
|
cfnOpenGoodsDealPopup();
|
|
|
});
|
|
|
|
|
|
+ // 자사/입점 변경여부
|
|
|
+ $("#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;
|
|
|
+
|
|
|
+ $('#searchForm').find('#multiBrand').empty();
|
|
|
+ //$("#searchForm select[name=brandCd] option:gt(0)").remove();
|
|
|
+
|
|
|
+ cfnCreateCombo(actionUrl, $('#searchForm select[name=supplyCompCd]'), "[전체]", "");
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
cfnCreateCalendar('#sellTerms', 'stDate', 'edDate', true, '등록일', 'X');
|
|
|
@@ -943,6 +976,7 @@
|
|
|
var selectCode = '<select name="dateGbn" id="dateGbn">';
|
|
|
selectCode += '<option value="R" seledted>상품등록일</option>';
|
|
|
selectCode += '<option value="P">가격변경일</option>';
|
|
|
+ selectCode += '<option value="S">최초승인일</option>';
|
|
|
selectCode += '</select>';
|
|
|
|
|
|
$("#searchForm").find('#sellTerms').prepend(selectCode);
|