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