|
|
@@ -304,8 +304,8 @@
|
|
|
$("#detailForm input[name=brandKnm]").val(event.data.brandKnm);
|
|
|
$("#detailForm input[name=brandGrpNm]").val(event.data.brandGrpNm);
|
|
|
$("#detailForm input[name=erpBrandCd]").val(event.data.erpBrandCd);
|
|
|
- $("#detailForm select[name=supplyCompCd]").val(event.data.supplyCompCd);
|
|
|
$("#detailForm select[name=distributionGb]").val(event.data.distributionGb);
|
|
|
+ fnGetSupplyCompCdList(event.data.supplyCompCd);
|
|
|
|
|
|
// 출고처 정보
|
|
|
$.getJSON('/renderer/delvloc/list/' + event.data.supplyCompCd
|
|
|
@@ -330,6 +330,7 @@
|
|
|
$("#detailForm input:radio[name=useYn]:input[value=" + event.data.useYn + "]").click();
|
|
|
$("#detailForm input[name=dispOrd]").val(event.data.dispOrd);
|
|
|
|
|
|
+
|
|
|
// 담당MD 영역 노출
|
|
|
$("#brandMdArea").removeClass("off").addClass("on");
|
|
|
fnGetBrandMdList(event.data.brandCd);
|
|
|
@@ -337,6 +338,8 @@
|
|
|
// 전시사이트 영역 노출
|
|
|
$("#siteArea").removeClass("off").addClass("on");
|
|
|
fnGetBrandSiteList(event.data.brandCd);
|
|
|
+
|
|
|
+ $("#detailForm select[name=supplyCompCd]").val(event.data.supplyCompCd);
|
|
|
}
|
|
|
|
|
|
// 조회
|
|
|
@@ -412,6 +415,21 @@
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ // 해당공급업체 조회
|
|
|
+ var fnGetSupplyCompCdList = function(supplyCompCd){
|
|
|
+ $.getJSON('/renderer/supply/company/list/' + $('#detailForm select[name=brandGb]').val()
|
|
|
+ , function(result, status) {
|
|
|
+ $('#detailForm select[name=supplyCompCd]').empty().append('<option value="">[선택]</option>');
|
|
|
+ $.each(result, function(idx, item) {
|
|
|
+ var optionHtml = '<option value="' + item.cd + '">[' + item.cd + '] '+ item.cdNm + '</option>\n';
|
|
|
+ $('#detailForm select[name=supplyCompCd]').append(optionHtml);
|
|
|
+ });
|
|
|
+ $("#detailForm select[name=supplyCompCd]").val(supplyCompCd);
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// 브랜드담당MD 목록
|
|
|
var fnGetBrandMdList = function(brandCd) {
|
|
|
$.getJSON('/business/brand/md/list/' + brandCd
|
|
|
@@ -444,6 +462,7 @@
|
|
|
, function(result) {
|
|
|
// 전시사이트 체크박스 체크 제거
|
|
|
$('#detailForm input:checkbox[name=siteCd]').prop('checked', false);
|
|
|
+ $('#detailForm input:checkbox[name=siteCd]').parent("label").removeClass("checked");
|
|
|
|
|
|
// 체크박스 개수
|
|
|
var chkboxCnt = $('#detailForm input:checkbox[name=siteCd]').length;
|
|
|
@@ -457,6 +476,7 @@
|
|
|
var data = result[j].siteCd;
|
|
|
if ($('#detailForm input:checkbox[name=siteCd]').eq(i).val() == data) {
|
|
|
$('#detailForm input:checkbox[name=siteCd]').eq(i).prop('checked', true);
|
|
|
+ $("#detailForm input:checkbox[name=siteCd]").eq(i).parent("label").addClass("checked");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -576,6 +596,9 @@
|
|
|
$("#detailForm select[name=brandGb]").removeAttr("disabled");
|
|
|
$('#detailForm select[name=delvLocCd]').empty().append('<option value="">[선택]</option>');
|
|
|
|
|
|
+ $("#detailForm input[type=checkbox]").removeClass("checked");
|
|
|
+ $("#detailForm input[type=checkbox]").parent("label").removeClass("checked");
|
|
|
+
|
|
|
// 자사구매포인트적립율 설정
|
|
|
fnSetPntRate('Y');
|
|
|
|