|
@@ -28,7 +28,8 @@
|
|
|
<input type="hidden" name="exceptGoodsList" id="excepGoodsList">
|
|
<input type="hidden" name="exceptGoodsList" id="excepGoodsList">
|
|
|
<input type="hidden" name="burdenList" id="burdenList">
|
|
<input type="hidden" name="burdenList" id="burdenList">
|
|
|
<input type="hidden" name="cateList" id="cateList">
|
|
<input type="hidden" name="cateList" id="cateList">
|
|
|
- <input type="hidden" name="cpnId2" id="cpnId2" th:if="${cpnDetail}" th:value="${cpnDetail.cpnId}">
|
|
|
|
|
|
|
+ <input type="hidden" name="rdCpnNm" id="rdCpnNm">
|
|
|
|
|
+ <input type="hidden" name="cpnId" id="cpnId" th:if="${cpnDetail}" th:value="${cpnDetail.cpnId}">
|
|
|
|
|
|
|
|
<div class="tabs">
|
|
<div class="tabs">
|
|
|
<div class="tabsNav">
|
|
<div class="tabsNav">
|
|
@@ -36,6 +37,7 @@
|
|
|
<li class="on"><a href="#coupontab1">기본정보</a></li>
|
|
<li class="on"><a href="#coupontab1">기본정보</a></li>
|
|
|
<li><a href="#coupontab2">적용대상</a></li>
|
|
<li><a href="#coupontab2">적용대상</a></li>
|
|
|
<li><a href="#coupontab3">입점업체분담율</a></li>
|
|
<li><a href="#coupontab3">입점업체분담율</a></li>
|
|
|
|
|
+ <li class="randomCpnTab" style="display:none;"><a href="#coupontab4">시리얼및난수</a></li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
<ul class="tabsCont">
|
|
<ul class="tabsCont">
|
|
@@ -49,14 +51,10 @@
|
|
|
<col style="width:40%;">
|
|
<col style="width:40%;">
|
|
|
</colgroup>
|
|
</colgroup>
|
|
|
<tbody>
|
|
<tbody>
|
|
|
- <tr>
|
|
|
|
|
- <th>쿠폰번호<em class="required" title="필수"></em></th>
|
|
|
|
|
|
|
+ <tr th:if="${cpnDetail}">
|
|
|
|
|
+ <th>쿠폰번호</th>
|
|
|
<td colspan="5">
|
|
<td colspan="5">
|
|
|
- <input type="hidden" name="copyCpnId" maxlength="50" value="">
|
|
|
|
|
- <input type="text" name="cpnId" id="cpnId" maxlength="50" style="width:70%;" disabled="true" readonly="readonly" placeholder="자동생성" data-valid-name="쿠폰번호">
|
|
|
|
|
- <label class="chkBox checked" onclick="clickCreateChk(this);">
|
|
|
|
|
- <input type="checkbox" name="cpnCreateType" value="true" class="type-check" checked />쿠폰번호 자동생성
|
|
|
|
|
- </label>
|
|
|
|
|
|
|
+ <span th:if="${cpnDetail}" th:text="${cpnDetail.cpnId}"></span>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
@@ -72,6 +70,27 @@
|
|
|
<label class="rdoBtn" th:if="${cpnTypeList}" th:each="oneData, status : ${cpnTypeList}"> <input type="radio" name="rdoCpnType" th:text="${oneData.cdNm}" th:value="${oneData.cd}"/></label>
|
|
<label class="rdoBtn" th:if="${cpnTypeList}" th:each="oneData, status : ${cpnTypeList}"> <input type="radio" name="rdoCpnType" th:text="${oneData.cdNm}" th:value="${oneData.cd}"/></label>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
|
|
+ <tr class="dcCdGb" style="display:none;">
|
|
|
|
|
+ <th>할인쿠폰유형<em class="required" title="필수"></em></th>
|
|
|
|
|
+ <td class="normalCol">
|
|
|
|
|
+ <input type="hidden" id="dcCd" required="required" data-valid-name="할인쿠폰유형">
|
|
|
|
|
+ <label class="rdoBtn" th:if="${dcCdList}" th:each="oneData, status : ${dcCdList}"> <input type="radio" name="dcCdGb" th:text="${oneData.cdNm}" th:value="${oneData.cd}"/></label>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <th class="randomCpnArea">난수생성수량<em class="required" title="필수"></em></th>
|
|
|
|
|
+ <td class="randomCpnArea">
|
|
|
|
|
+ <input type="text" name="randomCpnQty" class="w300" required="required" data-valid-name="랜덤쿠폰발급수량" data-valid-type="numeric">
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr class="serialCpnArea" style="display:none;">
|
|
|
|
|
+ <th>시리얼명<em class="required" title="필수"></em></th>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <input type="text" name="serialCpnNm" class="w300" required="required" data-valid-name="시리얼쿠폰키워드">
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <th>쿠폰발급수량<em class="required" title="필수"></em></th>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <input type="text" name="serialCpnQty" class="w300" required="required" data-valid-name="시리얼쿠폰발급수량" data-valid-type="numeric">
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
<tr>
|
|
<tr>
|
|
|
<th>사용가능고객구분<em class="required" title="필수"></em></th>
|
|
<th>사용가능고객구분<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
<td>
|
|
@@ -247,8 +266,8 @@
|
|
|
<option value="N" selected="selected">N</option>
|
|
<option value="N" selected="selected">N</option>
|
|
|
</select>
|
|
</select>
|
|
|
</td>
|
|
</td>
|
|
|
- <th>총발행제한수량<em class="required" title="필수"></em></th>
|
|
|
|
|
- <td>
|
|
|
|
|
|
|
+ <th class="dcCdCheck">총발행제한수량<em class="required" title="필수"></em></th>
|
|
|
|
|
+ <td class="dcCdCheck">
|
|
|
<input type="text" class="w200" name="totPubLimitQty" id="totPubLimitQty" value="0" required="required" data-valid-name="총발행제한수량" data-valid-type="numeric" style="text-align: right;">개<span class="cRed" id="totPubLimitQtySpan"> *제한없음</span>
|
|
<input type="text" class="w200" name="totPubLimitQty" id="totPubLimitQty" value="0" required="required" data-valid-name="총발행제한수량" data-valid-type="numeric" style="text-align: right;">개<span class="cRed" id="totPubLimitQtySpan"> *제한없음</span>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
@@ -275,7 +294,7 @@
|
|
|
</select>
|
|
</select>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
- <tr>
|
|
|
|
|
|
|
+ <tr class="dcCdCheck">
|
|
|
<th>1인당발행제한수량<em class="required" title="필수"></em></th>
|
|
<th>1인당발행제한수량<em class="required" title="필수"></em></th>
|
|
|
<td>
|
|
<td>
|
|
|
<input type="text" class="w200" name="custPubLimitQty" id="custPubLimitQty" value="0" required="required" data-valid-name="1인당발행제한수량" data-valid-type="numeric" style="text-align: right;">개<span class="cRed" id="custPubLimitQtySpan"> *제한없음</span>
|
|
<input type="text" class="w200" name="custPubLimitQty" id="custPubLimitQty" value="0" required="required" data-valid-name="1인당발행제한수량" data-valid-type="numeric" style="text-align: right;">개<span class="cRed" id="custPubLimitQtySpan"> *제한없음</span>
|
|
@@ -431,12 +450,19 @@
|
|
|
<button type="button" class="btn btn-danger btn-lg" id="btnDelRow">행삭제</button>
|
|
<button type="button" class="btn btn-danger btn-lg" id="btnDelRow">행삭제</button>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
-
|
|
|
|
|
<div id="inComGridList" style="width: 100%; height: 570px" class="ag-theme-balham"></div>
|
|
<div id="inComGridList" style="width: 100%; height: 570px" class="ag-theme-balham"></div>
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</li>
|
|
</li>
|
|
|
<!-- 입점업체분담끝-->
|
|
<!-- 입점업체분담끝-->
|
|
|
|
|
+ <!-- 난수 및 네임쿠폰 설정 -->
|
|
|
|
|
+ <li class="tab" id="coupontab4">
|
|
|
|
|
+ <div class="panelStyle">
|
|
|
|
|
+ <span>
|
|
|
|
|
+ <div id="randomCpnList" style="width: 100%; height: 500px" class="ag-theme-balham"></div>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <!-- 난수 및 네임쿠폰 설정-->
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|
|
@@ -551,12 +577,20 @@
|
|
|
{ headerName: "쿠폰대상일련번호" , field: "cpnRefvalSq" , width: 120 , cellClass: 'text-center' , hide:true}
|
|
{ headerName: "쿠폰대상일련번호" , field: "cpnRefvalSq" , width: 120 , cellClass: 'text-center' , hide:true}
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
|
|
+ // ag-grid 공급처 컬럼
|
|
|
|
|
+ var randomCouponDefs = [
|
|
|
|
|
+ { headerName : "생성쿠폰명" , field: "supplyCompCd" , width:150, cellClass: 'text-center'} ,
|
|
|
|
|
+ { headerName: "고객아이디" , field: "supplyCompNm" , width:150, cellClass: 'text-center'},
|
|
|
|
|
+ { headerName: "고객명" , field: "supplyCompNm" , width:150, cellClass: 'text-center'}
|
|
|
|
|
+ ];
|
|
|
|
|
+
|
|
|
var inComGridOptions = gagaAgGrid.getGridOptions(columnDefs);
|
|
var inComGridOptions = gagaAgGrid.getGridOptions(columnDefs);
|
|
|
var cateGridOptions = gagaAgGrid.getGridOptions(cateSelColumnDefs);
|
|
var cateGridOptions = gagaAgGrid.getGridOptions(cateSelColumnDefs);
|
|
|
var goodsGridOptions = gagaAgGrid.getGridOptions(goodsSelColumnDefs);
|
|
var goodsGridOptions = gagaAgGrid.getGridOptions(goodsSelColumnDefs);
|
|
|
var brandGridOptions = gagaAgGrid.getGridOptions(brandSelColumnDefs);
|
|
var brandGridOptions = gagaAgGrid.getGridOptions(brandSelColumnDefs);
|
|
|
var supplyGridOptions = gagaAgGrid.getGridOptions(supplyColumnDefs);
|
|
var supplyGridOptions = gagaAgGrid.getGridOptions(supplyColumnDefs);
|
|
|
var excepGoodsGridOptions = gagaAgGrid.getGridOptions(excepGoodsColumnDefs);
|
|
var excepGoodsGridOptions = gagaAgGrid.getGridOptions(excepGoodsColumnDefs);
|
|
|
|
|
+ var randomCouponGridOptions = gagaAgGrid.getGridOptions(randomCouponDefs);
|
|
|
|
|
|
|
|
inComGridOptions.defaultColDef.editable = true;
|
|
inComGridOptions.defaultColDef.editable = true;
|
|
|
inComGridOptions.rowSelection = "multiple";
|
|
inComGridOptions.rowSelection = "multiple";
|
|
@@ -727,16 +761,42 @@
|
|
|
|
|
|
|
|
// 주문서 쿠폰 선택시 결제수단 노출
|
|
// 주문서 쿠폰 선택시 결제수단 노출
|
|
|
if(radioValue == 'G230_20') {
|
|
if(radioValue == 'G230_20') {
|
|
|
- $('.payTypeTr').css('display' , '');
|
|
|
|
|
|
|
+ $('#CouponForm .payTypeTr').show();
|
|
|
$('#CouponForm #payType').attr('required' , true);
|
|
$('#CouponForm #payType').attr('required' , true);
|
|
|
|
|
+ $("#CouponForm .dcCdGb").show(); // 할인쿠폰유형 노출
|
|
|
} else {
|
|
} else {
|
|
|
- $('.payTypeTr').css('display' , 'none');
|
|
|
|
|
|
|
+ $('#CouponForm .payTypeTr').hide();
|
|
|
$('#CouponForm #payType').attr('required' , false );
|
|
$('#CouponForm #payType').attr('required' , false );
|
|
|
|
|
+ $("#CouponForm .dcCdGb").hide(); // 할인쿠폰유형 숨김
|
|
|
|
|
+ $("#CouponForm input:radio[name='dcCdGb']:radio[value='G233_00']").prop('checked', true); // 주문서 쿠폰이 아닐 경우 일반 쿠폰으로 설정
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$('#CouponForm #cpnType').val(radioValue);
|
|
$('#CouponForm #cpnType').val(radioValue);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ // 할인 쿠폰 유형 변경
|
|
|
|
|
+ $("#CouponForm input[name=dcCdGb]").bind('click change', function () {
|
|
|
|
|
+ if(this.value == "G233_00") { // 일반 유형
|
|
|
|
|
+ $("#CouponForm .dcCdCheck").show();
|
|
|
|
|
+ $("#CouponForm .serialCpnArea").hide();
|
|
|
|
|
+ $("#CouponForm .randomCpnArea").hide();
|
|
|
|
|
+ $("#CouponForm #custJoinYn").parent().attr("colspan", "");
|
|
|
|
|
+ $("#CouponForm .normalCol").attr("colspan", "5");
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if(this.value == "G233_10") { // 시리얼 유형
|
|
|
|
|
+ $("#CouponForm .serialCpnArea").show();
|
|
|
|
|
+ $("#CouponForm .randomCpnArea").hide();
|
|
|
|
|
+ $("#CouponForm .normalCol").attr("colspan", "5");
|
|
|
|
|
+ } else { // 난수 유형
|
|
|
|
|
+ $("#CouponForm .serialCpnArea").hide();
|
|
|
|
|
+ $("#CouponForm .randomCpnArea").show();
|
|
|
|
|
+ $("#CouponForm .normalCol").attr("colspan", "");
|
|
|
|
|
+ }
|
|
|
|
|
+ $("#CouponForm .dcCdCheck").hide(); // 총발행제한수량, 1회발행수량, 1인당발행제한수량 숨김
|
|
|
|
|
+ $("#CouponForm #custJoinYn").parent().attr("colspan", "5"); // 총발행제한 수량을 없애면서 신규회원여부 colspan 수정
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
// 적용대상 - 브랜드 추가 버튼시
|
|
// 적용대상 - 브랜드 추가 버튼시
|
|
|
$('#btnBrandAdd').on('click' , function(){
|
|
$('#btnBrandAdd').on('click' , function(){
|
|
|
cfnOpenBrandListPopup("fnSetPopupBrandInfo", "M");
|
|
cfnOpenBrandListPopup("fnSetPopupBrandInfo", "M");
|
|
@@ -1105,31 +1165,6 @@
|
|
|
inComGridOptions.api.updateRowData({remove:gagaAgGrid.selectedRowData(inComGridOptions)});
|
|
inComGridOptions.api.updateRowData({remove:gagaAgGrid.selectedRowData(inComGridOptions)});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- // 쿠폰번호 자동생성 클릭시
|
|
|
|
|
- function clickCreateChk(){
|
|
|
|
|
- var flag = $('#CouponForm input[name=cpnCreateType]').prop("checked");
|
|
|
|
|
- // 발급받은 이력이 있으면 수정 안됨
|
|
|
|
|
- if(issueCnt > 0 ) {
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if(!flag) {
|
|
|
|
|
- $("#CouponForm input[name=cpnId]").prop("disabled", true);
|
|
|
|
|
- $("#CouponForm input[name=cpnId]").attr("required", false);
|
|
|
|
|
- $("#CouponForm input[name=cpnId]").attr("readonly", true);
|
|
|
|
|
- $("#CouponForm input[name=cpnId]").attr("placeholder", "자동생성");
|
|
|
|
|
- $('#CouponForm input[name=cpnCreateType]').prop("checked" , false);
|
|
|
|
|
- } else{
|
|
|
|
|
- $("#CouponForm input[name=cpnId]").prop("disabled", false);
|
|
|
|
|
- $("#CouponForm input[name=cpnId]").attr("required", true);
|
|
|
|
|
- $("#CouponForm input[name=cpnId]").attr("placeholder", "");
|
|
|
|
|
- $("#CouponForm input[name=cpnId]").attr("readonly", false);
|
|
|
|
|
- $('#CouponForm input[name=cpnCreateType]').prop("checked" , true);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
// 제휴링크채널 수정 (제휴링크가 꼭필요한지 확인필요)
|
|
// 제휴링크채널 수정 (제휴링크가 꼭필요한지 확인필요)
|
|
|
function fnChangeAfLinkCdList(){
|
|
function fnChangeAfLinkCdList(){
|
|
|
var actionUrl = "/business/aflink/list" + '?' + $('#afChannel').serialize();
|
|
var actionUrl = "/business/aflink/list" + '?' + $('#afChannel').serialize();
|
|
@@ -1180,6 +1215,15 @@
|
|
|
// 신규회원기간 세팅
|
|
// 신규회원기간 세팅
|
|
|
$('#CouponForm #custJoinStdt').val($('#CouponForm #custJoinStDay').val() + " " + $('#CouponForm #custJoinStHH').val() + ":" + $('#CouponForm #custJoinStMM').val() + ":00");
|
|
$('#CouponForm #custJoinStdt').val($('#CouponForm #custJoinStDay').val() + " " + $('#CouponForm #custJoinStHH').val() + ":" + $('#CouponForm #custJoinStMM').val() + ":00");
|
|
|
$('#CouponForm #custJoinEddt').val($('#CouponForm #custJoinEdDay').val() + " " + $('#CouponForm #custJoinEdHH').val() + ":" + $('#CouponForm #custJoinEdMM').val() + ":59");
|
|
$('#CouponForm #custJoinEddt').val($('#CouponForm #custJoinEdDay').val() + " " + $('#CouponForm #custJoinEdHH').val() + ":" + $('#CouponForm #custJoinEdMM').val() + ":59");
|
|
|
|
|
+
|
|
|
|
|
+ // 할인쿠폰 유형에 따른 총 발행수량 수정 (주문서 쿠폰이고 난수쿠폰일 경우)
|
|
|
|
|
+ if($('#CouponForm #cpnType').val() == "G230_20" && $('#CouponForm input:radio[name="dcCdGb"]:checked').val() == "G233_20") {
|
|
|
|
|
+ $('#CouponForm input[name="totPubLimitQty"]').val($('#CouponForm input[name="randomCpnQty"]').val()); // 총 발행수량 난수 생성수량으로 변경
|
|
|
|
|
+ } else if ($('#CouponForm #cpnType').val() == "G230_20" && $('#CouponForm input:radio[name="dcCdGb"]:checked').val() == "G233_10") { // 주문서 쿠폰이고 시리얼 유형일 경우
|
|
|
|
|
+ $('#CouponForm input[name="rdCpnNm"]').val($('#CouponForm input[name="serialCpnNm"]').val()); // 시리얼유형쿠폰명 저장
|
|
|
|
|
+ $('#CouponForm input[name="totPubLimitQty"]').val($('#CouponForm input[name="serialCpnQty"]').val()); // 총 발행수량 랜덤쿠폰발급수량으로 변경
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 적용대상 - 공급처 그리드 전체값 세팅
|
|
// 적용대상 - 공급처 그리드 전체값 세팅
|
|
|
var supplyAllData = gagaAgGrid.getAllRowData(supplyGridOptions);
|
|
var supplyAllData = gagaAgGrid.getAllRowData(supplyGridOptions);
|
|
|
var jsonSupplyCompData = JSON.stringify(supplyAllData);
|
|
var jsonSupplyCompData = JSON.stringify(supplyAllData);
|
|
@@ -1214,10 +1258,12 @@
|
|
|
gagaAgGrid.createGrid('supplyGridList', supplyGridOptions);
|
|
gagaAgGrid.createGrid('supplyGridList', supplyGridOptions);
|
|
|
gagaAgGrid.createGrid('goodsGridList', goodsGridOptions);
|
|
gagaAgGrid.createGrid('goodsGridList', goodsGridOptions);
|
|
|
gagaAgGrid.createGrid('excepGoodsGridList', excepGoodsGridOptions);
|
|
gagaAgGrid.createGrid('excepGoodsGridList', excepGoodsGridOptions);
|
|
|
|
|
+ gagaAgGrid.createGrid('randomCpnList', randomCouponGridOptions);
|
|
|
|
|
|
|
|
// 초기화시 데이터 세팅
|
|
// 초기화시 데이터 세팅
|
|
|
if (mode == "N") {
|
|
if (mode == "N") {
|
|
|
$('input[name=rdoCpnType]').eq(0).attr("checked", true);
|
|
$('input[name=rdoCpnType]').eq(0).attr("checked", true);
|
|
|
|
|
+ $('input[name=dcCdGb]').eq(0).attr("checked", true);
|
|
|
$('input[name=rdoDcWay]').eq(0).attr("checked", true);
|
|
$('input[name=rdoDcWay]').eq(0).attr("checked", true);
|
|
|
$('input[name=rdoApplyScope]').eq(0).attr("checked", true)
|
|
$('input[name=rdoApplyScope]').eq(0).attr("checked", true)
|
|
|
$('#CouponForm #availEdHH option:last').attr("selected", "selected");
|
|
$('#CouponForm #availEdHH option:last').attr("selected", "selected");
|
|
@@ -1229,6 +1275,8 @@
|
|
|
$('#buyEdHH option:last').attr("selected", "selected");
|
|
$('#buyEdHH option:last').attr("selected", "selected");
|
|
|
$('#buyEdMM option:last').attr("selected", "selected");
|
|
$('#buyEdMM option:last').attr("selected", "selected");
|
|
|
$("#CouponForm #afChannel option:first").attr("selected" , "selected");
|
|
$("#CouponForm #afChannel option:first").attr("selected" , "selected");
|
|
|
|
|
+ $("#CouponForm .normalCol").attr("colspan", "5");
|
|
|
|
|
+ $("#CouponForm .randomCpnArea").hide();
|
|
|
} else {
|
|
} else {
|
|
|
// 수정모드시 그리드 세팅
|
|
// 수정모드시 그리드 세팅
|
|
|
inComGridOptions.api.setRowData(cpnDtlBurdenList);
|
|
inComGridOptions.api.setRowData(cpnDtlBurdenList);
|
|
@@ -1264,6 +1312,29 @@
|
|
|
$("#CouponForm #buyLimitAmt").val(cpnDetail.buyLimitAmt);
|
|
$("#CouponForm #buyLimitAmt").val(cpnDetail.buyLimitAmt);
|
|
|
$("#CouponForm #cpnId").val(cpnDetail.cpnId);
|
|
$("#CouponForm #cpnId").val(cpnDetail.cpnId);
|
|
|
|
|
|
|
|
|
|
+ // 한번 저장되면 쿠폰유형, 할인쿠폰유형, 난수 생성수량, 시리얼명, 시리얼쿠폰발급수량 수정 불가 처리
|
|
|
|
|
+ $("#CouponForm input:radio[name='rdoCpnType']").attr('readonly', true);
|
|
|
|
|
+ $("#CouponForm input:radio[name='rdoCpnType']").parent().prop('disabled', true);
|
|
|
|
|
+ $("#CouponForm input:radio[name='dcCdGb']").attr('readonly', true);
|
|
|
|
|
+ $("#CouponForm input:radio[name='dcCdGb']").parent().prop('disabled', true);
|
|
|
|
|
+ $("#CouponForm input[name='serialCpnNm']").prop("disabled", true);
|
|
|
|
|
+ $("#CouponForm input[name='serialCpnQty']").prop("disabled", true);
|
|
|
|
|
+ $("#CouponForm input[name='randomCpnQty']").prop("disabled", true);
|
|
|
|
|
+
|
|
|
|
|
+ // 할인코드유형이 일반유형이 아니면 시리얼 및 난수 생성 및 지급 내역 탭 노출
|
|
|
|
|
+ if(cpnDetail.dcCdGb != "G233_00" ) {
|
|
|
|
|
+ $("#CouponForm .randomCpnTab").show();
|
|
|
|
|
+ if(cpnDetail.dcCdGb == "G233_10") { // 시리얼 유형
|
|
|
|
|
+ $("#CouponForm input[name='serialCpnQty']").val(cpnDetail.totPubLimitQty);
|
|
|
|
|
+ $("#CouponForm input[name='serialCpnNm']").val(cpnDetail.rdCpnNm);
|
|
|
|
|
+ $("#CouponForm .serialCpnArea").show();
|
|
|
|
|
+ } else if (cpnDetail.dcCdGb == "G233_20") {
|
|
|
|
|
+ $("#CouponForm input[name='randomCpnQty']").val(cpnDetail.totPubLimitQty);
|
|
|
|
|
+ $("#CouponForm .randomCpnArea").show();
|
|
|
|
|
+ $("#CouponForm .normalCol").attr("colspan", "");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
$("#CouponForm input:checkbox[name='cpnCreateType']").parent("label").addClass("formControl");
|
|
$("#CouponForm input:checkbox[name='cpnCreateType']").parent("label").addClass("formControl");
|
|
|
$("#CouponForm input:checkbox[name='cpnCreateType']").parent("label").prop('disabled', true);
|
|
$("#CouponForm input:checkbox[name='cpnCreateType']").parent("label").prop('disabled', true);
|
|
@@ -1318,7 +1389,6 @@
|
|
|
$("#CouponForm #downStMM").attr('disabled', true);
|
|
$("#CouponForm #downStMM").attr('disabled', true);
|
|
|
$("#CouponForm #buyLimitAmt").attr('readonly', true);
|
|
$("#CouponForm #buyLimitAmt").attr('readonly', true);
|
|
|
$("#CouponForm input:radio[name='rdoDcWay']").attr('readonly', true);
|
|
$("#CouponForm input:radio[name='rdoDcWay']").attr('readonly', true);
|
|
|
- $("#CouponForm input:radio[name='rdoCpnType']").attr('readonly', true);
|
|
|
|
|
$("#CouponForm input:radio[name='rdoApplyScope']").attr('readonly', true);
|
|
$("#CouponForm input:radio[name='rdoApplyScope']").attr('readonly', true);
|
|
|
$("#CouponForm .rdoBtn").css('cursor', 'auto');
|
|
$("#CouponForm .rdoBtn").css('cursor', 'auto');
|
|
|
$("#CouponForm #cpnId").attr('readonly', true);
|
|
$("#CouponForm #cpnId").attr('readonly', true);
|