<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="main-box table-box" style="margin-top:{{isIPX?'100px':'75px'}};">

  <van-popup show="{{showAccountType}}" round position="bottom"  bind:close="closeBox" data-name="showAccountType">
    <van-picker
      columns="{{accountTypeOptions}}"
      show-toolbar
      value-key="dictLabel"
      bind:cancel="closeBox"
      bind:confirm="accountTypeChange"
      data-name="showAccountType"
      data-value="form.accountType"
    />
  </van-popup>
  <van-field label="账户类型" value="{{ form.accountTypeText }}" placeholder="请输入收款方" border="{{ false }}"  bind:change="onChange" input-align="right" required is-link arrow-direction	="down"  bindtap="openBox" data-name="showAccountType"/>

  <van-popup show="{{showBankType}}" round position="bottom"  bind:close="closeBox" data-name="showBankType">
    <van-picker
      columns="{{bankTypeOptions}}"
      show-toolbar
      value-key="dictLabel"
      bind:cancel="closeBox"
      bind:confirm="bankTypeChange"
      data-name="showBankType"
      data-value="form.bankType"
    />
  </van-popup>
  <van-field label="所属银行" wx:if="{{form.accountType == '102'}}" value="{{ form.bankType }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required is-link arrow-direction	="down" data-name="showBankType" bindtap="openBox"/>
  <van-field label="账户分类" wx:if="{{nongshanghangShow&&!bankNameState}}" value="{{ form.villageAccountType }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>
  <van-field label="用途类型" wx:if="{{form.accountType == '102'}}" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>
  <van-field label="所属镇账户" wx:if="{{nongshanghangShow1&&!bankNameState}}" value="{{ form.villageAccountType }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>
  <van-field label="账簿号" wx:if="{{nongshanghangaccountNoShow&&!bankNameState}}" value="{{ form.villageAccountType }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>
  <van-field label="管控类型" wx:if="{{isManagementControlTypeVisible&&!bankNameState}}" value="{{ form.villageAccountType }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>
  <van-field label="中心账套" wx:if="{{isManagementControlTypeVisible&&!bankNameState&&isMultiBookAndCentralBook}}" value="{{ form.villageAccountType }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>
  <van-field label="会计科目" wx:if="{{isManagementControlTypeVisible&&!bankNameState&&isMultiBookAndCentralBook}}" value="{{ form.villageAccountType }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>
  <van-field label="客户编号" wx:if="{{form.bankType == '2'&&!bankNameState}}" value="{{ form.villageAccountType }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>

  <van-field label="账户名称" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee"/>

  <van-field label="银行账号" wx:if="{{!bankNameState}}" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee"/>

  <van-field label="开户银行" wx:if="{{!bankNameState}}" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>
  <van-field label="联行号" wx:if="{{!bankNameState}}" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee"/>

  <van-field label="关联科目" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>

  <van-field label="开户银行地址" wx:if="{{!bankNameState}}" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee"/>
  <van-field label="支付口令" wx:if="{{!bankNameState}}" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee"/>
  <van-field readonly wx:if="{{!bankNameState}}" label="账户类别" value="{{ form.accountType }}" border="{{ false }}" input-align="right" required>
    <view slot="input">
      <van-radio-group
        value="{{ form.accountType }}"
        bind:change="onChange"
        direction="horizontal"
        data-value="form.accountType"
      >
        <van-radio name="1" checked-color="#2C8E68">公户</van-radio>
        <van-radio name="2" checked-color="#2C8E68">私户</van-radio>
      </van-radio-group>
    </view>
  </van-field>
  <van-field label="初始余额" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee"/>
  <van-field label="手机号" wx:if="{{jianhangShow&&!bankNameState}}" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee"/>
  <van-field label="合约账号" wx:if="{{nonghangShow&&!bankNameState}}" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee"/>
  <van-field label="合约户名" wx:if="{{nonghangShow&&!bankNameState}}" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee"/>
  <van-field label="账簿号" wx:if="{{nonghangShow&&!bankNameState}}" value="{{ form.payee }}" placeholder="请输入收款方" border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee"/>

  <van-field readonly label="是否停用" value="{{ form.accountType }}" border="{{ false }}" input-align="right" required>
    <view slot="input">
      <van-radio-group
        value="{{ form.accountType }}"
        bind:change="onChange"
        direction="horizontal"
        data-value="form.accountType"
      >
        <van-radio name="1" checked-color="#2C8E68">是</van-radio>
        <van-radio name="2" checked-color="#2C8E68">否</van-radio>
      </van-radio-group>
    </view>
  </van-field>
</view>

<view class="main-box table-box" wx:if="{{nongshanghangaccountNoShow&&!bankNameState}}">
  <van-field readonly wx:if="{{nongshanghangaccountNoShow&&!bankNameState}}" label="账簿是否限额" value="{{ form.accountType }}" border="{{ false }}" input-align="right" required>
    <view slot="input">
      <van-radio-group
        value="{{ form.accountType }}"
        bind:change="onChange"
        direction="horizontal"
        data-value="form.accountType"
      >
        <van-radio name="1" checked-color="#2C8E68">是</van-radio>
        <van-radio name="2" checked-color="#2C8E68">否</van-radio>
      </van-radio-group>
    </view>
  </van-field>
  <van-field wx:if="{{nongshanghangaccountNoShow&&!bankNameState}}" label="单笔交易限额" value="{{ form.payee }}" placeholder=" " border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>
  <van-field wx:if="{{nongshanghangaccountNoShow&&!bankNameState}}" readonly label="账簿是否透支" value="{{ form.accountType }}" border="{{ false }}" input-align="right" required>
    <view slot="input">
      <van-radio-group
        value="{{ form.accountType }}"
        bind:change="onChange"
        direction="horizontal"
        data-value="form.accountType"
      >
        <van-radio name="1" checked-color="#2C8E68">是</van-radio>
        <van-radio name="2" checked-color="#2C8E68">否</van-radio>
      </van-radio-group>
    </view>
  </van-field>
  <van-field wx:if="{{nongshanghangaccountNoShow&&!bankNameState}}" label="透支类型" value="{{ form.payee }}" placeholder=" " border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>
  <van-field wx:if="{{nongshanghangaccountNoShow&&!bankNameState}}" label="透支额度" value="{{ form.payee }}" placeholder=" " border="{{ false }}" bind:change="onChange" input-align="right" required data-formname="form.payee" is-link arrow-direction	="down"/>
</view>
  <!-- <view class="bottom">
    <view class="btn2" bindtap="goSubmit">确认</view>
  </view> -->