forked from verdnatura/salix-front
Merge branch '6082-refactNavBar' of https://gitea.verdnatura.es/verdnatura/salix-front into 6082-refactNavBar
This commit is contained in:
commit
89b01759ba
|
@ -470,7 +470,7 @@ export default {
|
||||||
},
|
},
|
||||||
cmr: {
|
cmr: {
|
||||||
list: {
|
list: {
|
||||||
total: 'Total {0} records',
|
total: 'Total records',
|
||||||
cmrFk: 'Cmr id',
|
cmrFk: 'Cmr id',
|
||||||
hasCmrDms: `Attached in gestdoc`,
|
hasCmrDms: `Attached in gestdoc`,
|
||||||
true: 'Yes',
|
true: 'Yes',
|
||||||
|
|
|
@ -470,7 +470,7 @@ export default {
|
||||||
},
|
},
|
||||||
cmr: {
|
cmr: {
|
||||||
list: {
|
list: {
|
||||||
total: 'Total {0} registros',
|
total: 'Total registros',
|
||||||
cmrFk: 'Id cmr',
|
cmrFk: 'Id cmr',
|
||||||
hasCmrDms: 'Adjuntado en gestdoc',
|
hasCmrDms: 'Adjuntado en gestdoc',
|
||||||
true: 'Sí',
|
true: 'Sí',
|
||||||
|
|
|
@ -123,19 +123,19 @@ const countries = ref();
|
||||||
<i18n>
|
<i18n>
|
||||||
en:
|
en:
|
||||||
params:
|
params:
|
||||||
cmrFk: Cmr id,
|
cmrFk: Cmr id
|
||||||
hasCmrDms: Attached in gestdoc,
|
hasCmrDms: Attached in gestdoc
|
||||||
ticketFk: Ticketd id,
|
ticketFk: Ticketd id
|
||||||
country: Country,
|
country: Country
|
||||||
clientFk: Client id,
|
clientFk: Client id
|
||||||
shipped: Preparation date,
|
shipped: Preparation date
|
||||||
|
|
||||||
es:
|
es:
|
||||||
params:
|
params:
|
||||||
cmrFk: Id cmr,
|
cmrFk: Id cmr
|
||||||
hasCmrDms: Adjuntado en gestdoc,
|
hasCmrDms: Adjuntado en gestdoc
|
||||||
ticketFk: Id ticket,
|
ticketFk: Id ticket
|
||||||
country: País,
|
country: País
|
||||||
clientFk: Id cliente,
|
clientFk: Id cliente
|
||||||
shipped: Fecha preparación,
|
shipped: Fecha preparación
|
||||||
</i18n>
|
</i18n>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useStateStore } from 'stores/useStateStore';
|
import { useStateStore } from 'stores/useStateStore';
|
||||||
import VnPaginate from 'components/ui/VnPaginate.vue';
|
import VnPaginate from 'components/ui/VnPaginate.vue';
|
||||||
|
@ -56,8 +56,8 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
function getProjectUrl() {
|
function getProjectUrl() {
|
||||||
return ((new URL(window.location)).origin);
|
return new URL(window.location).origin;
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="column items-center">
|
<div class="column items-center">
|
||||||
|
@ -79,34 +79,39 @@ function getProjectUrl() {
|
||||||
:grid="$q.screen.lt.md"
|
:grid="$q.screen.lt.md"
|
||||||
auto-load
|
auto-load
|
||||||
>
|
>
|
||||||
<template #top>
|
<template #top>
|
||||||
{{ t('route.cmr.list.total', [rows.length]) }}
|
{{ `${t('route.cmr.list.total')}: ${rows.length}` }}
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-cmrFk="{ value }">
|
<template #body-cell-cmrFk="{ value }">
|
||||||
<QTd align="right" class="text-primary">
|
<QTd align="right" class="text-primary">
|
||||||
<a :href="`${getProjectUrl()}/api/Routes/${value}/cmr?access_token=${token}`" target="_blank">
|
<a
|
||||||
|
:href="`${getProjectUrl()}/api/Routes/${value}/cmr?access_token=${token}`"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
<span class="text-primary">{{ value }}</span>
|
<span class="text-primary">{{ value }}</span>
|
||||||
</a>
|
</a>
|
||||||
</QTd>
|
</QTd>
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-hasCmrDms="{ value }">
|
<template #body-cell-hasCmrDms="{ value }">
|
||||||
<QTd align="center">
|
<QTd align="center">
|
||||||
<QBadge
|
<QBadge
|
||||||
:id="(value) ? 'true' : 'false'"
|
:id="value ? 'true' : 'false'"
|
||||||
:label="(value)
|
:label="
|
||||||
? t('route.cmr.list.true')
|
value
|
||||||
: t('route.cmr.list.false')"
|
? t('route.cmr.list.true')
|
||||||
/>
|
: t('route.cmr.list.false')
|
||||||
</QTd>
|
"
|
||||||
</template>
|
/>
|
||||||
|
</QTd>
|
||||||
|
</template>
|
||||||
</QTable>
|
</QTable>
|
||||||
</template>
|
</template>
|
||||||
</VnPaginate>
|
</VnPaginate>
|
||||||
</div>
|
</div>
|
||||||
<QDrawer v-model="stateStore.rightDrawer" side="right" :width="256" show-if-above>
|
<QDrawer v-model="stateStore.rightDrawer" side="right" :width="256" show-if-above>
|
||||||
<QScrollArea class="fit text-grey-8">
|
<QScrollArea class="fit text-grey-8">
|
||||||
<CmrFilter data-key="CmrList" />
|
<CmrFilter data-key="CmrList" />
|
||||||
</QScrollArea>
|
</QScrollArea>
|
||||||
</QDrawer>
|
</QDrawer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue