{
-
- ประวัติแก้ไขบันทึกวันที่ไม่ได้รับเงินเดือนฯ
+
-
+ ดาวน์โหลด
+
+
+ ประวัติแก้ไขบันทึกวันที่ไม่ได้รับเงินเดือนฯ
+
+
{{
@@ -398,6 +435,7 @@ onMounted(async () => {
+
{
.fix_top {
justify-content: start !important;
+ margin-top: 10px;
}
diff --git a/src/modules/10_registry/04_Achievement/01_Certificate.vue b/src/modules/10_registry/04_Achievement/01_Certificate.vue
index 2234bdc..6ec2af0 100644
--- a/src/modules/10_registry/04_Achievement/01_Certificate.vue
+++ b/src/modules/10_registry/04_Achievement/01_Certificate.vue
@@ -6,6 +6,7 @@ import { ref, reactive, onMounted } from "vue";
import http from "@/plugins/http";
import config from "@/app.config";
import { useDataStore } from "@/stores/data";
+import { useRegistryDataStore } from "@/modules/10_registry/store/Main";
import type { CertificateDetail } from "@/modules/10_registry/interface/index/Main";
@@ -18,6 +19,7 @@ const dataPerson = useDataStore();
const mixin = useCounterMixin();
const { showLoader, hideLoader, messageError, date2Thai, onSearchDataTable } =
mixin;
+const { getPathUploadFlie } = useRegistryDataStore();
const idByRow = ref("");
const rows = ref([]);
@@ -216,6 +218,9 @@ const columnsHistory = ref([
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
]);
+
+const fileGroup = ref("เอกสารใบอนุญาตประกอบวิชาชีพ");
+
function onHistory(id: string) {
modalHistory.value = true;
idByRow.value = id;
@@ -263,6 +268,11 @@ function getHistory() {
});
}
+async function onDownloadFile(id: string, profileId: string) {
+ const data = await getPathUploadFlie(fileGroup.value, profileId, id);
+ window.open(data.downloadUrl, "_blank");
+}
+
function onSearch() {
rows.value = onSearchDataTable(
filter.value,
@@ -333,6 +343,7 @@ onMounted(async () => {
{{ col.label }}
+
@@ -349,6 +360,20 @@ onMounted(async () => {
{{ col.value ? col.value : "-" }}