feat: refs #7882 Added longitude & latitude #1070

Merged
guillermo merged 6 commits from 7882-osrm into dev 2024-12-16 06:59:07 +00:00
1 changed files with 32 additions and 26 deletions
Showing only changes of commit f04d675f6b - Show all commits

View File

@ -12,6 +12,7 @@ import VnInput from 'src/components/common/VnInput.vue';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import VnSelectDialog from 'src/components/common/VnSelectDialog.vue'; import VnSelectDialog from 'src/components/common/VnSelectDialog.vue';
import CustomerNewCustomsAgent from 'src/pages/Customer/components/CustomerNewCustomsAgent.vue'; import CustomerNewCustomsAgent from 'src/pages/Customer/components/CustomerNewCustomsAgent.vue';
import VnInputNumber from 'src/components/common/VnInputNumber.vue';
const { t } = useI18n(); const { t } = useI18n();
const route = useRoute(); const route = useRoute();
@ -144,7 +145,6 @@ function handleLocation(data, location) {
:url="`Addresses/${route.params.addressId}`" :url="`Addresses/${route.params.addressId}`"
@on-data-saved="onDataSaved()" @on-data-saved="onDataSaved()"
auto-load auto-load
model="customer"
> >
<template #moreActions> <template #moreActions>
<QBtn <QBtn
@ -220,31 +220,35 @@ function handleLocation(data, location) {
</div> </div>
</VnRow> </VnRow>
<VnRow> <VnRow>
<div class="col"> <VnSelect
<VnSelect :label="t('Incoterms')"
:label="t('Incoterms')" :options="incoterms"
:options="incoterms" hide-selected
hide-selected option-label="name"
option-label="name" option-value="code"
option-value="code" v-model="data.incotermsFk"
v-model="data.incotermsFk" />
/> <VnSelectDialog
</div> :label="t('Customs agent')"
<div class="col"> :options="customsAgents"
<VnSelectDialog hide-selected
:label="t('Customs agent')" option-label="fiscalName"
:options="customsAgents" option-value="id"
hide-selected v-model="data.customsAgentFk"
option-label="fiscalName" :tooltip="t('New customs agent')"
option-value="id" >
v-model="data.customsAgentFk" <template #form>
:tooltip="t('New customs agent')" <CustomerNewCustomsAgent />
> </template>
<template #form> </VnSelectDialog>
<CustomerNewCustomsAgent /> </VnRow>
</template> <VnRow>
</VnSelectDialog> <VnInputNumber
</div> :label="t('Longitude')"
clearable
v-model="data.longitude"
/>
<VnInputNumber :label="t('Latitude')" clearable v-model="data.latitude" />
</VnRow> </VnRow>
<h4 class="q-mb-xs">{{ t('Notes') }}</h4> <h4 class="q-mb-xs">{{ t('Notes') }}</h4>
<VnRow <VnRow
@ -322,4 +326,6 @@ es:
Description: Descripción Description: Descripción
Add note: Añadir nota Add note: Añadir nota
Remove note: Eliminar nota Remove note: Eliminar nota
Longitude: Longitud
Latitude: Latitud
</i18n> </i18n>