<template>
  <tab-button v-ref:list :active="-1">
    <tabs header="综合档案查询"  v-if="permission('结构气综合档案查询')">
      <qn-jgq-zhdacx v-if="show.includes('综合档案查询')" @deal-msg="dealMsg" :data="data"></qn-jgq-zhdacx>
    </tabs>
    <tabs header="综合档案查询"  v-if="permission('结构气综合档案查询正定')">
      <qn-jgq-zhdacxzd v-if="show.includes('综合档案查询')" @deal-msg="dealMsg" :data="data"></qn-jgq-zhdacxzd>
    </tabs>
    <tabs header="煤改气报表" v-if="permission('结构气煤改气报表')">
      <qn-jgq-mgqbb v-if="show.includes('煤改气报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-mgqbb>
    </tabs>
    <tabs header="用气汇总报表" v-if="permission('结构气用气汇总报表')">
      <qn-jgq-gshzbb v-if="show.includes('用气汇总报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-gshzbb>
    </tabs>
    <tabs header="工商销售明细" v-if="permission('结构气工商销售明细')">
      <qn-jgq-gsxsmx v-if="show.includes('工商销售明细')" @deal-msg="dealMsg" :data="data"></qn-jgq-gsxsmx>
    </tabs>
    <tabs header="工商销售明细" v-if="permission('结构气工商销售明细金乡')">
      <qn-jgq-gsxsmxjx v-if="show.includes('工商销售明细')" @deal-msg="dealMsg" :data="data"></qn-jgq-gsxsmxjx>
    </tabs>
    <tabs header="民用汇总报表" v-if="permission('结构气民用汇总报表')">
      <qn-jgq-myhzbb v-if="show.includes('民用汇总报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-myhzbb>
    </tabs>
    <tabs header="民用销售明细" v-if="permission('结构气民用销售明细')">
      <qn-jgq-myxsmx v-if="show.includes('民用销售明细')" @deal-msg="dealMsg" :data="data"></qn-jgq-myxsmx>
    </tabs>
    <tabs header="民用销售明细" v-if="permission('结构气民用销售明细金乡')">
      <qn-jgq-myxsmxjx v-if="show.includes('民用销售明细')" @deal-msg="dealMsg" :data="data"></qn-jgq-myxsmxjx>
    </tabs>
    <tabs header="销售结构报表" v-if="permission('结构气销售结构报表')">
      <qn-jgq-xsjgbb v-if="show.includes('销售结构报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-xsjgbb>
    </tabs>
    <tabs header="销售结构报表" v-if="permission('结构气销售结构报表汶上')">
      <qn-jgq-xsjgbbws v-if="show.includes('销售结构报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-xsjgbbws>
    </tabs>
    <tabs header="销售结构报表" v-if="permission('结构气销售结构报表金乡')">
      <qn-jgq-xsjgbbjx v-if="show.includes('销售结构报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-xsjgbbjx>
    </tabs>

    <tabs header="机表抄表报表" v-if="permission('结构气机表抄表报表正定')">
      <qn-jgq-cbjbzd v-if="show.includes('机表抄表报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-cbjbzd>
    </tabs>
    <tabs header="物联网抄表报表" v-if="permission('结构气物联网抄表报表正定')">
      <qn-jgq-cbwlwzd v-if="show.includes('物联网抄表报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-cbwlwzd>
    </tabs>
    <tabs header="收费报表" v-if="permission('结构气收费报表正定')">
      <qn-jgq-sfzd v-if="show.includes('收费报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-sfzd>
    </tabs>


    <tabs header="用户数报表" v-if="permission('结构气用户数报表')"> <!-- 成武使用 -->
      <qn-jgq-yhsbb v-if="show.includes('用户数报表')" @deal-msg="dealMsg" :data="data"></qn-jgq-yhsbb>
    </tabs>
  </tab-button>

</template>

<script>
import TabButton from '../../components/sale/common/TabButton'
import Tabs from '../../components/sale/common/Tabs'

  export default {
    title: '业务报表',
    data () {
      return {
        f_start_date: '',
        f_end_date: '',
        listpage: true,
        width: {
          left: '100%',
          right: '0%'
        },
        // searchNumber:'',
        rowData: {},
        show: []
      }
    },
    components: {Tabs, TabButton},
    methods: {
      permission (name) {
        if (this.$login.r.find(value => value == '综合查询')) {
          if (!this.$login.r.find(value => value == name)) {
            return false
          }
        }
        return true
      }
    }

  }
</script>

<style scoped>
</style>
