0
0
Fork 0

fix: duplicate code

This commit is contained in:
Alex Moreno 2024-09-12 08:31:57 +02:00
parent 8bf7b729d4
commit 4a234dd875
1 changed files with 0 additions and 12 deletions

View File

@ -15,7 +15,6 @@ import VnRow from 'src/components/ui/VnRow.vue';
import RightMenu from 'src/components/common/RightMenu.vue';
import TicketFilter from './TicketFilter.vue';
import { useRoute } from 'vue-router';
const route = useRoute();
const { t } = useI18n();
const { viewSummary } = useSummaryDialog();
@ -25,7 +24,6 @@ const addressesOptions = ref([]);
const agenciesOptions = ref([]);
const selectedClient = ref();
const stateStore = useStateStore();
const route = useRoute();
const from = Date.vnNew();
from.setHours(0, 0, 0, 0);
const to = Date.vnNew();
@ -46,16 +44,6 @@ const initializeFromQuery = () => {
Object.assign(userParams, { from, to });
};
// Método para inicializar las variables desde la query string
const initializeFromQuery = () => {
const query = route.query.table ? JSON.parse(route.query.table) : {};
// Asigna los valores a las variables correspondientes
from.value = query.from || from.toISOString();
to.value = query.to || to.toISOString();
Object.assign(userParams, { from, to });
};
const columns = computed(() => [
{
align: 'left',