0
0
Fork 0

refactor: refs #7353 order correction

This commit is contained in:
Jorge Penadés 2024-08-29 13:04:54 +02:00
parent 76fa89c8bd
commit 58e47b3f24
2 changed files with 12 additions and 8 deletions

View File

@ -147,7 +147,9 @@ const openTab = (id) =>
dense
flat
@click="$refs.table.reload()"
/>
>
<QTooltip>{{ $t('globals.refresh') }}</QTooltip>
</QBtn>
<QBtn
v-if="selectedRows.length"
icon="delete"
@ -157,8 +159,8 @@ const openTab = (id) =>
color="primary"
@click="
openConfirmationModal(
t('salesOrdersTable.deleteConfirmTitle'),
t('salesOrdersTable.deleteConfirmMessage'),
$t('salesOrdersTable.deleteConfirmTitle'),
$t('salesOrdersTable.deleteConfirmMessage'),
removeOrders
)
"
@ -180,15 +182,17 @@ const openTab = (id) =>
</template>
<template #column-clientFk="{ row }">
<QTd>
<QTd @click.stop>
<span class="link" v-text="row.clientName" :title="row.clientName" />
<CustomerDescriptorProxy :id="row.clientFk" />
</QTd>
</template>
<template #column-salesPersonFk="{ row }">
<span class="link" v-text="row.salesPerson" />
<WorkerDescriptorProxy :id="row.salesPersonFk" dense />
<QTd @click.stop>
<span class="link" v-text="row.salesPerson" />
<WorkerDescriptorProxy :id="row.salesPersonFk" dense />
</QTd>
</template>
</VnTable>
</template>

View File

@ -435,13 +435,13 @@ const openTab = (id) =>
</QTd>
</template>
<template #column-clientFk="{ row }">
<QTd class="no-padding" @click.stop.prevent :title="row.nickname">
<QTd class="no-padding" @click.stop :title="row.nickname">
<span class="link">{{ row.nickname }}</span>
<CustomerDescriptorProxy :id="row.clientFk" />
</QTd>
</template>
<template #column-salesPersonFk="{ row }">
<QTd class="no-padding" @click.stop.prevent :title="row.userName">
<QTd class="no-padding" @click.stop :title="row.userName">
<span class="link" v-text="dashIfEmpty(row.userName)" />
<WorkerDescriptorProxy :id="row.salesPersonFk" />
</QTd>