- added required files for special amendment;
- fixed typo;
This commit is contained in:
@@ -33,10 +33,10 @@ const getBandoLabel = (status) => {
|
|||||||
return __('Ammisibile', 'gepafin');
|
return __('Ammisibile', 'gepafin');
|
||||||
|
|
||||||
case 'TECHNICAL_EVALUATION':
|
case 'TECHNICAL_EVALUATION':
|
||||||
return __('Valutazione technico-finanziaria', 'gepafin');
|
return __('Valutazione tecnico-finanziaria', 'gepafin');
|
||||||
|
|
||||||
case 'AWAITING_TECHNICAL_EVALUATION':
|
case 'AWAITING_TECHNICAL_EVALUATION':
|
||||||
return __('Post valutazione technico-finanziaria', 'gepafin');
|
return __('Post valutazione tecnico-finanziaria', 'gepafin');
|
||||||
|
|
||||||
case 'DUE':
|
case 'DUE':
|
||||||
return __('In scadenza', 'gepafin');
|
return __('In scadenza', 'gepafin');
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ const DomandaEditInstructorManager = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const header = renderHeader();
|
const header = renderHeader();
|
||||||
const technicalEvalItems = [
|
const tecnicalEvalItems = [
|
||||||
{
|
{
|
||||||
label: __('Nessuna garanzia', 'gepafin'),
|
label: __('Nessuna garanzia', 'gepafin'),
|
||||||
icon: 'pi pi-pen-to-square',
|
icon: 'pi pi-pen-to-square',
|
||||||
@@ -1103,7 +1103,7 @@ const DomandaEditInstructorManager = () => {
|
|||||||
? __('Punteggio sufficiente per passaggio alla valutazione tecnica ed economico finanziaria', 'gepafin')
|
? __('Punteggio sufficiente per passaggio alla valutazione tecnica ed economico finanziaria', 'gepafin')
|
||||||
: __('Punteggio non sufficiente per passaggio alla valutazione tecnica ed economico finanziaria', 'gepafin')}
|
: __('Punteggio non sufficiente per passaggio alla valutazione tecnica ed economico finanziaria', 'gepafin')}
|
||||||
severity={isAdmissible ? 'success' : 'warning'}
|
severity={isAdmissible ? 'success' : 'warning'}
|
||||||
model={technicalEvalItems}/> : null}
|
model={tecnicalEvalItems}/> : null}
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={!data.id || !['TECHNICAL_EVALUATION'].includes(data.applicationStatus) || evaluationBlockedForUser(data)}
|
disabled={!data.id || !['TECHNICAL_EVALUATION'].includes(data.applicationStatus) || evaluationBlockedForUser(data)}
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ const DomandaEditPreInstructor = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const header = renderHeader();
|
const header = renderHeader();
|
||||||
const technicalEvalItems = [
|
const tecnicalEvalItems = [
|
||||||
{
|
{
|
||||||
label: __('Nessuna garanzia', 'gepafin'),
|
label: __('Nessuna garanzia', 'gepafin'),
|
||||||
icon: 'pi pi-pen-to-square',
|
icon: 'pi pi-pen-to-square',
|
||||||
@@ -1103,7 +1103,7 @@ const DomandaEditPreInstructor = () => {
|
|||||||
? __('Punteggio sufficiente per passaggio alla valutazione tecnica ed economico finanziaria', 'gepafin')
|
? __('Punteggio sufficiente per passaggio alla valutazione tecnica ed economico finanziaria', 'gepafin')
|
||||||
: __('Punteggio non sufficiente per passaggio alla valutazione tecnica ed economico finanziaria', 'gepafin')}
|
: __('Punteggio non sufficiente per passaggio alla valutazione tecnica ed economico finanziaria', 'gepafin')}
|
||||||
severity={isAdmissible ? 'success' : 'warning'}
|
severity={isAdmissible ? 'success' : 'warning'}
|
||||||
model={technicalEvalItems}/> : null}
|
model={tecnicalEvalItems}/> : null}
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={!data.id || !['TECHNICAL_EVALUATION'].includes(data.applicationStatus) || evaluationBlockedForUser(data)}
|
disabled={!data.id || !['TECHNICAL_EVALUATION'].includes(data.applicationStatus) || evaluationBlockedForUser(data)}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ const SoccorsoEditBeneficiario = () => {
|
|||||||
const goToArchivePage = () => {
|
const goToArchivePage = () => {
|
||||||
navigate(`/domande`);
|
navigate(`/domande`);
|
||||||
}
|
}
|
||||||
|
console.log('data', data.amendmentType)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const parsedId = parseInt(id);
|
const parsedId = parseInt(id);
|
||||||
const entityId = !isNaN(parsedId) ? parsedId : 0;
|
const entityId = !isNaN(parsedId) ? parsedId : 0;
|
||||||
@@ -115,6 +115,15 @@ const SoccorsoEditBeneficiario = () => {
|
|||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const isSpecialAmendmentValidationFailed = () => {
|
||||||
|
if (data.amendmentType === 'SPECIAL') {
|
||||||
|
const formValues = getValues();
|
||||||
|
const amendmentDocuments = formValues.amendmentDocuments;
|
||||||
|
return !amendmentDocuments || amendmentDocuments.length === 0;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
const onSubmit = () => {
|
const onSubmit = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -413,6 +422,9 @@ const SoccorsoEditBeneficiario = () => {
|
|||||||
errors={errors}
|
errors={errors}
|
||||||
defaultValue={formInitialData.amendmentDocuments ? formInitialData.amendmentDocuments : []}
|
defaultValue={formInitialData.amendmentDocuments ? formInitialData.amendmentDocuments : []}
|
||||||
accept={[]}
|
accept={[]}
|
||||||
|
config={{
|
||||||
|
required: true
|
||||||
|
}}
|
||||||
source="amendment"
|
source="amendment"
|
||||||
sourceId={data.id}
|
sourceId={data.id}
|
||||||
multiple={true}
|
multiple={true}
|
||||||
@@ -432,7 +444,7 @@ const SoccorsoEditBeneficiario = () => {
|
|||||||
{data.id
|
{data.id
|
||||||
? <Button
|
? <Button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={isAsyncRequest || data.status !== 'AWAITING'}
|
disabled={isAsyncRequest || data.status !== 'AWAITING' || isSpecialAmendmentValidationFailed()}
|
||||||
onClick={doUpdateAmendmentAndCompleteTask}
|
onClick={doUpdateAmendmentAndCompleteTask}
|
||||||
label={__('Invia documenti', 'gepafin')}
|
label={__('Invia documenti', 'gepafin')}
|
||||||
icon="pi pi-save" iconPos="right"/> : null}
|
icon="pi pi-save" iconPos="right"/> : null}
|
||||||
|
|||||||
Reference in New Issue
Block a user