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