This commit is contained in:
parent
fa120ffa17
commit
4a41ba1247
|
@ -453,6 +453,7 @@ export default {
|
||||||
},
|
},
|
||||||
cmr: {
|
cmr: {
|
||||||
list: {
|
list: {
|
||||||
|
total: 'Total {0} registros',
|
||||||
cmrFk: 'Id cmr',
|
cmrFk: 'Id cmr',
|
||||||
hasCmrDms: 'Adjuntado en gestdoc',
|
hasCmrDms: 'Adjuntado en gestdoc',
|
||||||
true: 'Sí',
|
true: 'Sí',
|
||||||
|
|
|
@ -37,11 +37,11 @@ const countries = ref();
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<QCheckbox :label="t('route.cmr.list.hasCmrDms')" v-model="params.hasCmrDms" lazy-rules>
|
<QCheckbox
|
||||||
<template #prepend>
|
:label="t('route.cmr.list.hasCmrDms')"
|
||||||
<QIcon name="picture_as_pdf" size="sm"></QIcon>
|
v-model="params.hasCmrDms"
|
||||||
</template>
|
lazy-rules
|
||||||
</QCheckbox>
|
/>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem>
|
<QItem>
|
||||||
|
|
|
@ -75,13 +75,16 @@ async function openCmr(cmrFk) {
|
||||||
:grid="$q.screen.lt.md"
|
:grid="$q.screen.lt.md"
|
||||||
auto-load
|
auto-load
|
||||||
>
|
>
|
||||||
|
<template v-slot:top>
|
||||||
|
{{ t('route.cmr.list.total', [rows.length]) }}
|
||||||
|
</template>
|
||||||
<template #body-cell-cmrFk="{ value }">
|
<template #body-cell-cmrFk="{ value }">
|
||||||
<QTd align="right" class="text-primary">
|
<QTd align="right" class="text-primary">
|
||||||
<span id="cmr" @click="openCmr(value)">{{ value }}</span>
|
<span class="cursor-pointer" @click="openCmr(value)">{{ value }}</span>
|
||||||
</QTd>
|
</QTd>
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-hasCmrDms="{ value }">
|
<template #body-cell-hasCmrDms="{ value }">
|
||||||
<QTd align="right">
|
<QTd align="center">
|
||||||
<QBadge :id="(value) ? 'true' : 'false'" :label="(value) ? t('route.cmr.list.true') : t('route.cmr.list.false')"/>
|
<QBadge :id="(value) ? 'true' : 'false'" :label="(value) ? t('route.cmr.list.true') : t('route.cmr.list.false')"/>
|
||||||
</QTd>
|
</QTd>
|
||||||
</template>
|
</template>
|
||||||
|
@ -107,24 +110,12 @@ async function openCmr(cmrFk) {
|
||||||
.grid-style-transition {
|
.grid-style-transition {
|
||||||
transition: transform 0.28s, background-color 0.28s;
|
transition: transform 0.28s, background-color 0.28s;
|
||||||
}
|
}
|
||||||
#cmr {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
#cmr:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
.header-cell {
|
|
||||||
background-color: #ff9800;
|
|
||||||
}
|
|
||||||
#true {
|
#true {
|
||||||
background-color: #c8e484;
|
background-color: $positive;
|
||||||
color: black;
|
|
||||||
}
|
}
|
||||||
#false {
|
#false {
|
||||||
background-color: #fb5252;
|
background-color: $negative;
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
.text-center {
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue