<!--pages/rechargeDetail/index.wxml-->
<navigator title="充值详情" canBack="{{true}}" bind:back="back" />

<van-cell-group>
  <van-field
    value="{{detail.tenement.name}}"
    label="商户名称"
    readonly
    autosize="{{true}}"
    type="textarea"
    border="{{ false }}"
  />
  <van-field
    value="{{detail.meter.code}}"
    label="电表编号"
    readonly
    autosize="{{true}}"
    type="textarea"
    border="{{ false }}"
  />
  <van-field
    value="{{detail.meter.address}}"
    label="电表地址"
    readonly
    autosize="{{true}}"
    type="textarea"
    border="{{ false }}"
  />
  
  <van-field
    value="{{detail.time}}"
    label="操作时间"
    readonly
    type="textarea"
    autosize="{{true}}"
    border="{{ false }}"
  />
  <van-field
    value="{{detail.account}}"
    label="充值账号"
    readonly
    type="textarea"
    autosize="{{true}}"
    border="{{ false }}"
  />
  <van-field
    value="{{detail.money}}"
    label="充值金额"
    readonly
    autosize="{{true}}"
    type="textarea"
    border="{{ false }}"
  />
  <van-field
    value="{{detail.type}}"
    label="操作类型"
    readonly
    autosize="{{true}}"
    type="textarea"
    border="{{ false }}"
  />
  <van-field
    value="{{detail.way}}"
    label="付款方式"
    readonly
    autosize="{{true}}"
    type="textarea"
    border="{{ false }}"
  />
  <van-field
    value="{{detail.voucherNo}}"
    label="订单号"
    type="textarea"
    autosize="{{true}}"
    readonly
    border="{{ false }}"
  />
  <van-field
    value="{{detail.serialNumber}}"
    label="流水号"
    type="textarea"
    autosize="{{true}}"
    readonly
    border="{{ false }}"
  />
  <van-field
    value="处理中"
    label="订单状态"
    readonly
    border="{{ false }}"
    wx:if="{{detail.orderStatus === 1}}"
  />
  <van-field
    value="已退回"
    label="订单状态"
    readonly
    border="{{ false }}"
    wx:elif="{{detail.orderStatus === 2}}"
  />
 
  <van-field
    value="已充值"
    label="订单状态"
    readonly
    border="{{ false }}"
    wx:else
  />
  <van-field
    value="{{detail.reason}}"
    label="拒绝理由"
    type="textarea"
    autosize="{{true}}"
    readonly
    border="{{ false }}"
    wx:if="{{detail.orderStatus === 2}}"
  />
  <van-field
    use-input-slot
    label="凭证"
    readonly
    border="{{ false }}"
    wx:if="{{detail.images}}"
  >


  </van-field>
  <view slot="input" style="margin-top: 20rpx; margin-left: 30rpx;">
      <van-uploader
        file-list="{{ detail.fileList }}"
        show-upload="{{false}}"
        disabled="{{true}}"
        readonly="{{true}}"
        deletable="{{false}}"
      />
    </view>
</van-cell-group>

<view class="operate">
  <van-button type="info" block bind:tap="record" style="flex: 1; margin-right: 20rpx;">收据</van-button>
  <van-button type="default" block bind:tap="back" style="flex: 1;">返回</van-button>
</view>