0
0
Fork 0

refs #6321 perf: i18n

This commit is contained in:
Javier Segarra 2024-03-15 12:15:03 +01:00
parent 92555f8ddb
commit b3cbc64efb
2 changed files with 38 additions and 19 deletions

View File

@ -470,8 +470,12 @@ export default {
itemFk:'Articulo', itemFk:'Articulo',
ticketFk:'Id_Ticket', ticketFk:'Id_Ticket',
code:'code', code:'code',
nickname:'Usuario', nickname:'Alias',
name:'Nombre', name:'Nombre',
zoneName:'Nombre Agencia',
shipped:'Fecha',
theoreticalhour:'Hora teórica',
agName:'Agencia',
quantity:'Cantidad', quantity:'Cantidad',
alertLevel:'Nivel de alerta', alertLevel:'Nivel de alerta',
alertLevelCode:'Estado de Alerta', alertLevelCode:'Estado de Alerta',

View File

@ -8,6 +8,7 @@ import FetchData from 'src/components/FetchData.vue';
import VnSelectFilter from 'components/common/VnSelectFilter.vue'; import VnSelectFilter from 'components/common/VnSelectFilter.vue';
import VnInput from 'src/components/common/VnInput.vue'; import VnInput from 'src/components/common/VnInput.vue';
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue'; import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
import { toDate, toHour } from 'src/filters';
import { useDialogPluginComponent } from 'quasar'; import { useDialogPluginComponent } from 'quasar';
const { t } = useI18n(); const { t } = useI18n();
@ -113,11 +114,11 @@ const tableColumnComponents = computed(() => ({
props: { color: 'blue', flat: true }, props: { color: 'blue', flat: true },
event: () => ({}), event: () => ({}),
}, },
code: { // code: {
component: 'span', // component: 'span',
props: {}, // props: {},
event: () => ({}), // event: () => ({}),
}, // },
shipped: { shipped: {
component: 'span', component: 'span',
props: {}, props: {},
@ -133,13 +134,14 @@ const tableColumnComponents = computed(() => ({
type: 'select', type: 'select',
filterValue: null, filterValue: null,
attrs: { props: {
'option-value': 'id', 'option-value': 'id',
'option-label': 'name', 'option-label': 'name',
'emit-value': false, 'emit-value': true,
'map-options': false, 'map-options': true,
'use-input': false, 'use-input': true,
'hide-selected': false, 'hide-selected': true,
dense: true,
options: editableStates.value, options: editableStates.value,
}, },
event: getInputEvents, event: getInputEvents,
@ -191,12 +193,23 @@ const tableColumnComponents = computed(() => ({
peticionCompra: { peticionCompra: {
component: QCheckbox, component: QCheckbox,
props: {}, props: {
disabled: true,
},
event: getInputEvents, event: getInputEvents,
}, },
isRookie: { isRookie: {
component: QCheckbox, component: QCheckbox,
props: {}, props: {
disabled: true,
},
event: getInputEvents,
},
turno: {
component: QCheckbox,
props: {
disabled: true,
},
event: getInputEvents, event: getInputEvents,
}, },
actions: { actions: {
@ -213,23 +226,25 @@ const columns = computed(() => [
field: 'ticketFk', field: 'ticketFk',
align: 'left', align: 'left',
}, },
{ // {
name: 'code', // name: 'code',
label: t('ticket.negative.detail.code'), // label: t('ticket.negative.detail.code'),
field: 'code', // field: 'code',
align: 'left', // align: 'left',
}, // },
{ {
name: 'shipped', name: 'shipped',
label: t('ticket.negative.detail.shipped'), label: t('ticket.negative.detail.shipped'),
field: 'shipped', field: 'shipped',
align: 'left', align: 'left',
format: (val) => toDate(val),
}, },
{ {
name: 'theoreticalhour', name: 'theoreticalhour',
label: t('ticket.negative.detail.theoreticalhour'), label: t('ticket.negative.detail.theoreticalhour'),
field: 'theoreticalhour', field: 'theoreticalhour',
align: 'left', align: 'left',
format: (val) => toHour(val),
}, },
{ {
name: 'state', name: 'state',