fix ==> evaluate

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-12-16 09:26:09 +07:00
parent 39f7f59407
commit bb92b9e3eb

View file

@ -14,8 +14,6 @@ import genReport from "@/plugins/genreport";
/** importType*/ /** importType*/
import type { FileEvaluationRefRef } from "@/modules/12_evaluatePersonal/interface/index/evalute"; import type { FileEvaluationRefRef } from "@/modules/12_evaluatePersonal/interface/index/evalute";
/** importStore*/
/** uer*/ /** uer*/
const store = useEvaluateDetailStore(); const store = useEvaluateDetailStore();
const $q = useQuasar(); const $q = useQuasar();
@ -50,9 +48,7 @@ const fileEvaluationRef: FileEvaluationRefRef = {
fileEvaluation86: fileEvaluation86Ref, fileEvaluation86: fileEvaluation86Ref,
}; };
/** /** function ดาวน์โหลดไฟล์ต้นแบบ*/
* function ดาวนโหลดไฟลนแบบ
*/
async function onClickDowloadFile( async function onClickDowloadFile(
tp: string, tp: string,
templateName: string, templateName: string,
@ -69,12 +65,13 @@ async function onClickDowloadFile(
data: data, data: data,
}; };
await genReport(body, fileName); await genReport(body, fileName);
hideLoader();
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); messageError($q, e);
}) })
.finally(() => {}); .finally(() => {
hideLoader();
});
} }
/** /**
@ -136,9 +133,7 @@ function fileUpLoad(url: string, file: any) {
}); });
} }
/** /** function ยืนยันผลการพิจารณา */
* function นยนผลการพจารณา
*/
async function confirmApprove() { async function confirmApprove() {
const fileEvaluationValues = [ const fileEvaluationValues = [
fileEvaluation81, fileEvaluation81,
@ -213,9 +208,7 @@ async function confirmApprove() {
}, 100); }, 100);
} }
/** /** function ยืนยันผลการพิจารณา*/
* function นยนผลการพจารณา
*/
function nextStep() { function nextStep() {
showLoader(); showLoader();
http http
@ -234,9 +227,8 @@ function nextStep() {
} }
const downloadDocEditUrl = ref<string>(""); const downloadDocEditUrl = ref<string>("");
/**
* function ตรวจสอบไฟลแกไข /** function ตรวจสอบไฟล์แก้ไข*/
*/
async function checkDocEdit() { async function checkDocEdit() {
showLoader(); showLoader();
await http await http
@ -305,9 +297,7 @@ const author = ref<string>(""); //เจ้าของผลงาน
const subject = ref<string>(""); // const subject = ref<string>(""); //
const assignedPosition = ref<string>(""); // const assignedPosition = ref<string>(""); //
/** /** function เรียกข้อมูลผลงาน*/
* function เรยกขอมลผลงาน
*/
async function fetchDataSigner() { async function fetchDataSigner() {
showLoader(); showLoader();
await http await http
@ -319,8 +309,8 @@ async function fetchDataSigner() {
subject.value = data.subjectDoc2; subject.value = data.subjectDoc2;
assignedPosition.value = data.assignedPosition; assignedPosition.value = data.assignedPosition;
nameOfWork.value = data.authorDoc2; nameOfWork.value = data.subjectDoc2;
nameOfOwner.value = data.subjectDoc2; nameOfOwner.value = data.authorDoc2;
position.value = data.assignedPosition; position.value = data.assignedPosition;
} }
}) })