|
|
@@ -0,0 +1,39 @@
|
|
|
+<script setup>
|
|
|
+import { ref, defineAsyncComponent } from "vue";
|
|
|
+import DefaultHeaderPage from "src/components/layout/DefaultHeaderPage.vue";
|
|
|
+import CustomTabComponent from "src/components/shared/CustomTabComponent.vue";
|
|
|
+
|
|
|
+const SettingsTab = defineAsyncComponent(() => import("./tabs/SettingsTab.vue"));
|
|
|
+const BillingGenerationTab = defineAsyncComponent(() => import("./tabs/BillingGenerationTab.vue"));
|
|
|
+const GeneratedBillingsTab = defineAsyncComponent(() => import("./tabs/GeneratedBillingsTab.vue"));
|
|
|
+
|
|
|
+const currentTab = ref("settings");
|
|
|
+
|
|
|
+const tabs = [
|
|
|
+ { name: "settings", label: "Configurações" },
|
|
|
+ { name: "billing-generation", label: "Geração de Cobranças" },
|
|
|
+ { name: "generated-billings", label: "Ver Cobranças Geradas" },
|
|
|
+];
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <DefaultHeaderPage title="TBR - Configurações" />
|
|
|
+
|
|
|
+ <div class="q-px-sm">
|
|
|
+ <CustomTabComponent v-model:active-tab="currentTab" :tabs="tabs" class="q-mb-md" />
|
|
|
+
|
|
|
+ <div v-show="currentTab === 'settings'">
|
|
|
+ <SettingsTab />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div v-show="currentTab === 'billing-generation'">
|
|
|
+ <BillingGenerationTab />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div v-show="currentTab === 'generated-billings'">
|
|
|
+ <GeneratedBillingsTab />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|