add: translations of profile & proposals
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
origin.city = loadStore.currentLoad.origin?.city ? { city_name: loadStore.currentLoad.origin.city } : null;
|
||||
origin.country = loadStore.currentLoad.origin.country;
|
||||
origin.postalCode = loadStore.currentLoad.origin.zipcode;
|
||||
origin.ref = loadStore.currentLoad.origin.landmark;
|
||||
originRef.value = loadStore.currentLoad.origin.landmark;
|
||||
|
||||
destination.locationName = loadStore.currentLoad.destination.company_name;
|
||||
destination.address = loadStore.currentLoad.destination.street_address1;
|
||||
@@ -115,7 +115,7 @@
|
||||
destination.city = loadStore.currentLoad.destination?.city ? { city_name: loadStore.currentLoad.destination.city } : null;
|
||||
destination.country = loadStore.currentLoad.destination.country;
|
||||
destination.postalCode = loadStore.currentLoad.destination.zipcode;
|
||||
destination.ref = loadStore.currentLoad.destination.landmark;
|
||||
destinationRef.value = loadStore.currentLoad.destination.landmark;
|
||||
getCoordsMap();
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
origin.address = locationLoadSelected.value.address;
|
||||
origin.state = { state_name: locationLoadSelected.value.state };
|
||||
origin.city = { city_name: locationLoadSelected.value.city };
|
||||
origin.ref = locationLoadSelected.value.description;
|
||||
originRef.value = locationLoadSelected.value.description;
|
||||
});
|
||||
|
||||
watch(locationDownloadSelected, () => {
|
||||
@@ -154,7 +154,7 @@
|
||||
destination.address = locationDownloadSelected.value.address;
|
||||
destination.state = { state_name: locationDownloadSelected.value.state };
|
||||
destination.city = { city_name: locationDownloadSelected.value.city };
|
||||
destination.ref = locationDownloadSelected.value.description;
|
||||
destinationRef.value = locationDownloadSelected.value.description;
|
||||
});
|
||||
|
||||
const getLocations = async() => {
|
||||
@@ -207,7 +207,7 @@
|
||||
city: '',
|
||||
country: '',
|
||||
postalCode: '',
|
||||
ref: '',
|
||||
// ref: '',
|
||||
});
|
||||
|
||||
const destination = reactive({
|
||||
@@ -217,7 +217,7 @@
|
||||
city: '',
|
||||
country: '',
|
||||
postalCode: '',
|
||||
ref: '',
|
||||
// ref: '',
|
||||
});
|
||||
|
||||
const setLoadData = () => {
|
||||
@@ -236,7 +236,7 @@
|
||||
state : origin.state?.state_name,
|
||||
city : origin.city?.city_name,
|
||||
country : origin?.country,
|
||||
landmark : origin?.ref,
|
||||
landmark : originRef.value,
|
||||
zipcode : origin?.postalCode,
|
||||
lat : originCoords.value?.lat,
|
||||
lng : originCoords.value?.lng
|
||||
@@ -247,7 +247,7 @@
|
||||
state : destination.state?.state_name,
|
||||
city : destination.city?.city_name,
|
||||
country : destination?.country,
|
||||
landmark : destination?.ref,
|
||||
landmark : destinationRef.value,
|
||||
zipcode : destination?.postalCode,
|
||||
lat : destinationCoords.value?.lat,
|
||||
lng : destinationCoords.value?.lng
|
||||
@@ -402,7 +402,7 @@
|
||||
:filled="false"
|
||||
name="date-load"
|
||||
:required="submited ? true : false"
|
||||
:error="(submited && !formLoad.dateLoad) ? 'Fecha es requerida' : null"
|
||||
:error="(submited && !formLoad.dateLoad) ? t('errors.date') : null"
|
||||
v-model:field="formLoad.dateLoad"
|
||||
/>
|
||||
<Custominput
|
||||
@@ -411,7 +411,7 @@
|
||||
:filled="false"
|
||||
name="date-download"
|
||||
:required="submited ? true : false"
|
||||
:error="(submited && !formLoad.dateDownload) ? 'Fecha es requerida' : null"
|
||||
:error="(submited && !formLoad.dateDownload) ? t('errors.date') : null"
|
||||
v-model:field="formLoad.dateDownload"
|
||||
/>
|
||||
<Custominput
|
||||
@@ -420,7 +420,7 @@
|
||||
:filled="false"
|
||||
name="weight"
|
||||
:required="submited ? true : false"
|
||||
:error="(submited && !formLoad.weight) ? 'Ingrese peso en KG' : null"
|
||||
:error="(submited && !formLoad.weight) ? t('errors.weight') : null"
|
||||
v-model:field="formLoad.weight"
|
||||
/>
|
||||
</div>
|
||||
@@ -524,7 +524,7 @@
|
||||
type="text"
|
||||
:filled="false"
|
||||
name="ref-origin"
|
||||
v-model:field="origin.ref"
|
||||
v-model:field="originRef"
|
||||
/>
|
||||
</div>
|
||||
<div class="form-section">
|
||||
@@ -594,7 +594,7 @@
|
||||
type="text"
|
||||
:filled="false"
|
||||
name="ref-destination"
|
||||
v-model:field="destination.ref"
|
||||
v-model:field="destinationRef"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user