|
@@ -217,7 +217,7 @@
|
|
|
<col style="width:85%;">
|
|
<col style="width:85%;">
|
|
|
</colgroup>
|
|
</colgroup>
|
|
|
<tbody>
|
|
<tbody>
|
|
|
- <tr>
|
|
|
|
|
|
|
+ <tr class="applyScopeArea">
|
|
|
<th>적용범위<em class="required" title="필수"></em></th>
|
|
<th>적용범위<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
<td>
|
|
|
<input type="hidden" name="applyScope" id="applyScope" required="required" data-valid-name="적용범위">
|
|
<input type="hidden" name="applyScope" id="applyScope" required="required" data-valid-name="적용범위">
|
|
@@ -276,7 +276,7 @@
|
|
|
<div class="inner-panelContent exceptArea">
|
|
<div class="inner-panelContent exceptArea">
|
|
|
<div class="panelContent">
|
|
<div class="panelContent">
|
|
|
<div class="panelBar">
|
|
<div class="panelBar">
|
|
|
- <h4>적용 대상 상품 등록</h4>
|
|
|
|
|
|
|
+ <h4>제외 대상 상품 등록</h4>
|
|
|
</div>
|
|
</div>
|
|
|
<table class="frmStyle">
|
|
<table class="frmStyle">
|
|
|
<colgroup>
|
|
<colgroup>
|
|
@@ -318,9 +318,9 @@
|
|
|
<th>업체 분담율</th>
|
|
<th>업체 분담율</th>
|
|
|
<td>
|
|
<td>
|
|
|
<div class="padding10 inner-tb-solid">
|
|
<div class="padding10 inner-tb-solid">
|
|
|
- <button type="button" class="btn btnRight btn-success btn-lg" id="btnAddApplyBurden">업체추가</button>
|
|
|
|
|
- <button type="button" class="btn btnRight btn-success btn-lg" id="btnDelApplyBurden">선택삭제</button>
|
|
|
|
|
- <br/>
|
|
|
|
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg" id="btnAddApplyBurden" style="display: none">업체추가</button>
|
|
|
|
|
+ <button type="button" class="btn btnRight btn-success btn-lg" id="btnDelApplyBurden" style="display: none">선택삭제</button>
|
|
|
|
|
+<!-- <br/>-->
|
|
|
<div id="inComGridList" style="width:100%; height:200px;" class="ag-theme-balham"></div>
|
|
<div id="inComGridList" style="width:100%; height:200px;" class="ag-theme-balham"></div>
|
|
|
</div>
|
|
</div>
|
|
|
</td>
|
|
</td>
|
|
@@ -354,6 +354,8 @@
|
|
|
var cpnDtlRefvalBrandList = [[${cpnDtlRefvalBrandList}]];
|
|
var cpnDtlRefvalBrandList = [[${cpnDtlRefvalBrandList}]];
|
|
|
var cpnDtlRefvalExceptGoodsList = [[${cpnDtlRefvalExceptGoodsList}]];
|
|
var cpnDtlRefvalExceptGoodsList = [[${cpnDtlRefvalExceptGoodsList}]];
|
|
|
var cpnDtlBurdenList = [[${cpnDtlBurdenList}]];
|
|
var cpnDtlBurdenList = [[${cpnDtlBurdenList}]];
|
|
|
|
|
+ var usableCustGbList = [[${usableCustGbList}]];
|
|
|
|
|
+ var usableCustGradeList = [[${usableCustGradeList}]];
|
|
|
|
|
|
|
|
var issueCnt = [[${issueCnt}]];
|
|
var issueCnt = [[${issueCnt}]];
|
|
|
|
|
|
|
@@ -738,6 +740,10 @@
|
|
|
|
|
|
|
|
// 쿠폰 등록
|
|
// 쿠폰 등록
|
|
|
function fnCouponCreate(){
|
|
function fnCouponCreate(){
|
|
|
|
|
+ var usableCustGbArr = [];
|
|
|
|
|
+ var usableCustGradeArr = [];
|
|
|
|
|
+ var payTypeArr = [];
|
|
|
|
|
+
|
|
|
// 필수값들 셋팅
|
|
// 필수값들 셋팅
|
|
|
setReqValue();
|
|
setReqValue();
|
|
|
|
|
|
|
@@ -755,10 +761,16 @@
|
|
|
if(!checkValidation20(chkCpnType)){
|
|
if(!checkValidation20(chkCpnType)){
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // 2021.11.02 card007 SCM 쿠폰 등록은 전체고객구분 및 전체고객등급 설정 처리
|
|
|
|
|
+ $.each(usableCustGbList, function(idx ,item) {
|
|
|
|
|
+ usableCustGbArr.push(item.cd);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ $.each(usableCustGradeList, function(idx ,item) {
|
|
|
|
|
+ usableCustGradeArr.push(item.cd);
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
- var usableCustGbArr = [];
|
|
|
|
|
- var usableCustGradeArr = [];
|
|
|
|
|
- var payTypeArr = [];
|
|
|
|
|
|
|
|
|
|
mcxDialog.confirm('저장하시겠습니까?' , {
|
|
mcxDialog.confirm('저장하시겠습니까?' , {
|
|
|
cancelBtnText: "취소",
|
|
cancelBtnText: "취소",
|
|
@@ -770,7 +782,9 @@
|
|
|
,cpnDesc : $('#CouponForm input[name=cpnDesc]').val()
|
|
,cpnDesc : $('#CouponForm input[name=cpnDesc]').val()
|
|
|
,siteCd : $('#CouponForm select[name=siteCd]').val()
|
|
,siteCd : $('#CouponForm select[name=siteCd]').val()
|
|
|
,cpnType : $('input:radio[name="rdoCpnType"]:checked').val()
|
|
,cpnType : $('input:radio[name="rdoCpnType"]:checked').val()
|
|
|
- ,applyScope : $('input:radio[name="rdoApplyScope"]:checked').val()
|
|
|
|
|
|
|
+ // 2021.10.29 card007 SCM에서는 해당 업체 상품만 적용처리 사유로 적용범위 개별로 설정
|
|
|
|
|
+ //,applyScope : $('input:radio[name="rdoApplyScope"]:checked').val()
|
|
|
|
|
+ ,applyScope : 'I'
|
|
|
,dcWay : $('input:radio[name="rdoDcWay"]:checked').val()
|
|
,dcWay : $('input:radio[name="rdoDcWay"]:checked').val()
|
|
|
,dcPval : $('#CouponForm input[name=dcPval]').val().replaceAll(',','')
|
|
,dcPval : $('#CouponForm input[name=dcPval]').val().replaceAll(',','')
|
|
|
,dcMval : $('#CouponForm input[name=dcMval]').val().replaceAll(',','')
|
|
,dcMval : $('#CouponForm input[name=dcMval]').val().replaceAll(',','')
|
|
@@ -811,6 +825,7 @@
|
|
|
,afChannelList : null
|
|
,afChannelList : null
|
|
|
,scmYn : 'Y'
|
|
,scmYn : 'Y'
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
var jsonData = JSON.stringify(data);
|
|
var jsonData = JSON.stringify(data);
|
|
|
gagajf.ajaxJsonSubmit($('#CouponForm').prop('action'), jsonData, fnCouponSaveCollback);
|
|
gagajf.ajaxJsonSubmit($('#CouponForm').prop('action'), jsonData, fnCouponSaveCollback);
|
|
|
}
|
|
}
|
|
@@ -960,7 +975,8 @@
|
|
|
// 적용대상 탭
|
|
// 적용대상 탭
|
|
|
$("#CouponForm .supplyTrArea").show();
|
|
$("#CouponForm .supplyTrArea").show();
|
|
|
$("#CouponForm .brandTrArea").show();
|
|
$("#CouponForm .brandTrArea").show();
|
|
|
- $("#CouponForm .categoryTrArea").show();
|
|
|
|
|
|
|
+ // 2021.10.29 card007 SCM은 적용대상 > 카테고리 미사용 처리
|
|
|
|
|
+ //$("#CouponForm .categoryTrArea").show();
|
|
|
$("#CouponForm .goodsTrArea").show();
|
|
$("#CouponForm .goodsTrArea").show();
|
|
|
$("#CouponForm .exceptArea").show();
|
|
$("#CouponForm .exceptArea").show();
|
|
|
|
|
|
|
@@ -1329,6 +1345,15 @@
|
|
|
$("#btnCouponSave").show(); // 저장버튼
|
|
$("#btnCouponSave").show(); // 저장버튼
|
|
|
$("#CouponForm .buttonSpan").show();
|
|
$("#CouponForm .buttonSpan").show();
|
|
|
|
|
|
|
|
|
|
+ // 2021.10.29 card007 SCM은 입점업체분담율 해당 업체 100% 디폴트 처리
|
|
|
|
|
+ for (let data in ibSupplyComList) {
|
|
|
|
|
+ let supplyGridData = {};
|
|
|
|
|
+ supplyGridData.supplyCompCd = data;
|
|
|
|
|
+ supplyGridData.supplyCompNm = ibSupplyComList[data];
|
|
|
|
|
+ supplyGridData.burdenRate = 100;
|
|
|
|
|
+
|
|
|
|
|
+ gagaAgGrid.addRowData(inComGridOptions, supplyGridData);
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
// 수정모드시 그리드 세팅
|
|
// 수정모드시 그리드 세팅
|
|
|
inComGridOptions.api.setRowData(cpnDtlBurdenList);
|
|
inComGridOptions.api.setRowData(cpnDtlBurdenList);
|
|
@@ -1552,6 +1577,10 @@
|
|
|
// 기본세팅
|
|
// 기본세팅
|
|
|
pdGbChange();
|
|
pdGbChange();
|
|
|
|
|
|
|
|
|
|
+ // 2021.10.29 card007 SCM 적용범위, 카테고리 미사용 처리
|
|
|
|
|
+ $('.applyScopeArea').hide();
|
|
|
|
|
+ $('.categoryTrArea').hide();
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// 날짜분리 ( 시작/종료날짜구분(start , end) , 날짜String , 적용타겟대상 )
|
|
// 날짜분리 ( 시작/종료날짜구분(start , end) , 날짜String , 적용타겟대상 )
|
|
@@ -1656,7 +1685,6 @@
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/*]]>*/
|
|
/*]]>*/
|
|
|
</script>
|
|
</script>
|
|
|
</html>
|
|
</html>
|