voucherDetail.vm 6.05 KB
$page.setTitle("优惠券消费明细报表")
<div class="xn-breadcrumb xn-width auto clearfix ">
    <ul class="breadcrumb">
        <li><a class="icon icon-home_page" href="$customizationLink.setTarget("index")"></a></li>
        <li><a href="$customizationLink.setTarget("report")">报表中心</a></li>
        <li class="active">优惠券消费明细报表</li>
    </ul>
</div>

<div class="xn-main  auto xn-width  clearfix" ng-controller="CouponVoucherDetailController" ng-init="vm.op = 'voucherDetail'">
    <div class="pm-task-bottom-top pm-plan-bottom-top  mt_10  mb_10 clearfix">
        <h3>优惠券消费明细报表</h3>
    </div>
    <!--搜索部分-->
    <div class="xn-input-line clearfix">
        <div class="xn_search_box auto">


            <div class="xn-input-line  clearfix">
                <input  type="hidden"  id="op"  name="op"  ng-model="vm.op" >
                <label class="xn-col-sm-4 l-h-34 34 xn-text-right">开始日期:</label>
                <div class="xn-col-sm-8">
                    <div class="input-group openData">
                        <input type="text" class="form-control" id="startDate"  placeholder="开始日期"  ng-model="vm.startSubmitTime" name="regularDate"
                               datepicker-popup="yyyy-MM-dd" is-open="startDate" min-date="minDate"  datepicker-options="dateOptions"
                               date-disabled="disabled(date, mode)"  close-text="关闭" current-text="今天"  clear-text="清除">
                        <span class="input-group-btn">
                            <button class="btn btn-default" type="button"  ng-click="openStart($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                        </span>
                    </div>
                </div>
                <label class="xn-col-sm-4 l-h-34 34 xn-text-right">结束日期:</label>
                <div class="xn-col-sm-8">
                    <div class="input-group openData">
                        <input type="text" class="form-control" id="endDate"  placeholder="结束日期"  ng-model="vm.endSubmitTime" name="regularDate"
                               datepicker-popup="yyyy-MM-dd" is-open="endDate" min-date="minDate"  datepicker-options="dateOptions"
                               date-disabled="disabled(date, mode)"  close-text="关闭" current-text="今天"  clear-text="清除">
                        <span class="input-group-btn">
                                <button class="btn btn-default" type="button"  ng-click="openEnd($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                            </span>
                    </div>
                </div>
                <label class="xn-col-md-3 xn-lh xn-text-right pr-0 font-light" style="height: 34px;display: inline-block;line-height: 34px;">会员:</label>
                <div class="xn-col-md-4">

                    <div  xn-lookup ng-show="!showBar"  show-field="member.nickName" ng-model="vm.member"  data-method="getMemberList(data)" placeholder="请输入会员名称"
                          data-search-val="name" data-callback="selectMember(data)" >
                    </div>
                    <p ng-show="showBar" style="height: 34px;display: inline-block;line-height: 34px;">{{memberName}}</p>
                </div>
            </div>


            <div class="xn-input-line clearfix pt_10">
                <div class="xn-input-line  clearfix">
                    <button class="btn btn-success btn-sm w_80 f-right ml_10"  ng-click="reportExport()">批量导出</button>
                    <button type="button" class="btn btn-success btn-sm w_80 f-right"  ng-click="doFind()" ng-show="!showBar">查询</button>
                </div>
            </div>
        </div>
    </div>
    <!--搜索部分结束-->
    <div class="xn-table-wrap" >
        <table  class="table table-bordered table-striped ">
            <thead>
            <tr>
                <th class="col-md-1">会员ID</th>
                <th class="col-md-1">券ID</th>
                <th class="col-md-1">券名称</th>
                <th class="col-md-1">券分类</th>
                <th class="col-md-1">券类型</th>
                <th class="col-md-1">券编号</th>
                <th class="col-md-1">领/发券时间</th>
                <th class="col-md-1">用券时间</th>
                <th class="col-md-2">订单号</th>
                <th class="col-md-1 xn-text-right">折扣金额</th>
                <th class="col-md-2">描述</th>

            </tr>
            </thead>
            <tbody id="tbody" >
            <tr ng-repeat= "line in shipmentLineList" >
                <td><pre>{{line.memberId}}</pre></td>
                <td >
                    {{line.ticketId}}
                </td>
                <td >{{line.ticketName}}</td>
                <td >
                    {{line.ticketCategory}}
                </td>
                <td >{{line.ticketType}}</td>
                <td >{{line.ticketNumber}}</td>

                <td >{{line.sendTime|timeReturnFormat}}</td>
                <td >{{line.useTime|timeReturnFormat}}</td>
                <td >{{line.orderNumber}}</td>
                <td class="xn-text-right" >{{line.discountAmount}}</td>
                <td >{{line.summary}}</td>
            </tr>
            <tr  ng-if="!vm.totalCount || vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
            </tbody>
        </table>
        <div class="xn-table-wrap xn-text-center clearfix" ng-if="vm.totalCount ">
            <div class="f-left mt_20 mb_10">共{{vm.totalCount}}条</div>
            <pagination  ng-show="vm.totalCount>vm.pageSize"  ng-change="getList()"  max-size="maxPageSize" total-items="vm.totalCount"
                         ng-model="vm.pageNumber" items-per-page="vm.pageSize"  class="pagination-sm"  boundary-links="true"
                         previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></pagination>
        </div>
    </div>
</div>
<script type="text/javascript" src="$customizationContent.getURI('dist/scripts/report.js')"></script>