<template>
  <div class="tabsReportList-wrap">
    <div style="background-color: #fff;margin-bottom: 5px;">
      <a-tabs default-active-key="1" v-model="curTab">
        <a-tab-pane key="1" tab="返利表"></a-tab-pane>
        <a-tab-pane key="2" tab="返利明细报表" force-render></a-tab-pane>
      </a-tabs>
    </div>
    <div>
      <report v-show="curTab==1"></report>
      <detailReport v-show="curTab==2"></detailReport>
    </div>
  </div>
</template>

<script>
import report from './list.vue'
import detailReport from './detailList.vue'
export default {
  name: 'ProductRebateReportIndex',
  components: {
    report,
    detailReport
  },
  data () {
    return {
      curTab: '1'
    }
  }
}
</script>

<style lang="less">
  .tabsReportList-wrap{
    display: flex;
    flex-direction: column;
    height: 100%;
    .ant-tabs-bar{
      margin: 0;
    }
    .ant-card{
      flex-grow: 1;
      overflow: auto;
    }
  }
</style>
