indexDirect.html 5.0 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="#addDirectCoupon/">
			<span>添加直减优惠券</span>
		</a>
	</div>
	<div class="contenttitle2">
		<h3>直减优惠券</h3>
	</div>
	<div class="overviewhead" style="margin-bottom: 10px;">
		<div class="line">
			<label class="label" >优惠券名称:</label>
			<div class="input">
				<input type="text" id="orderCode" ng-model="couponQuery.couponName" name="keyword"/>
			</div>
			<label class="label" style="width: 100px;" >(商品/专场)名称:</label>
			<div class="input">
				<input type="text" id="erpCode" ng-model="couponQuery.rangeName" name="erpCode"/>
			</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="selection2"
						ng-model="couponQuery.productRange" style="width: 100px;">
					<option value="">--请选择--</option>
					<option value="0">全品类</option>
					<option value="1">限定专场</option>
					<option value="2">限定商品</option>
				</select>
			</div>
			<div  ng-show="suppliersFlag == 0" style="display:inline-block">
				<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>
			</div>
			<a class="btn btn2 btn_blue btn_search radius50" href="javascript:void(0)" ng-click="searchDirectCoupon()"><span>搜索</span></a>
		</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">状态</th>
				<th class="head0" ng-show="suppliersFlag == 0">商家名称</th>
				<th class="head0">优惠券说明</th>
				<th class="head0">操作</th>
			</tr>
		</thead>
		<tbody>
			<tr class="gradeX" align="center" ng-repeat="coupon in directCoupons">
				<td>{{ coupon.id}}</td>
				<td>{{ coupon.couponName}}</td>
				<td>{{ coupon.couponMoney}}</td>
				<td>{{ coupon.couponNum}}</td>
				<td >{{ coupon.receiveNum}}</td>
				<td>{{ coupon.rangTypeStr}}</td>
				<td>{{ coupon.rangeName}}</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-show="suppliersFlag == 0" ng-if="coupon.platformType == 1">{{ coupon.supplierName}}</td>
				<td ng-show="suppliersFlag == 0" ng-if="coupon.platformType == 0">平台</td>
				<td>{{ coupon.directCutInstruction}}</td>
				<td>
					<a class="btn_common btn_edit" href="#addDirectCoupon/{{coupon.id}}">编辑</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>