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) => { /> - + -