|
|
@@ -41,10 +41,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 value="" >[전체]</option>
|
|
|
<option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
<span id="multiBrand"></span>
|
|
|
@@ -338,6 +336,7 @@
|
|
|
//$("#goodsPopupForm input[type=radio]").parent("label").removeClass("checked");
|
|
|
$("#goodsPopupForm input[type=checkbox]").parent("label").removeClass("checked");
|
|
|
$("#goodsPopupForm input[type=radio][checked]").parent("label").addClass("checked");
|
|
|
+ fnSupplyBrandInit();
|
|
|
});
|
|
|
|
|
|
// 조회클릭시
|
|
|
@@ -490,7 +489,7 @@
|
|
|
//uiPopupClose('goodsPopupForm');
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
//업체변경시
|
|
|
$('#goodsPopupForm select[name=supplyCompCd]').on('change', function() {
|
|
|
var actionUrl = '/renderer/supplyCompany/brand/list/' + $(this).val();
|
|
|
@@ -504,23 +503,17 @@
|
|
|
cfnCreateMultiCombo(actionUrl,"multiBrand", "[전체]",null, 'Y', null, null, 'goodsPopupForm');
|
|
|
});
|
|
|
|
|
|
- // 자사/입점 변경여부
|
|
|
- $("#goodsPopupForm 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;
|
|
|
+ // 업체 브랜드 초기화
|
|
|
+ var fnSupplyBrandInit = function(){
|
|
|
+ $("#goodsPopupForm select[name=supplyCompCd]").val([[${sessionInfo.supplyCompCd}]]);
|
|
|
+ //$("#goodsPopupForm select[name=supplyCompCd]").attr("disabled", true);
|
|
|
+ //$("select[disabled]").addClass("formControl");
|
|
|
|
|
|
$('#goodsPopupForm').find('#multiBrand').empty();
|
|
|
- //$("#searchForm select[name=brandCd] option:gt(0)").remove();
|
|
|
-
|
|
|
- cfnCreateCombo(actionUrl, $('#goodsPopupForm select[name=supplyCompCd]'), "[전체]", "");
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
+ var actionUrl = '/renderer/brand/AuthBrandlist';
|
|
|
+ cfnCreateMultiCombo(actionUrl,"multiBrand", "[전체]",null, 'Y', null, null, 'goodsPopupForm');
|
|
|
+ }
|
|
|
+
|
|
|
$(document).ready(function() {
|
|
|
cfnCreateCalendar('#sellTermsP', 'stDate', 'edDate', true, '등록일', 'X');
|
|
|
|
|
|
@@ -537,8 +530,7 @@
|
|
|
|
|
|
// 입점 사용자 브랜드 조회 처리
|
|
|
if(sessRoleCd == "G001_B000"){
|
|
|
- actionUrl = '/renderer/brand/AuthBrandlist';
|
|
|
- cfnCreateMultiCombo(actionUrl,"multiBrand", "[전체]",null, 'Y', null, null, 'goodsPopupForm');
|
|
|
+ fnSupplyBrandInit();
|
|
|
}
|
|
|
|
|
|
});
|