<div class="content-heading  justify-content-between">
  <div>订单报表</div>
  <div class="float-right">
    <div class="btn-group mb-1 mr-1" dropdown>
      <button class="btn dropdown-toggle btn-secondary btn-lg" type="button" dropdownToggle>订单报表
        <span class="caret"></span>
      </button>
      <div *dropdownMenu class="dropdown-menu" role="menu">
        <a class="dropdown-item" href="#" (click)="showComponentModal(PayBillReportChannelComponent)">支付渠道</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#"  (click)="showComponentModal(PayBillReportDateComponent)">支付日期</a>
        <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="#"  (click)="showComponentModal(PayBillReportBatchComponent)">批次统计</a>
        <div class="dropdown-divider"></div>
      </div>
    </div>
  </div>
</div>
<div class=" table-responsive bg-white">
  <table class="table table-striped table-hover table-bordered">
    <thead>
    <tr>
      <th>#</th>
      <th><span href="#" (click)="pager.sort('channel_id')">支付渠道</span></th>
      <th><span href="#" (click)="pager.sort('bill_time')">创建时间</span></th>
      <th><span href="#" (click)="pager.sort('bill_no')">内部流水</span></th>
      <th><span href="#" (click)="pager.sort('channel_no')">渠道流水</span></th>
      <th><span href="#" (click)="pager.sort('bill_amount')">订单金额</span></th>
      <th><span href="#" (click)="pager.sort('bill_status')">订单状态</span></th>
      <th><span href="#" (click)="pager.sort('pay_time')">支付时间</span></th>
      <th><span href="#" (click)="pager.sort('reply_time')">通知时间</span></th>
      <!--
      <th class="th-b-1"></th>
      -->
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let v of pager.getRecords(); let i = index">
      <td>{{i + 1}}</td>
      <td>{{v.channel_name}}</td>
      <td>{{v.bill_time}}</td>
      <td>{{v.bill_no }}</td>
      <td>{{v.channel_no}}</td>
      <td>{{v.bill_amount/100 | currency:'CNY'}}</td>
      <td>{{v.bill_status}}</td>
      <td>{{v.pay_time}}</td>
      <td>{{v.reply_time}}</td>
      <!--
      <td>
        <span class="cursor-hand" (click)="showModal({ResponseEntity:v})"><em class="fa-lg fas fa-edit"></em></span>
      </td>
      -->
    </tr>
    </tbody>
  </table>
  <frame-pager url="pay/bill/page.htm" #pager></frame-pager>
</div>


