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