From 712126fb8e8e6a5bdcc6795cb4c9cf236e58c5f2 Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Tue, 30 Sep 2025 14:46:02 +0200 Subject: [PATCH] - updated FE form related to new evaluation flow; --- src/pages/DomandaEditInstructorManager/index.js | 10 +++++----- src/pages/DomandaEditPreInstructor/index.js | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/pages/DomandaEditInstructorManager/index.js b/src/pages/DomandaEditInstructorManager/index.js index 49161e6..d781333 100644 --- a/src/pages/DomandaEditInstructorManager/index.js +++ b/src/pages/DomandaEditInstructorManager/index.js @@ -80,7 +80,7 @@ const DomandaEditInstructorManager = () => { const [isVisibleAppointmentDialog, setIsVisibleAppointmentDialog] = useState(false); const [isVisiblePreTecEvalDialog, setIsVisiblePreTecEvalDialog] = useState(false); const [preTecEvalData, setPreTecEvalData] = useState({ - type: 0, + amendmentDocumentType: 0, pec: '', amount: 0 }); @@ -290,7 +290,7 @@ const DomandaEditInstructorManager = () => { label: __('Nessuna garanzia', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 1 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'NESSUNA_GARANZIA' })); setIsVisiblePreTecEvalDialog(true); } }, @@ -298,7 +298,7 @@ const DomandaEditInstructorManager = () => { label: __('Garanzia MCC', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 2 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'GARANZIA_MCC' })); setIsVisiblePreTecEvalDialog(true); } }, @@ -306,7 +306,7 @@ const DomandaEditInstructorManager = () => { label: __('Garanzia MCC Start-Up', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 3 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'MCC_START_UP' })); setIsVisiblePreTecEvalDialog(true); } }, @@ -314,7 +314,7 @@ const DomandaEditInstructorManager = () => { label: __('Altre garanzie (fideiussioni)', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 4 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'ALTRE_GARANZIE' })); setIsVisiblePreTecEvalDialog(true); } } diff --git a/src/pages/DomandaEditPreInstructor/index.js b/src/pages/DomandaEditPreInstructor/index.js index 77bb74f..21cc569 100644 --- a/src/pages/DomandaEditPreInstructor/index.js +++ b/src/pages/DomandaEditPreInstructor/index.js @@ -80,7 +80,7 @@ const DomandaEditPreInstructor = () => { const [isVisibleAppointmentDialog, setIsVisibleAppointmentDialog] = useState(false); const [isVisiblePreTecEvalDialog, setIsVisiblePreTecEvalDialog] = useState(false); const [preTecEvalData, setPreTecEvalData] = useState({ - type: 0, + amendmentDocumentType: '', pec: '', amount: 0 }); @@ -290,7 +290,7 @@ const DomandaEditPreInstructor = () => { label: __('Nessuna garanzia', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 1 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'NESSUNA_GARANZIA' })); setIsVisiblePreTecEvalDialog(true); } }, @@ -298,7 +298,7 @@ const DomandaEditPreInstructor = () => { label: __('Garanzia MCC', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 2 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'GARANZIA_MCC' })); setIsVisiblePreTecEvalDialog(true); } }, @@ -306,7 +306,7 @@ const DomandaEditPreInstructor = () => { label: __('Garanzia MCC Start-Up', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 3 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'MCC_START_UP' })); setIsVisiblePreTecEvalDialog(true); } }, @@ -314,7 +314,7 @@ const DomandaEditPreInstructor = () => { label: __('Altre garanzie (fideiussioni)', 'gepafin'), icon: 'pi pi-pen-to-square', command: () => { - setPreTecEvalData(prev => ({ ...prev, type: 4 })); + setPreTecEvalData(prev => ({ ...prev, amendmentDocumentType: 'ALTRE_GARANZIE' })); setIsVisiblePreTecEvalDialog(true); } }