|
@@ -1749,7 +1749,14 @@
|
|
|
$('#CouponForm .dcCdCheck2').hide();
|
|
$('#CouponForm .dcCdCheck2').hide();
|
|
|
$('#CouponForm .maxDcAmtArea').hide();
|
|
$('#CouponForm .maxDcAmtArea').hide();
|
|
|
$('#CouponForm .availDateTr').show();
|
|
$('#CouponForm .availDateTr').show();
|
|
|
|
|
+ $("#CouponForm input:radio[name='rdoApplyScope']:radio[value=I]").prop('checked', true);
|
|
|
|
|
+ $("#CouponForm").find("input:radio[name='rdoApplyScope']").attr('disabled', true);
|
|
|
|
|
+ $("#CouponForm").find("input:radio[name='rdoApplyScope']").attr('readonly', true);
|
|
|
}else{
|
|
}else{
|
|
|
|
|
+ $("#CouponForm input:radio[name='rdoApplyScope']:radio[value=A]").prop('checked', true);
|
|
|
|
|
+ $("#CouponForm").find("input:radio[name='rdoApplyScope']").attr('disabled', false);
|
|
|
|
|
+ $("#CouponForm").find("input:radio[name='rdoApplyScope']").attr('readonly', false);
|
|
|
|
|
+
|
|
|
if(radioValue == 'G230_11'){ // 상품쿠폰일때 선착순쿠폰 등록 가능
|
|
if(radioValue == 'G230_11'){ // 상품쿠폰일때 선착순쿠폰 등록 가능
|
|
|
$('#CouponForm .limitedTimeCpnArea').show();
|
|
$('#CouponForm .limitedTimeCpnArea').show();
|
|
|
}else{
|
|
}else{
|
|
@@ -1801,11 +1808,11 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 즉시할인쿠폰만 전체/개별, 나머진 개별
|
|
|
|
|
|
|
+ // 즉시할인쿠폰만 개별, 나머진 전체/개별
|
|
|
if(radioValue == 'G230_10') {
|
|
if(radioValue == 'G230_10') {
|
|
|
- $("input:radio[name='rdoApplyScope']:radio[value='A']").prop('checked', true);
|
|
|
|
|
- } else {
|
|
|
|
|
$("input:radio[name='rdoApplyScope']:radio[value='I']").prop('checked', true);
|
|
$("input:radio[name='rdoApplyScope']:radio[value='I']").prop('checked', true);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $("input:radio[name='rdoApplyScope']:radio[value='A']").prop('checked', true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 주문서 쿠폰 선택시 결제수단 노출
|
|
// 주문서 쿠폰 선택시 결제수단 노출
|
|
@@ -2455,6 +2462,9 @@
|
|
|
$('#CouponForm .dcCdCheck2').hide();
|
|
$('#CouponForm .dcCdCheck2').hide();
|
|
|
$('#CouponForm .maxDcAmtArea').hide();
|
|
$('#CouponForm .maxDcAmtArea').hide();
|
|
|
// $("#CouponForm #afLinkCd").attr('disabled', true);
|
|
// $("#CouponForm #afLinkCd").attr('disabled', true);
|
|
|
|
|
+ $("#CouponForm input:radio[name='rdoApplyScope']:radio[value=I]").prop('checked', true);
|
|
|
|
|
+ $("#CouponForm").find("input:radio[name='rdoApplyScope']").attr('disabled', true);
|
|
|
|
|
+ $("#CouponForm").find("input:radio[name='rdoApplyScope']").attr('readonly', true);
|
|
|
}
|
|
}
|
|
|
$("#btnCouponSave").show(); // 저장버튼
|
|
$("#btnCouponSave").show(); // 저장버튼
|
|
|
$("#CouponForm .buttonSpan").show();
|
|
$("#CouponForm .buttonSpan").show();
|
|
@@ -2476,6 +2486,10 @@
|
|
|
$("#CouponForm .buttonSpan").hide(); //행추가,삭제버튼
|
|
$("#CouponForm .buttonSpan").hide(); //행추가,삭제버튼
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if($("#CouponForm input[name=rdoDcWay]:checked").val() == 'G240_10'){
|
|
|
|
|
+ $("#CouponForm .maxDcAmtArea").hide();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 사용가능고객구분 체크박스 체크 제거
|
|
// 사용가능고객구분 체크박스 체크 제거
|
|
|
$('#CouponForm input:checkbox[name=usableCustGbArr]').prop('checked', false);
|
|
$('#CouponForm input:checkbox[name=usableCustGbArr]').prop('checked', false);
|
|
|
if(cpnCustGbList.length > 0){
|
|
if(cpnCustGbList.length > 0){
|