|
@@ -2,7 +2,7 @@
|
|
|
<DefaultTable
|
|
<DefaultTable
|
|
|
v-model:rows="rows"
|
|
v-model:rows="rows"
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
|
- :no-api-call="true"
|
|
|
|
|
|
|
+ :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"
|
|
@@ -72,6 +72,7 @@ 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();
|
|
@@ -92,6 +93,8 @@ 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;
|