Corrections
This commit is contained in:
parent
196d8dde20
commit
2657034360
|
@ -43,7 +43,7 @@ const tableColumnComponents = computed(() => ({
|
||||||
item: {
|
item: {
|
||||||
component: QBtn,
|
component: QBtn,
|
||||||
props: {
|
props: {
|
||||||
color: 'blue',
|
color: 'primary',
|
||||||
flat: true,
|
flat: true,
|
||||||
},
|
},
|
||||||
event: () => ({}),
|
event: () => ({}),
|
||||||
|
@ -54,6 +54,7 @@ const tableColumnComponents = computed(() => ({
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
class: 'input-number',
|
class: 'input-number',
|
||||||
|
dense: true,
|
||||||
},
|
},
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
|
@ -67,6 +68,7 @@ const tableColumnComponents = computed(() => ({
|
||||||
'use-input': true,
|
'use-input': true,
|
||||||
'hide-selected': true,
|
'hide-selected': true,
|
||||||
options: packagingsOptions.value,
|
options: packagingsOptions.value,
|
||||||
|
dense: true,
|
||||||
},
|
},
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
|
@ -76,6 +78,7 @@ const tableColumnComponents = computed(() => ({
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
class: 'input-number',
|
class: 'input-number',
|
||||||
|
dense: true,
|
||||||
},
|
},
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
|
@ -84,6 +87,7 @@ const tableColumnComponents = computed(() => ({
|
||||||
props: {
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
|
dense: true,
|
||||||
},
|
},
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
|
@ -92,6 +96,7 @@ const tableColumnComponents = computed(() => ({
|
||||||
props: {
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
|
dense: true,
|
||||||
},
|
},
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
|
@ -100,6 +105,7 @@ const tableColumnComponents = computed(() => ({
|
||||||
props: {
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
|
dense: true,
|
||||||
},
|
},
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
|
@ -108,6 +114,7 @@ const tableColumnComponents = computed(() => ({
|
||||||
props: {
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
|
dense: true,
|
||||||
},
|
},
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
|
@ -116,6 +123,7 @@ const tableColumnComponents = computed(() => ({
|
||||||
props: {
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
|
dense: true,
|
||||||
},
|
},
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
|
@ -124,6 +132,7 @@ const tableColumnComponents = computed(() => ({
|
||||||
props: {
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
|
dense: true,
|
||||||
},
|
},
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
|
@ -320,17 +329,21 @@ const showLockIcon = (groupingMode, mode) => {
|
||||||
:columns="entriesTableColumns"
|
:columns="entriesTableColumns"
|
||||||
selection="multiple"
|
selection="multiple"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
hide-bottom
|
|
||||||
class="full-width q-mt-md"
|
class="full-width q-mt-md"
|
||||||
:grid="$q.screen.lt.md"
|
:grid="$q.screen.lt.md"
|
||||||
v-model:selected="rowsSelected"
|
v-model:selected="rowsSelected"
|
||||||
|
:no-results-label="t('No results')"
|
||||||
>
|
>
|
||||||
<template #body="props">
|
<template #body="props">
|
||||||
<QTr>
|
<QTr>
|
||||||
<QTd>
|
<QTd>
|
||||||
<QCheckbox v-model="props.selected" />
|
<QCheckbox v-model="props.selected" />
|
||||||
</QTd>
|
</QTd>
|
||||||
<QTd v-for="col in props.cols" :key="col.name">
|
<QTd
|
||||||
|
v-for="col in props.cols"
|
||||||
|
:key="col.name"
|
||||||
|
style="max-width: 100px"
|
||||||
|
>
|
||||||
<component
|
<component
|
||||||
:is="tableColumnComponents[col.name].component"
|
:is="tableColumnComponents[col.name].component"
|
||||||
v-bind="tableColumnComponents[col.name].props"
|
v-bind="tableColumnComponents[col.name].props"
|
||||||
|
@ -353,7 +366,7 @@ const showLockIcon = (groupingMode, mode) => {
|
||||||
showLockIcon(props.row.groupingMode, col.name)
|
showLockIcon(props.row.groupingMode, col.name)
|
||||||
"
|
"
|
||||||
@click="toggleGroupingMode(props.row, col.name)"
|
@click="toggleGroupingMode(props.row, col.name)"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer test"
|
||||||
size="sm"
|
size="sm"
|
||||||
flat
|
flat
|
||||||
dense
|
dense
|
||||||
|
@ -397,7 +410,7 @@ const showLockIcon = (groupingMode, mode) => {
|
||||||
</QTr>
|
</QTr>
|
||||||
<!-- Esta última row es utilizada para agregar un espaciado y así marcar una diferencia visual entre los diferentes buys -->
|
<!-- Esta última row es utilizada para agregar un espaciado y así marcar una diferencia visual entre los diferentes buys -->
|
||||||
<QTr v-if="props.rowIndex !== rows.length - 1" class="separation-row">
|
<QTr v-if="props.rowIndex !== rows.length - 1" class="separation-row">
|
||||||
<QTd colspan="12" style="height: 24px" />
|
<QTd colspan="12" style="height: 16px" />
|
||||||
</QTr>
|
</QTr>
|
||||||
</template>
|
</template>
|
||||||
<template #item="props">
|
<template #item="props">
|
||||||
|
@ -464,4 +477,5 @@ es:
|
||||||
Confirm deletion: Confirmar eliminación
|
Confirm deletion: Confirmar eliminación
|
||||||
Are you sure you want to delete this buy?: Seguro que quieres eliminar esta compra?
|
Are you sure you want to delete this buy?: Seguro que quieres eliminar esta compra?
|
||||||
Are you sure you want to delete this buys?: Seguro que quieres eliminar estas compras?
|
Are you sure you want to delete this buys?: Seguro que quieres eliminar estas compras?
|
||||||
|
No results: Sin resultados
|
||||||
</i18n>
|
</i18n>
|
||||||
|
|
|
@ -7,6 +7,7 @@ import CardDescriptor from 'components/ui/CardDescriptor.vue';
|
||||||
import VnLv from 'src/components/ui/VnLv.vue';
|
import VnLv from 'src/components/ui/VnLv.vue';
|
||||||
import useCardDescription from 'src/composables/useCardDescription';
|
import useCardDescription from 'src/composables/useCardDescription';
|
||||||
|
|
||||||
|
import { useState } from 'src/composables/useState';
|
||||||
import { toDate } from 'src/filters';
|
import { toDate } from 'src/filters';
|
||||||
import { usePrintService } from 'composables/usePrintService';
|
import { usePrintService } from 'composables/usePrintService';
|
||||||
|
|
||||||
|
@ -25,6 +26,7 @@ const $props = defineProps({
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { openReport } = usePrintService();
|
const { openReport } = usePrintService();
|
||||||
|
const state = useState();
|
||||||
|
|
||||||
const entryFilter = {
|
const entryFilter = {
|
||||||
include: [
|
include: [
|
||||||
|
@ -71,6 +73,8 @@ const data = ref(useCardDescription());
|
||||||
const setData = (entity) =>
|
const setData = (entity) =>
|
||||||
(data.value = useCardDescription(entity.supplier.nickname, entity.id));
|
(data.value = useCardDescription(entity.supplier.nickname, entity.id));
|
||||||
|
|
||||||
|
const currentEntry = computed(() => state.get('entry'));
|
||||||
|
|
||||||
const getEntryRedirectionFilter = (entry) => {
|
const getEntryRedirectionFilter = (entry) => {
|
||||||
let entryTravel = entry && entry.travel;
|
let entryTravel = entry && entry.travel;
|
||||||
|
|
||||||
|
@ -126,17 +130,17 @@ const showEntryReport = () => {
|
||||||
:value="entity.travel?.warehouseOut?.name"
|
:value="entity.travel?.warehouseOut?.name"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #icons="{ entity }">
|
<template v-if="currentEntry" #icons>
|
||||||
<QCardActions class="q-gutter-x-md">
|
<QCardActions class="q-gutter-x-md">
|
||||||
<QIcon
|
<QIcon
|
||||||
v-if="entity.isExcludedFromAvailable"
|
v-if="currentEntry.isExcludedFromAvailable"
|
||||||
name="vn:inventory"
|
name="vn:inventory"
|
||||||
color="primary"
|
color="primary"
|
||||||
size="xs"
|
size="xs"
|
||||||
>
|
>
|
||||||
<QTooltip>{{ t('Inventory entry') }}</QTooltip>
|
<QTooltip>{{ t('Inventory entry') }}</QTooltip>
|
||||||
</QIcon>
|
</QIcon>
|
||||||
<QIcon v-if="entity.isRaid" name="vn:net" color="primary" size="xs">
|
<QIcon v-if="currentEntry.isRaid" name="vn:net" color="primary" size="xs">
|
||||||
<QTooltip>{{ t('Virtual entry') }}</QTooltip>
|
<QTooltip>{{ t('Virtual entry') }}</QTooltip>
|
||||||
</QIcon>
|
</QIcon>
|
||||||
</QCardActions>
|
</QCardActions>
|
||||||
|
|
|
@ -288,7 +288,7 @@ onMounted(async () => {
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-itemFk="{ row }">
|
<template #body-cell-itemFk="{ row }">
|
||||||
<QTd @click.stop>
|
<QTd @click.stop>
|
||||||
<QBtn flat color="blue">
|
<QBtn flat color="primary">
|
||||||
{{ row.itemFk }}
|
{{ row.itemFk }}
|
||||||
</QBtn>
|
</QBtn>
|
||||||
</QTd>
|
</QTd>
|
||||||
|
@ -300,7 +300,7 @@ onMounted(async () => {
|
||||||
</template>
|
</template>
|
||||||
<template #body-cell-entryFk="{ row }">
|
<template #body-cell-entryFk="{ row }">
|
||||||
<QTd @click.stop>
|
<QTd @click.stop>
|
||||||
<QBtn flat color="blue">
|
<QBtn flat color="primary">
|
||||||
<EntryDescriptorProxy :id="row.entryFk" />
|
<EntryDescriptorProxy :id="row.entryFk" />
|
||||||
{{ row.entryFk }}
|
{{ row.entryFk }}
|
||||||
</QBtn>
|
</QBtn>
|
||||||
|
|
Loading…
Reference in New Issue