refs #6321 perf: i18n
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

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',
ticketFk:'Id_Ticket',
code:'code',
nickname:'Usuario',
nickname:'Alias',
name:'Nombre',
zoneName:'Nombre Agencia',
shipped:'Fecha',
theoreticalhour:'Hora teórica',
agName:'Agencia',
quantity:'Cantidad',
alertLevel:'Nivel 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 VnInput from 'src/components/common/VnInput.vue';
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
import { toDate, toHour } from 'src/filters';
import { useDialogPluginComponent } from 'quasar';
const { t } = useI18n();
@ -113,11 +114,11 @@ const tableColumnComponents = computed(() => ({
props: { color: 'blue', flat: true },
event: () => ({}),
},
code: {
component: 'span',
props: {},
event: () => ({}),
},
// code: {
// component: 'span',
// props: {},
// event: () => ({}),
// },
shipped: {
component: 'span',
props: {},
@ -133,13 +134,14 @@ const tableColumnComponents = computed(() => ({
type: 'select',
filterValue: null,
attrs: {
props: {
'option-value': 'id',
'option-label': 'name',
'emit-value': false,
'map-options': false,
'use-input': false,
'hide-selected': false,
'emit-value': true,
'map-options': true,
'use-input': true,
'hide-selected': true,
dense: true,
options: editableStates.value,
},
event: getInputEvents,
@ -191,12 +193,23 @@ const tableColumnComponents = computed(() => ({
peticionCompra: {
component: QCheckbox,
props: {},
props: {
disabled: true,
},
event: getInputEvents,
},
isRookie: {
component: QCheckbox,
props: {},
props: {
disabled: true,
},
event: getInputEvents,
},
turno: {
component: QCheckbox,
props: {
disabled: true,
},
event: getInputEvents,
},
actions: {
@ -213,23 +226,25 @@ const columns = computed(() => [
field: 'ticketFk',
align: 'left',
},
{
name: 'code',
label: t('ticket.negative.detail.code'),
field: 'code',
align: 'left',
},
// {
// name: 'code',
// label: t('ticket.negative.detail.code'),
// field: 'code',
// align: 'left',
// },
{
name: 'shipped',
label: t('ticket.negative.detail.shipped'),
field: 'shipped',
align: 'left',
format: (val) => toDate(val),
},
{
name: 'theoreticalhour',
label: t('ticket.negative.detail.theoreticalhour'),
field: 'theoreticalhour',
align: 'left',
format: (val) => toHour(val),
},
{
name: 'state',