From beae965d5310568ba081f5256da771c9ea4fa207 Mon Sep 17 00:00:00 2001 From: Savien/Woo Jun Han <49388937+MrMirror21@users.noreply.github.com> Date: Tue, 22 Oct 2024 16:28:43 +0900 Subject: [PATCH 1/9] =?UTF-8?q?=E2=9C=A8=20chore=208.1=20api=20=EB=AC=B8?= =?UTF-8?q?=EC=84=9C=20=ED=83=80=EC=9E=85=20=EC=A0=95=EC=9D=98=20#24?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/api/document.ts | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/types/api/document.ts diff --git a/src/types/api/document.ts b/src/types/api/document.ts new file mode 100644 index 00000000..686b4cac --- /dev/null +++ b/src/types/api/document.ts @@ -0,0 +1,49 @@ +export type DocumentStatus = + | 'TEMPORARY_SAVE' + | 'SUBMITTED' + | 'BEFORE_CONFIRMATION' + | 'REQUEST' + | 'CONFIRMATION'; + +export type DocumentInfo = { + id: number; + pdf_url?: string; + hwp_url?: string; + word_url?: string; + status?: DocumentStatus; +}; + +export type IntegratedApplicationInfo = { + id: number; + pdf_url?: string; + hwp_url?: string; + word_url?: string; +}; + +export type DocumentsSummaryResponse = { + part_time_employment_permits?: DocumentInfo; + standard_labor_contract?: DocumentInfo; + integrated_application?: DocumentInfo; +}; + +export enum DocumentType { + PART_TIME_PERMIT = 'part_time_employment_permits', + LABOR_CONTRACT = 'standard_labor_contract', + INTEGRATED_APPLICATION = 'integrated_application', +} + +// 문서 타입별 정보를 담은 객체 +export const DocumentTypeInfo = { + [DocumentType.PART_TIME_PERMIT]: { + name: 'Part-Time Work Permit Form', + key: 'part_time_employment_permits', + }, + [DocumentType.LABOR_CONTRACT]: { + name: 'Employment Contract', + key: 'standard_labor_contract', + }, + [DocumentType.INTEGRATED_APPLICATION]: { + name: 'Integrated Application Form', + key: 'integrated_application', + }, +} as const; From 77b0bfc4e655b3533b156f3aff81dc98a989229d Mon Sep 17 00:00:00 2001 From: Savien/Woo Jun Han <49388937+MrMirror21@users.noreply.github.com> Date: Tue, 22 Oct 2024 16:29:37 +0900 Subject: [PATCH 2/9] =?UTF-8?q?=E2=9C=A8=20feat:=20=EC=84=9C=EB=A5=98=20?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20=EB=A9=94=EC=9D=B8=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EB=A0=88=EC=9D=B4=EC=95=84=EC=9B=83=20=EC=9E=91?= =?UTF-8?q?=EC=84=B1=20#24?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ApplicationDocumentsPage.tsx | 53 +++++++++++++++++++ src/router.tsx | 5 ++ 2 files changed, 58 insertions(+) create mode 100644 src/pages/ApplicationDocuments/ApplicationDocumentsPage.tsx diff --git a/src/pages/ApplicationDocuments/ApplicationDocumentsPage.tsx b/src/pages/ApplicationDocuments/ApplicationDocumentsPage.tsx new file mode 100644 index 00000000..bd12b735 --- /dev/null +++ b/src/pages/ApplicationDocuments/ApplicationDocumentsPage.tsx @@ -0,0 +1,53 @@ +import BottomButtonPanel from '@/components/Common/BottomButtonPanel'; +import Button from '@/components/Common/Button'; +import BaseHeader from '@/components/Common/Header/BaseHeader'; +import DocumentCardList from '@/components/Document/DocumentCardList'; +import { DocumentsSummaryResponse } from '@/types/api/document'; + +const mockDocumentsSummaryResponse: DocumentsSummaryResponse = { + part_time_employment_permits: { + id: 1001, + pdf_url: "https://example.com/permits/part_time_1001.pdf", + hwp_url: "https://example.com/permits/part_time_1001.hwp", + word_url: "https://example.com/permits/part_time_1001.docx", + status: "SUBMITTED" + }, + standard_labor_contract: { + id: 2001, + pdf_url: "https://example.com/contracts/standard_2001.pdf", + hwp_url: "https://example.com/contracts/standard_2001.hwp", + word_url: "https://example.com/contracts/standard_2001.docx", + status: "CONFIRMATION" + }, + +}; + +const ApplicationDocumentsPage = () => { + {/*integrated_application: { + id: 3001, + pdf_url: "https://example.com/applications/integrated_3001.pdf", + hwp_url: "https://example.com/applications/integrated_3001.hwp", + word_url: "https://example.com/applications/integrated_3001.docx" + }*/} + return ( +
+ You can request the employer to complete the part-time employment + permit form by clicking Submit. After the request is made, editing + will no longer be possible. +
++ * Please carefully review the information to ensure its accuracy. +
++ The employer has completed the part-time employment permit form. + Please review the content and if there are any issues, submit a + Request. If everything is fine, complete the process by selecting + Confirm. +
++ * Please note that after confirming, no further edits can be made +
++ The employer is in the process of completing the part-time + employment permit form +
++ The employer is revising the document according to the requested + changes. +
++ The employer is in the process of completing the part-time + employment permit form +
+