From e93864e9672a7ca846fe9743f738271e41fb878b Mon Sep 17 00:00:00 2001 From: Kevin Martinez Date: Wed, 28 Feb 2024 21:21:07 -0300 Subject: [PATCH] Update routes list input --- src/pages/Route/RouteList.vue | 309 +++++++++++++--------------------- 1 file changed, 118 insertions(+), 191 deletions(-) diff --git a/src/pages/Route/RouteList.vue b/src/pages/Route/RouteList.vue index 0c9fdad48..81135533b 100644 --- a/src/pages/Route/RouteList.vue +++ b/src/pages/Route/RouteList.vue @@ -3,7 +3,7 @@ import VnPaginate from 'components/ui/VnPaginate.vue'; import { useStateStore } from 'stores/useStateStore'; import { useI18n } from 'vue-i18n'; import { computed, onMounted, onUnmounted, ref } from 'vue'; -import { dashIfEmpty, toDate, toHour } from 'src/filters'; +import { dashIfEmpty, toHour } from 'src/filters'; import VnSelectFilter from 'components/common/VnSelectFilter.vue'; import FetchData from 'components/FetchData.vue'; import { useValidator } from 'composables/useValidator'; @@ -37,7 +37,7 @@ const columns = computed(() => [ label: t('ID'), field: (row) => row.id, sortable: true, - align: 'left', + align: 'center', }, { name: 'worker', @@ -72,7 +72,7 @@ const columns = computed(() => [ label: 'm³', field: (row) => dashIfEmpty(row.m3), sortable: true, - align: 'left', + align: 'center', }, { name: 'description', @@ -115,24 +115,6 @@ const updateRoute = async (route) => { } }; -const updateVehicle = (row, vehicle) => { - row.vehicleFk = vehicle.id; - row.vehiclePlateNumber = vehicle.numberPlate; - updateRoute(row); -}; - -const updateAgency = (row, agency) => { - row.agencyModeFk = agency.id; - row.agencyName = agency.name; - updateRoute(row); -}; - -const updateWorker = (row, worker) => { - row.workerFk = worker.id; - row.workerUserName = worker.name; - updateRoute(row); -}; - const confirmationDialog = ref(false); const startingDate = ref(null); @@ -241,7 +223,7 @@ const openTicketsDialog = (id) => { /> - + -