feat: refs #6321 changes

This commit is contained in:
Javier Segarra 2025-02-03 23:29:56 +01:00
parent 859071ca4d
commit b7e3401d06
5 changed files with 8 additions and 37 deletions

View File

@ -26,6 +26,7 @@ const popupProxyRef = ref(null);
<template> <template>
<QBtn :color="$props.color" :icon="$props.icon" :label="$t($props.label)"> <QBtn :color="$props.color" :icon="$props.icon" :label="$t($props.label)">
<template #default> <template #default>
<slot name="extraIcon"></slot>
<QPopupProxy ref="popupProxyRef" style="max-width: none"> <QPopupProxy ref="popupProxyRef" style="max-width: none">
<QCard> <QCard>
<slot :popup="popupProxyRef"></slot> <slot :popup="popupProxyRef"></slot>

View File

@ -113,7 +113,7 @@ const debtWarning = computed(() => {
<QTooltip>{{ t('Allowed substitution') }}</QTooltip> <QTooltip>{{ t('Allowed substitution') }}</QTooltip>
</QIcon> </QIcon>
<QIcon <QIcon
v-if="customer.isFreezed" v-if="customer?.isFreezed"
name="vn:frozen" name="vn:frozen"
size="xs" size="xs"
color="primary" color="primary"

View File

@ -419,7 +419,7 @@ function handleLocation(data, location) {
<VnTable <VnTable
ref="tableRef" ref="tableRef"
:data-key="dataKey" :data-key="dataKey"
url="Clients/filter" url="Clients/extendedListFilter"
:create="{ :create="{
urlCreate: 'Clients/createWithUser', urlCreate: 'Clients/createWithUser',
title: t('globals.pageTitles.customerCreate'), title: t('globals.pageTitles.customerCreate'),

View File

@ -87,24 +87,6 @@ const filterTable = { stateFk: 0, warehouseFk: useState().getUser().value.wareho
auto-load auto-load
/> />
<QIcon size="md" name="exposure" color="negative" />
<QIcon size="md" name="edit" color="negative" />
<QIcon size="md" name="shopping_cart" color="negative" />
<QIcon size="md" name="production_quantity_limits" color="negative" />
<QIcon size="md" name="playlist_add" color="negative" />
<QIcon size="md" name="task_alt" color="negative" />
<QIcon size="md" name="fact_check" color="negative" />
<QIcon size="md" name="inventory" color="negative" />
<QIcon size="md" name="receipt_long" color="negative" />
<QIcon size="md" name="sync" color="negative" />
<QIcon size="md" name="confirmation_number" color="negative" />
<QIcon size="md" name="airplane_ticket" color="negative" />
<QBadge color="negative" floating>
<!-- <QIcon size="md" name="highlight_off" color="white" /> -->
<QIcon size="md" name="edit" color="white" />
<QIcon size="md" name="sync" color="white" />
</QBadge>
<QIcon size="md" name="confirmation_number" color="negative" />
<TicketLackTable <TicketLackTable
ref="tableRef" ref="tableRef"
:filter="filterTable" :filter="filterTable"
@ -115,12 +97,11 @@ const filterTable = { stateFk: 0, warehouseFk: useState().getUser().value.wareho
<QBtn <QBtn
data-cy="transferLines" data-cy="transferLines"
color="primary" color="primary"
icon="vn:splitline"
:disable="!(selectedRows.length === 1)" :disable="!(selectedRows.length === 1)"
> >
<template #default> <template #default>
<QIcon name="vn:splitline" /> <QIcon name="vn:splitline" />
<QIcon name="vn:item" /> <QIcon name="vn:ticket" />
<QTooltip>{{ t('ticketSale.transferLines') }} </QTooltip> <QTooltip>{{ t('ticketSale.transferLines') }} </QTooltip>
<TicketTransferProxy <TicketTransferProxy
@ -153,9 +134,9 @@ const filterTable = { stateFk: 0, warehouseFk: useState().getUser().value.wareho
data-cy="changeItem" data-cy="changeItem"
icon="sync" icon="sync"
:disable="selectedRows.length < 1" :disable="selectedRows.length < 1"
:label="t('negative.buttonsUpdate.item')"
:tooltip="t('negative.detail.modal.changeItem.title')" :tooltip="t('negative.detail.modal.changeItem.title')"
> >
<template #extraIcon> <QIcon name="vn:item" /> </template>
<template v-slot="{ popup }"> <template v-slot="{ popup }">
<ChangeItemDialog <ChangeItemDialog
ref="changeItemDialogRef" ref="changeItemDialogRef"
@ -167,9 +148,9 @@ const filterTable = { stateFk: 0, warehouseFk: useState().getUser().value.wareho
data-cy="changeState" data-cy="changeState"
icon="sync" icon="sync"
:disable="selectedRows.length < 1" :disable="selectedRows.length < 1"
:label="t('negative.buttonsUpdate.state')"
:tooltip="t('negative.detail.modal.changeState.title')" :tooltip="t('negative.detail.modal.changeState.title')"
> >
<template #extraIcon> <QIcon name="vn:eye" /> </template>
<template v-slot="{ popup }"> <template v-slot="{ popup }">
<ChangeStateDialog <ChangeStateDialog
ref="changeStateDialogRef" ref="changeStateDialogRef"
@ -181,10 +162,10 @@ const filterTable = { stateFk: 0, warehouseFk: useState().getUser().value.wareho
data-cy="changeQuantity" data-cy="changeQuantity"
icon="sync" icon="sync"
:disable="selectedRows.length < 1" :disable="selectedRows.length < 1"
:label="t('negative.buttonsUpdate.quantity')"
:tooltip="t('negative.detail.modal.changeQuantity.title')" :tooltip="t('negative.detail.modal.changeQuantity.title')"
@click="showChangeQuantityDialog = true" @click="showChangeQuantityDialog = true"
> >
<template #extraIcon> <QIcon name="exposure" /> </template>
<template v-slot="{ popup }"> <template v-slot="{ popup }">
<ChangeQuantityDialog <ChangeQuantityDialog
ref="changeQuantityDialogRef" ref="changeQuantityDialogRef"

View File

@ -57,17 +57,6 @@ const columns = computed(() => [
columnClass: 'expand', columnClass: 'expand',
columnFilter: false, columnFilter: false,
}, },
{
name: 'saleFk',
label: t('negative.detail.saleFk'),
align: 'left',
sortable: true,
columnFilter: {
component: 'input',
type: 'number',
},
columnClass: 'shrink',
},
{ {
name: 'ticketFk', name: 'ticketFk',
label: t('negative.detail.ticketFk'), label: t('negative.detail.ticketFk'),
@ -327,7 +316,7 @@ function onBuysFetched(data) {
<template #column-nickname="{ row }"> <template #column-nickname="{ row }">
<span class="link" @click.stop> <span class="link" @click.stop>
{{ row.nickname }} {{ row.nickname }}
<CustomerDescriptorProxy :id="row.itemFk" /> <CustomerDescriptorProxy :id="row.customerId" />
</span> </span>
</template> </template>
<template #column-ticketFk="{ row }"> <template #column-ticketFk="{ row }">