refs #7529 create WorkerPIT #442

Merged
carlossa merged 22 commits from 7529-workerPIT into dev 2024-11-25 13:05:33 +00:00
1 changed files with 9 additions and 5 deletions
Showing only changes of commit 1aefad58e9 - Show all commits

View File

@ -13,7 +13,7 @@ import CrudModel from 'components/CrudModel.vue';
const route = useRoute();
const { t } = useI18n();
const router = useRouter();
const disabilityGradesOptions = ref();
const toCustomerAddressCreate = () => {
router.push({ name: 'CustomerAddressCreate' });
};
@ -21,11 +21,16 @@ const toCustomerAddressCreate = () => {
<template>
<FetchData
url="disabilityGrades"
url="DisabilityGrades"
@on-fetch="(data) => (disabilityGradesOptions = data)"
auto-load
/>
<FormModel :url="`Workers/${route.params.id}/irpf`" auto-load model="WorkerIrpfs">
<FormModel
url="WorkerIrpfs"
:filter="{ where: { workerFk: route.params.id } }"
auto-load
model="WorkerIrpfs"
>
<template #form="{ data }">
<VnRow>
<VnInput
@ -95,9 +100,8 @@ const toCustomerAddressCreate = () => {
<CrudModel
ref="workerPitCrudRef"
data-key="workerPit"
:url="`Workers/${route.params.id}/workerRelative`"
url="WorkerRelatives"
auto-load
model="WorkerRelatives"
>
<template #body="{ rows }">
<QTable