forked from verdnatura/salix-front
fix: ticketLackList
This commit is contained in:
parent
78c5836431
commit
b0a439c26c
|
@ -105,7 +105,6 @@ globals:
|
||||||
from: Desde
|
from: Desde
|
||||||
to: Hasta
|
to: Hasta
|
||||||
notes: Notas
|
notes: Notas
|
||||||
refresh: Actualizar
|
|
||||||
pageTitles:
|
pageTitles:
|
||||||
logIn: Inicio de sesión
|
logIn: Inicio de sesión
|
||||||
summary: Resumen
|
summary: Resumen
|
||||||
|
|
|
@ -13,6 +13,7 @@ import { useRole } from 'src/composables/useRole';
|
||||||
import TicketMassiveUpdate from '../Card/TicketMassiveUpdate.vue';
|
import TicketMassiveUpdate from '../Card/TicketMassiveUpdate.vue';
|
||||||
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
|
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
import VnImg from 'src/components/ui/VnImg.vue';
|
||||||
|
|
||||||
const stateStore = useStateStore();
|
const stateStore = useStateStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -39,27 +40,36 @@ const columns = computed(() => [
|
||||||
name: 'date',
|
name: 'date',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('negative.date'),
|
label: t('negative.date'),
|
||||||
field: 'timed',
|
|
||||||
format: ({ timed }) => toDate(timed),
|
format: ({ timed }) => toDate(timed),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
isId: true,
|
isId: true,
|
||||||
|
columnFilter: {
|
||||||
|
component: 'date',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
columnClass: 'shrink',
|
||||||
name: 'timed',
|
name: 'timed',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('negative.timed'),
|
label: t('negative.timed'),
|
||||||
field: 'timed',
|
|
||||||
format: ({ timed }) => toHour(timed),
|
format: ({ timed }) => toHour(timed),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
|
columnFilter: {
|
||||||
|
component: 'time',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'itemFk',
|
name: 'itemFk',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('negative.id'),
|
label: t('negative.id'),
|
||||||
field: ({ itemFk }) => itemFk,
|
format: ({ itemFk }) => itemFk,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
|
columnFilter: {
|
||||||
|
component: 'number',
|
||||||
|
columnClass: 'shrink',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'longName',
|
name: 'longName',
|
||||||
|
@ -79,6 +89,7 @@ const columns = computed(() => [
|
||||||
sortable: true,
|
sortable: true,
|
||||||
headerStyle: 'width: 350px',
|
headerStyle: 'width: 350px',
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
|
columnClass: 'expand',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'producer',
|
name: 'producer',
|
||||||
|
@ -86,6 +97,7 @@ const columns = computed(() => [
|
||||||
label: t('negative.supplier'),
|
label: t('negative.supplier'),
|
||||||
field: ({ producer }) => dashIfEmpty(producer),
|
field: ({ producer }) => dashIfEmpty(producer),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
|
columnClass: 'shrink',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'inkFk',
|
name: 'inkFk',
|
||||||
|
@ -102,6 +114,10 @@ const columns = computed(() => [
|
||||||
field: ({ size }) => size,
|
field: ({ size }) => size,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
|
columnFilter: {
|
||||||
|
component: 'number',
|
||||||
|
columnClass: 'shrink',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'category',
|
name: 'category',
|
||||||
|
@ -116,7 +132,10 @@ const columns = computed(() => [
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('negative.lack'),
|
label: t('negative.lack'),
|
||||||
field: ({ lack }) => lack,
|
field: ({ lack }) => lack,
|
||||||
|
columnFilter: {
|
||||||
|
component: 'number',
|
||||||
|
columnClass: 'shrink',
|
||||||
|
},
|
||||||
sortable: true,
|
sortable: true,
|
||||||
headerStyle: 'padding-left: 33px',
|
headerStyle: 'padding-left: 33px',
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
|
@ -126,9 +145,10 @@ const columns = computed(() => [
|
||||||
align: 'left',
|
align: 'left',
|
||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
title: t('Client ticket list'),
|
title: t('Open details'),
|
||||||
icon: 'preview',
|
icon: 'preview',
|
||||||
action: redirectToCreateView,
|
action: redirectToCreateView,
|
||||||
|
isPrimary: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -148,24 +168,6 @@ onBeforeMount(() => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<template v-if="stateStore.isHeaderMounted()">
|
|
||||||
<Teleport to="#actions-append">
|
|
||||||
<div class="row q-gutter-x-sm">
|
|
||||||
<QBtn
|
|
||||||
flat
|
|
||||||
@click="stateStore.toggleRightDrawer()"
|
|
||||||
round
|
|
||||||
dense
|
|
||||||
icon="menu"
|
|
||||||
>
|
|
||||||
<QTooltip bottom anchor="bottom right">
|
|
||||||
{{ t('globals.collapseMenu') }}
|
|
||||||
</QTooltip>
|
|
||||||
</QBtn>
|
|
||||||
</div>
|
|
||||||
</Teleport>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<QPage class="column items-center">
|
<QPage class="column items-center">
|
||||||
<!-- <FetchData url="Warehouses" @on-fetch="handleWarehouses" auto-load /> -->
|
<!-- <FetchData url="Warehouses" @on-fetch="handleWarehouses" auto-load /> -->
|
||||||
<VnSubToolbar class="bg-vn-dark justify-end">
|
<VnSubToolbar class="bg-vn-dark justify-end">
|
||||||
|
@ -216,6 +218,16 @@ onBeforeMount(() => {
|
||||||
selection: 'multiple',
|
selection: 'multiple',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
|
<template #column-itemFk="{ row }">
|
||||||
|
<!-- <QTd style="height: 76px; flex-direction: row; display: flex"> -->
|
||||||
|
{{ row.itemFk }}
|
||||||
|
<VnImg
|
||||||
|
style="width: 50px; height: 50px; float: inline-end"
|
||||||
|
:id="row.itemFk"
|
||||||
|
class="rounded"
|
||||||
|
></VnImg>
|
||||||
|
<!-- </QTd> -->
|
||||||
|
</template>
|
||||||
</VnTable>
|
</VnTable>
|
||||||
</div>
|
</div>
|
||||||
</QPage>
|
</QPage>
|
||||||
|
|
|
@ -262,6 +262,7 @@ negative:
|
||||||
lack: 'Negative'
|
lack: 'Negative'
|
||||||
inkFk: 'inkFk'
|
inkFk: 'inkFk'
|
||||||
timed: 'timed'
|
timed: 'timed'
|
||||||
|
date: 'Date'
|
||||||
minTimed: 'minTimed'
|
minTimed: 'minTimed'
|
||||||
negativeAction: 'Negative'
|
negativeAction: 'Negative'
|
||||||
totalNegative: 'Total negatives'
|
totalNegative: 'Total negatives'
|
||||||
|
|
Loading…
Reference in New Issue