<import src="detail.skeleton.wxml"/>
<template is="skeleton" wx:if="{{loading}}" />

<view class="intr">
	<view class="num">
		{{detail.billno}}
	</view>
	<view class="exp">状态：{{detail.status}}</view>
	<view class="exp">经销商编号：{{detail.agentnum}}</view>
	<view class="exp">经销商简称：{{detail.enterprisename}}</view>
	<view class="exp">付款人：{{ detail.payer}}</view>
	<view class="exp">付款时间：{{ detail.paydate}}</view>
	<view class="exp">回款归属月份：{{ detail.period}}</view>
	<view class="exp">打款金额：{{ detail.amount}}</view>
</view>
<Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
	<Preview slot='详细信息' list1='{{list1}}' list2='{{list2}}' />
    <remitVoucher disabled="{{detail.status != '新建'}}" detail="{{detail}}" slot="打款明细" id="remitVoucher" bind:onSuccess="getDetail"></remitVoucher>
	<view style="height: 160rpx;" />
</Yl_FunTabs>

<!-- 底部 -->
<Yl_Tabbar list='{{tabbarsList}}' bind:callback="tabbarOnClick" />


<van-popup
  show="{{ show }}"
  position="bottom"
  custom-style="height: 50%;"
  bind:close="onClose"
  bind:click-overlay="onClose"
  z-index="9999"
>
	<van-datetime-picker
		type="date"
		value="{{ currentDate }}"
		formatter="{{ formatter }}"
		bind:confirm="checkSubmit"
		bind:cancel="onClose"
	/>
</van-popup>
