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 > -
- -
+