Authored by 陶雨

修复发券管理部分bug

... ... @@ -42,7 +42,7 @@
<script type="text/template" id="template">
<div class="rows" id="baseform">
<div class="form-group">
<label class="col-sm-2 control-label">发券名称</label>
<label class="col-sm-2 control-label">发券名称<i class="red">*</i></label>
<div class="col-sm-10">
<input type="text" value="[[name]]" class="form-control observe" data-field="name" placeholder="发券名称"
... ... @@ -51,7 +51,7 @@
</div>
[[each couponsIds as item index]]
<div class="form-group">
<label class="col-sm-2 control-label">优惠券ID</label>
<label class="col-sm-2 control-label">优惠券ID<i class="red">*</i></label>
<div class="col-sm-7">
<select name="couponsIds" class="col-sm-10 observe select2-offscreen couponsIds"
... ...
... ... @@ -43,7 +43,7 @@
<input type="hidden" class="form-control"id="dateFromInfinity"value="1970-01-01 08:00:00">
[[each times as item index]]
<li class="[[index==selected?'active':'']] timesLi" data-index="[[index]]">
<input type="text" [[item.time=="" ? "disabled" : (index==selected?"":"disabled")]] class="form-control preTimes" data-index="[[index]]" jsaction="time:end:dateFrom[[index-1<0?'Infinity1':index-1]]" jsaction1="time:start:dateFrom[[index+1>=times.length?Infinity:index+1]]" id="dateFrom[[index]]" prompt="时间" value="[[item.time]]" readonly required>
<input type="text" [[(item.time=="" || item.status == "进行中") ? "disabled" : (index==selected?"":"disabled")]] class="form-control preTimes" data-index="[[index]]" jsaction="time:end:dateFrom[[index-1<0?'Infinity1':index-1]]" jsaction1="time:start:dateFrom[[index+1>=times.length?Infinity:index+1]]" id="dateFrom[[index]]" prompt="时间" value="[[item.time]]" readonly required>
<span style="display: block; line-height: 20px">[[item.status||"默认"]]</span>
</li>
[[/each]]
... ...