|
@@ -15,6 +15,10 @@
|
|
|
<q-td>{{ formatDateYMDtoDMY(row.end_date) }}</q-td>
|
|
<q-td>{{ formatDateYMDtoDMY(row.end_date) }}</q-td>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
+ <template #body-cell-inhabitant_classification="{ row }">
|
|
|
|
|
+ <q-td>{{ row.inhabitant_classification?.description ?? "—" }}</q-td>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
<template #body-cell-tbr_fixed_value="{ row }">
|
|
<template #body-cell-tbr_fixed_value="{ row }">
|
|
|
<q-td>{{ formatToBRLCurrency(row.tbr_fixed_value) }}</q-td>
|
|
<q-td>{{ formatToBRLCurrency(row.tbr_fixed_value) }}</q-td>
|
|
|
</template>
|
|
</template>
|
|
@@ -32,7 +36,9 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #body-cell-ref_month="{ row }">
|
|
<template #body-cell-ref_month="{ row }">
|
|
|
- <q-td>{{ formatRefMonth(row.contract_month_current, row.validity_months) }}</q-td>
|
|
|
|
|
|
|
+ <q-td>{{
|
|
|
|
|
+ formatRefMonth(row.contract_month_current, row.validity_months)
|
|
|
|
|
+ }}</q-td>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #body-cell-actions>
|
|
<template #body-cell-actions>
|
|
@@ -46,20 +52,60 @@
|
|
|
<script setup>
|
|
<script setup>
|
|
|
import DefaultTable from "src/components/defaults/DefaultTable.vue";
|
|
import DefaultTable from "src/components/defaults/DefaultTable.vue";
|
|
|
import { getActiveFranchiseeContracts } from "src/api/franchisee_contract";
|
|
import { getActiveFranchiseeContracts } from "src/api/franchisee_contract";
|
|
|
-import { formatToBRLCurrency, formatPercentage, formatDateYMDtoDMY } from "src/helpers/utils";
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ formatToBRLCurrency,
|
|
|
|
|
+ formatPercentage,
|
|
|
|
|
+ formatDateYMDtoDMY,
|
|
|
|
|
+} from "src/helpers/utils";
|
|
|
|
|
|
|
|
const loadContracts = () => getActiveFranchiseeContracts();
|
|
const loadContracts = () => getActiveFranchiseeContracts();
|
|
|
|
|
|
|
|
const columns = [
|
|
const columns = [
|
|
|
{ name: "protocol", label: "ID", field: "protocol", align: "left" },
|
|
{ name: "protocol", label: "ID", field: "protocol", align: "left" },
|
|
|
{ name: "unit_name", label: "Unidade", field: "unit_name", align: "left" },
|
|
{ name: "unit_name", label: "Unidade", field: "unit_name", align: "left" },
|
|
|
- { name: "start_date", label: "Data Inicial", field: "start_date", align: "left" },
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "start_date",
|
|
|
|
|
+ label: "Data Inicial",
|
|
|
|
|
+ field: "start_date",
|
|
|
|
|
+ align: "left",
|
|
|
|
|
+ },
|
|
|
{ name: "end_date", label: "Data Final", field: "end_date", align: "left" },
|
|
{ name: "end_date", label: "Data Final", field: "end_date", align: "left" },
|
|
|
- { name: "tbr_fixed_value", label: "TBR", field: "tbr_fixed_value", align: "left" },
|
|
|
|
|
- { name: "royalties", label: "Royalties", field: "tbr_fixed_value_percentage", align: "left" },
|
|
|
|
|
- { name: "fnm", label: "FNM", field: "marketing_fund_percentage", align: "left" },
|
|
|
|
|
- { name: "maintenance", label: "Manutenção", field: "maintance_tax_percentage", align: "left" },
|
|
|
|
|
- { name: "ref_month", label: "Ref. Mês", field: "contract_month_current", align: "left" },
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "inhabitant_classification",
|
|
|
|
|
+ label: "Faixa de Habitantes",
|
|
|
|
|
+ field: "inhabitant_classification",
|
|
|
|
|
+ align: "left",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "tbr_fixed_value",
|
|
|
|
|
+ label: "TBR",
|
|
|
|
|
+ field: "tbr_fixed_value",
|
|
|
|
|
+ align: "left",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "royalties",
|
|
|
|
|
+ label: "Royalties",
|
|
|
|
|
+ field: "tbr_fixed_value_percentage",
|
|
|
|
|
+ align: "left",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "fnm",
|
|
|
|
|
+ label: "FNM",
|
|
|
|
|
+ field: "marketing_fund_percentage",
|
|
|
|
|
+ align: "left",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "maintenance",
|
|
|
|
|
+ label: "Manutenção",
|
|
|
|
|
+ field: "maintance_tax_percentage",
|
|
|
|
|
+ align: "left",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "ref_month",
|
|
|
|
|
+ label: "Ref. Mês",
|
|
|
|
|
+ field: "contract_month_current",
|
|
|
|
|
+ align: "left",
|
|
|
|
|
+ },
|
|
|
{ name: "actions", label: "Ações", field: "actions", align: "center" },
|
|
{ name: "actions", label: "Ações", field: "actions", align: "center" },
|
|
|
];
|
|
];
|
|
|
|
|
|