Authored by pangjie

有效状态优惠券编辑

... ... @@ -44,9 +44,9 @@
<div class="form-group">
<label class="col-sm-2 control-label">类型 <span class="red">*</span></label>
<div class="col-sm-8">
<div class="col-sm-8" >
<select id="filter-couponType" tabindex="-1" class="select2-offscreen brandBtn-group observe"
value="[[couponType]]" data-field="couponType" required>
value="[[couponType]]" data-field="couponType" required [[if status==1]] disabled [[/if]]>
<option value="-1">优惠券类型</option>
<option value="1">A</option>
<option value="2">B</option>
... ... @@ -242,7 +242,7 @@
<div class="col-sm-4">
<input type="text" match="numbers" class="form-control observe " data-field="couponAmount"
value="[[couponAmount]]" required placeholder="面额">
value="[[couponAmount]]" [[if status==1]] disabled [[/if]] required placeholder="面额">
</div>
<label class="col-sm-1 control-label"></label>
</div>
... ...
... ... @@ -94,14 +94,14 @@ var Bll = {
}
}
},
//modified by jie.pang@yoho.cn:20160812 去掉隐藏的功能
checkSortNum: function () {
if ($('.sort-wrap').find('.row').size() > 1) {
$('.sort-wrap').find('.row').find('.add-sort-btn').hide().end().find('.del-sort-btn').show();
$('.sort-wrap').find('.row:last').find('.add-sort-btn').show().end().find('.del-sort-btn').show();
} else {
$('.sort-wrap').find('.row:first').find('.add-sort-btn').show().end().find('.del-sort-btn').hide();
}
// if ($('.sort-wrap').find('.row').size() > 1) {
// $('.sort-wrap').find('.row').find('.add-sort-btn').hide().end().find('.del-sort-btn').show();
// $('.sort-wrap').find('.row:last').find('.add-sort-btn').show().end().find('.del-sort-btn').show();
// } else {
// $('.sort-wrap').find('.row:first').find('.add-sort-btn').show().end().find('.del-sort-btn').hide();
// }
},
setTabTree: function () {//分类数据,设置tabTree
var data = {}, NUMN = {};
... ... @@ -247,6 +247,8 @@ var initSort = function () {//初始化分类弹框
}
couponBean.sortLimit = ids.join(',');
}else{
couponBean.sortLimit="";
}
if (Bll.selectSorts.length > 0) {
var sorts = [], sortList = [];
... ... @@ -262,6 +264,9 @@ var initSort = function () {//初始化分类弹框
couponBean.sortsList = sortList.join(";");
Bll.__render(couponBean, type);
}else{
couponBean.sortsList = "";
Bll.__render(couponBean, type);
}
},
css: "btn btn-primary"
... ...