|
@@ -2,7 +2,6 @@
|
|
|
<DefaultTable
|
|
<DefaultTable
|
|
|
v-model:rows="rows"
|
|
v-model:rows="rows"
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
|
- :api-call="loadBillings"
|
|
|
|
|
:show-search-field="true"
|
|
:show-search-field="true"
|
|
|
:add-item="true"
|
|
:add-item="true"
|
|
|
add-item-label="Gerar Cobranças"
|
|
add-item-label="Gerar Cobranças"
|
|
@@ -76,11 +75,21 @@ import { useQuasar } from "quasar";
|
|
|
import DefaultTable from "src/components/defaults/DefaultTable.vue";
|
|
import DefaultTable from "src/components/defaults/DefaultTable.vue";
|
|
|
import DefaultInput from "src/components/defaults/DefaultInput.vue";
|
|
import DefaultInput from "src/components/defaults/DefaultInput.vue";
|
|
|
import GenerateBillingsDialog from "src/pages/tbr/components/GenerateBillingsDialog.vue";
|
|
import GenerateBillingsDialog from "src/pages/tbr/components/GenerateBillingsDialog.vue";
|
|
|
-import { getTbrBillingPreview } from "src/api/tbr";
|
|
|
|
|
import { formatToBRLCurrency } from "src/helpers/utils";
|
|
import { formatToBRLCurrency } from "src/helpers/utils";
|
|
|
|
|
|
|
|
const $q = useQuasar();
|
|
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 monthYear = ref(null);
|
|
|
const monthYearDisplay = ref(null);
|
|
const monthYearDisplay = ref(null);
|
|
|
|
|
|
|
@@ -111,8 +120,6 @@ const columns = [
|
|
|
{ name: "actions", label: "Ações", field: "actions", align: "center" },
|
|
{ name: "actions", label: "Ações", field: "actions", align: "center" },
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
-const loadBillings = () => getTbrBillingPreview();
|
|
|
|
|
-
|
|
|
|
|
function onMonthYearSelect(value) {
|
|
function onMonthYearSelect(value) {
|
|
|
if (!value) return;
|
|
if (!value) return;
|
|
|
monthYearDisplay.value = value;
|
|
monthYearDisplay.value = value;
|