<!--pages/apply/index.wxml-->
<view class="ns" 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="top" style="margin-top:{{isIPX?'100px':'75px'}};">
  <image src="/image/apply/dress_icon.png" mode="widthFix"></image>
  <view class="top-tit">收入单位</view>
  <view class="top-title">{{bookName}}</view>
</view>
<text class="title">基础信息</text>
<view class="main-box table-box">
      <view class="flex-block">
        <text class="rules">收入时间</text>
        <view class="wrap">
          {{formData.accountDate}}
        </view>
      </view>
      <view  class="flex-block">
        <text class="rules">收入金额</text> 
        <input disabled class="wrap" data-prop="formData.jieAmount" type="digit" value="{{formData.jieAmount}}" bindinput="inputChange" placeholder="收入金额"/>
      </view>
      <view  class="flex-block">
        <text class="rules">存入账户</text> 
        <view class="wrap">
          <text>{{formData.accountName}}</text>
        </view>
      </view>
      <view  class="flex-block">
        <text class="rules">收入类型</text>
        <view class="wrap">
          <text>{{incomeTypeText}}</text>
        </view>
      </view>
      <view  class="flex-block"><text class="rules no">单据编码</text> <input disabled class="wrap" bindinput="inputChange"  data-prop="formData.billNum" value="{{formData.billNum}}" placeholder="单据编码"/></view>
      <!-- <view  class="flex-block">
          <text class="rules no">对方科目</text> 
          <view class="wrap">
            <text>{{formData.subjectNameAll == null ? '':formData.subjectNameAll}}</text>
          </view>
      </view> -->
      <view  class="flex-block"><text class="rules">备注说明</text> <input disabled class="wrap"  bindinput="inputChange" data-prop="formData.accountSummary"  placeholder="请输入备注说明" value="{{formData.accountSummary}}"/></view>
      <view  class="flex-block" wx:if="{{formData.checkedStatus == 4}}"><text class="rules">挂起原因</text> <input disabled class="wrap"  bindinput="inputChange" data-prop="formData.remark"  placeholder="挂起原因" value="{{formData.remark}}"/></view>
</view>
<block wx:if="{{formData.incomeType == 2}}">
  <view class="title">
    <text>关联合同</text>
  </view>
  <view class="main-box table-box">
        <view  class="flex-block">
          <text class="rules {{formData.incomeType == '2' ?'':'no'}}">付款人{{}}</text> 
          <view class="wrap">
            <text>{{payerText}}</text>
          </view>
        </view>
        <view  class="flex-block"><text class="rules {{formData.incomeType == '2' ?'':'no'}}">合同编码</text>
          <view class="wrap" bindtap="selectContraction">
            <text>{{contractionIdID}}</text>
          </view>
        </view>
  </view>
</block>
<view class="main-box table-box" style="margin-top: 15px;">
  <van-cell>
    <!-- <view slot="icon">
      <van-icon class-prefix="my-icon" name="extra" />
    </view> -->
    <view slot="title">
      <view class="van-cell-text">附件<van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag></view>
    </view>
    <view>
      <view class="van-cell-text">总数<van-tag round color="#5CAE77" plain style="margin-left: 10px;"> {{fileNum}}张 </van-tag></view>
    </view>
  </van-cell>
  <view class="fj-box">
    <view class="fj-li" wx:for="{{uploadOptions}}" wx:key="index">
      <view>
        <text>{{item.dictLabel}}</text>
      </view>
      
      <view class="img_box">
        <view class="img_list" wx:for="{{item.Pics}}" wx:for-index="childrenIndex" wx:for-item="item2" wx:key="childrenIndex">
          <image class="img_li" src="{{item2.tempFilePath}}" bindlongpress="bindlongpressimg" data-status="sjPics" bindtap="imgPreviewImage" data-id='{{childrenIndex}}' data-option="{{item.Pics}}" data-index="{{childrenIndex}}"></image>
        </view>
      </view> 
    </view>
  </view>
</view>
<view class="ipXbtn"></view>