indexFullCut.html 4.9 KB
<script type="text/javascript" src='js/plugins/jquery.dataTables.min.js'></script>
<div class="pageheader notab">
    <h1 class="pagetitle">满减优惠券模块</h1>
    <span class="pagedesc">管理V商城满减优惠券</span>
</div><!--pageheader-->
<paging>
<div id="contentwrapper" class="contentwrapper">
	<div class="thumb">
		<a class="btn btn2 btn_link" href="#addFullCutCoupon/">
			<span>添加满减优惠券</span>
		</a>
	</div>
	<div class="contenttitle2">
		<h3>满减优惠券</h3>
	</div>
	<div class="overviewhead" style="margin-bottom: 10px;"  ng-show="suppliersFlag == 0">
		<div class="line">
			<div  style="display:inline-block">
				<label class="label" >优惠券名称:</label>
				<div class="input">
					<input type="text" id="orderCode" ng-model="couponQuery.couponName" name="keyword"/>
				</div>
				<label class="label" >是否激活:</label>
				<div class="input">
					<select name="selection" id="selection2"
							ng-model="couponQuery.status" style="width: 100px;">
						<option value="">--请选择--</option>
						<option value="0">未激活</option>
						<option value="1">已激活</option>
					</select>
				</div>
				<label class="label" >是否过期:</label>
				<div class="input">
					<select name="selection" id="selection3"
							ng-model="couponQuery.pastStatus" style="width: 100px;">
						<option value="">--请选择--</option>
						<option value="0">未过期</option>
						<option value="1">已过期</option>
					</select>
				</div>
				<label  class="label">商家名称:</label>
				<div class="input">
					<select type="text" ng-model="couponQuery.supplierId"    >
						<option value=''>--请选择--</option>
						<option ng-repeat="x in suppliers " value="{{x.id}}">{{x.name}}</option>
					</select>
				</div>
				<a class="btn btn2 btn_blue btn_search radius50" href="javascript:void(0)" ng-click="searchDirectCoupon()"><span>搜索</span></a>
			</div>
		</div>
	</div>
	<!--contenttitle-->
	<table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="dyntable3">
		<thead>
			<tr align="center">
				<th class="head0">序号</th>
				<th class="head1">优惠券名称</th>
				<th class="head0">满金额(元)</th>
				<th class="head0">减金额(元)</th>
				<th class="head0">优惠券数量</th>
				<th class="head0">领取数量</th>
				<th class="head0">发放日期</th>
				<th class="head0">发放方式</th>
				<th class="head0">有效日期</th>
				<th class="head0">状态</th>
				<th class="head0"  ng-show="suppliersFlag == 0">商家名称</th>
				<th class="head0">说明</th>
				<th class="head0" width="200px">操作</th>
			</tr>
		</thead>
		<tbody>
			<tr class="gradeX" align="center" ng-repeat="coupon in directCoupons">
				<td>{{ coupon.id}}</td>
				<td>{{ coupon.couponName}}</td>
				<td>{{ coupon.fullMoney}}</td>
				<td>{{ coupon.cutMoney}}</td>
				<td>{{ coupon.couponNum}}</td>
				<td>{{ coupon.receiveNum}}</td>
				<td>{{ coupon.receiveStartDate | date:"yyyy-MM-dd HH:mm:ss"}}-{{ coupon.receiveEndDate | date:"yyyy-MM-dd HH:mm:ss"}}</td>
				<td ng-if="coupon.getSource == 0">V商城</td>
				<td ng-if="coupon.getSource == 1">新微商</td>
				<td>{{ coupon.useStartDate | date:"yyyy-MM-dd HH:mm:ss"}}-{{ coupon.useEndDate | date:"yyyy-MM-dd HH:mm:ss"}}</td>
				<td ng-if="coupon.status == 0"><span class="close_stl">未激活</span></td>
				<td ng-if="coupon.status == 1"><span class="open_stl">已激活</span></td>
				<td ng-if="coupon.supplierName !=null"  ng-show="suppliersFlag == 0">{{ coupon.supplierName}}</td>
				<td ng-if="coupon.supplierName == null"  ng-show="suppliersFlag == 0">平台</td>
				<td>{{ coupon.fullCutInstruction}}</td>
				<td align="center">
					<a class="btn_common btn_edit" href="#addFullCutCoupon/{{coupon.id}}">编辑</a><span class="btn_bewtton">|</span>
					<a class="btn_common btn_delete" href="#fullCutLimitCoupon/{{coupon.id}}/{{ coupon.fullMoney}}/{{ coupon.cutMoney}}"  target="_blank">优惠券限制</a><span class="btn_bewtton"></span>
					<!--<a class="btn_common btn_oper" href="javascript:void(0)" ng-click="addShareGiftCoupon(coupon.id)">设置分享优惠劵</a>-->
				</td>
			</tr>
		</tbody>
	</table>
</div>
<div class="angular_pager" style="margin-left: 20px;">
	<ul class="pagination" num-pages="numPages" current-page="currentPage" on-select-page="selectPage(page)">
		<li ng-class="{disabled: noPrevious()}"> <a ng-click="selectPrevious()">&laquo;</a>
		</li>
		<li ng-repeat="page in pages" ng-class="{active: isActive(page)}"> <a ng-click="selectPage(page)">{{page}}</a>
		</li>
		<li ng-class="{disabled: noNext()}"> <a ng-click="selectNext()">&raquo;</a>
		</li>
		<li><span style="position: relative;top: 5px;margin-left: 10px;font-size: 14px;">共:<b style="color: red;">{{numPages}}</b>页,当前第<b style="color: red;">{{currentPage}}</b>页;总记录数:<b style="color: red;">{{totalRecord}}</b></span></li>
	</ul>
</div>
</paging>