|
|
@@ -159,7 +159,7 @@
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td rowspan="11"> </td>
|
|
|
+ <td rowspan="9"> </td>
|
|
|
<th>시즌<em class="required" title="필수"></em></th>
|
|
|
<td >
|
|
|
<select name="seasonCd" id="seasonCd">
|
|
|
@@ -248,10 +248,24 @@
|
|
|
<button type="button" class="btn btn-success btn-lg" id="btnGoodsItemkindChange">품목변경</button>
|
|
|
</th:block>
|
|
|
</td>
|
|
|
+ <td colspan="2">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>배송비정책<em class="required" title="필수"></em></th>
|
|
|
+ <td>
|
|
|
+ <select name="delvFeeCd">
|
|
|
+ </select>
|
|
|
+ <input type="hidden" id="delvFeeCdOrg" name="delvFeeCdOrg"/>
|
|
|
+ </td>
|
|
|
<th>기본배송비</th>
|
|
|
<td>
|
|
|
<input type="text" class="w100 aR" id="delvFee" name="delvFee" disabled="disabled"/> 원
|
|
|
</td>
|
|
|
+ <th>무료배송비기준</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="w100 aR" id="minOrdAmt" name="minOrdAmt" disabled="disabled"/> 원
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>PC포인트<em class="required" title="필수"></em></th>
|
|
|
@@ -270,10 +284,7 @@
|
|
|
<label class="rdoBtn"><input type="radio" name="preMpntUsableYn" id="preMpntUsableYnN" value="N"/>N</label>
|
|
|
<input type="hidden" id="preMpntUsableYnOrg" name="preMpntUsableYnOrg"/>
|
|
|
</td>
|
|
|
- <th>무료배송비기준<em class="required" title="필수"></em></th>
|
|
|
- <td>
|
|
|
- <input type="text" class="w100 aR" id="minOrdAmt" name="minOrdAmt" data-valid-type="numeric" maxlength="10"/> 원
|
|
|
- <input type="hidden" id="minOrdAmtOrg" name="minOrdAmtOrg"/>
|
|
|
+ <td colspan="2">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
@@ -666,7 +677,6 @@
|
|
|
$('#goodsDetailForm input[name=pntMrate]').val(result.pntMrate);
|
|
|
$('#goodsDetailForm input[name=pntMrateOrg]').val(result.pntMrate);
|
|
|
$('#goodsDetailForm input[name=minOrdAmt]').val(result.minOrdAmt.addComma());
|
|
|
- $('#goodsDetailForm input[name=minOrdAmtOrg]').val(result.minOrdAmt);
|
|
|
$('#goodsDetailForm input[name=minOrdQty]').val(result.minOrdQty);
|
|
|
$('#goodsDetailForm input[name=minOrdQtyOrg]').val(result.minOrdQty);
|
|
|
$('#goodsDetailForm input[name=maxOrdQty]').val(result.maxOrdQty);
|
|
|
@@ -677,6 +687,9 @@
|
|
|
$('#goodsDetailForm input[name=goodsType]').val(result.goodsType);
|
|
|
$("#goodsDetailForm").find("#goodsTypeNm").html(result.goodsTypeNm);
|
|
|
|
|
|
+ cfnCreateCombo('/renderer/delvFee/list/' + result.supplyCompCd, $('#goodsDetailForm select[name=delvFeeCd]'), "[선택]", result.delvFeeCd);
|
|
|
+ $('#goodsDetailForm input[name=delvFeeCdOrg]').val(result.delvFeeCd);
|
|
|
+
|
|
|
//상품상세
|
|
|
// 공지내용. Summernote에 값 세팅
|
|
|
gagaSn.setContents('#goodsPcTopDesc', result.goodsPcTopDesc);
|
|
|
@@ -1073,6 +1086,17 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ //시즌
|
|
|
+ if(gagajf.isNull($("#goodsDetailForm select[name=seasonCd]").val())){
|
|
|
+ mcxDialog.alertC("시즌을 선택해 주세요.", {
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ $("#goodsDetailForm select[name=seasonCd]").focus();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
//성별
|
|
|
if(gagajf.isNull($("#goodsDetailForm select[name=sexGb]").val())){
|
|
|
mcxDialog.alertC("성별을 선택해 주세요.", {
|
|
|
@@ -1083,13 +1107,13 @@
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
- //시즌
|
|
|
- if(gagajf.isNull($("#goodsDetailForm select[name=seasonCd]").val())){
|
|
|
- mcxDialog.alertC("시즌을 선택해 주세요.", {
|
|
|
+
|
|
|
+ // 상품구분
|
|
|
+ if(gagajf.isNull($("#goodsDetailForm select[name=goodsGb]").val())){
|
|
|
+ mcxDialog.alertC("상품구분을 선택해 주세요.", {
|
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function() {
|
|
|
- $("#goodsDetailForm select[name=seasonCd]").focus();
|
|
|
+ $("#goodsDetailForm select[name=goodsGb]").focus();
|
|
|
}
|
|
|
});
|
|
|
return;
|
|
|
@@ -1144,6 +1168,18 @@
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ // 배송비구분
|
|
|
+ if(gagajf.isNull($("#goodsDetailForm select[name=delvFeeCd]").val())){
|
|
|
+ mcxDialog.alertC("배송비정책을 선택해 주세요.", {
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ $("#goodsDetailForm select[name=delvFeeCd]").focus();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
// 포인트
|
|
|
if ( gagajf.isNull($("#goodsDetailForm input[name=pntPrate]").val())) {
|
|
|
mcxDialog.alertC("PC 포인트를 입력해 주세요.", {
|
|
|
@@ -1258,28 +1294,6 @@
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- // 무료배송비
|
|
|
- if ( gagajf.isNull($("#goodsDetailForm input[name=minOrdAmt]").val())) {
|
|
|
- mcxDialog.alertC("무료 배송 금액을 입력해 주세요.", {
|
|
|
- sureBtnText: "확인",
|
|
|
- sureBtnClick: function() {
|
|
|
- $("#goodsDetailForm input[name=minOrdAmt]").focus();
|
|
|
- }
|
|
|
- });
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (Number($("#goodsDetailForm input[name=minOrdAmt]").val().removeComma()) <= 0) {
|
|
|
- mcxDialog.alertC("무료 배송 금액을 입력해 주세요.", {
|
|
|
- sureBtnText: "확인",
|
|
|
- sureBtnClick: function() {
|
|
|
- $("#goodsDetailForm input[name=minOrdAmt]").focus();
|
|
|
- }
|
|
|
- });
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- //if (optCheck) return false;
|
|
|
-
|
|
|
idx = 0;
|
|
|
|
|
|
//재고 옵션 관련 확인
|
|
|
@@ -1288,8 +1302,6 @@
|
|
|
$("#optionList tr").each(function() {
|
|
|
var optCd1 = $(this).find("input[name=optCd1]").val();
|
|
|
var optCd2 = $(this).find("input[name=optCd2]").val();
|
|
|
- var hidOptCd1 = $(this).find("input[name=hidOptCd1]").val();
|
|
|
- var hidOptCd2 = $(this).find("input[name=hidOptCd2]").val();
|
|
|
var baseStockQty = $(this).find("input[name=baseStockQty]").val();
|
|
|
var hidBaseStockQty = $(this).find("input[name=hidBaseStockQty]").val();
|
|
|
var dispOrd = $(this).find("input[name=dispOrd]").val();
|
|
|
@@ -1339,14 +1351,6 @@
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- if (optCd1 != hidOptCd1){
|
|
|
- $("#goodsDetailForm input[name=chStockDataYn]").val('Y');
|
|
|
- }
|
|
|
-
|
|
|
- if (optCd2 != hidOptCd2){
|
|
|
- $("#goodsDetailForm input[name=chStockDataYn]").val('Y');
|
|
|
- }
|
|
|
-
|
|
|
if (editCurrStockQty != currStockQty){
|
|
|
$("#goodsDetailForm input[name=chStockDataYn]").val('Y');
|
|
|
}
|
|
|
@@ -1591,10 +1595,6 @@
|
|
|
if ($("#goodsDetailForm input[name=dayMaxOrdQtyOrg]").val() != $("#goodsDetailForm input[name=dayMaxOrdQty]").val()){
|
|
|
return true;
|
|
|
}
|
|
|
- //무료배송기준
|
|
|
- if ($("#goodsDetailForm input[name=minOrdAmtOrg]").val() != $("#goodsDetailForm input[name=minOrdAmt]").val().removeComma()){
|
|
|
- return true;
|
|
|
- }
|
|
|
//유통구분
|
|
|
if ($("#goodsDetailForm input[name=distributionGbOrg]").val() != $("#goodsDetailForm select[name=distributionGb]").val()){
|
|
|
return true;
|
|
|
@@ -1615,7 +1615,10 @@
|
|
|
if ($("#goodsDetailForm input[name=returnableYnOrg]").val() != $("input[name=returnableYn]:checked").val()){
|
|
|
return true;
|
|
|
}
|
|
|
-
|
|
|
+ // 배송비정책
|
|
|
+ if ($("#goodsDetailForm input[name=delvFeeCdOrg]").val() != $("#goodsDetailForm select[name=delvFeeCd]").val()){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
return false;
|
|
|
}
|
|
|
|