|
|
@@ -28,7 +28,7 @@
|
|
|
<div class="panelStyle" >
|
|
|
<!-- TITLE -->
|
|
|
<div class="panelTitle">
|
|
|
- <h3><i class="fa fa-info-circle"></i>아래 검색조건 중 <font color="red">업체, 키워드</font>중 하나를 꼭 입력해 주세요.</h3>
|
|
|
+ <h3><i class="fa fa-info-circle"></i>아래 검색조건 중 <font color="red">업체, 브랜드, 키워드</font>중 하나를 꼭 입력해 주세요.</h3>
|
|
|
<span class="panelControl">
|
|
|
<i class="fa fa-chevron-up"></i>
|
|
|
</span>
|
|
|
@@ -59,24 +59,23 @@
|
|
|
<option value="">[전체]</option>
|
|
|
</select>
|
|
|
</td>
|
|
|
- <th>품목</th>
|
|
|
+ <th>브랜드<em class="required" title="필수"></em></th>
|
|
|
<td colspan="3">
|
|
|
- <select name="itemkindCd" id="itemkindCd">
|
|
|
- <option value="">[전체]</option>
|
|
|
- <option th:if="${itemkindList}" th:each="oneData, status : ${itemkindList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
- </select>
|
|
|
+ <input type="text" class="w100" name="searchTxt" id="searchTxt" maxlength="20" />
|
|
|
+ <button type="button" class="btn icn" id="btnSearchBrand"><i class="fa fa-search"></i></button>
|
|
|
+ <input type="text" class="w100" name="searchBrandCd" readonly="readonly"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>키워드<em class="required" title="필수"></em></th>
|
|
|
- <td colspan="3">
|
|
|
+ <td>
|
|
|
<select name="search" id="search">
|
|
|
<option value="searchGoodsCd">상품코드</option>
|
|
|
<option value="searchGoodsNm">상품명</option>
|
|
|
<option value="searchGoodsNum">품번</option>
|
|
|
<option value="searchSupplyGoodsCd">업체상품코드</option>
|
|
|
</select>
|
|
|
- <input type="text" class="w150" name="condition" id="condition" maxlength="50"/>
|
|
|
+ <input type="text" class="w100" name="condition" id="condition" maxlength="50"/>
|
|
|
</td>
|
|
|
<th>상품상태</th>
|
|
|
<td>
|
|
|
@@ -85,6 +84,15 @@
|
|
|
<option th:if="${goodsStatList}" th:each="oneData, status : ${goodsStatList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
</td>
|
|
|
+ <th>품목</th>
|
|
|
+ <td colspan="3">
|
|
|
+ <select name="itemkindCd" id="itemkindCd">
|
|
|
+ <option value="">[전체]</option>
|
|
|
+ <option th:if="${itemkindList}" th:each="oneData, status : ${itemkindList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
<th>정상/이월 구분</th>
|
|
|
<td>
|
|
|
<select name="formalGb" id="formalGb">
|
|
|
@@ -92,8 +100,13 @@
|
|
|
<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>
|
|
|
+ <td>
|
|
|
+ <select name="optCd1" id="optCd1">
|
|
|
+ <option value="">[전체]</option>
|
|
|
+ <option th:if="${colorList}" th:each="oneData, status : ${colorList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
<th>년도/시즌</th>
|
|
|
<td colspan="3">
|
|
|
<select name="styleYear" id="styleYear">
|
|
|
@@ -105,18 +118,6 @@
|
|
|
<option th:if="${seasonList}" th:each="oneData, status : ${seasonList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
</td>
|
|
|
- <th>색상</th>
|
|
|
- <td>
|
|
|
- <select name="optCd1" id="optCd1">
|
|
|
- <option value="">[전체]</option>
|
|
|
- <option th:if="${colorList}" th:each="oneData, status : ${colorList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <th>사이즈</th>
|
|
|
- <td>
|
|
|
- <input type="text" class="w80" name="optCd2" id="optCd2" maxlength="50"/>
|
|
|
- </td>
|
|
|
-
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>품절여부</th>
|
|
|
@@ -133,6 +134,10 @@
|
|
|
<option th:if="${brandMdList}" th:each="oneData, status : ${brandMdList}" th:value="${oneData.cd}" th:text="${oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
</td>
|
|
|
+ <th>사이즈</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="w80" name="optCd2" id="optCd2" maxlength="50"/>
|
|
|
+ </td>
|
|
|
<th>재고수량</th>
|
|
|
<td colspan="3">
|
|
|
<input type="text" class="w70" name="stockQtySt" id="stockQtySt" maxlength="5" data-valid-type="numeric"/> ~ <input type="text" class="w70" name="stockQtyEd" id="stockQtyEd" maxlength="5" data-valid-type="numeric"/>
|
|
|
@@ -338,12 +343,15 @@
|
|
|
var searchFlag = false;
|
|
|
var cnt = 0;
|
|
|
|
|
|
- /* if( !gagajf.isNull($("#goodsSizeStockForm select[name=supplyCompCd]").val())
|
|
|
+ if( !gagajf.isNull($("#goodsSizeStockForm select[name=supplyCompCd]").val())
|
|
|
|| !gagajf.isNull($("#goodsSizeStockForm input[name=condition]").val())
|
|
|
|| (!gagajf.isNull($("#goodsSizeStockForm input[name=stDate]").val()) && !gagajf.isNull($("#goodsSizeStockForm input[name=edDate]").val()))
|
|
|
+ || !gagajf.isNull($("#goodsSizeStockForm input[name=searchBrandCd]").val())
|
|
|
+
|
|
|
){
|
|
|
searchFlag = true;
|
|
|
- }else{ */
|
|
|
+ }else{
|
|
|
+ /*
|
|
|
for (i = 0; i < form.elements.length; i++ ) {
|
|
|
var el = form.elements[i];
|
|
|
|
|
|
@@ -355,8 +363,8 @@
|
|
|
}
|
|
|
|
|
|
if(cnt > 0) searchFlag = true;
|
|
|
-
|
|
|
- /* } */
|
|
|
+ */
|
|
|
+ }
|
|
|
|
|
|
if(searchFlag == false){
|
|
|
mcxDialog.alert("검색조건을 입력하세요.");
|
|
|
@@ -535,7 +543,23 @@
|
|
|
$("#goodsSizeStockForm select[name=brandCd] option:gt(0)").remove();
|
|
|
|
|
|
cfnCreateCombo(actionUrl, $('#goodsSizeStockForm select[name=supplyCompCd]'), "[전체]", "");
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ // 브랜드 조회 팝업에서 호출
|
|
|
+ var fnSetBrandInfo = function(result) {
|
|
|
+ $("#goodsSizeStockForm input[name=searchBrandCd]").val(result[0].brandCd);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 브랜드 조회 선택시
|
|
|
+ $('#btnSearchBrand').on('click', function() {
|
|
|
|
|
|
+ if (gagajf.isNull($("#goodsSizeStockForm input[name=searchTxt]").val())){
|
|
|
+ mcxDialog.alert('브랜드 검색어를 입력하세요.');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ cfnOpenBrandListPopup('fnSetBrandInfo', $("#goodsSizeStockForm input[name=searchTxt]").val());
|
|
|
|
|
|
});
|
|
|
|