<template>
  <tab-button v-ref:list>
    <tabs header="银行对账汇总">
      <bank-payment-constrast @deal-msg="dealMsg"></bank-payment-constrast>
    </tabs>
    <tabs header="银行对账明细">
      <bank-payment @deal-msg="dealMsg"></bank-payment>
    </tabs>
  </tab-button>
</template>
<script>
  import TabButton from './../../../comprehen/common/TabButton'
  import Tabs from './../../../comprehen/common/Tabs'
  import BankPayment from './BankPayment'
  import BankPaymentConstrast from "./BankPaymentConstrast";

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