refactor: refs #7130 requested changes
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jon Elias 2024-03-28 12:19:55 +01:00
parent 6df1d0cf99
commit 37d869d1d5
5 changed files with 41 additions and 24 deletions

View File

@ -997,6 +997,10 @@ export default {
downloadCmrs: 'Download CMRs',
},
},
filter: {
no: 'No',
yes: 'Yes',
},
},
supplier: {
pageTitles: {

View File

@ -997,6 +997,10 @@ export default {
downloadCmrs: 'Descargar CMRs',
},
},
filter: {
no: 'No',
yes: 'Sí',
},
},
supplier: {
pageTitles: {

View File

@ -222,7 +222,6 @@ en:
from: From
to: To
Served: Served
no: No
es:
params:
warehouseFk: Almacén
@ -233,7 +232,6 @@ es:
workerFk: Trabajador
from: Desde
to: Hasta
yes:
Warehouse: Almacén
Description: Descripción
Vehicle: Vehículo

View File

@ -187,6 +187,15 @@ const ticketColumns = ref([
:label="t('route.summary.packages')"
:value="getTotalPackages(entity.tickets)"
/>
<QCheckbox
:label="
entity.route.isOk
? t('route.summary.closed')
: t('route.summary.open')
"
v-model="entity.route.isOk"
:disable="true"
/>
</QCard>
<QCard class="vn-one">
<div class="header">
@ -278,6 +287,10 @@ en:
m3:
packaging: Packaging
ticket: Ticket
closed: Closed
open: Open
yes: Yes
no: No
es:
route:
summary:
@ -301,4 +314,8 @@ es:
client: Cliente
warehouse: Almacén
packaging: Encajado
closed: Cerrada
open: Abierta
yes:
no: No
</i18n>

View File

@ -98,7 +98,7 @@ const columns = computed(() => [
{
name: 'isServed',
label: t('Served'),
field: (row) => (row.isOk ? 'Yes' : 'No'),
field: (row) => Boolean(row.isOk),
sortable: true,
align: 'left',
},
@ -272,7 +272,7 @@ const openTicketsDialog = (id) => {
auto-load
>
<template #body="{ rows }">
<div class="q-pa-md">
<div class="q-pa-md route-table">
<QTable
v-model:selected="selectedRows"
:columns="columns"
@ -286,7 +286,7 @@ const openTicketsDialog = (id) => {
:no-data-label="t('globals.noResults')"
>
<template #body-cell-worker="{ row }">
<QTd>
<QTd class="table-input-cell">
<VnSelectFilter
:label="t('Worker')"
v-model="row.workerFk"
@ -319,7 +319,7 @@ const openTicketsDialog = (id) => {
</QTd>
</template>
<template #body-cell-agency="{ row }">
<QTd>
<QTd class="table-input-cell">
<VnSelectFilter
:label="t('Agency')"
v-model="row.agencyModeFk"
@ -336,7 +336,7 @@ const openTicketsDialog = (id) => {
</QTd>
</template>
<template #body-cell-vehicle="{ row }">
<QTd>
<QTd class="table-input-cell">
<VnSelectFilter
:label="t('Vehicle')"
v-model="row.vehicleFk"
@ -404,23 +404,17 @@ const openTicketsDialog = (id) => {
/>
</QTd>
</template>
<template #body-cell-isServed="{ row }">
<template #body-cell-isServed="props">
<QTd>
<div class="lock-icon-cell">
<QIcon
:name="'lock'"
size="xs"
:color="row.isOk ? 'color-spacer' : 'primary'"
>
<QTooltip>
{{
row.isOk
? t('Route is closed')
: t('Route is not served')
}}
</QTooltip>
</QIcon>
</div>
<QCheckbox v-model="props.value" disable>
<QTooltip>
{{
props.value
? t('Route is closed')
: t('Route is not served')
}}
</QTooltip>
</QCheckbox>
</QTd>
</template>
<template #body-cell-actions="props">
@ -481,7 +475,7 @@ const openTicketsDialog = (id) => {
<style lang="scss" scoped>
.table-input-cell {
min-width: 150px;
max-width: 143px;
}
.route-list {