|
|
@@ -523,6 +523,7 @@
|
|
|
<button type="button" class="btn btnRight btn-success btn-lg couponButton" id="btnChangeStatIng" style="display: none;">진행</button>
|
|
|
<button type="button" class="btn btnRight btn-success btn-lg couponButton" id="btnCouponDelete" style="display: none;">삭제</button>
|
|
|
<button type="button" class="btn btnRight btn-success btn-lg couponButton" id="btnCouponStop" style="display: none;">중지</button>
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg couponButton" id="btnCouponEnd" style="display: none;">종료</button>
|
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
@@ -1897,13 +1898,15 @@ console.log('jsonData::'+jsonData);
|
|
|
} else {
|
|
|
if(cpnDetail.cpnStat == "G232_10"){
|
|
|
$("#btnCouponSave").show(); // 저장버튼
|
|
|
- $("#btnChangeStatIng").show(); // 진행버튼
|
|
|
+ $("#btnChangeStatIng").show(); // 진행버튼
|
|
|
$("#btnCouponDelete").show(); // 삭제버튼
|
|
|
+ $("#btnCouponEnd").show(); // 종료버튼
|
|
|
$("#CouponForm .buttonSpan").show(); //행추가,삭제버튼
|
|
|
- }else if(cpnDetail.cpnStat == "G232_10"){
|
|
|
+ }else if(cpnDetail.cpnStat == "G232_11"){
|
|
|
$("#btnCouponSave").hide(); // 저장버튼
|
|
|
$("#btnCouponStop").show(); // 중지버튼
|
|
|
$("#btnCouponDelete").show(); // 삭제버튼
|
|
|
+ $("#btnCouponEnd").show(); // 종료버튼
|
|
|
$("#CouponForm .buttonSpan").hide(); //행추가,삭제버튼
|
|
|
}else{
|
|
|
$("#CouponForm .buttonSpan").hide(); //행추가,삭제버튼
|
|
|
@@ -2340,6 +2343,22 @@ console.log('jsonData::'+jsonData);
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ // 종료 버튼 클릭
|
|
|
+ $("#btnCouponEnd").on("click", function() {
|
|
|
+ mcxDialog.confirmC("쿠폰을 종료하시겠습니까?<br/>종료한 프로모션은 복원하실 수 없습니다.", {
|
|
|
+ btn: ["아니오","예"],
|
|
|
+ btnClick: function(index) {
|
|
|
+ if(index == 2) {
|
|
|
+ let data = { cpnStat: "G232_13" // 종료
|
|
|
+ , cpnId : $('#CouponForm input[name=cpnId]').val()
|
|
|
+ }
|
|
|
+ var jsonData = JSON.stringify(data);
|
|
|
+ gagajf.ajaxJsonSubmit('/marketing/coupon/changeStat', jsonData, fnCouponSaveCollback);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
// 제휴채널 추가
|
|
|
$('#btnAddAf').on('click' , function () {
|
|
|
cfnOpenAfChannelPopup("callBackAf");
|