|
|
@@ -731,10 +731,10 @@
|
|
|
{ headerName: "다운로드가능수량" , field: "downLimitQty" , width: 150 , cellClass: 'text-center'
|
|
|
,cellEditorParams: { maxlength: 4, validType: 'numeric'}
|
|
|
},
|
|
|
- { headerName: "선착순시퀀스", field: "limitCpnId", width: 150, cellClass: 'text-center'} //, hide: true
|
|
|
+ { headerName: "선착순시퀀스", field: "limitCpnId", width: 150, cellClass: 'text-center' , hide: true}
|
|
|
,{ headerName: "삭제여부" , field: "delYn" , width: 120 , cellClass: 'text-center' , hide:true}
|
|
|
- ,{headerName: "시작일시", field: "downStdt", width: 150, cellClass: 'text-center'}
|
|
|
- ,{headerName: "종료일시", field: "downEddt", width: 150, cellClass: 'text-center'}
|
|
|
+ ,{headerName: "시작일시", field: "downStdt", width: 150, cellClass: 'text-center' , hide:true}
|
|
|
+ ,{headerName: "종료일시", field: "downEddt", width: 150, cellClass: 'text-center' , hide:true}
|
|
|
];
|
|
|
|
|
|
let columnAfDefs = [
|
|
|
@@ -1043,7 +1043,6 @@
|
|
|
}
|
|
|
// 사용가능고객등급 체크박스 체크
|
|
|
var usableCustGradeCnt = $('#CouponForm input:checkbox[name=usableCustGradeArr]:checked').length;
|
|
|
- console.log('usableCustGradeCnt>>'+usableCustGradeCnt);
|
|
|
if(usableCustGradeCnt<1){
|
|
|
mcxDialog.alert("사용가능 고객등급을 체크해주세요.");
|
|
|
$('#CouponForm input:checkbox[name=usableCustGradeArr]').focus();
|
|
|
@@ -1053,7 +1052,6 @@
|
|
|
if(cpnType == 'G230_20'){
|
|
|
// 결제수단 체크박스 체크
|
|
|
var payTypeCnt = $('#CouponForm input:checkbox[name=payTypeArr]:checked').length;
|
|
|
- console.log('payTypeCnt>>'+payTypeCnt);
|
|
|
if(payTypeCnt<1){
|
|
|
mcxDialog.alert("결제수단을 체크해주세요.");
|
|
|
$('#CouponForm input:checkbox[name=payTypeArr]').focus();
|
|
|
@@ -1161,7 +1159,6 @@
|
|
|
}
|
|
|
} else if ($('#CouponForm #cpnType').val() == "G230_11" && $("#limitedTimeCpnYn").val() == "Y") { // 상품쿠폰이고 선착순쿠폰 체크되어 있을때
|
|
|
let cpnData = gagaAgGrid.getAllRowData(limitedTimeCpnGridOptions);
|
|
|
- console.log('cpnData.length>>'+cpnData.length);
|
|
|
if(cpnData.length < 1){
|
|
|
mcxDialog.alert("선착순 쿠폰을 설정해주세요.");
|
|
|
return false;
|
|
|
@@ -1368,7 +1365,6 @@
|
|
|
,afChannelList : gagaAgGrid.getAllRowData(afLinkOptions)
|
|
|
};
|
|
|
var jsonData = JSON.stringify(data);
|
|
|
- console.log('jsonData::>>'+jsonData);
|
|
|
gagajf.ajaxJsonSubmit($('#CouponForm').prop('action'), jsonData, fnCouponSaveCollback);
|
|
|
}
|
|
|
});
|
|
|
@@ -1459,7 +1455,6 @@
|
|
|
};
|
|
|
|
|
|
var jsonData = JSON.stringify(data);
|
|
|
-console.log('jsonData::'+jsonData);
|
|
|
gagajf.ajaxJsonSubmit($('#CouponForm').prop('action'), jsonData, fnCouponSaveCollback);
|
|
|
|
|
|
}
|
|
|
@@ -1702,7 +1697,6 @@ console.log('jsonData::'+jsonData);
|
|
|
$('#dcAval').val(0);
|
|
|
$('#maxDcAmt').val(0);
|
|
|
|
|
|
- console.log('coupon type::'+$("#CouponForm input[name=rdoCpnType]:checked").val());
|
|
|
if($("#CouponForm input[name=rdoCpnType]:checked").val() == 'G230_10'){
|
|
|
$("#CouponForm .maxDcAmtArea").hide();
|
|
|
}else{
|
|
|
@@ -2541,6 +2535,14 @@ console.log('jsonData::'+jsonData);
|
|
|
limitedTimeCpnGridOptions.api.setRowData(limitedTimeCpnList);
|
|
|
afLinkOptions.api.setRowData(afChannelList);
|
|
|
|
|
|
+ if(cpnDetail.cpnType == "G230_30"){
|
|
|
+ $("#CouponForm .supplyTrArea").show();
|
|
|
+ $("#CouponForm .brandTrArea").hide();
|
|
|
+ $("#CouponForm .categoryTrArea").hide();
|
|
|
+ $("#CouponForm .goodsTrArea").hide();
|
|
|
+ $("#CouponForm .exceptArea").hide();
|
|
|
+ }
|
|
|
+
|
|
|
// 기본정보 세팅
|
|
|
$("#CouponForm input:radio[name='rdoDcWay']:radio[value=" + cpnDetail.dcWay + "]").prop('checked', true);
|
|
|
$("#CouponForm input:radio[name='rdoCpnType']:radio[value=" + cpnDetail.cpnType + "]").prop('checked', true);
|
|
|
@@ -2648,6 +2650,9 @@ console.log('jsonData::'+jsonData);
|
|
|
$('#CouponForm .firstBuyTr').show();
|
|
|
$('#CouponForm .buyDateTr').show();
|
|
|
$('#CouponForm .dcCdCheck1').show();
|
|
|
+ if(cpnDetail.cpnType == "G230_30"){
|
|
|
+ $('#CouponForm .maxDcAmtArea').hide();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if(limitedTimeCpnList.length>0 && cpnDetail.cpnType == "G230_11"){ //상품쿠폰이고 선착순쿠폰일때
|