|
|
@@ -244,7 +244,7 @@
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>품목코드<em class="required" title="필수"></em></th>
|
|
|
- <td colspan="5">
|
|
|
+ <td colspan="3">
|
|
|
<select name="itemkindCd" id="itemkindCd" th:disabled="${sessionInfo.roleCd != 'G001_0000' AND sessionInfo.roleCd != 'G001_A000' AND sessionInfo.roleCd != 'G001_A101' AND sessionInfo.roleCd != 'G001_A100' AND sessionInfo.roleCd != 'G001_A001'}">
|
|
|
<option th:if="${itemkindList}" th:each="oneData, status : ${itemkindList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
@@ -253,7 +253,10 @@
|
|
|
<button type="button" class="btn btn-success btn-lg" id="btnGoodsItemkindChange">품목변경</button>
|
|
|
</th:block>
|
|
|
</td>
|
|
|
-
|
|
|
+ <th>원가</th>
|
|
|
+ <td><input type="text" class="w80p aR" id="costPrice" name="costPrice" maxlength="10" data-valid-type="numeric"/> 원
|
|
|
+ <input type="hidden" id="costPriceOrg" name="costPriceOrg"/>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>반품여부<em class="required" title="필수"></em></th>
|
|
|
@@ -308,7 +311,11 @@
|
|
|
<label class="rdoBtn"><input type="radio" name="preMpntUsableYn" id="preMpntUsableYnN" value="N"/>N</label>
|
|
|
<input type="hidden" id="preMpntUsableYnOrg" name="preMpntUsableYnOrg"/>
|
|
|
</td>
|
|
|
- <td colspan="2">
|
|
|
+ <th>성인용품여부<em class="required" title="필수"></em></th>
|
|
|
+ <td>
|
|
|
+ <label class="rdoBtn"><input type="radio" name="adultYn" id="adultYnY" value="Y" />Y</label>
|
|
|
+ <label class="rdoBtn"><input type="radio" name="adultYn" id="adultYnN" value="N"/>N</label>
|
|
|
+ <input type="hidden" id="adultYnOrg" name="adultYnOrg"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
@@ -704,7 +711,6 @@
|
|
|
$('#goodsDetailForm input[name=goodsGbOrg]').val(result.goodsGb);
|
|
|
$('#goodsDetailForm input[name=mainColorCd]').val(result.mainColorCd);
|
|
|
|
|
|
-
|
|
|
$("#goodsDetailForm input[name=goodsNm]").val(result.goodsNm);
|
|
|
$('#goodsDetailForm input[name=goodsNmOrg]').val(result.goodsNm);
|
|
|
fnDataLengthCheck('goodsNm',200);
|
|
|
@@ -722,6 +728,8 @@
|
|
|
$('#goodsDetailForm input[name=currPriceOrg]').val(result.currPrice);
|
|
|
$('#goodsDetailForm').find('#dcRateTxt').html(result.dcRate);
|
|
|
$('#goodsDetailForm input[name=dcRate]').val(result.dcRate);
|
|
|
+ $('#goodsDetailForm input[name=costPrice]').val(result.costPrice.addComma());
|
|
|
+ $('#goodsDetailForm input[name=costPriceOrg]').val(result.costPrice);
|
|
|
$('#goodsDetailForm').find('#priceUpdDtTxt').html(!gagajf.isNull(result.priceUpdDt) ? result.priceUpdDt.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD") : '');
|
|
|
$('#goodsDetailForm').find('#frstCfrmDtTxt').html(!gagajf.isNull(result.frstCfrmDt) ? result.frstCfrmDt.toDate("YYYYMMDDHHmmss").format("YYYY-MM-DD") : '');
|
|
|
|
|
|
@@ -769,6 +777,11 @@
|
|
|
}else{
|
|
|
$("#goodsDetailForm input:radio[name=newCustOrdYn]:input[value='N']").trigger('click');
|
|
|
}
|
|
|
+ if (result.adultYn == "Y"){
|
|
|
+ $("#goodsDetailForm input:radio[name=adultYn]:input[value='Y']").trigger('click');
|
|
|
+ }else{
|
|
|
+ $("#goodsDetailForm input:radio[name=adultYn]:input[value='N']").trigger('click');
|
|
|
+ }
|
|
|
|
|
|
$('#goodsDetailForm input[name=sellFeeRate]').val(result.sellFeeRate);
|
|
|
$("#goodsDetailForm input[name=sellFeeRateOrg]").val(result.sellFeeRate);
|
|
|
@@ -798,7 +811,8 @@
|
|
|
$("#goodsDetailForm input[name=changeableYnOrg]").val(result.changeableYn);
|
|
|
$("#goodsDetailForm input[name=returnableYnOrg]").val(result.returnableYn);
|
|
|
$("#goodsDetailForm input[name=newCustOrdYnOrg]").val(result.newCustOrdYn);
|
|
|
-
|
|
|
+ $("#goodsDetailForm input[name=adultYnOrg]").val(result.adultYn);
|
|
|
+
|
|
|
$("#goodsDetailForm input[type=radio][checked]").addClass("checked");
|
|
|
//$("#goodsDetailForm input[type=radio][checked]").parent("label").addClass("checked");
|
|
|
|
|
|
@@ -1351,6 +1365,7 @@
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
// 배송비구분
|
|
|
if(gagajf.isNull($("#goodsDetailForm select[name=delvFeeCd]").val())){
|
|
|
mcxDialog.alertC("배송비정책을 선택해 주세요.", {
|
|
|
@@ -1822,6 +1837,10 @@
|
|
|
if ($("#goodsDetailForm input[name=currPriceOrg]").val() != $("#goodsDetailForm input[name=currPrice]").val().removeComma()){
|
|
|
return true;
|
|
|
}
|
|
|
+ //원가
|
|
|
+ if ($("#goodsDetailForm input[name=costPriceOrg]").val() != $("#goodsDetailForm input[name=costPrice]").val().removeComma()){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
|
|
|
//자사 일반상품만
|
|
|
if($("#goodsDetailForm input[name=selfGoodsYn]").val() == 'Y' && $("#goodsDetailForm input[name=goodType]").val() == 'G056_N'){
|
|
|
@@ -1899,6 +1918,11 @@
|
|
|
if ($("#goodsDetailForm input[name=newCustOrdYnOrg]").val() != $("input[name=newCustOrdYn]:checked").val()){
|
|
|
return true;
|
|
|
}
|
|
|
+ // 성인용품여부
|
|
|
+ if ($("#goodsDetailForm input[name=adultYnOrg]").val() != $("input[name=adultYn]:checked").val()){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
return false;
|
|
|
}
|