fix: refs #7943 use summary #873

Merged
jorgep merged 2 commits from 7943-fixWorker into dev 2024-10-25 09:54:15 +00:00
3 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ import WorkerFilter from '../WorkerFilter.vue';
<template>
<VnCard
data-key="Worker"
base-url="Workers"
custom-url="Workers/summary"
Review

Acordado con @jgallego para este caso en específico

Acordado con @jgallego para este caso en específico
:descriptor="WorkerDescriptor"
:filter-panel="WorkerFilter"
search-data-key="WorkerList"

View File

@ -45,7 +45,7 @@ onBeforeMount(async () => {
ref="summary"
:url="`Workers/summary`"
:filter="{ where: { id: entityId } }"
data-key="WorkerSummary"
data-key="Worker"
>
<template #header="{ entity }">
<div>{{ entity.id }} - {{ entity.firstName }} {{ entity.lastName }}</div>

View File

@ -169,7 +169,7 @@ async function autofillBic(worker) {
</script>
<template>
Review

El del card no tiene que ser el mismo que el del listado

El del card no tiene que ser el mismo que el del listado
<VnSearchbar
data-key="Worker"
data-key="WorkerList"
:label="t('Search worker')"
:info="t('You can search by worker id or name')"
/>
@ -191,13 +191,13 @@ async function autofillBic(worker) {
/>
<RightMenu>
<template #right-panel>
<WorkerFilter data-key="Worker" />
<WorkerFilter data-key="WorkerList" />
</template>
</RightMenu>
<VnTable
v-if="defaultPayMethod"
ref="tableRef"
data-key="Worker"
data-key="WorkerList"
url="Workers/filter"
:create="{
urlCreate: 'Workers/new',