<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>
    <a-card size="small" :bordered="false">
      <report v-show="curTab==1"></report>
      <detailReport v-show="curTab==2"></detailReport>
    </a-card>
  </div>
</template>

<script>
import report from './list.vue'
import detailReport from './detailList.vue'
export default {
  name: 'StockImportReportIndex',
  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>
