- updated FE form related to new evaluation flow;
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user