<template>
  <div>
    <!-- <el-button-group v-if="tool.checkAuth($route.name,'editBlueInvioce')" style="margin-bottom:10px">
      <el-button size="small" type="primary" :disabled="status !== '新建'" @click="addInvoiceapp">一键添加发票</el-button>
      <el-button size="small" type="primary" :disabled="selectData.length === 0" @click="clickCreateBlueInvioce">勾选创建发票</el-button>
      <el-button size="small" type="primary" :disabled="selectData.length === 0" @click="clickInvioceQuery">发票创建查询</el-button>
      <el-button size="small" type="primary" :disabled="selectData.length === 0" @click="blueInvioceToRed">红冲勾选行</el-button>
    </el-button-group> -->
    <invoiceTable :status="status" ref="invoiceTable" @activeRow="activeRow"></invoiceTable>
    <invoiceTablemx :status="status" ref="invoiceTablemx"></invoiceTablemx>
  </div>
</template>

<script>
import invoiceTable from './components/invoiceTable'
import invoiceTablemx from './components/invoiceTablemx'

export default {
  props:['status'],
  components:{
    invoiceTable,
    invoiceTablemx
  },
  data () {
    return {
      sa_invoicebillid:0,
      selectData:[]
    }
  },
  methods:{
    activeRow (row){
      this.$refs['invoiceTablemx'].listData(row.sa_invoicebillid)
    }
  }
}

</script>
<style>
</style>