Explorar el Código

feat: adiciona billing tab

ebagabee hace 1 mes
padre
commit
4aeb01eb9a
Se han modificado 1 ficheros con 12 adiciones y 5 borrados
  1. 12 5
      src/pages/tbr/tabs/BillingsTab.vue

+ 12 - 5
src/pages/tbr/tabs/BillingsTab.vue

@@ -2,7 +2,6 @@
   <DefaultTable
     v-model:rows="rows"
     :columns="columns"
-    :api-call="loadBillings"
     :show-search-field="true"
     :add-item="true"
     add-item-label="Gerar Cobranças"
@@ -76,11 +75,21 @@ import { useQuasar } from "quasar";
 import DefaultTable from "src/components/defaults/DefaultTable.vue";
 import DefaultInput from "src/components/defaults/DefaultInput.vue";
 import GenerateBillingsDialog from "src/pages/tbr/components/GenerateBillingsDialog.vue";
-import { getTbrBillingPreview } from "src/api/tbr";
 import { formatToBRLCurrency } from "src/helpers/utils";
 
 const $q = useQuasar();
-const rows = ref([]);
+const rows = ref([
+  {
+    id: 1,
+    unit_name: "Foz do Iguaçu",
+    royalties_value: 648.40,
+    royalties_rule: "FIXO 40%",
+    fnm_value: 324.20,
+    fnm_rule: "FIXO 20%",
+    maintenance_value: 486.30,
+    total: 1458.90,
+  },
+]);
 const monthYear = ref(null);
 const monthYearDisplay = ref(null);
 
@@ -111,8 +120,6 @@ const columns = [
   { name: "actions", label: "Ações", field: "actions", align: "center" },
 ];
 
-const loadBillings = () => getTbrBillingPreview();
-
 function onMonthYearSelect(value) {
   if (!value) return;
   monthYearDisplay.value = value;