diff --git a/src/components/ViewPDF.vue b/src/components/ViewPDF.vue
index e69de29bb..26f1b456b 100644
--- a/src/components/ViewPDF.vue
+++ b/src/components/ViewPDF.vue
@@ -0,0 +1,321 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ดาวน์โหลดไฟล์ PDF
+
+
+
+
+
+
+
diff --git a/src/modules/04_registryPerson/views/detailView.vue b/src/modules/04_registryPerson/views/detailView.vue
index 7e8c150aa..9690c31c5 100644
--- a/src/modules/04_registryPerson/views/detailView.vue
+++ b/src/modules/04_registryPerson/views/detailView.vue
@@ -42,6 +42,7 @@ const DialogResign = defineAsyncComponent(
const DialogTransfer = defineAsyncComponent(
() => import("@/modules/04_registryPerson/components/DialogTransfer.vue")
);
+const ViewPDF = defineAsyncComponent(() => import("@/components/ViewPDF.vue"));
/** use*/
const $q = useQuasar();
@@ -80,6 +81,10 @@ const formDetail = ref(); //ข้อมูลส่วนตั
const modalDialogResign = ref(false); //ป๊อบอัพขอลาออก
const modalDialogTransfer = ref(false); //ป๊อบอัพขอโอน
const modalDialogRetired = ref(false); //ป๊อบอัพข้อมูลการพ้นจากราชการ
+const modalDialogViewPDF = ref(false); //ป๊อบอัพแสดงไฟล์ PDF
+
+const selectedDataFile = ref(undefined); //ไฟล์ PDF ที่เลือกแสดง
+const titleDialogViewPDF = ref(""); //ชื่อไฟล์ PDF ที่เลือกแสดง
//รายการเมนูออกคำสั่งข้าราชการ
const baseItemsMenu = ref([
@@ -436,7 +441,11 @@ async function onClickDownloadKp7(type: string) {
.get(url)
.then(async (res) => {
const data = await res.data.result;
- await genReport(data, `${fileName}`, type);
+ selectedDataFile.value = data;
+ titleDialogViewPDF.value = fileName;
+ modalDialogViewPDF.value = true;
+
+ // await genReport(data, `${fileName}`, type);
})
.catch((err) => {
messageError($q, err);
@@ -1257,6 +1266,12 @@ onMounted(async () => {
+
+