|
|
@@ -42,10 +42,14 @@
|
|
|
<tr>
|
|
|
<th>공급업체</th>
|
|
|
<td>
|
|
|
- <select name="supplyCompCd">
|
|
|
- <option value="">[전체]</option>
|
|
|
- <option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
- </select>
|
|
|
+<!-- <select name="supplyCompCd"> -->
|
|
|
+<!-- <option value="">[전체]</option> -->
|
|
|
+<!-- <option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option> -->
|
|
|
+<!-- </select> -->
|
|
|
+ <input type="text" class="w100" name="supplyCompSearchTxt" id="supplyCompSearchTxt" maxlength="20"/>
|
|
|
+ <button type="button" class="btn icn" onclick="cfnOpenCompanyListPopup('fnSetSupplyCompInfo', 'M');"><i class="fa fa-search"></i></button>
|
|
|
+ <span id="supplyCompTxt"></span>
|
|
|
+ <input type="hidden" name="supplyCompList"/>
|
|
|
</td>
|
|
|
<th>출고처유형</th>
|
|
|
<td>
|
|
|
@@ -308,6 +312,31 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 업체 조회 팝업에서 호출
|
|
|
+ var fnSetSupplyCompInfo = function(result) {
|
|
|
+ var arrSupplyComp = [];
|
|
|
+ var supplyCompTxt = "";
|
|
|
+ var sIndex = 0;
|
|
|
+ $('#supplyCompTxt').html('');
|
|
|
+ $('#searchForm input[name=supplyCompSearchTxt]').val('');
|
|
|
+
|
|
|
+ result.forEach(function(supplyComp) {
|
|
|
+ sIndex++;
|
|
|
+ arrSupplyComp.push(supplyComp.supplyCompCd);
|
|
|
+ });
|
|
|
+
|
|
|
+ // 조회 값이 하나일 경우 화면에 코드 노출. 그 외는 갯수 처리
|
|
|
+ if (sIndex == 1) {
|
|
|
+ $('#searchForm input[name=supplyCompSearchTxt]').val(arrSupplyComp[0]);
|
|
|
+ } else {
|
|
|
+ supplyCompTxt = sIndex + " 개";
|
|
|
+ $('#supplyCompTxt').html(supplyCompTxt);
|
|
|
+ }
|
|
|
+
|
|
|
+ var jsonData = JSON.stringify(arrSupplyComp);
|
|
|
+ $("#searchForm input[name=supplyCompList]").val(jsonData);
|
|
|
+ }
|
|
|
+
|
|
|
// 출고처유형 셀렉트박스 변경 시 이벤트
|
|
|
$('#detailForm select[name=delvLocClsf]').on('change', function() {
|
|
|
let val = $(this).val();
|