ผลการประเมินการทดลองปฏิบัติหน้าที่ราชการ
+
+ ดาวน์โหลด
+
diff --git a/src/modules/15_probationReport/components/03_AssignPage.vue b/src/modules/15_probationReport/components/03_AssignPage.vue
index bacc4b0..0806c88 100644
--- a/src/modules/15_probationReport/components/03_AssignPage.vue
+++ b/src/modules/15_probationReport/components/03_AssignPage.vue
@@ -12,10 +12,15 @@ import { useDataStore } from "@/stores/data";
import type {
AppointTopic,
AppointTopicMain,
+ FileType,
} from "@/modules/15_probationReport/interface/Main";
import genReport from "@/plugins/genreport";
+const dataProbation = defineModel
("dataProbation", {
+ required: true,
+});
+
const $q = useQuasar();
const isEdit = ref(false);
const router = useRouter();
@@ -871,17 +876,13 @@ function downloadFile(response: any, filename: string) {
* download file
* @param type type file
*/
-async function clickdownloadFile(type: string) {
+async function clickdownloadFile() {
showLoader();
await http
- .get(config.API.reportAssign(type, probationStore.assignId))
+ .get(config.API.fileByPath(dataProbation.value[0].pathname))
.then(async (res) => {
- const data = res.data.result;
- await genReport(
- data,
- `แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ-${fullname.value}`,
- type
- );
+ const data = res.data.downloadUrl;
+ window.open(data);
hideLoader();
})
.catch(async (e) => {
@@ -1099,32 +1100,18 @@ onMounted(async () => {
แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ
-
+
ดาวน์โหลด
-
-
-
-
-
- ไฟล์ .pdf
-
-
-
- ไฟล์ .docx
-
-
-
diff --git a/src/modules/15_probationReport/views/main.vue b/src/modules/15_probationReport/views/main.vue
index c0813df..8ad588d 100644
--- a/src/modules/15_probationReport/views/main.vue
+++ b/src/modules/15_probationReport/views/main.vue
@@ -8,11 +8,7 @@ import config from "@/app.config";
import { useCounterMixin } from "@/stores/mixin";
import { useProbationReport } from "@/modules/15_probationReport/store";
-import type {
- DataSurvey,
- ProbationReportType,
- FileType,
-} from "@/modules/15_probationReport/interface/Main";
+import type { FileType } from "@/modules/15_probationReport/interface/Main";
import SurveyPage from "@/modules/15_probationReport/components/01_SurveyPage.vue";
import ResultPage from "@/modules/15_probationReport/components/02_ResultPage.vue";
@@ -29,36 +25,6 @@ const isData = ref(true);
const dataProbation = ref([]);
const dataResult1 = ref([]);
const dataResult2 = ref([]);
-// const dataProbation = ref("");
-// const dataResult1 = ref("");
-// const dataResult2 = ref("");
-
-const formDataResult = ref({
- develop_orientation_score: 0,
- develop_self_learning_score: 0,
- develop_training_seminar_score: 0,
- develop_other_training_score: 0,
- develop_total_score: 0,
- develop_orientation_percent: 0,
- develop_self_learning_percent: 0,
- develop_training_seminar_percent: 0,
- develop_other_training_percent: 0,
- develop_total_percent: 0,
- develop_result: 0,
- achievement_score: 0,
- achievement_score_total: 0,
- achievement_percent: 0,
- achievement_result: 0,
- behavior_score: 0,
- behavior_score_total: 0,
- behavior_percent: 0,
- behavior_result: 0,
- sum_score: 0,
- sum_percent: 0,
- reason: "",
- pass_result: 0,
- evaluate_date: new Date(),
-});
const dev_options = reactive([
{ value: 1, label: "พัฒนาครบ 3 ส่วน" },
@@ -92,13 +58,13 @@ async function getSurveyData() {
getSalary(
res.data.result.assignId,
"ทดลองงาน",
- "รายงานผลครั้งที่ 1",
+ "ประเมินผลคณะกรรมการครั้งที่ 1",
dataResult1
),
getSalary(
res.data.result.assignId,
"ทดลองงาน",
- "รายงานผลครั้งที่ 2",
+ "ประเมินผลคณะกรรมการครั้งที่ 2",
dataResult2
),
]);
@@ -202,20 +168,24 @@ onMounted(async () => {
-
+