<!--pages/payee/add/add.wxml-->
<view class="ns" style="height:{{isIPX?'88px':'64px'}};">
  <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};height: 19.0909px;" mode="widthFix" bindtap="back"></image>
  <text style="top:{{isIPX?'54px':'30px'}};">{{form.id?"修改":"新增"}}开户行</text>
</view>
<view class="main-box table-box table-boxs" style="margin-top:{{isIPX?'100px':'75px'}};">

    <van-field label="省" value="{{ form.sheng }}" placeholder="请输入省" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.sheng"/>
    <van-field label="市" value="{{ form.shi }}" placeholder="请输入市" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.shi"/>
    <view class="section" style="margin-top: -28rpx;">
          <view class="section__title"><text style="color:red;margin-right: 8rpx;">*</text>所属银行</view>
            <picker bindchange="onConfirmbankType" value="{{bankTypeindex}}" range="{{bankTypeOptions}}" range-key="{{'dictLabel'}}">
                <view class="picker">
                    {{bankTypeOptions[bankTypeindex].dictLabel?bankTypeOptions[bankTypeindex].dictLabel:"选择所属银行"}}
                    <van-icon name="arrow-down" />
                </view>
            </picker>
        </view>
    <!-- <van-field readonly label="所属银行" value="{{ form.bankTypeText }}" readonly placeholder="请选择" border="{{ false }}" bind:change="onChange" input-align="right" required is-link arrow-direction	="down" bindtap="openBox" data-name="showBankType"/> -->
    <van-field label="开户行" value="{{ form.bankDeposit }}" placeholder="请输入开户银行" border="{{ false }}" bind:change="onChange" input-align="right" required  data-formname="form.bankDeposit" />
    <van-field label="联行号" value="{{ form.payeePaymentLines }}" type="number" placeholder="请输入联行号" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payeePaymentLines"/>
    <van-field label="机构号" value="{{ form.institutionNumber }}" type="number" placeholder="请输入机构号" border="{{ false }}" bind:change="onChange" input-align="right" data-formname="form.institutionNumber"/>
  </view>
  <view class="bottom">
    <view class="btn2" bindtap="goSubmit">保存</view>
  </view>