From 15ab43c1b143627892df2a9f82f418091b55ed7f Mon Sep 17 00:00:00 2001 From: hasyim_kai Date: Mon, 17 Nov 2025 10:38:21 +0700 Subject: [PATCH] Feat: add verification capthca and form adjustment --- app/assets/svg/wavey-fingerprint.svg | 1 + .../app/resume/_common/select-arrangement.vue | 6 +- app/components/app/resume/add.vue | 33 ++-- app/components/app/resume/verify-dialog.vue | 13 +- app/components/content/resume/list.vue | 12 +- .../pub/my-ui/form/text-captcha.vue | 175 ++++++++++++++++++ app/schemas/resume.schema.ts | 5 +- app/schemas/verification.schema.ts | 19 ++ 8 files changed, 236 insertions(+), 28 deletions(-) create mode 100644 app/assets/svg/wavey-fingerprint.svg create mode 100644 app/components/pub/my-ui/form/text-captcha.vue create mode 100644 app/schemas/verification.schema.ts diff --git a/app/assets/svg/wavey-fingerprint.svg b/app/assets/svg/wavey-fingerprint.svg new file mode 100644 index 00000000..b281297f --- /dev/null +++ b/app/assets/svg/wavey-fingerprint.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/components/app/resume/_common/select-arrangement.vue b/app/components/app/resume/_common/select-arrangement.vue index 9a945d44..7e236ff0 100644 --- a/app/components/app/resume/_common/select-arrangement.vue +++ b/app/components/app/resume/_common/select-arrangement.vue @@ -31,11 +31,9 @@ const { const arrangementTypeOpts = [ { label: 'KRS', value: "krs" }, { label: 'MRS', value: "mrs" }, - { label: 'Pindah IGD', value: "pindahIgd" }, - { label: 'Rujuk', value: "rujuk" }, - { label: 'Rujuk Balik', value: "rujukBalik" }, + { label: 'Rujuk Internal', value: "rujukInternal" }, + { label: 'Rujuk External', value: "rujukExternal" }, { label: 'Meninggal', value: "meninggal" }, - { label: 'Lain Lain', value: "other" }, ] diff --git a/app/components/app/resume/add.vue b/app/components/app/resume/add.vue index d1423735..d5fa3370 100644 --- a/app/components/app/resume/add.vue +++ b/app/components/app/resume/add.vue @@ -19,7 +19,6 @@ import SelectPainScale from './_common/select-pain-scale.vue' import SelectNationalProgramService from './_common/select-national-program-service.vue' import SelectNationalProgramServiceStatus from './_common/select-national-program-service-status.vue' import SelectHospitalLeaveCondition from './_common/select-hospital-leave-condition.vue' -import SelectFollowingArrangement from './_common/select-following-arrangement.vue' import SelectHospitalLeaveMethod from './_common/select-hospital-leave-method.vue' const props = defineProps<{ @@ -58,6 +57,12 @@ const DEFAULT_CONSULTATION_VALUE = { consultation: '', consultationReply: '', }; + +const initialFormValues = { + secondaryDiagnosis: [DEFAULT_SECONDARY_DIAGNOSIS_VALUE], + secondaryOperativeNonOperativeAct: [DEFAULT_SECONDARY_ACTION_VALUE], + consultation: [DEFAULT_CONSULTATION_VALUE], +}