diff --git a/src/modules/06_evaluate/components/EvaluateStepMain.vue b/src/modules/06_evaluate/components/EvaluateStepMain.vue
index fcecc82..0cdf723 100644
--- a/src/modules/06_evaluate/components/EvaluateStepMain.vue
+++ b/src/modules/06_evaluate/components/EvaluateStepMain.vue
@@ -250,18 +250,53 @@ function checkSelectForm() {
/** function บันทักตรวจสอบคุณสมบัติ*/
async function saveStep1() {
showLoader();
+
const salaries = formDetail.value.salaries.map((e: any) => ({
- amount: e.amount,
- date: e.date,
- mouthSalaryAmount: e.mouthSalaryAmount ? e.mouthSalaryAmount : 0,
+ // amount: e.amount,
+ // date: e.date,
+ // mouthSalaryAmount: e.mouthSalaryAmount ? e.mouthSalaryAmount : 0,
+ // posNo: e.posNo,
+ // position: e.position,
+ // positionSalaryAmount: e.positionSalaryAmount ? e.positionSalaryAmount : 0,
+ // refCommandDate: e.refCommandDate,
+ // refCommandNo: e.refCommandNo ? e.refCommandNo : "",
+ // salaryClass: e.salaryClass ? e.salaryClass : "",
+ // salaryRef: e.salaryRef ? e.salaryRef : "",
+ // salaryStatus: e.salaryStatus ? e.salariesStatus : "",
+ profileId: e.profileId,
+ commandCode: e.commandCode,
+ commandNo: e.commandNo,
+ commandYear: e.commandYear ? Number(e.commandYear) : 0,
+ commandDateAffect: e.commandDateAffect,
+ commandDateSign: e.commandDateSign,
+ posNoAbb: e.posNoAbb,
posNo: e.posNo,
- position: e.position,
- positionSalaryAmount: e.positionSalaryAmount ? e.positionSalaryAmount : 0,
- refCommandDate: e.refCommandDate,
- refCommandNo: e.refCommandNo ? e.refCommandNo : "",
- salaryClass: e.salaryClass ? e.salaryClass : "",
- salaryRef: e.salaryRef ? e.salaryRef : "",
- salaryStatus: e.salaryStatus ? e.salariesStatus : "",
+ positionName: e.positionName,
+ positionType: e.positionType,
+ positionLevel: e.positionLevel,
+ positionLine: e.positionLine,
+ positionPathSide: e.positionPathSide,
+ positionExecutive: e.positionExecutive,
+ amount: e.amount ? e.amount.toString() : "0",
+ amountSpecial: e.amountSpecial ? e.amountSpecial.toString() : "0",
+ positionSalaryAmount: e.positionSalaryAmount
+ ? e.positionSalaryAmount.toString()
+ : "0",
+ mouthSalaryAmount: e.mouthSalaryAmount
+ ? e.mouthSalaryAmount.toString()
+ : "0",
+ orgRoot: e.orgRoot,
+ orgChild1: e.orgChild1,
+ orgChild2: e.orgChild2,
+ orgChild3: e.orgChild3,
+ orgChild4: e.orgChild4,
+ remark: e.remark,
+ commandId: e.commandId,
+ isGovernment: e.isGovernment,
+ positionCee: e.positionCee,
+ commandName: e.commandName,
+ posNumCodeSit: e.posNumCodeSit,
+ posNumCodeSitAbb: e.posNumCodeSitAbb,
}));
const educations = formDetail.value.educations.map((e: any) => ({
diff --git a/src/modules/06_evaluate/components/ExpertPageDetail.vue b/src/modules/06_evaluate/components/ExpertPageDetail.vue
index 1469831..904e092 100644
--- a/src/modules/06_evaluate/components/ExpertPageDetail.vue
+++ b/src/modules/06_evaluate/components/ExpertPageDetail.vue
@@ -283,9 +283,15 @@ async function onClickDowloadFile(
? { salary: dataPerson.formData.salary ? dataPerson.formData.salary : "" }
: null,
- tp === "EV1_006" ? { lastTwoYear: (currentYear - 2).toString() } : null,
- tp === "EV1_006" ? { lastOneYear: (currentYear - 1).toString() } : null,
- tp === "EV1_006" ? { currentYear: currentYear.toString() } : null,
+ tp === "EV1_006"
+ ? {
+ years: {
+ lastTwoYear: toThaiNumber(currentYear - 2 + 543),
+ lastOneYear: toThaiNumber(currentYear - 1 + 543),
+ currentYear: toThaiNumber(currentYear + 543),
+ },
+ }
+ : null,
tp === "EV1_006" ? { commanderFullname: formData.commanderFullname } : null,
tp === "EV1_006" ? { commanderPosition: formData.commanderPosition } : null,
tp === "EV1_006" ? { commanderOrg: "" } : null,
@@ -307,6 +313,7 @@ async function onClickDowloadFile(
tp === "EV1_010" ? { subject: formData.subject } : null
);
+
const body = {
template: tp,
reportName: templateName,
@@ -315,6 +322,10 @@ async function onClickDowloadFile(
await genReport(body, fileName); //สร้างไฟล์ต้นแบบ
}
+function toThaiNumber(input: number | string) {
+ return input.toString().replace(/\d/g, (d) => "๐๑๒๓๔๕๖๗๘๙"[parseInt(d)]);
+}
+
/**
* function fetch ลิงก์อัปโหลดไฟล์
* @param volume เล่ม
diff --git a/src/modules/06_evaluate/components/PopupPosition.vue b/src/modules/06_evaluate/components/PopupPosition.vue
new file mode 100644
index 0000000..c4a72dd
--- /dev/null
+++ b/src/modules/06_evaluate/components/PopupPosition.vue
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+ {{ data.name }} {{ data.time }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/modules/06_evaluate/components/step/step1.vue b/src/modules/06_evaluate/components/step/step1.vue
index 120d061..f1c0cb5 100644
--- a/src/modules/06_evaluate/components/step/step1.vue
+++ b/src/modules/06_evaluate/components/step/step1.vue
@@ -9,6 +9,7 @@ import type {
} from "@/modules/06_evaluate/interface/evalute";
import PopupCheckFeatures from "@/modules/06_evaluate/components/PopupCheckFeatures.vue";
+import PopupPosition from "@/modules/06_evaluate/components/PopupPosition.vue";
/** use*/
const store = useEvaluateStore();
@@ -24,6 +25,7 @@ const education = ref();
const emit = defineEmits(["update:spec"]);
const modal = ref(false);
+const modalPosition = ref(false);
const show = ref(false);
const formData = reactive({
@@ -69,6 +71,10 @@ function closeModal() {
modal.value = false;
}
+function onViewDataPosition() {
+ modalPosition.value = true;
+}
+
/**hook lifecycle*/
onMounted(() => {
props.data && fetchCheckSpec(props.data);
@@ -120,7 +126,19 @@ onMounted(() => {
/>
- ประวัติการรับราชการ
+ ประวัติการรับราชการ
+
+ ข้อมูลประวัติการรับราชการ
+
+
@@ -223,6 +241,8 @@ onMounted(() => {
:close-modal="closeModal"
:educations="educations"
/>
+
+