diff --git a/src/components/ViewPDF.vue b/src/components/ViewPDF.vue
index 26f1b456b..e69de29bb 100644
--- a/src/components/ViewPDF.vue
+++ b/src/components/ViewPDF.vue
@@ -1,321 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ดาวน์โหลดไฟล์ PDF
-
-
-
-
-
-
-
diff --git a/src/modules/04_registryPerson/views/detailView.vue b/src/modules/04_registryPerson/views/detailView.vue
index 9690c31c5..7e8c150aa 100644
--- a/src/modules/04_registryPerson/views/detailView.vue
+++ b/src/modules/04_registryPerson/views/detailView.vue
@@ -42,7 +42,6 @@ const DialogResign = defineAsyncComponent(
const DialogTransfer = defineAsyncComponent(
() => import("@/modules/04_registryPerson/components/DialogTransfer.vue")
);
-const ViewPDF = defineAsyncComponent(() => import("@/components/ViewPDF.vue"));
/** use*/
const $q = useQuasar();
@@ -81,10 +80,6 @@ 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([
@@ -441,11 +436,7 @@ async function onClickDownloadKp7(type: string) {
.get(url)
.then(async (res) => {
const data = await res.data.result;
- selectedDataFile.value = data;
- titleDialogViewPDF.value = fileName;
- modalDialogViewPDF.value = true;
-
- // await genReport(data, `${fileName}`, type);
+ await genReport(data, `${fileName}`, type);
})
.catch((err) => {
messageError($q, err);
@@ -1266,12 +1257,6 @@ onMounted(async () => {
-
-