|
@@ -33,6 +33,15 @@
|
|
|
<col/>
|
|
<col/>
|
|
|
</colgroup>
|
|
</colgroup>
|
|
|
<tbody>
|
|
<tbody>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th>업체</th>
|
|
|
|
|
+ <td colspan="3">
|
|
|
|
|
+ <input type="text" class="w100" name="popSupplyCompSearchTxt" id="popSupplyCompSearchTxt" maxlength="20" />
|
|
|
|
|
+ <button type="button" class="btn icn" id="popBtnSearchSupplyComp"><i class="fa fa-search"></i></button>
|
|
|
|
|
+ <span id="popSupplyCompText"></span>
|
|
|
|
|
+ <input type="hidden" name="supplyCompList"/>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
<th>자사/입점</th>
|
|
<th>자사/입점</th>
|
|
|
<td colspan="3">
|
|
<td colspan="3">
|
|
@@ -137,6 +146,36 @@
|
|
|
uifnPopupClose('popupBrandList');
|
|
uifnPopupClose('popupBrandList');
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ // 업체 조회 선택시
|
|
|
|
|
+ $('#popBtnSearchSupplyComp').on('click', function() {
|
|
|
|
|
+ cfnOpenCompanyListPopup('fnSetSupplyCompInfoPop', 'M');
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // 업체 조회 팝업에서 호출
|
|
|
|
|
+ var fnSetSupplyCompInfoPop = function(result) {
|
|
|
|
|
+ var arrSupplyComp = [];
|
|
|
|
|
+ var supplyCompText = "";
|
|
|
|
|
+ var sIndex = 0;
|
|
|
|
|
+ var supplyCompNm = "";
|
|
|
|
|
+ $('#searchBrandListForm').find('#popSupplyCompText').html('');
|
|
|
|
|
+ $('#searchBrandListForm input[name=popSupplyCompSearchTxt]').val('');
|
|
|
|
|
+ result.forEach(function(supplyComp){
|
|
|
|
|
+ sIndex++;
|
|
|
|
|
+ arrSupplyComp.push(supplyComp.supplyCompCd);
|
|
|
|
|
+ supplyCompNm = supplyComp.supplyCompNm;
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // 조회값이 하나일 경우 화면에 코드 노출 그외는 갯수 처리
|
|
|
|
|
+ if (sIndex == 1) {
|
|
|
|
|
+ $('#searchBrandListForm input[name=popSupplyCompSearchTxt]').val(supplyCompNm);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ supplyCompText = sIndex + " 개";
|
|
|
|
|
+ $('#searchBrandListForm').find('#popSupplyCompText').html(supplyCompText);
|
|
|
|
|
+ }
|
|
|
|
|
+ var jsonData = JSON.stringify(arrSupplyComp);
|
|
|
|
|
+ $("#searchBrandListForm input[name=supplyCompList]").val(jsonData);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
|
// Create a agGrid
|
|
// Create a agGrid
|