<!--pages/invoiceList/components/already/index.wxml-->


<scroll-view wx:if="{{list.length}}" scroll-y lower-threshold="100px" bindscrolltolower="scrollToLower" style="height: 80vh;" scroll-top="{{topHeight}}px" class="scrView">
  <view class="card" wx:for="{{list}}">
    <view class="left">
      <view class="title">
        {{item.invoice.name}}
      </view>
      <view class="invoiceContent">
        发票内容： {{item.invoice.content}}（{{item.money}}元）
      </view>
      <view class="invoiceType">
        发票类型：{{ item.invoice.type === 0 ? '普通发票' : '增值税专用发票' }}
      </view>
      <view class="time">
        {{item.finishTime}}
      </view>
    </view>
    <view class="right">

      <view class="money"> </view>
      <view class="operate">
        <view style="margin-top: 20rpx; margin-bottom: 20rpx;">
          <van-button type="info" class="invoiceBtn" bind:click="submit" size="small" bind:click="jumpToDetail" data-id="{{item.id}}">发票</van-button>
        </view>
        <van-button type="info" class="detailBtn" bind:click="submit" size="small" bind:click="jumpToDetailContent" data-id="{{item.id}}">明细</van-button>
      </view>
    </view>
    <view class="{{item.status === 1 ? 'approving' : 'already'}}">
        <view wx:if="{{item.status === 1}}"> 审核中 </view>
        <view wx:else> 已开票 </view>
      </view>
  </view>
  <view  style="height: 50rpx;"></view>
</scroll-view>
<view wx:else>
  <empty text="暂无数据" bind:refresh="onRefresh" />
</view>