|
|
@@ -58,19 +58,11 @@
|
|
|
<button type="button" class="btn icn" id="btnSearchSupplyComp"><i class="fa fa-search"></i></button>
|
|
|
<span id="supplyCompText"></span>
|
|
|
<input type="hidden" name="supplyCompList"/>
|
|
|
- <!-- <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 th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
- </select>
|
|
|
- <span id="multiBrand"></span> -->
|
|
|
</td>
|
|
|
<th>브랜드<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
|
<input type="text" class="w100" name="searchTxt" id="searchTxt" maxlength="20" />
|
|
|
<button type="button" class="btn icn" id="btnSearchBrand"><i class="fa fa-search"></i></button>
|
|
|
- <!-- <input type="text" class="w100" name="brandCd" readonly="readonly"/> -->
|
|
|
<span id="brandText"></span>
|
|
|
<input type="hidden" name="brandList"/>
|
|
|
</td>
|
|
|
@@ -95,13 +87,18 @@
|
|
|
<tr>
|
|
|
<th>품목</th>
|
|
|
<td>
|
|
|
- <div class="multiCheckBox" style="width:300px">
|
|
|
+ <!-- <div class="multiCheckBox" style="width:300px">
|
|
|
<button type="button" class="sltBtn" data-name="[전체]">[전체]</button>
|
|
|
<ul style="overflow:auto; height:170px;" id="grpItemkind">
|
|
|
<li><label class="chkBox" onclick="uifnAllCheck(this,'grpItemkind')"><input type="checkbox" name="전체선택" >전체선택</label></li>
|
|
|
<li th:if="${itemkindList}" th:each="oneData, status : ${itemkindList}"><label class="chkBox" data-group="grpItemkind"><input type="checkbox" name="multiItemkindCd" th:id="${'itemkindCd' + oneData.cd}" th:value="${oneData.cd}" ><th:block th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></th:block></label></li>
|
|
|
</ul>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
+
|
|
|
+ <input type="text" class="w100" name="itemkindSearchTxt" id="itemkindSearchTxt" maxlength="20" />
|
|
|
+ <button type="button" class="btn icn" id="btnSearchItemkind"><i class="fa fa-search"></i></button>
|
|
|
+ <span id="itemkindText"></span>
|
|
|
+ <input type="hidden" name="itemkindList"/>
|
|
|
</td>
|
|
|
<th>상품상태</th>
|
|
|
<td>
|
|
|
@@ -124,14 +121,6 @@
|
|
|
<tr>
|
|
|
<th>년도/시즌</th>
|
|
|
<td>
|
|
|
- <!-- <select name="styleYear" id="styleYear">
|
|
|
- <option value="">[전체]</option>
|
|
|
- <option th:if="${styleYearList}" th:each="oneData, status : ${styleYearList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
- </select>
|
|
|
- <select name="seasonCd" id="seasonCd">
|
|
|
- <option value="">[전체]</option>
|
|
|
- <option th:if="${seasonList}" th:each="oneData, status : ${seasonList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
- </select> -->
|
|
|
<div class="multiCheckBox" style="width:140px;">
|
|
|
<button type="button" class="sltBtn" data-name="[전체]">[전체]</button>
|
|
|
<ul style="overflow:auto; height:140px" id="grpStyle">
|
|
|
@@ -192,10 +181,6 @@
|
|
|
<option value="">[전체]</option>
|
|
|
<option th:if="${useYnList}" th:each="oneData, status : ${useYnList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
- <!-- <label class="chkBox"><input type="checkbox" name="returnableYn" value="Y"/>반품가능</label>
|
|
|
- <label class="chkBox"><input type="checkbox" name="changeableYn" value="Y"/>교환가능</label>
|
|
|
- <label class="chkBox"><input type="checkbox" name="returnFeeFreeYn" value="Y"/>무료반품</label>
|
|
|
- <label class="chkBox"><input type="checkbox" name="changeFeeFreeYn" value="Y"/>무료교환</label> -->
|
|
|
</td>
|
|
|
<th>담당MD</th>
|
|
|
<td>
|
|
|
@@ -376,13 +361,6 @@
|
|
|
<td colspan="3">
|
|
|
<input type="text" class="w100" name="statSupplyCompCd" id="statSupplyCompCd" maxlength="20" />
|
|
|
<button type="button" class="btn icn" id="btnSearchSupplyCompStat"><i class="fa fa-search"></i></button>
|
|
|
-
|
|
|
- <!-- <label class="rdoBtn"><input type="radio" name="statSelfYn" id="statSelfYnY" value="Y" checked/>자사</label>
|
|
|
- <label class="rdoBtn"><input type="radio" name="statSelfYn" id="statSelfYnN" value="N"/>입점</label>
|
|
|
- <select name="statSupplyCompCd" id="statSupplyCompCd">
|
|
|
- <option value="" th:if="${sessionInfo.roleCd} != 'G001_B000'">[선택]</option>
|
|
|
- <option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
- </select> -->
|
|
|
<select name="delvFeeCdC" id="delvFeeCdC" >
|
|
|
<option value="">[선택]</option>
|
|
|
</select>
|
|
|
@@ -402,7 +380,7 @@
|
|
|
<th>판매일시</th>
|
|
|
<td colspan="7">
|
|
|
<input name="sellStYMDC" id="sellStYMDC" type="text" class="w80 schDate" maxlength="10" required="required" data-valid-name="판매시작일" />
|
|
|
- <select name="sellStHHC" id="sellStHCHC" required="required" data-valid-name="판매 시작시간">
|
|
|
+ <select name="sellStHHC" id="sellStHHC" required="required" data-valid-name="판매 시작시간">
|
|
|
<th:block th:each="num, index : ${#numbers.sequence(0,23)}">
|
|
|
<option th:value="${#numbers.formatInteger(num,2)}" th:text="|${#numbers.formatInteger(num,2)}시|" th:selected="${#numbers.formatInteger(num,2)}==0 ? 'true'">시간</option>
|
|
|
</th:block>
|
|
|
@@ -486,6 +464,7 @@
|
|
|
valueFormatter: function (params) { return gagaAgGrid.lookupValue(seasonList, params.value); },
|
|
|
valueParser: function (params) { return gagaAgGrid.lookupKey(seasonList, params.newValue); }
|
|
|
},
|
|
|
+ {headerName: "수수료율", field: "sellFeeRate" , width: 80, cellClass: 'text-center'},
|
|
|
{headerName: "정상가", field: "listPrice" , width: 100, cellClass: 'text-right'
|
|
|
,valueFormatter: function(params) {return params.value.addComma();},
|
|
|
cellEditor: 'textCellEditor',
|
|
|
@@ -496,7 +475,6 @@
|
|
|
cellEditor: 'textCellEditor',
|
|
|
cellEditorParams: { maxlength: 14, validType: 'numeric'}
|
|
|
},
|
|
|
- /*{headerName: "할인율", field: "dcRate" , width: 90, cellClass: 'text-right'},*/
|
|
|
{headerName: "자사즉시할인가", field: "benefitPrice" , width: 120, cellClass: 'text-right'
|
|
|
,valueFormatter: function(params) {
|
|
|
if (params.value > 0) {
|
|
|
@@ -568,9 +546,11 @@
|
|
|
$("#searchForm input[type=radio][checked]").parent("label").addClass("checked");
|
|
|
$("#multiBrand").empty();
|
|
|
$('#searchForm input[name=brandList]').val('');
|
|
|
- $('#searchForm input[name=supplyCompList]').val('');
|
|
|
$('#searchForm').find('#brandText').html('');
|
|
|
+ $('#searchForm input[name=supplyCompList]').val('');
|
|
|
$('#searchForm').find('#supplyCompText').html('');
|
|
|
+ $('#searchForm input[name=itemkindList]').val('');
|
|
|
+ $('#searchForm').find('#itemkindText').html('');
|
|
|
|
|
|
$(document).find('#searchForm').find(".multiCheckBox").each(function(i, e){
|
|
|
let btnNm = $(this).find(".sltBtn").attr("data-name");
|
|
|
@@ -686,20 +666,7 @@
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-/* if (!gagajf.isNull($('#searchForm input[name=supplyCompList]').val())){
|
|
|
- var jsonData = JSON.parse($('#searchForm input[name=supplyCompList]').val());
|
|
|
- if (jsonData.length > 500){
|
|
|
- mcxDialog.alertC("키워드 조회값을 500 이하로 조회 하세요.", {
|
|
|
- sureBtnText: "확인",
|
|
|
- sureBtnClick: function() {
|
|
|
- $('#searchForm textarea[name=condition]').focus();
|
|
|
- }
|
|
|
- });
|
|
|
- return false;
|
|
|
- }
|
|
|
- }
|
|
|
- */
|
|
|
+
|
|
|
if (!gagajf.isNull($('#searchForm textarea[name=condition]').val())){
|
|
|
var arrData = $('#searchForm textarea[name=condition]').val().replace(/\r\n/g,"\n").split("\n");
|
|
|
if (arrData.length > 500){
|
|
|
@@ -819,6 +786,19 @@
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ var fromDate = $("#searchForm input[name=sellStYMDC]").val().replaceAll('-', '')+ $("#searchForm select[name=sellStHHC]").val();
|
|
|
+ var toDate = $("#searchForm input[name=sellEdYMDC]").val().replaceAll('-', '')+ $("#searchForm select[name=sellEdHHC]").val();
|
|
|
+
|
|
|
+ if (fromDate > toDate) {
|
|
|
+ mcxDialog.alertC("판매기간의 시작일시는 종료일시 보다 클 수 없습니다.", {
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ $('#searchForm input[name=sellStYMDC]').focus();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
|
|
|
}else{
|
|
|
if (gagajf.isNull($(objId).val())){
|
|
|
@@ -1036,8 +1016,6 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
//세트상품구성 클릭 시
|
|
|
$('#btnGoodsSetMake').click(function(e) {
|
|
|
cfnOpenGoodsSetPopup();
|
|
|
@@ -1145,6 +1123,33 @@
|
|
|
cfnOpenBrandListPopup('fnSetBrandInfo', 'M');
|
|
|
});
|
|
|
|
|
|
+ // 품목 조회 선택시
|
|
|
+ $('#btnSearchItemkind').on('click', function() {
|
|
|
+ cfnOpenItemkindListPopup('fnSetItemkindInfo', 'M');
|
|
|
+ });
|
|
|
+
|
|
|
+ // 품목 조회 팝업에서 호출
|
|
|
+ var fnSetItemkindInfo = function(result) {
|
|
|
+ var arrItemkind = [];
|
|
|
+ var itemkindText = "";
|
|
|
+ var sIndex = 0;
|
|
|
+ $('#searchForm').find('#itemkindText').html('');
|
|
|
+ $('#searchForm input[name=itemkindSearchTxt]').val('');
|
|
|
+ result.forEach(function(itemkind){
|
|
|
+ sIndex++;
|
|
|
+ arrItemkind.push(itemkind.itemkindCd);
|
|
|
+ });
|
|
|
+
|
|
|
+ // 조회값이 하나일 경우 화면에 코드 노출 그외는 갯수 처리
|
|
|
+ if (sIndex == 1) {
|
|
|
+ $('#searchForm input[name=itemkindSearchTxt]').val(arrItemkind[0]);
|
|
|
+ }else{
|
|
|
+ itemkindText = sIndex + " 개";
|
|
|
+ $('#searchForm').find('#itemkindText').html(itemkindText);
|
|
|
+ }
|
|
|
+ var jsonData = JSON.stringify(arrItemkind);
|
|
|
+ $("#searchForm input[name=itemkindList]").val(jsonData);
|
|
|
+ }
|
|
|
|
|
|
// 상태일괄변경 - 배송정책
|
|
|
$('#btnSearchSupplyCompStat').on('click', function() {
|
|
|
@@ -1161,9 +1166,9 @@
|
|
|
sIndex++;
|
|
|
arrSupplyComp.push(supplyComp.supplyCompCd);
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
$('#searchForm input[name=statSupplyCompCd]').val(arrSupplyComp[0]);
|
|
|
- cfnCreateCombo('/renderer/delvFee/list/' + $('#searchForm input[name=statSupplyCompCd]').val(), $('#searchForm select[name=delvFeeCdC]'), "[선택]");
|
|
|
+ cfnCreateDelvPolicyCombo( $('#searchForm input[name=statSupplyCompCd]').val(), $('#searchForm select[name=delvFeeCdC]'), "[선택]");
|
|
|
}
|
|
|
|
|
|
// 상품이미지 미리보기 레이어에서 창 종료 이벤트
|