<template>
  <el-tabs v-model="activeName" tab-position="top" @tab-click="handleClick" style="margin:15px 2%;">
    <el-tab-pane label="发票总览" name="first">
      <Expenseselect tag="overview" ref="eaxmine" />
    </el-tab-pane>
    <el-tab-pane label="发票添加" name="second">
      <Expenseadd @childFnGetParent="parentFn" />
    </el-tab-pane>
  </el-tabs>
</template>

<script>
import Expenseselect from "./expenseList/expenseselect";
import Expenseadd from "./expenseList/expenseAdd";
export default {
  components: {
    Expenseselect,
    Expenseadd
  },
  data() {
    return {
      activeName: "first"
    };
  },
  methods: {
    handleClick(tab, event) {
      
    },
    parentFn(val) {
      console.log(val);
      this.activeName=val;
    }
  }
};
</script>

<style>
</style>