<!--pages/workBenchNew/components/recharge/index.wxml-->
<navigator canBack="{{true}}" title="充值" />
<van-cell-group>
  <searchSelectWrapper 
    label="园区" 
    placeholder="请选择园区"
    text="{{parkName}}"
    bind:search="onParkFocus"
  />

  <searchSelectWrapper 
    label="电表" 
    placeholder="请选择电表"
    text="{{meterName}}"
    bind:search="onMeterFocus"
  />
  <searchSelectWrapper 
    label="金额" 
    placeholder="请输入金额"
    text="{{meterName}}"
    fieldType="number"
    type="input"
    bind:changeText="onChangeMoney"
  />
  <searchSelectWrapper 
    label="付款方式" 
    placeholder="请选择付款方式"
    text="{{payName}}"
    bind:search="onPayFocus"
  />
  <searchSelectWrapper 
    label="凭证" 
    placeholder="请输入凭证"
    type="input"
    bind:changeText="onChangeVoucherNo"
  />
</van-cell-group>

<view style="margin-top: 60rpx;display: flex; justify-content: center; align-items: center;">
  <van-button type="info" size="small" style="margin-right: 30rpx;" bind:click="handleSubmit"> 确认 </van-button>
  <van-button size="small" bind:click="handleClear"> 清空 </van-button>
</view>
<search-select 
  show="{{show}}" 
  title="{{title}}" 
  type="{{type}}" 
  park="{{park}}"
  bindconfirm="onConfirm"
  bindcancel="onCancel"
  wx:if="{{show}}"
/>