<view class="head">
	<view class="count">{{language['发票清单']||'发票清单'}}</view>
</view>

<view url="#" class="item" wx:for="{{list}}" wx:key="index">
	<van-tag class="abs" wx:if="{{item.rb==1}}" type="primary">{{language['蓝']||'蓝'}}</van-tag>
	<van-tag class="abs" wx:else type="danger">{{language['红']||'红'}}</van-tag>
	<van-button custom-class="but" type="default" plain wx:if="{{item.pdfurl ||item.paperpdfurl}}" data-item="{{item}}" bindtap="previewpdf">{{language['查看发票']||'查看发票'}}</van-button>
	<view class="dec">
		<view class="title line-1">
			{{language['开票单号']||'开票单号'}}：{{item.billno}}
		</view>
		<view class="subfield">
			{{language['发票ID']||'发票ID'}}：{{item.sa_invoiceapplyid||" --"}}
		</view>
		<view class="subfield">
			{{language['发票流水号']||'发票流水号'}}：{{item.invoiceserialnum||" --"}}
		</view>
		<view class="subfield">
			{{language['开票金额']||'开票金额'}}：{{item.sumtaxincludedamount}}{{language['元']||'元'}}
		</view>
		<view class="subfield">
			{{language['发票状态']||'发票状态'}}：{{item.status||" --"}}
		</view>
		<view class="subfield">
			{{language['备注']||'备注'}}：{{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="{{language['取消']||'取消'}}" bind:cancel="onClose" bind:select="onSelect" bind:click-overlay='onClose' />