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