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>
<QBtn :color="$props.color" :icon="$props.icon" :label="$t($props.label)">
<template #default>
<slot name="extraIcon"></slot>
<QPopupProxy ref="popupProxyRef" style="max-width: none">
<QCard>
<slot :popup="popupProxyRef"></slot>

View File

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

View File

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

View File

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

View File

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