<view class="head">
	<view class="count">发票清单</view>
</view>

<view url="#" class="item" wx:for="{{list}}" wx:key="index">
	<van-tag class="abs" wx:if="{{item.rb==1}}" type="primary">蓝</van-tag>
	<van-tag class="abs" wx:else type="danger">红</van-tag>
	<van-button custom-class="but" type="default" plain wx:if="{{item.pdfurl ||item.paperpdfurl}}" data-item="{{item}}" bindtap="previewpdf">查看发票</van-button>
	<view class="dec">
		<view class="title line-1">
			发票ID：{{item.sa_invoiceapplyid}}
		</view>
		<view class="subfield">
			发票流水号：{{item.invoiceserialnum||" --"}}
		</view>
		<view class="subfield">
			开票金额：{{item.sumtaxincludedamount}}元
		</view>
		<view class="subfield">
			发票状态：{{item.status||" --"}}
		</view>
		<view class="subfield">
			备注：{{item.remarks||" --"}}
		</view>
	</view>
</view>
<block wx:if="{{list.length==0}}">
	<Yl_Empty />
	<view style="height: 150rpx;" />
</block>

<van-action-sheet show="{{ show }}" actions="{{ actions }}" z-index="99999999" cancel-text="取消" bind:cancel="onClose" bind:select="onSelect" bind:click-overlay='onClose' />