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

View File

@ -435,13 +435,13 @@ const openTab = (id) =>
</QTd> </QTd>
</template> </template>
<template #column-clientFk="{ row }"> <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> <span class="link">{{ row.nickname }}</span>
<CustomerDescriptorProxy :id="row.clientFk" /> <CustomerDescriptorProxy :id="row.clientFk" />
</QTd> </QTd>
</template> </template>
<template #column-salesPersonFk="{ row }"> <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)" /> <span class="link" v-text="dashIfEmpty(row.userName)" />
<WorkerDescriptorProxy :id="row.salesPersonFk" /> <WorkerDescriptorProxy :id="row.salesPersonFk" />
</QTd> </QTd>