Merge pull request 'fix: refs #7943 use summary' (!873) from 7943-fixWorker into dev
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
Reviewed-on: #873 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
1b05a5173d
|
@ -6,7 +6,7 @@ import WorkerFilter from '../WorkerFilter.vue';
|
||||||
<template>
|
<template>
|
||||||
<VnCard
|
<VnCard
|
||||||
data-key="Worker"
|
data-key="Worker"
|
||||||
base-url="Workers"
|
custom-url="Workers/summary"
|
||||||
:descriptor="WorkerDescriptor"
|
:descriptor="WorkerDescriptor"
|
||||||
:filter-panel="WorkerFilter"
|
:filter-panel="WorkerFilter"
|
||||||
search-data-key="WorkerList"
|
search-data-key="WorkerList"
|
||||||
|
|
|
@ -45,7 +45,7 @@ onBeforeMount(async () => {
|
||||||
ref="summary"
|
ref="summary"
|
||||||
:url="`Workers/summary`"
|
:url="`Workers/summary`"
|
||||||
:filter="{ where: { id: entityId } }"
|
:filter="{ where: { id: entityId } }"
|
||||||
data-key="WorkerSummary"
|
data-key="Worker"
|
||||||
>
|
>
|
||||||
<template #header="{ entity }">
|
<template #header="{ entity }">
|
||||||
<div>{{ entity.id }} - {{ entity.firstName }} {{ entity.lastName }}</div>
|
<div>{{ entity.id }} - {{ entity.firstName }} {{ entity.lastName }}</div>
|
||||||
|
|
|
@ -169,7 +169,7 @@ async function autofillBic(worker) {
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<VnSearchbar
|
<VnSearchbar
|
||||||
data-key="Worker"
|
data-key="WorkerList"
|
||||||
:label="t('Search worker')"
|
:label="t('Search worker')"
|
||||||
:info="t('You can search by worker id or name')"
|
:info="t('You can search by worker id or name')"
|
||||||
/>
|
/>
|
||||||
|
@ -191,13 +191,13 @@ async function autofillBic(worker) {
|
||||||
/>
|
/>
|
||||||
<RightMenu>
|
<RightMenu>
|
||||||
<template #right-panel>
|
<template #right-panel>
|
||||||
<WorkerFilter data-key="Worker" />
|
<WorkerFilter data-key="WorkerList" />
|
||||||
</template>
|
</template>
|
||||||
</RightMenu>
|
</RightMenu>
|
||||||
<VnTable
|
<VnTable
|
||||||
v-if="defaultPayMethod"
|
v-if="defaultPayMethod"
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
data-key="Worker"
|
data-key="WorkerList"
|
||||||
url="Workers/filter"
|
url="Workers/filter"
|
||||||
:create="{
|
:create="{
|
||||||
urlCreate: 'Workers/new',
|
urlCreate: 'Workers/new',
|
||||||
|
|
Loading…
Reference in New Issue