|
|
@@ -31,14 +31,12 @@
|
|
|
<span class="left" style="width:400px; text-align:left;">
|
|
|
<!-- class="left" 또는 class="right" -->
|
|
|
- 상품상태 : 정보부족<br/>
|
|
|
- - TAG가 : 구성상품의 TAG가 합<br/>
|
|
|
- 정상가 : 구성상품의 정상가 합<br/>
|
|
|
- 판매가 : 구성상품 판매가 입력값의 합<br/>
|
|
|
- 브랜드코드 : 구성상품의 기준여부 'Y'상품의 브랜드코드<br/>
|
|
|
- 품목코드 : 구성상품의 기준여부 'Y'상품의 품목코드<br/>
|
|
|
- 포인트 : 구성상품의 기준여부 'Y'상품의 브랜드 포인트<br/>
|
|
|
- - 기본배송비 : 구성상품의 기준여부 'Y'상품의 브랜드 기본배송비<br/>
|
|
|
- - 무료배송비기준 : 구성상품의 기준여부 'Y'상품의 브랜드 무료배송비기준<br/>
|
|
|
+ - 배송비정책 : 구성상품의 기준여부 'Y'상품의 브랜드 배송비정책<br/>
|
|
|
</span>
|
|
|
</div>
|
|
|
<!-- //아이콘 툴팁 -->
|
|
|
@@ -47,25 +45,25 @@
|
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
|
<col width="10%"/>
|
|
|
- <col/>
|
|
|
+ <col width="15%"/>
|
|
|
+ <col width="10%"/>
|
|
|
+ <col width="15%"/>
|
|
|
<col width="10%"/>
|
|
|
- <col width="23%"/>
|
|
|
+ <col width="15%"/>
|
|
|
<col width="10%"/>
|
|
|
- <col width="23%"/>
|
|
|
+ <col/>
|
|
|
</colgroup>
|
|
|
<tr>
|
|
|
<th>상품명<em class="required" title="필수"></em></th>
|
|
|
- <td><input type="text" id="goodsNm" name="goodsNm" maxlength="60"/></td>
|
|
|
- <th>자사노출여부<em class="required" title="필수"></em></th>
|
|
|
- <td><label class="rdoBtn"><input type="radio" name="selfMallYn" id="selfMallYnY" value="Y" checked/>Y</label>
|
|
|
- <label class="rdoBtn"><input type="radio" name="selfMallYn" id="selfMallYnN" value="N"/>N</label>
|
|
|
- </td>
|
|
|
+ <td colspan="3"><input class="w50p" type="text" id="goodsNm" name="goodsNm" maxlength="60"/></td>
|
|
|
<th>성별<em class="required" title="필수"></em></th>
|
|
|
<td><select name="sexGb" id="sexGb">
|
|
|
<option value="">[전체]</option>
|
|
|
<option th:if="${sexGbList}" th:each="oneData, status : ${sexGbList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
</td>
|
|
|
+ <th>제조년월일<em class="required" title="필수"></em></th>
|
|
|
+ <td><input type="text" class="w100" id="makeYmd" name="makeYmd" maxlength="8" data-valid-type="date"/></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>년도/시즌<em class="required" title="필수"></em></th>
|
|
|
@@ -79,15 +77,11 @@
|
|
|
<option th:if="${seasonList}" th:each="oneData, status : ${seasonList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
</td>
|
|
|
- <th>제조년월일<em class="required" title="필수"></em></th>
|
|
|
- <td><input type="text" class="w100" id="makeYmd" name="makeYmd" maxlength="8" data-valid-type="date"/></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
<th>원산지<em class="required" title="필수"></em></th>
|
|
|
- <td colspan="5">
|
|
|
- <select name="makeOriginCd" id="makeOriginCd">
|
|
|
+ <td colspan="3">
|
|
|
+ <select name="originCd" id="originCd">
|
|
|
<option value="">[전체]</option>
|
|
|
- <option th:if="${makOriginList}" th:each="oneData, status : ${makOriginList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
+ <option th:if="${originCdList}" th:each="oneData, status : ${originCdList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
<input type="hidden" id="makeNm" name="makeNm" />
|
|
|
</td>
|
|
|
@@ -158,13 +152,16 @@
|
|
|
cellEditorParams: { values: gagaAgGrid.extractValues(goodsStatList) },
|
|
|
valueFormatter: function (params) { return gagaAgGrid.lookupValue(goodsStatList, params.value); },
|
|
|
valueParser: function (params) { return gagaAgGrid.lookupKey(goodsStatList, params.newValue); }
|
|
|
- }
|
|
|
+ },
|
|
|
+ {headerName: "업체", field: "supplyCompCd" , width: 80, cellClass: 'text-right',hide: true}
|
|
|
+
|
|
|
];
|
|
|
|
|
|
// Get GridOptions
|
|
|
var gridGoodsSetOptions = gagaAgGrid.getGridOptions(columnGoodsSetDefs);
|
|
|
gridGoodsSetOptions.rowSelection = 'multiple';
|
|
|
gridGoodsSetOptions.suppressRowClickSelection = true;
|
|
|
+ gridGoodsSetOptions.stopEditingWhenGridLosesFocus = true;
|
|
|
|
|
|
// 드래그
|
|
|
gridGoodsSetOptions.rowDragManaged = true;
|
|
|
@@ -228,9 +225,15 @@
|
|
|
var isExist = false;
|
|
|
goodsData.forEach(function(goods){
|
|
|
isExist = false;
|
|
|
-
|
|
|
+
|
|
|
gridGoodsSetOptions.api.forEachNode(function(rowNode, index) {
|
|
|
- if (goods.goodsCd == rowNode.data.extendGoodsCd){
|
|
|
+ //중복상품 여부 확인
|
|
|
+ if (goods.goodsCd == rowNode.data.compsGoodsCd){
|
|
|
+ isExist = true;
|
|
|
+ }
|
|
|
+ debugger;
|
|
|
+ //같은 업체만 가능
|
|
|
+ if (goods.supplyCompCd != rowNode.data.supplyCompCd){
|
|
|
isExist = true;
|
|
|
}
|
|
|
});
|
|
|
@@ -252,6 +255,7 @@
|
|
|
, useYn: 'Y'
|
|
|
, goodsNm : goods.goodsNm
|
|
|
, selfGoodsYn : goods.selfGoodsYn
|
|
|
+ , supplyCompCd : goods.supplyCompCd
|
|
|
, imgType : goods.imgType
|
|
|
, imgPath1 : goods.imgPath1
|
|
|
, imgPath6 : goods.imgPath6
|
|
|
@@ -295,16 +299,6 @@
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- if (gagajf.isNull($("#goodsSetForm input[name=selfMallYn]").val())){
|
|
|
- mcxDialog.alertC('자사노출여부를 선택해 주세요.', {
|
|
|
- sureBtnText: "확인",
|
|
|
- sureBtnClick: function() {
|
|
|
- $("#goodsSetForm input[name=selfMallYn]").focus();
|
|
|
- }
|
|
|
- });
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
if(gagajf.isNull($("#goodsSetForm select[name=styleYear]").val())){
|
|
|
mcxDialog.alertC('년도을 선택해 주세요.', {
|
|
|
sureBtnText: "확인",
|
|
|
@@ -335,11 +329,11 @@
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- if(gagajf.isNull($("#goodsSetForm select[name=makeOriginCd]").val())){
|
|
|
+ if(gagajf.isNull($("#goodsSetForm select[name=originCd]").val())){
|
|
|
mcxDialog.alertC('원산지를 입력해 주세요.', {
|
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function() {
|
|
|
- $("#goodsSetForm select[name=makeOriginCd]").focus();
|
|
|
+ $("#goodsSetForm select[name=originCd]").focus();
|
|
|
}
|
|
|
});
|
|
|
return false;
|