<template>
  <!--  <div v-if="listpage">-->
  <tab-button v-ref:list>
    <tabs header="支付宝对账汇总">
      <a-li-pay-constrast @deal-msg="dealMsg"></a-li-pay-constrast>
    </tabs>
    <tabs header="支付宝对账明细">
      <a-li-pay-detail @deal-msg="dealMsg"></a-li-pay-detail>
    </tabs>
  </tab-button>
</template>


<script>
  import TabButton from '../common/TabButton'
  import Tabs from '../common/Tabs'
  import alipayDetail from './alipayDetail'
  import alipayConstrast from "./alipayConstrast";

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