From 6c18fbeeb3e0cf9bb5e0f70eba5818022ddde512 Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Tue, 28 Oct 2025 14:30:12 +0100 Subject: [PATCH] - added archiving of signed application PDF; --- .../DomandaEditInstructorManager/index.js | 79 ++++++++++++++++--- .../components/ArchiveDocument/index.js | 7 +- src/pages/DomandaEditPreInstructor/index.js | 79 ++++++++++++++++--- 3 files changed, 145 insertions(+), 20 deletions(-) diff --git a/src/pages/DomandaEditInstructorManager/index.js b/src/pages/DomandaEditInstructorManager/index.js index 34e5e81..081e241 100644 --- a/src/pages/DomandaEditInstructorManager/index.js +++ b/src/pages/DomandaEditInstructorManager/index.js @@ -60,6 +60,7 @@ import { SplitButton } from 'primereact/splitbutton'; import { FileUpload } from 'primereact/fileupload'; import { defaultMaxFileSize, mimeTypes, rejectionReasons } from '../../configData'; import getFormatedFileSizeText from '../../helpers/getFormatedFileSizeText'; +import ArchiveDocument from '../DomandaEditPreInstructor/components/ArchiveDocument'; const APP_EVALUATION_FLOW_ID = process.env.REACT_APP_EVALUATION_FLOW_ID; const APP_HUB_ID = process.env.REACT_APP_HUB_ID; @@ -225,7 +226,7 @@ const DomandaEditInstructorManager = () => { const getCallback = (resp) => { if (resp.status === 'SUCCESS') { setData(getFormattedData(resp.data)); - setFinalDialogData((prev) => ({...prev, motivation: resp.data.motivation})); + setFinalDialogData((prev) => ({ ...prev, motivation: resp.data.motivation })); updateFlagsForSoccorso(resp.data); if (resp.data.evaluationVersion === 'V2') { @@ -1167,7 +1168,7 @@ const DomandaEditInstructorManager = () => { ?
{__('Motivazione:', 'gepafin')} -
+
{renderHtmlContent(data.motivation)} {rejectionFiles()}
@@ -1329,6 +1330,31 @@ const DomandaEditInstructorManager = () => { {data.evaluationVersion === 'V2' ?
+

{__('Domanda PDF firmato', 'gepafin')}

+ {data.signedDocument && !isEmpty(data.signedDocument) + ?
    +
  1. +
    +
    {renderHtmlContent(data.signedDocument.fileName)}
    +
    + { + setData((prev) => ({ + ...prev, + documentAttachmentId: attachId + })); + }} + isSignedDocument={true} + docAttachmentId={data.signedDocument.documentAttachmentId}/> +
    +
    +
  2. +
+ :

{__('Nessun documento firmato', 'gepafin')}

}

{__('Documenti allegati', 'gepafin')}

{!isEmpty(data.files) ? {
+

{__('Domanda PDF firmato', 'gepafin')}

+ {data.signedDocument && !isEmpty(data.signedDocument) + ?
    +
  1. +
    +
    {renderHtmlContent(data.signedDocument.fileName)}
    +
    + { + setData((prev) => ({ + ...prev, + documentAttachmentId: attachId + })); + }} + isSignedDocument={true} + docAttachmentId={data.signedDocument.documentAttachmentId}/> +
    +
    +
  2. +
+ :

{__('Nessun documento firmato', 'gepafin')}

}

{__('Documenti allegati', 'gepafin')}

{!isEmpty(data.files) ? {
: null} {operationType === 'reject' && APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE' ?
-
: null}
-