This commit is contained in:
parent
4a41ba1247
commit
446cebc53d
|
@ -11,6 +11,7 @@ import CmrFilter from './CmrFilter.vue';
|
||||||
const stateStore = useStateStore();
|
const stateStore = useStateStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const session = useSession();
|
const session = useSession();
|
||||||
|
const token = session.getToken();
|
||||||
|
|
||||||
const columns = computed(() => [
|
const columns = computed(() => [
|
||||||
{
|
{
|
||||||
|
@ -23,6 +24,7 @@ const columns = computed(() => [
|
||||||
name: 'hasCmrDms',
|
name: 'hasCmrDms',
|
||||||
label: t('route.cmr.list.hasCmrDms'),
|
label: t('route.cmr.list.hasCmrDms'),
|
||||||
field: (row) => row.hasCmrDms,
|
field: (row) => row.hasCmrDms,
|
||||||
|
align: 'center',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -41,12 +43,14 @@ const columns = computed(() => [
|
||||||
name: 'country',
|
name: 'country',
|
||||||
label: t('route.cmr.list.country'),
|
label: t('route.cmr.list.country'),
|
||||||
field: (row) => row.country,
|
field: (row) => row.country,
|
||||||
|
align: 'left',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'shipped',
|
name: 'shipped',
|
||||||
label: t('route.cmr.list.shipped'),
|
label: t('route.cmr.list.shipped'),
|
||||||
field: (row) => toDate(row.shipped),
|
field: (row) => toDate(row.shipped),
|
||||||
|
align: 'center',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
@ -57,6 +61,7 @@ async function openCmr(cmrFk) {
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="column items-center">
|
<div class="column items-center">
|
||||||
|
{{ console.log(location) }}
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<VnPaginate
|
<VnPaginate
|
||||||
data-key="CmrList"
|
data-key="CmrList"
|
||||||
|
@ -75,12 +80,14 @@ async function openCmr(cmrFk) {
|
||||||
:grid="$q.screen.lt.md"
|
:grid="$q.screen.lt.md"
|
||||||
auto-load
|
auto-load
|
||||||
>
|
>
|
||||||
<template v-slot: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">
|
||||||
<span class="cursor-pointer" @click="openCmr(value)">{{ value }}</span>
|
<RouterLink class="text-primary" :to="`${window.location}/api/Routes/${value}/cmr?access_token=${token}`">
|
||||||
|
<span>{{ value }}</span>
|
||||||
|
</RouterLink>
|
||||||
</QTd>
|
</QTd>
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-hasCmrDms="{ value }">
|
<template #body-cell-hasCmrDms="{ value }">
|
||||||
|
|
Loading…
Reference in New Issue