diff --git a/src/pages/Route/Roadmap/RoadmapAddStopDialog.vue b/src/pages/Route/Roadmap/RoadmapAddStopDialog.vue index 810ef42c8..f20619033 100644 --- a/src/pages/Route/Roadmap/RoadmapAddStopDialog.vue +++ b/src/pages/Route/Roadmap/RoadmapAddStopDialog.vue @@ -34,7 +34,7 @@ const updateDefaultStop = (data) => { const onSave = async () => { isLoading.value = true; try { - await axios.post('ExpeditionTrucks', { ...roadmapStopForm }); + await axios.post('RoadmapStops', { ...roadmapStopForm }); emit('ok'); } finally { isLoading.value = false; diff --git a/src/pages/Route/Roadmap/RoadmapAddStopForm.vue b/src/pages/Route/Roadmap/RoadmapAddStopForm.vue index 736280e99..6cc21fd4d 100644 --- a/src/pages/Route/Roadmap/RoadmapAddStopForm.vue +++ b/src/pages/Route/Roadmap/RoadmapAddStopForm.vue @@ -23,28 +23,43 @@ const props = defineProps({ }); const { t } = useI18n(); -const warehouseList = ref([]); +const addressList = ref([]); const form = computed(() => props.formData); const isDialog = computed(() => props.layout === 'dialog'); +const onFetch = (data) => { + addressList.value = data.map((roadmap) => ({ + id: roadmap.addressFk, + nickname: roadmap.address ? roadmap.address.nickname : '', + })); +}; + + + es: - Warehouse: Almacén + Address: Dirección ETA date: Fecha ETA ETA hour: Hora ETA Description: Descripción diff --git a/src/pages/Route/Roadmap/RoadmapBasicData.vue b/src/pages/Route/Roadmap/RoadmapBasicData.vue index a6c2f7d4d..19b6a1b3d 100644 --- a/src/pages/Route/Roadmap/RoadmapBasicData.vue +++ b/src/pages/Route/Roadmap/RoadmapBasicData.vue @@ -3,7 +3,6 @@ import { useI18n } from 'vue-i18n'; import { useRoute, useRouter } from 'vue-router'; import VnRow from 'components/ui/VnRow.vue'; import FormModel from 'components/FormModel.vue'; -import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; import VnInputDate from 'components/common/VnInputDate.vue'; import VnInput from 'components/common/VnInput.vue'; import VnInputTime from 'components/common/VnInputTime.vue'; @@ -22,7 +21,6 @@ const onSave = (data, response) => { }; @@ -171,7 +178,7 @@ es: Worker: Trabajador Observations: Observaciones Stops: Paradas - Warehouse: Almacén + Address: Dirección Go to stops: Ir a paradas Add stop: Añadir parada diff --git a/src/pages/Route/RouteRoadmap.vue b/src/pages/Route/RouteRoadmap.vue index e26c63881..cecc2b2c3 100644 --- a/src/pages/Route/RouteRoadmap.vue +++ b/src/pages/Route/RouteRoadmap.vue @@ -266,9 +266,9 @@ function navigateToRoadmapSummary(event, row) { es: Search roadmaps: Buscar troncales - You can search by roadmap reference: Puedes buscar por referencia de la troncal + You can search by roadmap reference: Puedes buscar por referencia del troncal Delete roadmap(s): Eliminar troncal(es) - Selected roadmaps will be removed: Las troncales seleccionadas serán eliminadas + Selected roadmaps will be removed: Los troncales seleccionadas serán eliminados Are you sure you want to continue?: ¿Seguro que quieres continuar? The date can't be empty: La fecha no puede estar vacía Clone Selected Routes: Clonar rutas seleccionadas diff --git a/src/router/routes.js b/src/router/routes.js index 359ce5317..8d5202dda 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -2,12 +2,12 @@ import item from './modules/item'; import customer from './modules/customer'; import ticket from './modules/ticket'; import claim from './modules/claim'; +import route from './modules/route'; import worker from './modules/worker'; import invoiceOut from './modules/invoiceOut'; import invoiceIn from './modules/invoiceIn'; import wagon from './modules/wagon'; import supplier from './modules/Supplier'; -import route from './modules/route'; import travel from './modules/travel'; import department from './modules/department'; import ItemType from './modules/itemType';