- updated FE form related to new evaluation flow;

This commit is contained in:
Vitalii Kiiko
2025-09-30 14:46:02 +02:00
parent 0ffe86789f
commit 712126fb8e
2 changed files with 10 additions and 10 deletions

View File

@@ -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);
}
}