diff --git a/src/modules/02_organizationalNew/components/listView.vue b/src/modules/02_organizationalNew/components/listView.vue index 365ad22db..78a34c112 100644 --- a/src/modules/02_organizationalNew/components/listView.vue +++ b/src/modules/02_organizationalNew/components/listView.vue @@ -106,9 +106,9 @@ async function fetchDataTable(id: string, level: number, action: boolean) { const { id, ...rest } = a ? a : p[0]; const test = { ...e, ...rest }; dataMain.push(test); - posMaster.value = store.fetchPosMaster(dataMain); } }); + posMaster.value = store.fetchPosMaster(dataMain); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/02_organizationalNew/interface/response/organizational.ts b/src/modules/02_organizationalNew/interface/response/organizational.ts index 700f20911..6dd00ece6 100644 --- a/src/modules/02_organizationalNew/interface/response/organizational.ts +++ b/src/modules/02_organizationalNew/interface/response/organizational.ts @@ -103,6 +103,8 @@ interface PosMaster { positionExecutiveField: string; // ด้านทางการบริหาร positionArea: string; // ด้าน/สาขา positionIsSelected: boolean; // เป็นตำแหน่งที่ถูกเลือกในรอบนั้น ๆ หรือไม่? + fullNameCurrentHolder: string | null; + fullNameNextHolder: string | null; positions: Position[]; // ตำแหน่ง } interface Position2 { diff --git a/src/modules/02_organizationalNew/store/organizational.ts b/src/modules/02_organizationalNew/store/organizational.ts index fa7ed8822..ca1af9179 100644 --- a/src/modules/02_organizationalNew/store/organizational.ts +++ b/src/modules/02_organizationalNew/store/organizational.ts @@ -48,7 +48,13 @@ export const useOrganizational = defineStore("organizationalStore", () => { function fetchPosMaster(data: PosMaster[]) { const newPosMaster = data.map((e: PosMaster) => ({ ...e, - positionIsSelected: e.positionIsSelected ? "มี" : "ว่าง", + positionIsSelected: + typeOrganizational.value === "draft" && e.fullNameNextHolder !== null + ? e.fullNameNextHolder + : typeOrganizational.value !== "draft" && + e.fullNameCurrentHolder !== null + ? e.fullNameCurrentHolder + : "ว่าง", posMasterNo: e.orgShortname + e.posMasterNoPrefix + diff --git a/src/modules/04_registry/components/Profile.vue b/src/modules/04_registry/components/Profile.vue index 56157b105..d63efc27e 100644 --- a/src/modules/04_registry/components/Profile.vue +++ b/src/modules/04_registry/components/Profile.vue @@ -153,27 +153,39 @@ - - ยืนยันการตรวจสอบข้อมูล - - - ตรวจสอบข้อมูลแล้ว - +
+ + ยืนยันการตรวจสอบข้อมูล + + + ปลดล็อคให้แก้ไขข้อมูล + + + ตรวจสอบข้อมูลแล้ว + +
-
+
{}, + "ยืนยันการปลดให้แก้ไขข้อมูล", + "ต้องการยืนยันการปลดให้แก้ไขข้อมูลนี้หรือไม่?" + ); +} onMounted(async () => { if (keycloak.tokenParsed != null) { roleKeyregistry.value = await keycloak.tokenParsed.role.includes( @@ -921,6 +947,7 @@ onMounted(async () => { await checIsVerified(); }); +// const isVerified = ref(false); const fetchData = async () => { showLoader(); await http @@ -942,7 +969,6 @@ const fetchData = async () => { leaveReason.value = ` (พ้นจากราชการด้วยสาเหตุ: ${data.leaveReason})`; } reasonStatus.value = reason.length > 0 ? true : false; - isVerified.value = data.isVerified ? data.isVerified : false; }) .catch((e) => { messageError($q, e); @@ -952,7 +978,6 @@ const fetchData = async () => { }); }; -const isVerified = ref(false); async function checIsVerified() { // showLoader(); await http diff --git a/src/modules/04_registry/components/Salary.vue b/src/modules/04_registry/components/Salary.vue index fafd041d7..264cac96a 100644 --- a/src/modules/04_registry/components/Salary.vue +++ b/src/modules/04_registry/components/Salary.vue @@ -671,6 +671,7 @@ + + + + + + diff --git a/src/modules/04_registry/components/salaryNew/SalaryEmployee.vue b/src/modules/04_registry/components/salaryNew/SalaryEmployee.vue new file mode 100644 index 000000000..c39476167 --- /dev/null +++ b/src/modules/04_registry/components/salaryNew/SalaryEmployee.vue @@ -0,0 +1,2065 @@ + + + + diff --git a/src/modules/04_registry/components/salaryNew/SalaryEmployeeTemp.vue b/src/modules/04_registry/components/salaryNew/SalaryEmployeeTemp.vue new file mode 100644 index 000000000..6507285cb --- /dev/null +++ b/src/modules/04_registry/components/salaryNew/SalaryEmployeeTemp.vue @@ -0,0 +1,2110 @@ + + + + diff --git a/src/stores/mixin.ts b/src/stores/mixin.ts index 5d75e3e73..e86afb1be 100644 --- a/src/stores/mixin.ts +++ b/src/stores/mixin.ts @@ -125,14 +125,17 @@ export const useCounterMixin = defineStore("mixin", () => { } let dstTime = ""; if (isTime) { - const H = date.getHours().toString().padStart(2, "0"); - const M = date.getMinutes().toString().padStart(2, "0"); + // const H = date.getHours().toString().padStart(2, "0"); + // const M = date.getMinutes().toString().padStart(2, "0"); + const H = date.getHours().toString().padStart(2); + const M = date.getMinutes().toString().padStart(2); // const S = date.getSeconds().toString().padStart(2, "0") // dstTime = " " + H + ":" + M + ":" + S + " น." dstTime = " " + H + ":" + M + " น."; } return ( - date.getDate().toString().padStart(2, "0") + + // date.getDate().toString().padStart(2, "0") + + date.getDate().toString().padStart(2) + " " + dstMonth + " " +