refs #7529 create WorkerPIT #442
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue