<template>
  <tab-button v-ref:list>
    <tabs header="聚合支付对账汇总">
      <qr-payment-constrast @deal-msg="dealMsg"></qr-payment-constrast>
    </tabs>
    <tabs header="聚合支付对账明细">
      <qr-payment-details @deal-msg="dealMsg"></qr-payment-details>
    </tabs>
  </tab-button>
</template>
<script>
  import TabButton from './../../../comprehen/common/TabButton.vue'
  import Tabs from './../../../comprehen/common/Tabs.vue'
  import QrPayment from './QrPaymentDetailed.vue'
  import QrPaymentConstrast from './QrPaymentConstrast.vue'

  export default {
    title: '聚合支付对账',
    data () {
      return {// 页面开关
        f_start_date: '',
        f_end_date: '',
        listpage: true,
        width: {
          left: '100%',
          right: '0%'
        },
        // searchNumber:'',
        rowData: {},
        show: [true]
      }
    },
    components: {QrPaymentConstrast, Tabs, TabButton, QrPayment},
    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>
