<template>
  <div class="auto">
    <iot-refund v-if="row.f_meter_type === '物联网表'" :data="row" :apply-button-show="applyButtonShow"
                :confirm-button-show="confirmButtonShow"></iot-refund>
    <machine-Refund v-if="row.f_meter_type !== '物联网表'" :data="row" :apply-button-show="applyButtonShow"
                    :confirm-button-show="confirmButtonShow"></machine-Refund>
  </div>

</template>
<script>
  import IotRefund from './IOTRefund'
  import machineRefund from './machineRefund'

  export default {
    title: '退费管理',
    components: {
      IotRefund,
      machineRefund
    },
    data () {
      return {

      }
    },
    ready () {

    },
    props: {
      row: {
        type: Object,
        default: undefined
      },
      applyButtonShow: {
        type: Boolean,
        default: true
      },
      confirmButtonShow: {
        type: Boolean,
        default: false
      }
    }
  }
</script>
