|
|
@@ -179,9 +179,16 @@
|
|
|
<th>스타일년도</th>
|
|
|
<td><span id="styleYearTxt"></span></td>
|
|
|
</tr>
|
|
|
- <tr id="erplinkarea">
|
|
|
+ <tr>
|
|
|
<th>원산지</th>
|
|
|
<td><span id="makeNmTxt"></span></td>
|
|
|
+ <th>유통구분<em class="required" title="필수"></em></th>
|
|
|
+ <td><select name="distributionGb" id="distributionGb">
|
|
|
+ <option value="">[선택]</option>
|
|
|
+ <option th:if="${distributionGbList}" th:each="oneData, status : ${distributionGbList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
+ </select>
|
|
|
+ <input type="hidden" id="distributionGbOrg" name="distributionGbOrg"/>
|
|
|
+ </td>
|
|
|
<th>상품구분<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
|
<select name="goodsGb" id="goodsGb">
|
|
|
@@ -190,15 +197,26 @@
|
|
|
</select>
|
|
|
<input type="hidden" id="goodsGbOrg" name="goodsGbOrg"/>
|
|
|
</td>
|
|
|
- <th>유통구분<em class="required" title="필수"></em></th>
|
|
|
- <td><select name="distributionGb" id="distributionGb">
|
|
|
- <option value="">[선택]</option>
|
|
|
- <option th:if="${distributionGbList}" th:each="oneData, status : ${distributionGbList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
- </select>
|
|
|
- <input type="hidden" id="distributionGbOrg" name="distributionGbOrg"/>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>해외구매대행여부</th>
|
|
|
+ <td><label class="rdoBtn"><input type="radio" name="foreignBuyYn" id="foreignBuyYnY" value="Y" />Y</label>
|
|
|
+ <label class="rdoBtn"><input type="radio" name="foreignBuyYn" id="foreignBuyYnN" value="N"/>N</label>
|
|
|
+ <input type="hidden" id="foreignBuyYnOrg" name="foreignBuyYnOrg"/>
|
|
|
+ </td>
|
|
|
+ <th>병행수입여부</th>
|
|
|
+ <td><label class="rdoBtn"><input type="radio" name="parallelImportYn" id="parallelImportYnY" value="Y" />Y</label>
|
|
|
+ <label class="rdoBtn"><input type="radio" name="parallelImportYn" id="parallelImportYnN" value="N"/>N</label>
|
|
|
+ <input type="hidden" id="parallelImportYnOrg" name="parallelImportYnOrg"/>
|
|
|
+ </td>
|
|
|
+ <th>주문제작여부</th>
|
|
|
+ <td>
|
|
|
+ <label class="rdoBtn"><input type="radio" name="orderMadeYn" id="orderMadeYnY" value="Y" />Y</label>
|
|
|
+ <label class="rdoBtn"><input type="radio" name="orderMadeYn" id="orderMadeYnN" value="N"/>N</label>
|
|
|
+ <input type="hidden" id="orderMadeYnOrg" name="orderMadeYnOrg"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr id="erplinkarea">
|
|
|
+ <tr>
|
|
|
<th>상품연령대</th>
|
|
|
<td>
|
|
|
<select name="ageGrpCd" id="ageGrpCd">
|
|
|
@@ -748,8 +766,26 @@
|
|
|
}else{
|
|
|
$("#goodsDetailForm input:radio[name=adultYn]:input[value='N']").trigger('click');
|
|
|
}
|
|
|
+ if (result.foreignBuyYn == "Y"){
|
|
|
+ $("#goodsDetailForm input:radio[name=foreignBuyYn]:input[value='Y']").trigger('click');
|
|
|
+ }else{
|
|
|
+ $("#goodsDetailForm input:radio[name=foreignBuyYn]:input[value='N']").trigger('click');
|
|
|
+ }
|
|
|
+ if (result.parallelImportYn == "Y"){
|
|
|
+ $("#goodsDetailForm input:radio[name=parallelImportYn]:input[value='Y']").trigger('click');
|
|
|
+ }else{
|
|
|
+ $("#goodsDetailForm input:radio[name=parallelImportYn]:input[value='N']").trigger('click');
|
|
|
+ }
|
|
|
+ if (result.orderMadeYn == "Y"){
|
|
|
+ $("#goodsDetailForm input:radio[name=orderMadeYn]:input[value='Y']").trigger('click');
|
|
|
+ }else{
|
|
|
+ $("#goodsDetailForm input:radio[name=orderMadeYn]:input[value='N']").trigger('click');
|
|
|
+ }
|
|
|
|
|
|
$("#goodsDetailForm input[name=formalGbOrg]").val(result.formalGb);
|
|
|
+ $("#goodsDetailForm input[name=foreignBuyYnOrg]").val(result.foreignBuyYn);
|
|
|
+ $("#goodsDetailForm input[name=parallelImportYnOrg]").val(result.parallelImportYn);
|
|
|
+ $("#goodsDetailForm input[name=orderMadeYnOrg]").val(result.orderMadeYn);
|
|
|
$("#goodsDetailForm input[name=erpPriceLinkYnOrg]").val(result.erpPriceLinkYn);
|
|
|
$("#goodsDetailForm input[name=selfMallYnOrg]").val(result.selfMallYn);
|
|
|
$("#goodsDetailForm input[name=giftPackYnOrg]").val(result.giftPackYn);
|
|
|
@@ -765,7 +801,6 @@
|
|
|
|
|
|
//입점상품일 경우
|
|
|
if (result.selfGoodsYn == "N"){
|
|
|
- //$('#goodsDetailForm').find('#erplinkarea').hide();
|
|
|
$("#goodsDetailForm").find("#selfGoodsDpTitle").html('원코드');
|
|
|
$("#goodsDetailForm").find("#selfGoodsDpTxt").html('<div id="supplyGoodsCdTxt"></div>');
|
|
|
$('#goodsDetailForm').find('#supplyGoodsCdTxt').html(result.supplyGoodsCd);
|
|
|
@@ -835,13 +870,11 @@
|
|
|
//상품 구분에 따른 컬럼 사용여부처리 start
|
|
|
//세트
|
|
|
if ("G056_S" == result.goodsType){
|
|
|
- //$('#goodsDetailForm #erplinkarea').addClass('off');
|
|
|
if (result.selfGoodsYn == "Y") $('#goodsDetailForm #goodsComposeTab').css('display','block');
|
|
|
$('#goodsDetailForm #goodsNotiTab').css('display','none');
|
|
|
$('#goodsDetailForm input[name=sellFeeRate]').attr('readonly', true);
|
|
|
$('#goodsDetailForm input[name=currPrice]').attr('readonly', true);
|
|
|
}else if ("G056_D" == result.goodsType){
|
|
|
- //$('#goodsDetailForm #erplinkarea').addClass('off');
|
|
|
if (result.selfGoodsYn == "Y") $('#goodsDetailForm #goodsComposeTab').css('display','block');
|
|
|
$('#goodsDetailForm #goodsNotiTab').css('display','none');
|
|
|
$('#goodsDetailForm input[name=sellFeeRate]').attr('readonly', true);
|
|
|
@@ -1143,14 +1176,15 @@
|
|
|
|
|
|
idx = 0;
|
|
|
//고시정보 필수나 전시표시값 입력여부 확인
|
|
|
- $("#goodsDetailForm #notiArea").find("#infoContents tr").each(function() {
|
|
|
- if (gagajf.isNull($(this).find("input[name=niContent]").val())){
|
|
|
- optCheck = true;
|
|
|
- mcxDialog.alertC("고시정보를 입력해주세요.");
|
|
|
- return false;
|
|
|
- }
|
|
|
- idx++;
|
|
|
- });
|
|
|
+ $("#goodsDetailForm #notiArea").find("#infoContents tr").each(function() {debugger;
|
|
|
+ if (typeof($(this).find("td input[name=niContent]").val()) != 'undefined' && gagajf.isNull($(this).find("td input[name=niContent]").val())){
|
|
|
+ optCheck = true;
|
|
|
+ mcxDialog.alertC("고시정보를 입력해주세요.");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ idx++;
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
// 자사일 경우 대표색상 선택 여부
|
|
|
@@ -1786,6 +1820,18 @@
|
|
|
if ($("#goodsDetailForm input[name=adultYnOrg]").val() != $("input[name=adultYn]:checked").val()){
|
|
|
return true;
|
|
|
}
|
|
|
+ // 해외구매대행여부
|
|
|
+ if ($("#goodsDetailForm input[name=foreignBuyYnOrg]").val() != $("input[name=foreignBuyYn]:checked").val()){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ // 병행수입여부
|
|
|
+ if ($("#goodsDetailForm input[name=parallelImportYnOrg]").val() != $("input[name=parallelImportYn]:checked").val()){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ // 주문제작여부
|
|
|
+ if ($("#goodsDetailForm input[name=orderMadeYnOrg]").val() != $("input[name=orderMadeYn]:checked").val()){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
|
|
|
return false;
|
|
|
}
|