|
@@ -1,43 +1,46 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <DefaultTable
|
|
|
|
|
- ref="tableRef"
|
|
|
|
|
- :columns="columns"
|
|
|
|
|
- :loading="loading"
|
|
|
|
|
- :api-call="getCustomSchedules"
|
|
|
|
|
- :add-button-label="$t('opportunities.add')"
|
|
|
|
|
- :empty-message="$t('opportunities.empty_state')"
|
|
|
|
|
- :delete-function="deleteCustomSchedule"
|
|
|
|
|
- :mostrar-selecao-de-colunas="false"
|
|
|
|
|
- :mostrar-botao-fullscreen="false"
|
|
|
|
|
- :mostrar-toggle-inativos="false"
|
|
|
|
|
- :open-item="true"
|
|
|
|
|
- @on-row-click="onRowClick"
|
|
|
|
|
- @on-add-item="onAddItem"
|
|
|
|
|
- >
|
|
|
|
|
- <template #body-cell-status="template_props">
|
|
|
|
|
- <q-td :props="template_props">
|
|
|
|
|
- <q-chip
|
|
|
|
|
- :label="$t(`schedules.statuses.${template_props.row.schedule?.status}`)"
|
|
|
|
|
- :color="getStatusColor(template_props.row.schedule?.status)"
|
|
|
|
|
- text-color="white"
|
|
|
|
|
- size="sm"
|
|
|
|
|
- />
|
|
|
|
|
- </q-td>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <q-page>
|
|
|
|
|
+ <DefaultHeaderPage />
|
|
|
|
|
+ <DefaultTable
|
|
|
|
|
+ ref="tableRef"
|
|
|
|
|
+ :columns="columns"
|
|
|
|
|
+ :loading="loading"
|
|
|
|
|
+ :api-call="getCustomSchedules"
|
|
|
|
|
+ :add-button-label="$t('opportunities.add')"
|
|
|
|
|
+ :empty-message="$t('opportunities.empty_state')"
|
|
|
|
|
+ :delete-function="deleteCustomSchedule"
|
|
|
|
|
+ :mostrar-selecao-de-colunas="false"
|
|
|
|
|
+ :mostrar-botao-fullscreen="false"
|
|
|
|
|
+ :mostrar-toggle-inativos="false"
|
|
|
|
|
+ :open-item="true"
|
|
|
|
|
+ @on-row-click="onRowClick"
|
|
|
|
|
+ @on-add-item="onAddItem"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #body-cell-status="template_props">
|
|
|
|
|
+ <q-td :props="template_props">
|
|
|
|
|
+ <q-chip
|
|
|
|
|
+ :label="$t(`schedules.statuses.${template_props.row.schedule?.status}`)"
|
|
|
|
|
+ :color="getStatusColor(template_props.row.schedule?.status)"
|
|
|
|
|
+ text-color="white"
|
|
|
|
|
+ size="sm"
|
|
|
|
|
+ />
|
|
|
|
|
+ </q-td>
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
- <template #body-cell-price_range="template_props">
|
|
|
|
|
- <q-td :props="template_props">
|
|
|
|
|
- {{ formatToBRLCurrency(template_props.row.min_price) }}
|
|
|
|
|
- {{ formatToBRLCurrency(template_props.row.max_price) }}
|
|
|
|
|
- </q-td>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <template #body-cell-price_range="template_props">
|
|
|
|
|
+ <q-td :props="template_props">
|
|
|
|
|
+ {{ formatToBRLCurrency(template_props.row.min_price) }}
|
|
|
|
|
+ {{ formatToBRLCurrency(template_props.row.max_price) }}
|
|
|
|
|
+ </q-td>
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
- <template #body-cell-period="template_props">
|
|
|
|
|
- <q-td :props="template_props">
|
|
|
|
|
- {{ template_props.row.schedule?.period_type }}{{ $t('schedules.hours') }}
|
|
|
|
|
- </q-td>
|
|
|
|
|
- </template>
|
|
|
|
|
- </DefaultTable>
|
|
|
|
|
|
|
+ <template #body-cell-period="template_props">
|
|
|
|
|
+ <q-td :props="template_props">
|
|
|
|
|
+ {{ template_props.row.schedule?.period_type }}{{ $t('schedules.hours') }}
|
|
|
|
|
+ </q-td>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </DefaultTable>
|
|
|
|
|
+ </q-page>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
@@ -48,6 +51,7 @@ import { getCustomSchedules, deleteCustomSchedule } from 'src/api/customSchedule
|
|
|
import DefaultTable from 'src/components/defaults/DefaultTable.vue'
|
|
import DefaultTable from 'src/components/defaults/DefaultTable.vue'
|
|
|
import AddEditCustomScheduleDialog from './components/AddEditCustomScheduleDialog.vue'
|
|
import AddEditCustomScheduleDialog from './components/AddEditCustomScheduleDialog.vue'
|
|
|
import { formatToBRLCurrency } from 'src/helpers/utils'
|
|
import { formatToBRLCurrency } from 'src/helpers/utils'
|
|
|
|
|
+import DefaultHeaderPage from 'src/components/layout/DefaultHeaderPage.vue'
|
|
|
|
|
|
|
|
const { t } = useI18n()
|
|
const { t } = useI18n()
|
|
|
const $q = useQuasar()
|
|
const $q = useQuasar()
|