<!--pages/finance/voucher/voucher.wxml-->
<view class="ns"  id="top_ban" style="height:{{isIPX?'88px':'64px'}};">
  <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};" mode="widthFix" bindtap="back"></image>
  <text style="top:{{isIPX?'54px':'30px'}};">记账凭证</text>
</view>
<view class="pure_top" style="top:{{isIPX?'88px':'64px'}};"></view>

<view class="information_box" style="margin-top:{{isIPX?'100px':'75px'}};">
  <view>
    <text>账套：</text>
    <text>{{bookName}}</text>
  </view>
  <view>
    <text>日期：</text>
    <text>{{voucher.bookDate}}</text>
  </view>
  <view>
    <text>凭证号：</text>
    <text>{{voucher.voucherWordText}}-{{voucher.num}}</text>
  </view>
</view>

<view class="main-box">
  <view>
    <text class="tab1">{{listLength}}条</text>
  </view>

  <scroll-view scroll-y="true" style="height: 250px;">
    <view class="voucher_box" wx:for="{{voucher.detailList}}">
      <view class="tit_box">
        <text class="tab_box"><text class="tab2">{{index+1}}</text>摘要</text>
        <text class="tit">{{item.voucherSummary}}</text> 
      </view>
      <view class="tit_box">
        <text class="tab_box">会计科目</text>
        <text class="tit">{{item.subjectNameAll}}</text> 
      </view>
      <view class="tit_box">
        <text class="tab_box">借方金额</text>
        <text class="tit money">￥{{item.jieAmount == null?'0.00':item.jieAmount}}元</text> 
      </view>
      <view class="tit_box">
        <text class="tab_box">贷方金额</text>
        <text class="tit money">￥{{item.daiAmount == null?'0.00':item.daiAmount}}元</text> 
      </view>
    </view>
  </scroll-view>
</view>

<view class="moneyCount">
  <text>合计：<text style="color: #e63a37;">{{moneyCount}}</text></text>
  <view>
    <text style="color: #78722b;">制单员：{{voucher.preparedBy}}</text>
    <text style="color: #78722b;">审核员：{{voucher.checkedBy == null?'无':voucher.checkedBy}}</text>
  </view>
</view>