<!--pages/member/presentationRecord/presentationRecord.wxml-->
<view class="detailed">
	<van-tabs active="{{selected}}" swipe-threshold="{{5}}" bind:change="swichTabTItem">
		<van-tab title="全部">
			<view wx:if="{{orderType ==='supplier'}}">
				<block wx:if="{{all.length>0}}">
					<view wx:for-item="model" wx:for="{{all}}" wx:key="index">
						<view class="tbs">
							<view class="ul item2">
								<view class="li">{{model.apply_sn}}</view>
								<view class="li">{{model.created_at}}</view>
							</view>
							<view class="item3">
								<view class="span red">{{language['money']}}{{model.apply_money}}</view>
								<view class="p">{{model.status_obj.name}}</view>
							</view>
						</view>
					</view>
				</block>
				<block wx:else>
					<view class="nomessage">
						没有更多了
					</view>
				</block>
			</view>
			<view wx:if="{{orderType !=='supplier'}}">
				<block wx:if="{{all.length>0}}">
					<block wx:for="{{all}}" wx:for-item="model"  wx:key="index">
						<view class="tbs" data-id="{{model.id}}" catchtap="gopresentationDetails">
							<view class="item2 ul">
								<view class="li">{{model.type_name}}</view>
								<view>{{language['money']}}{{model.amounts}}</view>
							</view>
							<view class="item3">
								<view class="span red">{{model.status_name}}</view>
								<view class="p">{{model.created_at}}</view>
							</view>
						</view>
					</block>
				</block>
				<block wx:else>
					<view class="nomessage">
						没有更多了
					</view>
				</block>
			</view>
		</van-tab>
		<van-tab title="{{orderType ==='supplier'?'申请中':'待审核'}}">
			<view wx:if="{{orderType ==='supplier'}}">
				<block wx:if="{{review.length>0}}">
					<view wx:for-item="model" wx:for="{{review}}" wx:key="index">
						<view class="tbs">
							<view class="ul item2">
								<view class="li">{{model.apply_sn}}</view>
								<view class="li">{{model.created_at}}</view>
							</view>
							<view class="item3">
								<view class="span red">{{language['money']}}{{model.apply_money}}</view>
								<view class="p">{{model.status_obj.name}}</view>
							</view>
						</view>
					</view>
				</block>
				<block wx:else>
					<view class="nomessage">
						没有更多了
					</view>
				</block>
			</view>
			<view wx:if="{{orderType !=='supplier'}}">
				<block wx:if="{{review.length>0}}">
					<block wx:for="{{review}}" wx:for-item="model" wx:key="index">
						<view class="tbs" catchtap="gopresentationDetails" data-id="{{model.id}}">
							<view class="ul item2">
								<view class="li">{{model.type_name}}</view>
								<view class="li">{{language['money']}}{{model.amounts}}</view>
							</view>
							<view class="item3">
								<view class="span reduce">{{model.status_name}}</view>
								<view class="p">{{model.created_at}}</view>
							</view>
						</view>
					</block>
				</block>
				<block wx:else>
					<view class="nomessage">
						没有更多了
					</view>
				</block>
			</view>
		</van-tab>
		<van-tab title="待打款">
			<view wx:if="{{orderType ==='supplier'}}">
				<block wx:if="{{waitPay.length>0}}">
					<view wx:for-item="model" wx:for="{{waitPay}}" wx:key="index">
						<view class="tbs">
							<view class="ul item2">
								<view class="li">{{model.apply_sn}}</view>
								<view class="li">{{model.created_at}}</view>
							</view>
							<view class="item3">
								<view class="span red">{{language['money']}}{{model.apply_money}}</view>
								<view class="p">{{model.status_obj.name}}</view>
							</view>
						</view>
					</view>
				</block>
				<block wx:else>
					<view class="nomessage">
						没有更多了
					</view>
				</block>
			</view>
			<view wx:if="{{orderType !=='supplier'}}">
				<block wx:if="{{waitPay.length>0}}">
					<block wx:for="{{waitPay}}" wx:for-item="model" wx:key="index">
						<view class="tbs" catchtap="gopresentationDetails" data-id="{{model.id}}">
							<view class="ul item2">
								<view class="li">{{model.type_name}}</view>
								<view class="li">{{language['money']}}{{model.amounts}}</view>
							</view>
							<view class="item3">
								<view class="span reduce">{{model.status_name}}</view>
								<view class="p">{{model.created_at}}</view>
							</view>
						</view>
					</block>
				</block>
				<block wx:else>
					<view class="nomessage">
						没有更多了
					</view>
				</block>
			</view>
		</van-tab>
		<van-tab title="已打款">
			<view wx:if="{{orderType ==='supplier'}}">
				<block wx:if="{{pay.length>0}}">
					<view wx:for="{{pay}}" wx:for-item="model" wx:key="index">
						<view class="tbs">
							<view class="ul item2">
								<view class="li">{{model.apply_sn}}</view>
								<view class="li">{{model.created_at}}</view>
							</view>
							<view class="item3">
								<view class="span red">{{language['money']}}{{model.apply_money}}</view>
								<view class="p">{{model.status_obj.name}}</view>
							</view>
						</view>
					</view>
				</block>
				<block wx:else>
					<view class="nomessage">
						没有更多了
					</view>
				</block>
			</view>
			<view wx:if="{{orderType !=='supplier'}}">
				<block wx:if="{{pay.length>0}}">
					<block wx:for="{{pay}}" wx:for-item="model" wx:key="index">
						<view class="tbs" catchtap="gopresentationDetails" data-id="{{model.id}}">
							<view class="ul item2">
								<view class="li">{{model.type_name}}</view>
								<view class="li">{{language['money']}}{{model.amounts}}</view>
							</view>
							<view class="item3">
								<view class="span green">{{model.status_name}}</view>
								<view class="p">{{model.created_at}}</view>
							</view>
						</view>
					</block>
				</block>
				<block wx:else>
					<view class="nomessage">
						没有更多了
					</view>
				</block>
			</view>
		</van-tab>
		<van-tab title="{{orderType ==='supplier'?'驳回':'无效'}}">
			<view wx:if="{{orderType ==='supplier'}}">
				<block wx:if="{{invalid.length>0}}">
					<view wx:for-item="model" wx:for="{{invalid}}" wx:key="index">
						<view class="tbs">
							<view class="ul item2">
								<view class="li">{{model.apply_sn}}</view>
								<view class="li">{{model.created_at}}</view>
							</view>
							<view class="item3">
								<view class="span red">{{language['money']}}{{model.apply_money}}</view>
								<view class="p">{{model.status_obj.name}}</view>
							</view>
						</view>
					</view>
				</block>
				<block wx:else>
					<view class="nomessage">
						没有更多了
					</view>
				</block>
			</view>
			<view wx:if="{{orderType !=='supplier'}}">
				<block wx:if="{{invalid.length>0}}">
					<block wx:for="{{invalid}}" wx:for-item="model" wx:key="index">
						<view class="tbs" catchtap="gopresentationDetails" data-id="{{model.id}}">
							<view class="ul item2">
								<view class="li">{{model.type_name}}</view>
								<view class="li">{{language['money']}}{{model.amounts}}</view>
							</view>
							<view class="item3">
								<view class="span red">{{model.status_name}}</view>
								<view class="p">{{model.created_at}}</view>
							</view>
						</view>
					</block>
				</block>
				<block wx:else>
					<view class="nomessage">
						没有更多了
					</view>
				</block>
			</view>
		</van-tab>
	</van-tabs>
</view>
<!--<shopfoot></shopfoot>-->
