|
|
@@ -234,9 +234,10 @@
|
|
|
<td><span id="priceUpdDtTxt"></span></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <th>정상가</th>
|
|
|
- <td class="aR"><span id="listPriceTxt"></span> 원
|
|
|
- <input type="hidden" id="listPrice" name="listPrice"/>
|
|
|
+ <th>정상가<em class="required" title="필수"></em></th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="w80p aR" id="listPrice" name="listPrice" maxlength="10" data-valid-type="numeric"/> 원
|
|
|
+ <input type="hidden" id="listPriceOrg" name="listPriceOrg"/>
|
|
|
</td>
|
|
|
<th>판매가<em class="required" title="필수"></em></th>
|
|
|
<td><input type="text" class="w80p aR" id="currPrice" name="currPrice" maxlength="10" data-valid-type="numeric"/> 원
|
|
|
@@ -864,8 +865,8 @@
|
|
|
fnDataLengthCheck('goodsSnm1',200);
|
|
|
$("#goodsDetailForm textarea[name=goodsSnmTxt]").val(result.goodsSnm);
|
|
|
$("#goodsDetailForm input[name=goodsSnm]").val(result.goodsSnm);
|
|
|
- $('#goodsDetailForm').find('#listPriceTxt').html(result.listPrice.addComma());
|
|
|
- $('#goodsDetailForm input[name=listPrice]').val(result.listPrice);
|
|
|
+ $('#goodsDetailForm input[name=listPrice]').val(result.listPrice.addComma());
|
|
|
+ $('#goodsDetailForm input[name=listPriceOrg]').val(result.listPrice);
|
|
|
$('#goodsDetailForm input[name=currPrice]').val(result.currPrice.addComma());
|
|
|
$('#goodsDetailForm input[name=currPriceOrg]').val(result.currPrice);
|
|
|
$('#goodsDetailForm').find('#dcRateTxt').html(result.dcRate);
|
|
|
@@ -1064,6 +1065,7 @@
|
|
|
if (result.selfGoodsYn == "Y") $('#goodsDetailForm #goodsComposeTab').css('display','block');
|
|
|
$('#goodsDetailForm #goodsNotiTab').css('display','none');
|
|
|
$('#goodsDetailForm input[name=sellFeeRate]').attr('readonly', true);
|
|
|
+ $('#goodsDetailForm input[name=listPrice]').attr('readonly', true);
|
|
|
$('#goodsDetailForm input[name=currPrice]').attr('readonly', true);
|
|
|
}else if ("G056_D" == result.goodsType){
|
|
|
if (result.selfGoodsYn == "Y") $('#goodsDetailForm #goodsComposeTab').css('display','block');
|
|
|
@@ -1200,6 +1202,11 @@
|
|
|
$("#goodsDetailForm input[name=currPrice]").bind('focusout paste', function () {
|
|
|
fnCurrPriceCheck();
|
|
|
});
|
|
|
+
|
|
|
+ //정상가 변경시 할인율 계산
|
|
|
+ $("#goodsDetailForm input[name=listPrice]").bind('focusout paste', function () {
|
|
|
+ fnCurrPriceCheck();
|
|
|
+ });
|
|
|
|
|
|
//판매가의 할인율 확인
|
|
|
var fnCurrPriceCheck = function(){
|
|
|
@@ -1338,6 +1345,17 @@
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ //정상가가 0인 상품은 상태변경 불가
|
|
|
+ if((gagajf.isNull($("#goodsDetailForm input[name=listPrice]").val()) || $("#goodsDetailForm input[name=listPrice]").val() == 0)){
|
|
|
+ mcxDialog.alertC("정상가가 등록되지 않은 상품은 '승인대기'나 '승인완료' 상태로 변경할 수 없습니다.", {
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ $("#goodsDetailForm select[name=goodsStat]").focus();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
//판매가가 0인 상품은 상태변경 불가
|
|
|
if((gagajf.isNull($("#goodsDetailForm input[name=currPrice]").val()) || $("#goodsDetailForm input[name=currPrice]").val() == 0)){
|
|
|
mcxDialog.alertC("판매가가 등록되지 않은 상품은 '승인대기'나 '승인완료' 상태로 변경할 수 없습니다.", {
|
|
|
@@ -1361,7 +1379,7 @@
|
|
|
}
|
|
|
|
|
|
//이미지가 등록되지 않은 상품은 상태변경 불가
|
|
|
- if($("#goodsDetailForm input[name=goodsImageYn]").val() == "N"){
|
|
|
+ /* if($("#goodsDetailForm input[name=goodsImageYn]").val() == "N"){
|
|
|
mcxDialog.alertC("이미지가 등록되지 않은 상품은 '승인대기'나 '승인완료' 상태로 변경할 수 없습니다.", {
|
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function() {
|
|
|
@@ -1369,7 +1387,7 @@
|
|
|
}
|
|
|
});
|
|
|
return;
|
|
|
- }
|
|
|
+ } */
|
|
|
|
|
|
//고시정보가 등록되지 않은 상품은 상태변경 불가 - 일반상품만 체크
|
|
|
if ("G056_N" == $("#goodsDetailForm input[name=goodsType]").val()){
|
|
|
@@ -1467,6 +1485,17 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //정상가
|
|
|
+ if(gagajf.isNull($("#goodsDetailForm input[name=listPrice]").val())) {
|
|
|
+ mcxDialog.alertC("판매가를 올바르게 입력해주세요.", {
|
|
|
+ sureBtnText: "확인",
|
|
|
+ sureBtnClick: function() {
|
|
|
+ $("#goodsDetailForm input[name=listPrice]").focus();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
//판매가
|
|
|
if(gagajf.isNull($("#goodsDetailForm input[name=currPrice]").val())) {
|
|
|
mcxDialog.alertC("판매가를 올바르게 입력해주세요.", {
|
|
|
@@ -2048,6 +2077,10 @@
|
|
|
if ($("#goodsDetailForm input[name=sexGbOrg]").val() != $("#goodsDetailForm select[name=sexGb]").val()){
|
|
|
return true;
|
|
|
}
|
|
|
+ //정상가
|
|
|
+ if ($("#goodsDetailForm input[name=listPriceOrg]").val() != $("#goodsDetailForm input[name=listPrice]").val().removeComma()){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
//판매가
|
|
|
if ($("#goodsDetailForm input[name=currPriceOrg]").val() != $("#goodsDetailForm input[name=currPrice]").val().removeComma()){
|
|
|
return true;
|