<!--pages/billUse/flowAdd/flowAdd.wxml-->
<view class="ns" id="top_ban" style="height:{{isIPX?'88px':'64px'}};">
  <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};height: 19.0909px;" mode="widthFix" bindtap="back" referrer="no-referrer|origin|unsafe-url"></image>
  <text style="top:{{isIPX?'54px':'30px'}};">生成流水</text>
</view>

<view class="main-box table-box" style="margin-top:{{isIPX?'100px':'75px'}};">
  <view class="flex-block">
    <text class="rules">日期</text>
    <view class="wrap" bindtap="onsrDate" >
      {{formData.accountDate}}
    </view>
    <van-calendar
      show="{{ srShow }}"
      min-date="{{ minDate }}"
      max-date="{{ maxDate }}"
      bind:close="onClose"
      bind:confirm="onConfirm"
    />
  </view>
  <view  class="flex-block">
    <text>收支类型</text> 
    <input disabled class="wrap" data-prop="formData.jieAmount" type="digit" value="{{formData.incomeExpensesType == 1 ? '收入' : '支出'}}" bindinput="inputChange" placeholder="收入金额"/>
  </view>
  <view  class="flex-block">
    <text>账户名称</text> 
    <!-- <input class="wrap" type="number"  bindinput="inputChange" data-prop="formData.accountName" value="{{formData.accountName}}" placeholder="请输入存入账户"/> -->
    <view bindtap="oncrzhShow" class="wrap">
      <text wx:if="{{formData.accountName==''}}" class="color-gray">账户名称</text>
      <text wx:else>{{formData.accountName}}</text>
    </view>
  </view>
  <view  class="flex-block">
    <text>当前余额</text> 
    <input disabled class="wrap" data-prop="formData.yue" type="digit" value="{{formData.yue}}" bindinput="inputChange" placeholder="当前余额"/>
  </view>
  <view  class="flex-block" wx:if="{{formData.jieAmount}}">
    <text>收入金额</text> 
    <input disabled class="wrap" data-prop="formData.jieAmount" type="digit" value="{{formData.jieAmount}}" bindinput="inputChange" placeholder="收入金额"/>
  </view>
  <view  class="flex-block" wx:if="{{formData.daiAmount}}">
    <text>支出金额</text> 
    <input disabled class="wrap" data-prop="formData.jieAmount" type="digit" value="{{formData.daiAmount}}" bindinput="inputChange" placeholder="支出金额"/>
  </view>
  <view  class="flex-block">
    <text class="rules">对方科目</text>
    <view bindtap="oncrlxShow" class="wrap">
      <text wx:if="{{!formData.subjectNameAll}}" class="color-gray">请选择对方科目</text>
      <text wx:else>{{formData.subjectNameAll}}</text>
    </view>
  </view>
  <van-popup
    show="{{ crlxShow }}"
    position="bottom"
    bind:close="onCancelcrlx"
  >
  <van-picker 
    columns="{{ subjectOptions }}" 
    value-key="subjectNameAll"
    bind:cancel="onCancelcrlx"
    show-toolbar="{{true}}"
    bind:confirm="bindPickerChange"/>
  </van-popup>
  <view  class="flex-block"><text>单据编码</text> <input disabled class="wrap" bindinput="inputChange"  data-prop="formData.billNum" value="{{formData.billNum}}" placeholder="请输入单据编码"/></view>

  <view  class="flex-block"><text>摘要</text> <input class="wrap"  bindinput="inputChange" data-prop="formData.accountSummary"  placeholder="摘要" value="{{formData.accountSummary}}"/></view>
</view>

<view class="bottom">
  <view class="btn2" data-code="2" bindtap="swichAccounting">确认</view>
</view>