Merge branch 'dev' into 7065-testUserPanel
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
commit
e41ed4eff5
|
@ -0,0 +1,2 @@
|
||||||
|
export const langs = ['en', 'es'];
|
||||||
|
export const decimalPlaces = 2;
|
|
@ -1,12 +1,12 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Dark, Quasar } from 'quasar';
|
import { Dark, Quasar } from 'quasar';
|
||||||
import { computed } from 'vue';
|
import { computed, onMounted } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { localeEquivalence } from 'src/i18n/index';
|
import { localeEquivalence } from 'src/i18n/index';
|
||||||
import quasarLang from 'src/utils/quasarLang';
|
import quasarLang from 'src/utils/quasarLang';
|
||||||
|
import { langs } from 'src/boot/defaults/constants.js';
|
||||||
|
|
||||||
const { t, locale } = useI18n();
|
const { t, locale } = useI18n();
|
||||||
|
|
||||||
const userLocale = computed({
|
const userLocale = computed({
|
||||||
get() {
|
get() {
|
||||||
return locale.value;
|
return locale.value;
|
||||||
|
@ -28,7 +28,6 @@ const darkMode = computed({
|
||||||
Dark.set(value);
|
Dark.set(value);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const langs = ['en', 'es'];
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -6,7 +6,7 @@ import VehicleFilter from '../VehicleFilter.js';
|
||||||
<template>
|
<template>
|
||||||
<VnCardBeta
|
<VnCardBeta
|
||||||
data-key="Vehicle"
|
data-key="Vehicle"
|
||||||
base-url="Vehicles"
|
url="Vehicles"
|
||||||
:filter="VehicleFilter"
|
:filter="VehicleFilter"
|
||||||
:descriptor="VehicleDescriptor"
|
:descriptor="VehicleDescriptor"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -136,7 +136,7 @@ const columns = computed(() => [
|
||||||
/>
|
/>
|
||||||
<FetchData
|
<FetchData
|
||||||
url="Countries"
|
url="Countries"
|
||||||
:filter="{ fields: ['code'] }"
|
:filter="{ fields: ['name', 'code'] }"
|
||||||
@on-fetch="(data) => (countries = data)"
|
@on-fetch="(data) => (countries = data)"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
|
@ -209,7 +209,7 @@ const columns = computed(() => [
|
||||||
v-model="data.countryCodeFk"
|
v-model="data.countryCodeFk"
|
||||||
:label="$t('globals.country')"
|
:label="$t('globals.country')"
|
||||||
option-value="code"
|
option-value="code"
|
||||||
option-label="code"
|
option-label="name"
|
||||||
:options="countries"
|
:options="countries"
|
||||||
/>
|
/>
|
||||||
<VnInput
|
<VnInput
|
||||||
|
|
|
@ -376,6 +376,30 @@ onMounted(async () => {
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-problems="{ row }">
|
<template #body-cell-problems="{ row }">
|
||||||
<QTd class="q-gutter-x-xs">
|
<QTd class="q-gutter-x-xs">
|
||||||
|
<QIcon
|
||||||
|
v-if="row.futureAgencyFk !== row.agencyFk && row.agencyFk"
|
||||||
|
color="primary"
|
||||||
|
name="vn:agency-term"
|
||||||
|
size="xs"
|
||||||
|
class="q-mr-xs"
|
||||||
|
>
|
||||||
|
<QTooltip class="column">
|
||||||
|
<span>
|
||||||
|
{{
|
||||||
|
t('advanceTickets.originAgency', {
|
||||||
|
agency: row.futureAgency,
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
{{
|
||||||
|
t('advanceTickets.destinationAgency', {
|
||||||
|
agency: row.agency,
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
</span>
|
||||||
|
</QTooltip>
|
||||||
|
</QIcon>
|
||||||
<QIcon
|
<QIcon
|
||||||
v-if="row.isTaxDataChecked === 0"
|
v-if="row.isTaxDataChecked === 0"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
|
Loading…
Reference in New Issue