<template>
  <!--  <div v-if="listpage">-->
  <tab-button v-ref:list>
    <tabs header="自助机对账明细">
      <wechat-validate-manage @deal-msg="dealMsg"></wechat-validate-manage>
    </tabs>
    <tabs header="自助机对账退费">
      <wechat-validate-refund @deal-msg="dealMsg"></wechat-validate-refund>
    </tabs>
  </tab-button>
  <!--  </div>-->
  <!--  <div v-if="!listpage">-->
  <!--    <meter-info-manage :row="rowData" :f_start_date="f_start_date" :f_end_date="f_end_date"></meter-info-manage>-->
  <!--  </div>-->
</template>

<script>
  import TabButton from '../../components/revenue/comprehen/common/TabButton'
  import Tabs from '../../components/revenue/comprehen/common/Tabs'


  export default {
    name: 'wechatValidate',
    title: '自助机对账',
    data () {
      return {// 页面开关
        f_start_date: '',
        f_end_date: '',
        listpage: true,
        width: {
          left: '100%',
          right: '0%'
        },
        // searchNumber:'',
        rowData: {},
        show: [true]
      }
    },
    components: {Tabs, TabButton},
    ready () {
      console.log(this.$refs.list)
      console.log('自助机对账')
    },
    methods: {
      cancel (obj) {
        this.listpage = true
      },
      dealMsg (obj) {
        this.rowData = obj
        this.listpage = false
        console.log(obj.model)
        this.f_start_date = obj.model.startDate
        this.f_end_date = obj.model.endDate
      }
    }
  }
</script>

<style scoped>

</style>
