<template>
  <basic-container>
    <el-tabs type="border-card">
      <el-tab-pane v-if="permission.keypwd_view" label="網點鎖匙/密碼/實物交接登記表">
        <init-keypwd></init-keypwd>
      </el-tab-pane>
      <el-tab-pane v-if="permission.sealhandover_view" label="業務印章交接登記表">
        <init-sealhandover></init-sealhandover>
      </el-tab-pane>
      <el-tab-pane v-if="permission.postchange_view" label="網點出納主管及專管員崗位變更記錄表">
        <init-postchange></init-postchange>
      </el-tab-pane>

      <el-tab-pane v-if="permission.checkwarehouse_view" label="查庫流水賬記錄表">
        <init-checkwarehouse></init-checkwarehouse>
      </el-tab-pane>
      <el-tab-pane v-if="permission.checklist_view" label="每日每週每月核對記錄表">
        <init-checklist></init-checklist>
      </el-tab-pane>
      <el-tab-pane v-if="permission.tellertrunk_view" label="櫃員尾箱檢查流水賬記錄表">
        <init-tellertrunk></init-tellertrunk>
      </el-tab-pane>

      <el-tab-pane v-if="permission.goodsuse_view" label="網點各項憑證/實物使用及出入庫">
        <init-goodsuse></init-goodsuse>
      </el-tab-pane>
      <el-tab-pane v-if="permission.returns_view" label="新開戶退件登記表">
        <init-returns></init-returns>
      </el-tab-pane>
      <el-tab-pane v-if="permission.cardswallow_view" label="自助設備吞沒卡處理">
        <init-cardswallow></init-cardswallow>
      </el-tab-pane>
      <el-tab-pane v-if="permission.message_view" label="信息發佈">
        <init-message></init-message>
      </el-tab-pane>
    </el-tabs>
  </basic-container>
</template>

<script>
  import {mapGetters} from "vuex";
  import InitPostchange from "../../components/initiated/init-postchange";
  import InitGoodsuse from "../../components/initiated/init-goodsuse";
  import InitReturns from "../../components/initiated/init-returns";
  import InitCardswallow from "../../components/initiated/init-cardswallow";
  import InitMessage from "../../components/initiated/init-message";
  import InitKeypwd from "../../components/initiated/init-keypwd";
  import InitSealhandover from "../../components/initiated/init-sealhandover";
  import InitCheckwarehouse from "../../components/initiated/init-checkwarehouse";
  import InitChecklist from "../../components/initiated/init-checklist";
  import InitTellertrunk from "../../components/initiated/init-tellertrunk";

  export default {
    components: {
      InitTellertrunk,
      InitChecklist,
      InitCheckwarehouse,
      InitSealhandover, InitKeypwd, InitMessage, InitCardswallow, InitReturns, InitGoodsuse, InitPostchange},
    data() {
      return {

        data: []
      };
    },
    computed: {
      ...mapGetters(["permission"]),
      ids() {
        let ids = [];
        this.selectionList.forEach(ele => {
          ids.push(ele.id);
        });
        return ids.join(",");
      }
    },
    methods: {

    }
  };
</script>

<style>
</style>
