From b379a9bc947cc9960c74fb745e38edc6701fe8ab Mon Sep 17 00:00:00 2001 From: Abizrh Date: Thu, 20 Nov 2025 13:04:27 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat=20(general-consent):=20display?= =?UTF-8?q?=20file=20url=20in=20diagnose=20dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/content/general-consent/form.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/components/content/general-consent/form.vue b/app/components/content/general-consent/form.vue index e26dbac1..bfc21472 100644 --- a/app/components/content/general-consent/form.vue +++ b/app/components/content/general-consent/form.vue @@ -37,6 +37,7 @@ const model = ref({ witness2: '', }) +const fileUrl = ref('') const isLoading = reactive({ isTableLoading: false, }) @@ -76,7 +77,6 @@ const loadEntryForEdit = async (id: number) => { const data = result.body?.data || {} const value = JSON.parse(data.value || '{}') - console.log('Mapping data:', value) model.value.witness1 = value?.witness1 || '' model.value.witness2 = value?.witness2 || '' model.value.informant = value?.informant || '' @@ -103,6 +103,9 @@ async function actionHandler(type: string) { return } if (type === 'print') { + const data = await getDetail(recordId.value) + const detail = data.body?.data + fileUrl.value = detail?.fileUrl isOpenDiagnose.value = true return } @@ -173,8 +176,9 @@ provide('icdPreview', icdPreview) size="xl" prevent-outside > -
- -
+