fix: geocode locations
This commit is contained in:
@@ -79,7 +79,6 @@
|
||||
formLoad.owner = auth.user?.first_name + ' ' + auth.user?.last_name;
|
||||
//origin_formatted_address
|
||||
if(loadStore.currentLoad){
|
||||
console.log(loadStore.currentLoad);
|
||||
formLoad.price = loadStore.currentLoad.actual_cost;
|
||||
formLoad.segment = loadStore.currentLoad.categories?.length <= 0 ? [] : loadStore.currentLoad.categories.map(m =>{
|
||||
return m;
|
||||
@@ -131,7 +130,6 @@
|
||||
|
||||
watch([originCoords, destinationCoords], async() => {
|
||||
if(originCoords.value && destinationCoords.value) {
|
||||
// console.log('Se llama api direcciones ')
|
||||
polylines.value = await getDirections(originCoords.value, destinationCoords.value);
|
||||
}
|
||||
})
|
||||
@@ -406,7 +404,7 @@
|
||||
v-model:field="formLoad.dateDownload"
|
||||
/>
|
||||
<Custominput
|
||||
label="Peso de la carga*"
|
||||
label="Peso de la carga en Kg*"
|
||||
type="number"
|
||||
:filled="false"
|
||||
name="weight"
|
||||
@@ -423,7 +421,7 @@
|
||||
/>
|
||||
</div>
|
||||
<Custominput
|
||||
label="Precio"
|
||||
label="Precio en MXN"
|
||||
type="Number"
|
||||
:filled="false"
|
||||
name="price"
|
||||
@@ -451,8 +449,8 @@
|
||||
<h2>Dirección de origen</h2>
|
||||
|
||||
<div class="form-check my-4" v-if="loadingLocations === false">
|
||||
<input class="form-check-input chekmark" type="checkbox" id="flexCheckDefault" v-model="checkLocationLoad">
|
||||
<label class="form-check-label custom-label" for="flexCheckDefault">
|
||||
<input class="form-check-input chekmark" type="checkbox" id="directoryOrigin" v-model="checkLocationLoad">
|
||||
<label class="form-check-label custom-label" for="directoryOrigin">
|
||||
Usar locaciones registradas
|
||||
</label>
|
||||
</div>
|
||||
@@ -521,8 +519,8 @@
|
||||
<div class="form-section">
|
||||
<h2>Dirección de destino</h2>
|
||||
<div class="form-check my-4" v-if="loadingLocations === false">
|
||||
<input class="form-check-input chekmark" type="checkbox" id="flexCheckDefault" v-model="checkLocationDownload">
|
||||
<label class="form-check-label custom-label" for="flexCheckDefault">
|
||||
<input class="form-check-input chekmark" type="checkbox" id="directoryDestination" v-model="checkLocationDownload">
|
||||
<label class="form-check-label custom-label" for="directoryDestination">
|
||||
Usar locaciones registradas
|
||||
</label>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user