updated
This commit is contained in:
parent
eb74d42767
commit
1739f5bae3
5 changed files with 75 additions and 62 deletions
|
|
@ -24,7 +24,7 @@ export default {
|
||||||
evaluationWaitCheck: (id: string) => `${evaluation}/wait-check-doc-v2/${id}`,
|
evaluationWaitCheck: (id: string) => `${evaluation}/wait-check-doc-v2/${id}`,
|
||||||
evaluationDoc2: (id: string) => `${evaluation}/doc2/reject/${id}`,
|
evaluationDoc2: (id: string) => `${evaluation}/doc2/reject/${id}`,
|
||||||
evaluationHistory: (id: string) => `${evaluation}/step-history/${id}`,
|
evaluationHistory: (id: string) => `${evaluation}/step-history/${id}`,
|
||||||
evaluationDetail: () => `${env.API_URI}/profile/keycloak/position`,
|
evaluationDetail: () => `${env.API_URI}/profile/keycloak`,
|
||||||
evaluationSignerDoc1: (id: string) => `${evaluation}/doc1-signer/${id}`,
|
evaluationSignerDoc1: (id: string) => `${evaluation}/doc1-signer/${id}`,
|
||||||
evaluationSignerDoc2: (id: string) => `${evaluation}/doc2-signer/${id}`,
|
evaluationSignerDoc2: (id: string) => `${evaluation}/doc2-signer/${id}`,
|
||||||
evaluationDirectorMeetring: (id: string) =>
|
evaluationDirectorMeetring: (id: string) =>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive,watch,onMounted } from "vue";
|
import { ref, reactive, watch, onMounted } from "vue";
|
||||||
import { useRouter, useRoute } from "vue-router";
|
import { useRouter, useRoute } from "vue-router";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
|
|
@ -109,7 +109,7 @@ function onSubmit() {
|
||||||
http
|
http
|
||||||
.post(config.API.evaluationExpertise, formData)
|
.post(config.API.evaluationExpertise, formData)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
router.push(`/evaluate/detail/expertise/${res.data.result.id}`)
|
router.push(`/evaluate/detail/expertise/${res.data.result.id}`);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
|
|
@ -230,7 +230,6 @@ async function onClickDowloadFile(
|
||||||
};
|
};
|
||||||
await genReport(body, fileName); //สร้างไฟล์ต้นแบบ
|
await genReport(body, fileName); //สร้างไฟล์ต้นแบบ
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
@ -373,7 +372,7 @@ async function onClickDowloadFile(
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12">
|
<!-- <div class="col-12">
|
||||||
<q-card bordered>
|
<q-card bordered>
|
||||||
<div class="text-weight-medium bg-grey-1 q-py-sm q-px-md">
|
<div class="text-weight-medium bg-grey-1 q-py-sm q-px-md">
|
||||||
ดาวน์โหลดเอกสาร
|
ดาวน์โหลดเอกสาร
|
||||||
|
|
@ -416,7 +415,7 @@ async function onClickDowloadFile(
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -228,8 +228,8 @@ onMounted(() => {
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style >
|
<style>
|
||||||
.listItem{
|
.listItem {
|
||||||
padding: 5px 0px !important;
|
padding: 5px 0px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ const formDetail = reactive({
|
||||||
async function fetchDetail() {
|
async function fetchDetail() {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.evaluationDetail())
|
.get(config.API.positionBykeycloak())
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
formDetail.userId = data.id;
|
formDetail.userId = data.id;
|
||||||
|
|
@ -71,59 +71,71 @@ async function fetchDetail() {
|
||||||
formDetail.prefix = data.prefix;
|
formDetail.prefix = data.prefix;
|
||||||
formDetail.fullName = `${data.firstName} ${data.lastName}`;
|
formDetail.fullName = `${data.firstName} ${data.lastName}`;
|
||||||
formDetail.position = data.position;
|
formDetail.position = data.position;
|
||||||
formDetail.oc = data.oc;
|
formDetail.oc = data.rootShortName;
|
||||||
formDetail.salary = data.salary ? formattedNumber(data.salary) : "";
|
// formDetail.salary = data.salary ? formattedNumber(data.salary) : ""; // ยังไม่มี
|
||||||
formDetail.positionLevel = data.positionLevel;
|
formDetail.positionLevel = data.posLevelName;
|
||||||
formDetail.posNo = data.posNo;
|
formDetail.posNo = data.rootShortName + data.posMasterNo;
|
||||||
formDetail.birthDate = data.birthDate && date2Thai(data.birthDate);
|
formDetail.birthDate = data.birthDate && date2Thai(data.birthDate);
|
||||||
formDetail.govAge = data.govAge;
|
formDetail.govAge = data.govAge; // ยังไม่มี
|
||||||
formDetail.educations = data.educations;
|
|
||||||
formDetail.certificates = data.certificates.map(
|
|
||||||
(e: CertificatesForm) => ({
|
|
||||||
certificateNo: e.certificateNo,
|
|
||||||
certificateType: e.certificateType,
|
|
||||||
expireDate: date2Thai(e.expireDate),
|
|
||||||
issueDate: date2Thai(e.issueDate),
|
|
||||||
issuer: e.issuer,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
formDetail.salaries = data.salaries.map((e: any) => ({
|
|
||||||
amount: e.amount,
|
|
||||||
date: date2Thai(e.date),
|
|
||||||
mouthSalaryAmount: e.mouthSalaryAmount ? e.mouthSalaryAmount : 0,
|
|
||||||
posNo: e.posNo,
|
|
||||||
position: e.position,
|
|
||||||
positionSalaryAmount: e.positionSalaryAmount
|
|
||||||
? e.positionSalaryAmount
|
|
||||||
: 0,
|
|
||||||
refCommandDate: e.refCommandDate ? e.refCommandDate : "",
|
|
||||||
|
|
||||||
refCommandNo: e.refCommandNo ? e.refCommandNo : "",
|
http.get(config.API.dataUserEducations).then((res) => {
|
||||||
salaryClass: e.salaryClass ? e.salaryClass : "",
|
formDetail.educations = res.data.result;
|
||||||
salaryRef: e.salaryRef ? e.salaryRef : "",
|
});
|
||||||
salaryStatus: e.salaryStatus ? e.salariesStatus : "",
|
|
||||||
//
|
http.get(config.API.dataUserCertificate("certificate")).then((res) => {
|
||||||
oc: "-",
|
formDetail.certificates = res.data.result.map(
|
||||||
lineWork: "-",
|
(e: CertificatesForm) => ({
|
||||||
side: "-",
|
certificateNo: e.certificateNo,
|
||||||
positionType: "-",
|
certificateType: e.certificateType,
|
||||||
level: "-",
|
expireDate: date2Thai(e.expireDate),
|
||||||
positionsAdministrative: "-",
|
issueDate: date2Thai(e.issueDate),
|
||||||
aspectAdministrative: "-",
|
issuer: e.issuer,
|
||||||
}));
|
})
|
||||||
formDetail.trainings = data.trainings.map((e: any) => ({
|
);
|
||||||
dateOrder: date2Thai(e.dateOrder),
|
});
|
||||||
department: e.department,
|
|
||||||
duration: e.duration,
|
http.get(config.API.dataUserSalary).then((res) => {
|
||||||
endDate: date2Thai(e.endDate),
|
formDetail.salaries = res.data.result.map((e: any) => ({
|
||||||
name: e.name,
|
amount: e.amount,
|
||||||
numberOrder: e.numberOrder,
|
date: date2Thai(e.date),
|
||||||
place: e.place,
|
mouthSalaryAmount: e.mouthSalaryAmount ? e.mouthSalaryAmount : 0,
|
||||||
startDate: date2Thai(e.startDate),
|
posNo: e.posNo,
|
||||||
topic: e.topic,
|
position: e.position,
|
||||||
yearly: e.yearly,
|
positionSalaryAmount: e.positionSalaryAmount
|
||||||
}));
|
? e.positionSalaryAmount
|
||||||
formDetail.assessments = data.assessments;
|
: 0,
|
||||||
|
refCommandDate: e.refCommandDate ? e.refCommandDate : "",
|
||||||
|
|
||||||
|
refCommandNo: e.refCommandNo ? e.refCommandNo : "",
|
||||||
|
salaryClass: e.salaryClass ? e.salaryClass : "",
|
||||||
|
salaryRef: e.salaryRef ? e.salaryRef : "",
|
||||||
|
salaryStatus: e.salaryStatus ? e.salariesStatus : "",
|
||||||
|
//
|
||||||
|
oc: "-",
|
||||||
|
lineWork: "-",
|
||||||
|
side: "-",
|
||||||
|
positionType: "-",
|
||||||
|
level: "-",
|
||||||
|
positionsAdministrative: "-",
|
||||||
|
aspectAdministrative: "-",
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
|
||||||
|
http.get(config.API.dataUserCertificate("training")).then((res) => {
|
||||||
|
formDetail.trainings = res.data.result.map((e: any) => ({
|
||||||
|
dateOrder: date2Thai(e.dateOrder),
|
||||||
|
department: e.department,
|
||||||
|
duration: e.duration,
|
||||||
|
endDate: date2Thai(e.endDate),
|
||||||
|
name: e.name,
|
||||||
|
numberOrder: e.numberOrder,
|
||||||
|
place: e.place,
|
||||||
|
startDate: date2Thai(e.startDate),
|
||||||
|
topic: e.topic,
|
||||||
|
yearly: e.yearly,
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
// formDetail.assessments = data.assessments;
|
||||||
emit("update:formDeital", data);
|
emit("update:formDeital", data);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,10 @@ const evaluateMain = () =>
|
||||||
import("@/modules/06_evaluate/views/EvaluateMain.vue");
|
import("@/modules/06_evaluate/views/EvaluateMain.vue");
|
||||||
const evaluateStep = () =>
|
const evaluateStep = () =>
|
||||||
import("@/modules/06_evaluate/components/EvaluateStepMain.vue");
|
import("@/modules/06_evaluate/components/EvaluateStepMain.vue");
|
||||||
const expertPage = () => import('@/modules/06_evaluate/components/ExpertPage.vue')
|
const expertPage = () =>
|
||||||
const expertPageDetail = () => import('@/modules/06_evaluate/components/ExpertPageDetail.vue')
|
import("@/modules/06_evaluate/components/ExpertPage.vue");
|
||||||
|
const expertPageDetail = () =>
|
||||||
|
import("@/modules/06_evaluate/components/ExpertPageDetail.vue");
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
path: "/evaluate",
|
path: "/evaluate",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue