|
|
@@ -572,16 +572,18 @@
|
|
|
var arrSupplyComp = [];
|
|
|
var supplyCompText = "";
|
|
|
var sIndex = 0;
|
|
|
+ var supplyCompNm = "";
|
|
|
$('#goodsPopupForm').find('#supplyCompText').html('');
|
|
|
$('#goodsPopupForm input[name=supplyCompSearchTxt]').val('');
|
|
|
result.forEach(function(supplyComp){
|
|
|
sIndex++;
|
|
|
arrSupplyComp.push(supplyComp.supplyCompCd);
|
|
|
+ supplyCompNm = supplyComp.supplyCompNm;
|
|
|
});
|
|
|
|
|
|
// 조회값이 하나일 경우 화면에 코드 노출 그외는 갯수 처리
|
|
|
if (sIndex == 1) {
|
|
|
- $('#goodsPopupForm input[name=supplyCompSearchTxt]').val(arrSupplyComp[0]);
|
|
|
+ $('#goodsPopupForm input[name=supplyCompSearchTxt]').val(supplyCompNm);
|
|
|
}else{
|
|
|
supplyCompText = sIndex + " 개";
|
|
|
$('#goodsPopupForm').find('#supplyCompText').html(supplyCompText);
|
|
|
@@ -595,16 +597,18 @@
|
|
|
var arrbrandCd = [];
|
|
|
var brandText = "";
|
|
|
var bIndex = 0;
|
|
|
+ var brandNm = "";
|
|
|
$('#goodsPopupForm').find('#brandText').html('');
|
|
|
$('#goodsPopupForm input[name=searchTxt]').val('');
|
|
|
result.forEach(function(brand){
|
|
|
bIndex++;
|
|
|
arrbrandCd.push(brand.brandCd);
|
|
|
+ brandNm = brand.brandKnm;
|
|
|
});
|
|
|
|
|
|
// 조회값이 하나일 경우 화면에 코드 노출 그외는 갯수 처리
|
|
|
if (bIndex == 1) {
|
|
|
- $('#goodsPopupForm input[name=searchTxt]').val(arrbrandCd[0]);
|
|
|
+ $('#goodsPopupForm input[name=searchTxt]').val(brandNm);
|
|
|
}else{
|
|
|
brandText = bIndex + " 개";
|
|
|
$('#goodsPopupForm').find('#brandText').html(brandText);
|