|
|
@@ -37,19 +37,21 @@
|
|
|
<div class="panelContent">
|
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
|
- <col width="9%"/>
|
|
|
- <col width="16%"/>
|
|
|
- <col width="9%"/>
|
|
|
- <col width="16%"/>
|
|
|
- <col width="9%"/>
|
|
|
- <col width="16%"/>
|
|
|
- <col width="9%"/>
|
|
|
+ <col width="10%"/>
|
|
|
+ <col width="23%"/>
|
|
|
+ <col width="10%"/>
|
|
|
+ <col width="23%"/>
|
|
|
+ <col width="10%"/>
|
|
|
<col/>
|
|
|
</colgroup>
|
|
|
<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>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="w100" name="supplyCompSearchTxt" id="supplyCompSearchTxt" maxlength="20" />
|
|
|
+ <button type="button" class="btn icn" id="btnSearchSupplyComp"><i class="fa fa-search"></i></button>
|
|
|
+ <span id="supplyCompText"></span>
|
|
|
+ <input type="hidden" name="supplyCompList"/>
|
|
|
+ <!-- <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>
|
|
|
@@ -57,18 +59,18 @@
|
|
|
</select>
|
|
|
<select name="brandCd" id="brandCd">
|
|
|
<option value="">[전체]</option>
|
|
|
- </select>
|
|
|
+ </select> -->
|
|
|
</td>
|
|
|
<th>브랜드<em class="required" title="필수"></em></th>
|
|
|
- <td colspan="3">
|
|
|
+ <td>
|
|
|
<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"/>
|
|
|
+ <!-- <input type="text" class="w100" name="brandCd" readonly="readonly"/> -->
|
|
|
+ <span id="brandText"></span>
|
|
|
+ <input type="hidden" name="brandList"/>
|
|
|
</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
<th>키워드<em class="required" title="필수"></em></th>
|
|
|
- <td>
|
|
|
+ <td colspan="3">
|
|
|
<select name="search" id="search">
|
|
|
<option value="searchGoodsCd">상품코드</option>
|
|
|
<option value="searchGoodsNm">상품명</option>
|
|
|
@@ -77,6 +79,15 @@
|
|
|
</select>
|
|
|
<input type="text" class="w100" name="condition" id="condition" maxlength="50"/>
|
|
|
</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>정상/이월 구분</th>
|
|
|
+ <td>
|
|
|
+ <select name="formalGb" id="formalGb">
|
|
|
+ <option value="">[전체]</option>
|
|
|
+ <option th:if="${formalGbList}" th:each="oneData, status : ${formalGbList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
<th>상품상태</th>
|
|
|
<td>
|
|
|
<select name="goodsStat" id="goodsStat">
|
|
|
@@ -93,11 +104,11 @@
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <th>정상/이월 구분</th>
|
|
|
+ <th>품절여부</th>
|
|
|
<td>
|
|
|
- <select name="formalGb" id="formalGb">
|
|
|
+ <select name="soldOutYn" id="soldOutYn">
|
|
|
<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="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
</td>
|
|
|
<th>색상</th>
|
|
|
@@ -120,13 +131,6 @@
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <th>품절여부</th>
|
|
|
- <td>
|
|
|
- <select name="soldOutYn" id="soldOutYn">
|
|
|
- <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>
|
|
|
<th>담당MD</th>
|
|
|
<td>
|
|
|
<select name="mdNo" id="mdNo">
|
|
|
@@ -305,6 +309,10 @@
|
|
|
//$("#goodsSizeStockForm input[type=radio][checked]").parent("label").addClass("checked");
|
|
|
|
|
|
$("#goodsSizeStockForm input[name=selfYn]:input[value='Y']").trigger('click');
|
|
|
+ $('#goodsSizeStockForm input[name=brandList]').val('');
|
|
|
+ $('#goodsSizeStockForm input[name=supplyCompList]').val('');
|
|
|
+ $('#goodsSizeStockForm').find('#brandText').html('');
|
|
|
+ $('#goodsSizeStockForm').find('#supplyCompText').html('');
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -343,10 +351,10 @@
|
|
|
var searchFlag = false;
|
|
|
var cnt = 0;
|
|
|
|
|
|
- if( !gagajf.isNull($("#goodsSizeStockForm select[name=supplyCompCd]").val())
|
|
|
+ if( !gagajf.isNull($("#goodsSizeStockForm input[name=supplyCompList]").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())
|
|
|
+ || !gagajf.isNull($("#goodsSizeStockForm input[name=brandList]").val())
|
|
|
|
|
|
){
|
|
|
searchFlag = true;
|
|
|
@@ -441,7 +449,7 @@
|
|
|
|
|
|
|
|
|
//업체변경시
|
|
|
- $('#goodsSizeStockForm select[name=supplyCompCd]').on('change', function() {
|
|
|
+ /* $('#goodsSizeStockForm select[name=supplyCompCd]').on('change', function() {
|
|
|
var supplyCompCd = $(this).val();
|
|
|
|
|
|
var actionUrl = '/renderer/supplyCompany/brand/list/' + supplyCompCd;
|
|
|
@@ -453,7 +461,7 @@
|
|
|
|
|
|
cfnCreateCombo(actionUrl, $('#goodsSizeStockForm select[name=brandCd]'), "[전체]", "");
|
|
|
|
|
|
- });
|
|
|
+ }); */
|
|
|
|
|
|
//엑셀양식 다운로드
|
|
|
$('#btnExcelSampleDownLoad').on('click', function (){
|
|
|
@@ -530,7 +538,7 @@
|
|
|
}
|
|
|
|
|
|
// 자사/입점 변경여부
|
|
|
- $("#goodsSizeStockForm input[name=selfYn]").bind('click change', function () {
|
|
|
+ /* $("#goodsSizeStockForm input[name=selfYn]").bind('click change', function () {
|
|
|
//$('#goodsSizeStockForm input[name=selfYn]').on('change', function() {
|
|
|
var radioValue = $(this).val();
|
|
|
var selfGb = "S"; // 자사 공급 업체
|
|
|
@@ -544,24 +552,63 @@
|
|
|
|
|
|
cfnCreateCombo(actionUrl, $('#goodsSizeStockForm select[name=supplyCompCd]'), "[전체]", "");
|
|
|
|
|
|
+ }); */
|
|
|
+
|
|
|
+ // 업체 조회 선택시
|
|
|
+ $('#btnSearchSupplyComp').on('click', function() {
|
|
|
+ cfnOpenCompanyListPopup('fnSetSupplyCompInfo', 'M');
|
|
|
});
|
|
|
|
|
|
- // 브랜드 조회 팝업에서 호출
|
|
|
- var fnSetBrandInfo = function(result) {
|
|
|
- $("#goodsSizeStockForm input[name=searchBrandCd]").val(result[0].brandCd);
|
|
|
+ // 업체 조회 팝업에서 호출
|
|
|
+ var fnSetSupplyCompInfo = function(result) {
|
|
|
+ var arrSupplyComp = [];
|
|
|
+ var supplyCompText = "";
|
|
|
+ var sIndex = 0;
|
|
|
+ $('#goodsSizeStockForm').find('#supplyCompText').html('');
|
|
|
+ $('#goodsSizeStockForm input[name=supplyCompSearchTxt]').val('');
|
|
|
+ result.forEach(function(supplyComp){
|
|
|
+ sIndex++;
|
|
|
+ arrSupplyComp.push(supplyComp.supplyCompCd);
|
|
|
+ });
|
|
|
+
|
|
|
+ // 조회값이 하나일 경우 화면에 코드 노출 그외는 갯수 처리
|
|
|
+ if (sIndex == 1) {
|
|
|
+ $('#goodsSizeStockForm input[name=supplyCompSearchTxt]').val(arrSupplyComp[0]);
|
|
|
+ }else{
|
|
|
+ supplyCompText = sIndex + " 개";
|
|
|
+ $('#goodsSizeStockForm').find('#supplyCompText').html(supplyCompText);
|
|
|
+ }
|
|
|
+ var jsonData = JSON.stringify(arrSupplyComp);
|
|
|
+ $("#goodsSizeStockForm input[name=supplyCompList]").val(jsonData);
|
|
|
}
|
|
|
|
|
|
// 브랜드 조회 선택시
|
|
|
$('#btnSearchBrand').on('click', function() {
|
|
|
+ cfnOpenBrandListPopup('fnSetBrandInfo', 'M');
|
|
|
+ });
|
|
|
+
|
|
|
+ // 브랜드 조회 팝업에서 호출
|
|
|
+ var fnSetBrandInfo = function(result) {
|
|
|
+ var arrbrandCd = [];
|
|
|
+ var brandText = "";
|
|
|
+ var bIndex = 0;
|
|
|
+ $('#goodsSizeStockForm').find('#brandText').html('');
|
|
|
+ $('#goodsSizeStockForm input[name=searchTxt]').val('');
|
|
|
+ result.forEach(function(brand){
|
|
|
+ bIndex++;
|
|
|
+ arrbrandCd.push(brand.brandCd);
|
|
|
+ });
|
|
|
|
|
|
- if (gagajf.isNull($("#goodsSizeStockForm input[name=searchTxt]").val())){
|
|
|
- mcxDialog.alert('브랜드 검색어를 입력하세요.');
|
|
|
- return false;
|
|
|
+ // 조회값이 하나일 경우 화면에 코드 노출 그외는 갯수 처리
|
|
|
+ if (bIndex == 1) {
|
|
|
+ $('#goodsSizeStockForm input[name=searchTxt]').val(arrbrandCd[0]);
|
|
|
+ }else{
|
|
|
+ brandText = bIndex + " 개";
|
|
|
+ $('#goodsSizeStockForm').find('#brandText').html(brandText);
|
|
|
}
|
|
|
-
|
|
|
- cfnOpenBrandListPopup('fnSetBrandInfo', $("#goodsSizeStockForm input[name=searchTxt]").val());
|
|
|
-
|
|
|
- });
|
|
|
+ var jsonData = JSON.stringify(arrbrandCd);
|
|
|
+ $("#goodsSizeStockForm input[name=brandList]").val(jsonData);
|
|
|
+ }
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|