view vehicles

This commit is contained in:
Alexandro Uc Santos
2024-01-12 13:16:55 -06:00
parent 937c3a8fe5
commit c315f8814e
8 changed files with 314 additions and 8 deletions

View File

@@ -129,6 +129,23 @@
})
})
watch(locationLoadSelected, () => {
console.log(locationLoadSelected);
origin.locationName = locationLoadSelected.value.branch_name;
origin.address = locationLoadSelected.value.address;
origin.state = { state_name: locationLoadSelected.value.state };
origin.city = { city_name: locationLoadSelected.value.city };
origin.ref = locationLoadSelected.value.description;
});
watch(locationDownloadSelected, () => {
destination.locationName = locationDownloadSelected.value.branch_name;
destination.address = locationDownloadSelected.value.address;
destination.state = { state_name: locationDownloadSelected.value.state };
destination.city = { city_name: locationDownloadSelected.value.city };
destination.ref = locationDownloadSelected.value.description;
});
const getLocations = async() => {
loadingLocations.value = true;
filterQueryVehicles.value.company = "company="+ localStorage.getItem('id');