diff --git a/index.html b/index.html index 657cc7754..0e3d5d42a 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - ระบบทรัพยากรบุคคล + ระบบบริหารทรัพยากรบุคคล
diff --git a/src/api/06_retirement/api.retirement.ts b/src/api/06_retirement/api.retirement.ts index 7d1b8731d..756927995 100644 --- a/src/api/06_retirement/api.retirement.ts +++ b/src/api/06_retirement/api.retirement.ts @@ -27,14 +27,20 @@ export default { listResign: () => `${retirement}/resign`, resignReport: `${retirement}/resign/report`, resingByid: (id: string) => `${retirement}/resign/${id}`, - resignConfirm: (role: String, id: string) => `${retirement}/resign/${role}/confirm/${id}`, - resignReject: (role: String, id: string) => `${retirement}/resign/${role}/reject/${id}`, + resignConfirm: (role: String, id: string) => + `${retirement}/resign/${role}/confirm/${id}`, + resignReject: (role: String, id: string) => + `${retirement}/resign/${role}/reject/${id}`, listExitInterview: () => `${retirement}/resign/questionnaire`, - commentExitInterview: (id:string) => `${retirement}/resign/questionnaire/comment/${id}`, + commentExitInterview: (id: string) => + `${retirement}/resign/questionnaire/comment/${id}`, questionExitInterview: () => `${retirement}/resign/questionnaire/question`, ExitInterviewByid: (id: string) => `${retirement}/resign/questionnaire/${id}`, ExitInterviewReport: `${retirement}/resign/questionnaire/report`, - AppointInterview: (id: string) => `${retirement}/resign/questionnaire/appoint/${id}`, + AppointInterview: (id: string) => + `${retirement}/resign/questionnaire/appoint/${id}`, + resignConditions: (id: string) => `${retirement}/resign/debt/${id}`, + // ปลดออก retirementDischarge, listDischarge: () => `${retirement}/discharge`, @@ -58,8 +64,5 @@ export default { editDetail: (retireId: string) => `${retirement}/detail/${retireId}`, // ตำถาม Exit interview - questionnaireList: () => `${retirement}/resign/questionnaire/question` - - - + questionnaireList: () => `${retirement}/resign/questionnaire/question`, }; diff --git a/src/api/manage/api.position.ts b/src/api/manage/api.position.ts index 0dd3d422b..f8e561107 100644 --- a/src/api/manage/api.position.ts +++ b/src/api/manage/api.position.ts @@ -62,7 +62,7 @@ export default { listPositionSidePublishedHistory: `${positionSide}history/published-history`, /** - * api ตำแหน่งประเภท + * api ประเภทตำแหน่ง */ positionType, listPositionTypeHistory: `${positionType}history`, diff --git a/src/assets/structChartData.ts b/src/assets/structChartData.ts index 1277ee406..04fd0d6d5 100644 --- a/src/assets/structChartData.ts +++ b/src/assets/structChartData.ts @@ -10,7 +10,7 @@ * - offcier : เป็น Array ของ Object ที่เก็บตำแหน่งระดับเจ้าหน้าที่ * - children : เป็น Array ของหน่วยงานย่อย ซึ่ง Root ของ children ต้องเป็น Object ของหน่วยงานเสมอ * - Object ส่วนที่เป็นตำแหน่งประกอบด้วย - * - positionID : Unique ID ของตำแหน่งประเภทนั้น เงื่อนไขเหมือน deptID + * - positionID : Unique ID ของประเภทตำแหน่งนั้น เงื่อนไขเหมือน deptID * - positionName : ชื่อตำแหน่ง * - positionNum : เลขที่ประจำตำแหน่ง เช่น กทข. * - totalPositionCount : จำนวนตำแหน่งทั้งหมด @@ -25,7 +25,7 @@ const chartData = { heads: [ // Array ของผู้บริหารในหน่วยงานนั้น ๆ (ผู้อำนวยการ/หัวหน้า) { - positionID: 2, // Unique ID ของตำแหน่งประเภทนั้น (ถ้ามี?) + positionID: 2, // Unique ID ของประเภทตำแหน่งนั้น (ถ้ามี?) positionName: "ผู้อำนวยการสูง", // ชื่อตำแหน่ง positionNum: "(หัวหน้าสำนักงาน)", // เลขที่ประจำตำแหน่ง (ถ้ามี) เช่นพวก กทข. totalPositionCount: 1, // จำนวนตำแหน่งทั้งหมด diff --git a/src/components/CardProfile.vue b/src/components/CardProfile.vue index f39aa12e9..af2afff71 100644 --- a/src/components/CardProfile.vue +++ b/src/components/CardProfile.vue @@ -16,7 +16,7 @@ import { useCounterMixin } from "@/stores/mixin"; /** use*/ const $q = useQuasar(); -const { messageError, findOrgName } = useCounterMixin(); +const { messageError, findOrgNameOld, findOrgName } = useCounterMixin(); /** propsDataProfile*/ const props = defineProps({ @@ -44,16 +44,32 @@ function fetchDataProfile(data: DataProfile) { profile.fullName = `${data.prefix ?? ""}${data.firstName ?? ""} ${ data.lastName ?? "" } `; - profile.position = - data.position == "" || data.position === null ? "-" : data.position; - if (data.posTypeName && data.posLevelName) { - profile.positionLevel = `${data.posTypeName} (${data.posLevelName})`; - } else if (data.posTypeName) { - profile.positionLevel = `${data.posTypeName}`; - } else if (data.posLevelName) { - profile.positionLevel = `(${data.posLevelName})`; - } else profile.positionLevel = "-"; - profile.organization = findOrgName(data); + + if (data["posTypeNameOld"] !== undefined) { + profile.position = + data.positionOld == "" || data.positionOld == null + ? "-" + : data.positionOld; + if (data.posTypeNameOld && data.posLevelNameOld) { + profile.positionLevel = `${data.posTypeNameOld} (${data.posLevelNameOld})`; + } else if (data.posTypeNameOld) { + profile.positionLevel = `${data.posTypeNameOld}`; + } else if (data.posLevelNameOld) { + profile.positionLevel = `(${data.posLevelNameOld})`; + } else profile.positionLevel = "-"; + profile.organization = findOrgNameOld(data); + } else { + profile.position = + data.position == "" || data.position == null ? "-" : data.position; + if (data.posTypeName && data.posLevelName) { + profile.positionLevel = `${data.posTypeName} (${data.posLevelName})`; + } else if (data.posTypeName) { + profile.positionLevel = `${data.posTypeName}`; + } else if (data.posLevelName) { + profile.positionLevel = `(${data.posLevelName})`; + } else profile.positionLevel = "-"; + profile.organization = findOrgName(data); + } } function fetchProfile(id: string) { @@ -113,7 +129,9 @@ watch(
-
{{ props.type == 'employee' ? 'ตำแหน่ง':'ตำแหน่งในสายงาน'}}
+
+ {{ props.type == "employee" ? "ตำแหน่ง" : "ตำแหน่งในสายงาน" }} +
{{ profile.position }}
@@ -121,7 +139,9 @@ watch(
-
{{ props.type == 'employee' ? 'กลุ่มงาน':'ประเภทตำแหน่ง'}}
+
+ {{ props.type == "employee" ? "กลุ่มงาน" : "ประเภทตำแหน่ง" }} +
{{ profile.positionLevel }}
diff --git a/src/components/Dialogs/AddPersonal.vue b/src/components/Dialogs/AddPersonal.vue index 40c173324..1613ddf08 100644 --- a/src/components/Dialogs/AddPersonal.vue +++ b/src/components/Dialogs/AddPersonal.vue @@ -118,11 +118,11 @@ async function searchInput() { keyword: search.value, }; await http - .post(config.API.searchPersonal(), body) + .post(config.API.orgSearchPersonal(), body) .then((res) => { const data = res.data.result; - const list = data.map((e: ResponsePreson) => ({ - personId: e.personId, + const list = data.map((e: any) => ({ + personId: e.id, idcard: e.idcard, prefix: e.prefix, firstName: e.firstName, @@ -130,11 +130,31 @@ async function searchInput() { name: `${e.prefix}${e.firstName} ${e.lastName}`, posNo: e.posNo ?? "-", position: e.position ?? "-", - positionLevel: e.positionLevel ?? "-", - salary: e.salaries ?? "-", + positionLevel: e.positionLevelName ?? "-", + salary: e.salary ?? "-", organization: e.organization ?? "-", phone: e.phone ?? "-", email: e.email ?? "-", + root: e.root, + rootId: e.rootId, + rootShortName: e.rootShortName, + child1: e.child1, + child1Id: e.child1Id, + child1ShortName: e.child1ShortName, + child2: e.child2, + child2Id: e.child2Id, + child2ShortName: e.child2ShortName, + child3: e.child3, + child3Id: e.child3Id, + child3ShortName: e.child3ShortName, + child4: e.child4, + child4Id: e.child4Id, + child4ShortName: e.child4ShortName, + posMasterNo: e.posMasterNo, + posTypeId: e.posTypeId, + posTypeName: e.posTypeName, + posLevelId: e.posLevelId, + posLevelName: e.posLevelName, })); rows.value = list; @@ -206,17 +226,17 @@ watch( label="คำค้น" :rules="[(val) => !!val || `กรุณากรอกคำค้น`]" > - +
diff --git a/src/components/Dialogs/DialogOrgSelectEmployee.vue b/src/components/Dialogs/DialogOrgSelectEmployee.vue index 8912c0480..b4f942fdf 100644 --- a/src/components/Dialogs/DialogOrgSelectEmployee.vue +++ b/src/components/Dialogs/DialogOrgSelectEmployee.vue @@ -227,9 +227,9 @@ async function getDataTable(id: string, level: number = 0) { const body = { node: level, nodeId: id, - position: posType.value ? posType.value : "", + position: position.value ? position.value : "", posLevel: posLevel.value ? posLevel.value : "", - posType: position.value ? position.value : "", + posType: posType.value ? posType.value : "", isAll: isAll.value, isBlank: isBlank.value, typeCommand: type.value, diff --git a/src/components/Dialogs/PopupPersonal.vue b/src/components/Dialogs/PopupPersonal.vue index 0e54b366e..554cfc7bd 100644 --- a/src/components/Dialogs/PopupPersonal.vue +++ b/src/components/Dialogs/PopupPersonal.vue @@ -326,7 +326,6 @@ watch(modal, (newValue) => { :model-value="goverment.oc === '' ? '-' : goverment.oc" label="สังกัด" autogrow - >
@@ -366,7 +365,7 @@ watch(modal, (newValue) => { borderless readonly :model-value="goverment.positionType" - label="ประเภท" + label="ประเภทตำแหน่ง" />
@@ -374,7 +373,7 @@ watch(modal, (newValue) => { borderless readonly :model-value="goverment.positionLevel" - label="ระดับ" + label="ระดับตำแหน่ง" />
diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue index aa137758e..09a6572da 100644 --- a/src/components/Dialogs/PopupPersonalNew.vue +++ b/src/components/Dialogs/PopupPersonalNew.vue @@ -3,7 +3,7 @@ import { ref, reactive, watch, onMounted } from "vue"; import { useQuasar } from "quasar"; import http from "@/plugins/http"; import config from "@/app.config"; -import { useRouter,useRoute } from "vue-router"; +import { useRouter, useRoute } from "vue-router"; /** importType*/ import type { PersonalImformation } from "@/components/information/interface/response/Information"; @@ -14,16 +14,15 @@ import type { Avatar } from "@/components/information/interface/response/avatar" import { useCounterMixin } from "@/stores/mixin"; /** use*/ -const route = useRoute() +const route = useRoute(); const mixin = useCounterMixin(); const router = useRouter(); const $q = useQuasar(); const retireDate = ref(); const { showLoader, hideLoader, messageError, date2Thai } = mixin; -const fileName = ref(""); -const empType = ref( - route.name !== "appoint-employee-detail" ? "" : "-employee" -); + +const isEmployee = defineModel("isEmployee", { type: String }); +const empType = ref(""); /** props*/ const props = defineProps({ id: { @@ -40,16 +39,8 @@ const props = defineProps({ /** emit*/ const emit = defineEmits(["update:modal"]); -/** interface*/ -interface StatusLoad { - val: boolean; - val2: boolean; - val3: boolean; -} - /** ตัวแปร*/ const modal = ref(false); -const statusLoad = ref({ val: false, val2: false, val3: false }); // เช็คสถานะการโหลด const avatar = reactive({ avatar: "", fullname: "", @@ -104,7 +95,7 @@ function calculateAge(birthDate: Date | null) { async function fetchInformation(id: string) { showLoader(); await http - .get(config.API.orgProfileById(id,empType.value)) + .get(config.API.orgProfileById(id, empType.value)) .then((res) => { const data = res.data.result; imformation.prefix = data.prefix ? data.prefix : "-"; @@ -118,18 +109,15 @@ async function fetchInformation(id: string) { avatar.fullname = `${data.prefix}${data.firstName} ${data.lastName}`; avatar.position = data.position ? data.position : "-"; - if(data.avatarName){ - fetchProfile(data.id as string) - }else{ - statusLoad.value.val = true; + if (data.avatarName) { + fetchProfile(data.id as string, data.avatarName); } }) .catch((err) => { messageError($q, err); }) .finally(() => { - statusLoad.value.val2 = true; - loaderFunction(); + hideLoader(); }); } @@ -162,19 +150,12 @@ async function fetchProfileGov(id: string) { messageError($q, err); }) .finally(() => { - statusLoad.value.val3 = true; - loaderFunction(); + hideLoader(); }); } -/** functoion เช็คการโหลดของข้อมูล*/ -function loaderFunction() { - const allTrue = Object.values(statusLoad.value).every((val) => val); - allTrue && hideLoader(); -} - function redirecToRegistry() { - router.push(`/registry-new/${props.id}`); + router.push(`/registry-new${empType.value}/${props.id}`); modal.value = false; } @@ -184,10 +165,14 @@ watch( modal.value = props.modal ? props.modal : false; if (modal.value) { if (props.id) { + empType.value = + route.name === "appoint-employee-detail" || + isEmployee.value == "EMPLOYEE" + ? "-employee" + : ""; + fetchInformation(props.id); fetchProfileGov(props.id); - fileName.value = `profile-${props.id}`; - // fetchProfile(props.id as string); } } } @@ -199,15 +184,15 @@ watch(modal, (newValue) => { } }); -async function fetchProfile(id: string) { +async function fetchProfile(id: string, avatarName: string) { showLoader(); await http - .get(config.API.fileByFile("ทะเบียนประวัติ", "โปรไฟล์", id, fileName.value)) + .get(config.API.fileByFile("ทะเบียนประวัติ", "โปรไฟล์", id, avatarName)) .then(async (res) => { avatar.avatar = res.data.downloadUrl; }) .finally(() => { - statusLoad.value.val = true; + hideLoader(); }); } @@ -217,8 +202,8 @@ async function fetchProfile(id: string) { ทะเบียนประวัติ + >ทะเบียนประวัติ +
@@ -402,7 +387,7 @@ async function fetchProfile(id: string) { borderless readonly :model-value="goverment.positionLevel" - label="ระดับ" + label="ระดับตำแหน่ง" />
([ { name: "positionType", align: "left", - label: "ประเภท", + label: "ประเภทตำแหน่ง", sortable: true, field: "positionType", headerStyle: "font-size: 14px", @@ -444,7 +444,7 @@ const columnsHistory = ref([ { name: "positionLevel", align: "left", - label: "ระดับ", + label: "ระดับตำแหน่ง", sortable: true, field: "positionLevel", headerStyle: "font-size: 14px", diff --git a/src/components/information/Salary.vue b/src/components/information/Salary.vue index 49135a78b..ad80a3188 100644 --- a/src/components/information/Salary.vue +++ b/src/components/information/Salary.vue @@ -143,7 +143,6 @@ :class="getClass(edit)" :outlined="edit" dense - :borderless="!edit" :model-value="date2Thai(date)" :rules="[ @@ -257,9 +256,9 @@ :borderless="!edit" v-model="positionTypeId" :rules="[ - (val:string) => !!val || `${'กรุณาเลือกตำแหน่งประเภท'}`, + (val:string) => !!val || `${'กรุณาเลือกประเภทตำแหน่ง'}`, ]" - :label="`${'ตำแหน่งประเภท'}`" + :label="`${'ประเภทตำแหน่ง'}`" @update:modelValue="clickEditRow" emit-value map-options @@ -650,7 +649,7 @@ const refOptions = ref([ }, { id: "20", - name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}", + name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}", }, { id: "21", @@ -786,7 +785,7 @@ const refOptionsFilter = ref([ }, { id: "20", - name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}", + name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} เงินเดือน {เงินเดือน} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}", }, { id: "0", @@ -1047,7 +1046,7 @@ const columns = ref([ { name: "positionType", align: "left", - label: "ตำแหน่งประเภท", + label: "ประเภทตำแหน่ง", sortable: true, field: "positionType", headerStyle: "font-size: 14px", @@ -1058,7 +1057,7 @@ const columns = ref([ { name: "positionLevel", align: "left", - label: "ระดับ", + label: "ระดับตำแหน่ง", sortable: true, field: "positionLevel", headerStyle: "font-size: 14px", @@ -1225,7 +1224,7 @@ const columnsHistory = ref([ { name: "positionType", align: "left", - label: "ตำแหน่งประเภท", + label: "ประเภทตำแหน่ง", sortable: true, field: "positionType", headerStyle: "font-size: 14px", @@ -1236,7 +1235,7 @@ const columnsHistory = ref([ { name: "positionLevel", align: "left", - label: "ระดับ", + label: "ระดับตำแหน่ง", sortable: true, field: "positionLevel", headerStyle: "font-size: 14px", @@ -1737,7 +1736,7 @@ const templateDetail = async () => { ); if (positionTypeF.length > 0) { salaryClass.value = - salaryClass.value + `ตำแหน่งประเภท${positionTypeF[0].name} `; + salaryClass.value + `ประเภทตำแหน่ง${positionTypeF[0].name} `; } const positionLevelF = positionLevelOptions.value.filter( diff --git a/src/components/information/SalaryEmployee.vue b/src/components/information/SalaryEmployee.vue index 43b881944..5de63a465 100644 --- a/src/components/information/SalaryEmployee.vue +++ b/src/components/information/SalaryEmployee.vue @@ -142,7 +142,6 @@ :class="getClass(edit)" :outlined="edit" dense - :borderless="!edit" :model-value="date2Thai(date)" :rules="[ @@ -655,7 +654,7 @@ const refOptions = ref([ }, { id: "20", - name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}", + name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}", }, { id: "21", @@ -791,7 +790,7 @@ const refOptionsFilter = ref([ }, { id: "20", - name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}", + name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}", }, { id: "0", @@ -1038,7 +1037,7 @@ const columns = ref([ { name: "positionEmployeeLevel", align: "left", - label: "ระดับ", + label: "ระดับตำแหน่ง", sortable: true, field: "positionEmployeeLevel", headerStyle: "font-size: 14px", @@ -1183,7 +1182,7 @@ const columnsHistory = ref([ { name: "positionEmployeeLevel", align: "left", - label: "ระดับ", + label: "ระดับตำแหน่ง", sortable: true, field: "positionEmployeeLevel", headerStyle: "font-size: 14px", @@ -1662,7 +1661,7 @@ const templateDetail = async () => { // ); // if (positionTypeF.length > 0) { // salaryClass.value = - // salaryClass.value + `ตำแหน่งประเภท${positionTypeF[0].name} `; + // salaryClass.value + `ประเภทตำแหน่ง${positionTypeF[0].name} `; // } // const positionLevelF = positionLevelOptions.value.filter( // (r: DataOption) => r.id == positionLevelId.value diff --git a/src/components/information/SalaryEmployeeTemp.vue b/src/components/information/SalaryEmployeeTemp.vue index 0bd768e24..267763b10 100644 --- a/src/components/information/SalaryEmployeeTemp.vue +++ b/src/components/information/SalaryEmployeeTemp.vue @@ -142,7 +142,6 @@ :class="getClass(edit)" :outlined="edit" dense - :borderless="!edit" :model-value="date2Thai(date)" :rules="[ @@ -631,7 +630,7 @@ const refOptions = ref([ }, { id: "20", - name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}", + name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}", }, { id: "21", @@ -767,7 +766,7 @@ const refOptionsFilter = ref([ }, { id: "20", - name: "รับโอน {ตำแหน่งประเภท} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}", + name: "รับโอน {ประเภทตำแหน่ง} จากตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} เป็นตำแหน่ง {ตำแหน่ง} ระดับ {ระดับ} สังกัด {สังกัด} ตำแหน่งเลขที่ {ตำแหน่งเลขที่} ค่าจ้าง {ค่าจ้าง} คำสั่ง กทม.ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}", }, { id: "0", @@ -1692,7 +1691,7 @@ const templateDetail = async () => { // ); // if (positionTypeF.length > 0) { // salaryClass.value = - // salaryClass.value + `ตำแหน่งประเภท${positionTypeF[0].name} `; + // salaryClass.value + `ประเภทตำแหน่ง${positionTypeF[0].name} `; // } // const positionLevelF = positionLevelOptions.value.filter( // (r: DataOption) => r.id == positionLevelId.value diff --git a/src/components/information/TableProfile.vue b/src/components/information/TableProfile.vue index 800d98d26..fb6d15b0e 100644 --- a/src/components/information/TableProfile.vue +++ b/src/components/information/TableProfile.vue @@ -251,7 +251,7 @@ lazy-rules :model-value="positionLevel" hide-bottom-space - label="ระดับ" + label="ระดับตำแหน่ง" @update:model-value="updatePositionLevel" class="col-3" /> diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index 35fae14ef..c1c498ba3 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -84,6 +84,16 @@ const menuList = readonly([ label: "ข้อมูลเครื่องราชอิสริยาภรณ์", path: "masterInsignia", }, + ], + }, + { + key: 2, + icon: "o_person", + activeIcon: "person", + label: "ข้อมูลการประเมิน", + path: "metadataNew", + role: "evaluateKPI", + children: [ { key: 2.1, label: "ตัวชี้วัด", diff --git a/src/modules/00_support/router.ts b/src/modules/00_support/router.ts index 659c27e00..d2762cfc7 100644 --- a/src/modules/00_support/router.ts +++ b/src/modules/00_support/router.ts @@ -2,6 +2,8 @@ const supportMain = () => import("@/modules/00_support/views/MainPage.vue"); const supportCategory = () => import("@/modules/00_support/views/ManageCategory.vue"); +const testView = () => import("@/views/TestManagement.vue"); + export default [ { path: "/support", @@ -23,4 +25,15 @@ export default [ Role: "support", }, }, + + { + path: "/test", + name: "testView", + component: testView, + meta: { + Auth: true, + Key: [1.1], + Role: "support", + }, + }, ]; diff --git a/src/modules/01_metadata/components/position/Type.vue b/src/modules/01_metadata/components/position/Type.vue index ff1dd7eee..622281223 100644 --- a/src/modules/01_metadata/components/position/Type.vue +++ b/src/modules/01_metadata/components/position/Type.vue @@ -1,4 +1,4 @@ - + \ No newline at end of file + diff --git a/src/modules/05_placement/components/Transfer/transferMain.vue b/src/modules/05_placement/components/Transfer/transferMain.vue index 60185641b..81b979ba4 100644 --- a/src/modules/05_placement/components/Transfer/transferMain.vue +++ b/src/modules/05_placement/components/Transfer/transferMain.vue @@ -15,9 +15,10 @@ const router = useRouter(); const mixin = useCounterMixin(); const transferStore = useTransferDataStore(); -const { date2Thai, messageError, showLoader, hideLoader, success } = mixin; const { statusText } = transferStore; +const { date2Thai, messageError, showLoader, hideLoader } = mixin; + const modal = ref(false); const filterKeyword = ref(""); const filterKeyword2 = ref(""); @@ -30,12 +31,11 @@ const filters = ref([]); const visibleColumns = ref([ "no", "fullname", - "position", - "positionLevel", + "posType", "organizationPositionOld", "organization", - "statustext", - "dateText", + "status", + "createdAt", ]); const resetFilter = () => { @@ -65,33 +65,26 @@ const columns = ref([ style: "font-size: 14px", sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + format(val, row) { + return `${row.prefix}${row.firstName} ${row.lastName}`; + }, }, { - name: "position", + name: "posType", align: "left", - label: "ตำแหน่งในสายงาน", + label: "ประเภทตำแหน่ง", sortable: true, - field: "position", + field: "posType", headerStyle: "font-size: 14px", style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "positionLevel", - align: "left", - label: "ระดับ", - sortable: true, - field: "positionLevel", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + format(val, row) { + return row.positionTypeOld + " (" + row.positionLevelOld + ")"; + }, }, { name: "organizationPositionOld", align: "left", - label: "สังกัด", + label: "ตำแหน่ง/สังกัดเดิม", sortable: true, field: "organizationPositionOld", headerStyle: "font-size: 14px", @@ -111,27 +104,28 @@ const columns = ref([ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "dateText", + name: "createdAt", align: "left", label: "วันที่ดำเนินการ", sortable: true, - field: "dateText", + field: "createdAt", headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - sortOrder: "da", + format(val) { + return date2Thai(val); + }, }, { - name: "statustext", + name: "status", align: "left", label: "สถานะ", sortable: true, - field: "statustext", + field: "status", headerStyle: "font-size: 14px", style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + format: (val) => statusText(val), }, ]); @@ -144,17 +138,16 @@ const closeModal = () => { // เปิดโมเดล const openModalOrder = () => { openModal(); - console.log("filters===>",filters.value) const row = filters.value.filter( (r: ResponseData) => - (r.status == "APPROVE") && + r.status == "APPROVE" && r.organizationPositionOld && r.positionTypeOld && r.positionLevelOld && r.positionNumberOld && r.salary !== null && r.organization && - r.date + r.date ); rows2.value = row; }; @@ -164,38 +157,8 @@ const getData = async () => { await http .get(config.API.transfer) .then((res: any) => { - const data = res.data.result; - let list: ResponseData[] = []; - data.map((r: ResponseData) => { - list.push({ - dateText: - r.createdAt !== null ? date2Thai(new Date(r.createdAt)) : "-", - createdAt: r.createdAt !== null ? new Date(r.createdAt) : null, - date: r.date, - firstName: r.firstName ?? "", - id: r.id ?? "", - isActive: r.isActive ? r.isActive : false, - lastName: r.lastName ?? "", - organization: r.organization ?? "", - organizationPositionOld: r.organizationPositionOld ?? "", - posNo: r.posNo ?? "", - position: r.position ?? "", - positionLevel: r.positionLevel ?? "", - positionLevelOld: r.positionLevelOld ?? "", - positionNumberOld: r.positionNumberOld ?? "", - positionTypeOld: r.positionTypeOld ?? "", - prefix: r.prefix ?? "", - reason: r.reason ?? "", - salary: r.salary ? r.salary : 0, - status: r.status ?? "", - statustext: statusText(r.status ?? ""), - fullname: `${r.prefix ?? ""} ${r.firstName ?? ""} ${ - r.lastName ?? "" - }`, - }); - }); - rows.value = list; - filters.value = list; + rows.value = res.data.result; + filters.value = rows.value; }) .catch((e) => { messageError($q, e); @@ -282,39 +245,23 @@ onMounted(async () => { diff --git a/src/modules/05_placement/components/Transfer/transferRegistry.vue b/src/modules/05_placement/components/Transfer/transferRegistry.vue index f5c56f2a9..7d54910cd 100644 --- a/src/modules/05_placement/components/Transfer/transferRegistry.vue +++ b/src/modules/05_placement/components/Transfer/transferRegistry.vue @@ -360,7 +360,7 @@ onMounted(async () => {
-
ระดับ
+
ระดับตำแหน่ง
{{ responseData.positionLevelOld }}
@@ -555,7 +555,7 @@ onMounted(async () => {
-
ตำแหน่งและหน่วยงานเดิม
+
ตำแหน่ง/สังกัดเดิม
{ :readonly="!edit" :borderless="!edit" v-model="positionTypeOld" - :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่งประเภท'}`]" + :rules="[(val) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]" hide-bottom-space - :label="`${'ตำแหน่งประเภท'}`" + :label="`${'ประเภทตำแหน่ง'}`" />
@@ -598,9 +598,9 @@ onMounted(async () => { :readonly="!edit" :borderless="!edit" v-model="positionLevelOld" - :rules="[(val) => !!val || `${'กรุณากรอกระดับ'}`]" + :rules="[(val) => !!val || `${'กรุณากรอกระดับตำแหน่ง'}`]" hide-bottom-space - :label="`${'ระดับ'}`" + :label="`${'ระดับตำแหน่ง'}`" />
diff --git a/src/modules/05_placement/components/helpgovernment/Dialogbody.vue b/src/modules/05_placement/components/helpgovernment/Dialogbody.vue index 064a57a48..d65671b44 100644 --- a/src/modules/05_placement/components/helpgovernment/Dialogbody.vue +++ b/src/modules/05_placement/components/helpgovernment/Dialogbody.vue @@ -22,8 +22,8 @@ const { messageError, dialogConfirm, hideLoader, - findOrgName, - findPosMasterNo, + findOrgNameOld, + findPosMasterNoOld, date2Thai, } = mixin; @@ -51,23 +51,23 @@ const columns2 = ref([ }, }, { - name: "posNo", + name: "posMasterNoOld", align: "left", label: "เลขที่ตำแหน่ง", sortable: true, - field: "posNo", + field: "posMasterNoOld", headerStyle: "font-size: 14px", style: "font-size: 14px", format(val, row) { - return findPosMasterNo(row); + return findPosMasterNoOld(row); }, }, { - name: "position", + name: "positionOld", align: "left", label: "ตำแหน่งในสายงาน", sortable: true, - field: "position", + field: "positionOld", headerStyle: "font-size: 14px", style: "font-size: 14px", }, @@ -80,7 +80,15 @@ const columns2 = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", format(val, row) { - return `${row.posTypeName} (${row.posLevelName})`; + let name = ""; + if (row.posTypeNameOld && row.posLevelNameOld) { + name = `${row.posTypeNameOld} (${row.posLevelNameOld})`; + } else if (row.posTypeNameOld) { + name = `${row.posTypeNameOld}`; + } else if (row.posLevelNameOld) { + name = `(${row.posLevelNameOld})`; + } else name = "-"; + return name; }, }, { @@ -88,13 +96,10 @@ const columns2 = ref([ align: "left", label: "สังกัด", sortable: true, - field: "organizationPositionOld", + field: "organization", headerStyle: "font-size: 14px", style: "font-size: 14px", - classes: "table_ellipsis", - format(val, row) { - return findOrgName(row); - }, + format: (val, row) => findOrgNameOld(row), }, { name: "organization", @@ -104,7 +109,6 @@ const columns2 = ref([ field: "organization", headerStyle: "font-size: 14px", style: "font-size: 14px", - classes: "table_ellipsis", }, { name: "dateStart", @@ -150,8 +154,8 @@ const columns2 = ref([ const visibleColumns2 = ref([ "no", "name", - "posNo", - "position", + "posMasterNoOld", + "positionOld", "positionLevel", "organizationPositionOld", "organization", @@ -301,13 +305,18 @@ watchEffect(() => { {{ props.rowIndex + 1 }}
-
- {{ col.value ? col.value : "-" }} +
+ {{ + col.value == null ? "" : col.value == "" ? "-" : col.value + }}
diff --git a/src/modules/05_placement/components/helpgovernment/governmentDetail.vue b/src/modules/05_placement/components/helpgovernment/governmentDetail.vue index b5e03ba6c..45a852e5f 100644 --- a/src/modules/05_placement/components/helpgovernment/governmentDetail.vue +++ b/src/modules/05_placement/components/helpgovernment/governmentDetail.vue @@ -39,7 +39,7 @@ const dataProfile = ref(); const fullname = ref(""); /** form แก้ไขข้อมูลเพื่อลงบัญชีแนบท้าย*/ -const organizationPositionOld = ref(""); //ตำแหน่งและหน่วยงานเดิม +const organizationPositionOld = ref(""); //ตำแหน่ง/สังกัดเดิม const organization = ref(""); //หน่วยงานเดิม const dateStart = ref(null); //ตั้งแต่วันที่ const dateEnd = ref(null); // ถึงวันที่ @@ -196,7 +196,7 @@ onMounted(() => {
-
ตำแหน่งและหน่วยงานเดิม
+
ตำแหน่ง/สังกัดเดิม
([ }, }, { - name: "posNo", + name: "posMasterNoOld", align: "left", label: "เลขที่ตำแหน่ง", sortable: true, - field: "posNo", + field: "posMasterNoOld", headerStyle: "font-size: 14px", style: "font-size: 14px", format(val, row) { - return findPosMasterNo(row); + return findPosMasterNoOld(row); }, }, { - name: "position", + name: "positionOld", align: "left", label: "ตำแหน่งในสายงาน", sortable: true, - field: "position", + field: "positionOld", headerStyle: "font-size: 14px", style: "font-size: 14px", }, @@ -89,12 +89,12 @@ const columns = ref([ style: "font-size: 14px", format(val, row) { let name = ""; - if (row.posTypeName && row.posLevelName) { - name = `${row.posTypeName} (${row.posLevelName})`; - } else if (row.posTypeName) { - name = `${row.posTypeName}`; - } else if (row.posLevelName) { - name = `(${row.posLevelName})`; + if (row.posTypeNameOld && row.posLevelNameOld) { + name = `${row.posTypeNameOld} (${row.posLevelNameOld})`; + } else if (row.posTypeNameOld) { + name = `${row.posTypeNameOld}`; + } else if (row.posLevelNameOld) { + name = `(${row.posLevelNameOld})`; } else name = "-"; return name; }, @@ -104,12 +104,10 @@ const columns = ref([ align: "left", label: "สังกัด", sortable: true, - field: "organizationPositionOld", + field: "organization", headerStyle: "font-size: 14px", style: "font-size: 14px", - format(val, row) { - return findOrgName(row); - }, + format: (val, row) => findOrgNameOld(row), }, { name: "organization", @@ -164,8 +162,8 @@ const columns = ref([ const visibleColumns = ref([ "no", "name", - "posNo", - "position", + "posMasterNoOld", + "positionOld", "positionLevel", "organizationPositionOld", "organization", @@ -334,7 +332,9 @@ onMounted(async () => { : '' " > - {{ col.value ? col.value : "-" }} + {{ + col.value == null ? "" : col.value == "" ? "-" : col.value + }}
diff --git a/src/modules/05_placement/interface/index/Main.ts b/src/modules/05_placement/interface/index/Main.ts index 5e497bd00..28b96fd29 100644 --- a/src/modules/05_placement/interface/index/Main.ts +++ b/src/modules/05_placement/interface/index/Main.ts @@ -221,6 +221,16 @@ interface DataProfile { child3ShortName: string | null; child4: string | null; child4ShortName: string | null; + + child1Old?: string | null; + child1ShortNameOld?: string | null; + child2Old?: string | null; + child2ShortNameOld?: string | null; + child3Old?: string | null; + child3ShortNameOld?: string | null; + child4Old?: string | null; + child4ShortNameOld?: string | null; + createdAt: string | Date; dateEnd: string | Date; dateStart: string | Date; @@ -231,15 +241,22 @@ interface DataProfile { organization: string; organizationPositionOld: string; posLevelName: string; + posLevelNameOld?: string; posMasterNo: number | null; posTypeName: string; + posTypeNameOld?: string; position: string; + positionOld?: string; prefix: string; profileId: string; reason: string; root: string; rootShortName: string | null; + rootOld?: string; + rootShortNameOld?: string | null; status: string; + positionType?: string; + positionLevel?: string; } export type { DataOption, diff --git a/src/modules/05_placement/interface/response/Transfer.ts b/src/modules/05_placement/interface/response/Transfer.ts index b0f9c2e03..9cbb7c4b1 100644 --- a/src/modules/05_placement/interface/response/Transfer.ts +++ b/src/modules/05_placement/interface/response/Transfer.ts @@ -10,7 +10,7 @@ interface ResponseData { organizationPositionOld: string; posNo: string; position: string; - positionLevel: string; + positionLevel?: string; positionLevelOld: string; positionNumberOld: string; positionTypeOld: string; @@ -20,6 +20,9 @@ interface ResponseData { status: string; fullname: string; statustext: string; + positionOld?: string; + posTypeNameOld?: string; + posLevelNameOld?: string; } interface TypeFile { @@ -44,9 +47,8 @@ interface ResponseDataDetail { fullname: string; } interface rowFile { - no: number - fileName: string - pathName: string - + no: number; + fileName: string; + pathName: string; } -export type { ResponseData, ResponseDataDetail, TypeFile ,rowFile}; +export type { ResponseData, ResponseDataDetail, TypeFile, rowFile }; diff --git a/src/modules/06_retirement/components/Discharged/dischargedRegistry.vue b/src/modules/06_retirement/components/Discharged/dischargedRegistry.vue index 8e4bd37b1..a78028226 100644 --- a/src/modules/06_retirement/components/Discharged/dischargedRegistry.vue +++ b/src/modules/06_retirement/components/Discharged/dischargedRegistry.vue @@ -307,7 +307,7 @@ function updatemodalPersonal(modal: boolean) {
-
ตำแหน่งและหน่วยงานเดิม
+
ตำแหน่ง/สังกัดเดิม
diff --git a/src/modules/06_retirement/components/DismissOrder/DialogSendToCommand.vue b/src/modules/06_retirement/components/DismissOrder/DialogSendToCommand.vue index 44cc2c50f..b29376e1c 100644 --- a/src/modules/06_retirement/components/DismissOrder/DialogSendToCommand.vue +++ b/src/modules/06_retirement/components/DismissOrder/DialogSendToCommand.vue @@ -20,7 +20,7 @@ const { messageError, dialogConfirm, hideLoader, - findOrgName, + date2Thai, } = mixin; /** คอลัมน์ */ @@ -46,15 +46,6 @@ const columns2 = ref([ return `${row.prefix}${row.firstName} ${row.lastName}`; }, }, - { - name: "position", - align: "left", - label: "ตำแหน่งในสายงาน", - sortable: true, - field: "position", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, { name: "positionLevel", align: "left", @@ -65,27 +56,34 @@ const columns2 = ref([ style: "font-size: 14px", format(val, row) { let name = ""; - if (row.posTypeName && row.posLevelName) { - name = `${row.posTypeName} (${row.posLevelName})`; - } else if (row.posTypeName) { - name = `${row.posTypeName}`; - } else if (row.posLevelName) { - name = `(${row.posLevelName})`; + if (row.positionTypeOld && row.positionLevelOld) { + name = `${row.positionTypeOld} (${row.positionLevelOld})`; + } else if (row.positionTypeOld) { + name = `${row.positionTypeOld}`; + } else if (row.positionLevelOld) { + name = `(${row.positionLevelOld})`; } else name = "-"; return name; }, }, { - name: "org", + name: "organizationPositionOld", align: "left", - label: "สังกัด", + label: "ตำแหน่ง/สังกัดเดิม", sortable: true, - field: "org", + field: "organizationPositionOld", headerStyle: "font-size: 14px", style: "font-size: 14px", - format(val, row) { - return findOrgName(row); - }, + }, + { + name: "createdAt", + align: "left", + label: "วันที่ดำเนินการ", + sortable: true, + field: "createdAt", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + format: (val) => date2Thai(val), }, { name: "status", @@ -103,9 +101,9 @@ const columns2 = ref([ const visibleColumns2 = ref([ "no", "fullname", - "position", "positionLevel", - "org", + "organizationPositionOld", + "createdAt", "status", ]); diff --git a/src/modules/06_retirement/components/DismissOrder/DismissOrder.vue b/src/modules/06_retirement/components/DismissOrder/DismissOrder.vue index 49e0e64a6..698dce91b 100644 --- a/src/modules/06_retirement/components/DismissOrder/DismissOrder.vue +++ b/src/modules/06_retirement/components/DismissOrder/DismissOrder.vue @@ -22,7 +22,7 @@ const { hideLoader, success, dialogMessage, - findOrgName, + findOrgNameOld, } = mixin; const { statusText } = transferStore; const modal = ref(false); @@ -31,9 +31,8 @@ const modal = ref(false); const visibleColumns = ref([ "no", "fullname", - "position", "positionLevel", - "org", + "organizationPositionOld", "createdAt", "status", ]); @@ -69,15 +68,6 @@ const columns = ref([ return `${row.prefix}${row.firstName} ${row.lastName}`; }, }, - { - name: "position", - align: "left", - label: "ตำแหน่งในสายงาน", - sortable: true, - field: "position", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - }, { name: "positionLevel", align: "left", @@ -88,27 +78,24 @@ const columns = ref([ style: "font-size: 14px", format(val, row) { let name = ""; - if (row.posTypeName && row.posLevelName) { - name = `${row.posTypeName} (${row.posLevelName})`; - } else if (row.posTypeName) { - name = `${row.posTypeName}`; - } else if (row.posLevelName) { - name = `(${row.posLevelName})`; + if (row.positionTypeOld && row.positionLevelOld) { + name = `${row.positionTypeOld} (${row.positionLevelOld})`; + } else if (row.positionTypeOld) { + name = `${row.positionTypeOld}`; + } else if (row.positionLevelOld) { + name = `(${row.positionLevelOld})`; } else name = "-"; return name; }, }, { - name: "org", + name: "organizationPositionOld", align: "left", - label: "สังกัด", + label: "ตำแหน่ง/สังกัดเดิม", sortable: true, - field: "org", + field: "organizationPositionOld", headerStyle: "font-size: 14px", style: "font-size: 14px", - format(val, row) { - return findOrgName(row); - }, }, { name: "createdAt", diff --git a/src/modules/06_retirement/components/DismissOrder/outRegistry.vue b/src/modules/06_retirement/components/DismissOrder/outRegistry.vue index 181fab19b..6d70d5beb 100644 --- a/src/modules/06_retirement/components/DismissOrder/outRegistry.vue +++ b/src/modules/06_retirement/components/DismissOrder/outRegistry.vue @@ -222,7 +222,7 @@ onMounted(async () => {
-
ตำแหน่งและหน่วยงานเดิม
+
ตำแหน่ง/สังกัดเดิม
{ :readonly="!edit" :borderless="!edit" v-model="positionTypeOld" - :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่งประเภท'}`]" + :rules="[(val) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]" hide-bottom-space - :label="`${'ตำแหน่งประเภท'}`" + :label="`${'ประเภทตำแหน่ง'}`" />
diff --git a/src/modules/06_retirement/components/Expulsion/expulsionRegistry.vue b/src/modules/06_retirement/components/Expulsion/expulsionRegistry.vue index 0bc950483..2fe4d1881 100644 --- a/src/modules/06_retirement/components/Expulsion/expulsionRegistry.vue +++ b/src/modules/06_retirement/components/Expulsion/expulsionRegistry.vue @@ -307,7 +307,7 @@ function updatemodalPersonal(modal: boolean) {
-
ตำแหน่งและหน่วยงานเดิม
+
ตำแหน่ง/สังกัดเดิม
diff --git a/src/modules/06_retirement/components/ListRetirement/AddList.vue b/src/modules/06_retirement/components/ListRetirement/AddList.vue index 6a440ba58..cac1f34d0 100644 --- a/src/modules/06_retirement/components/ListRetirement/AddList.vue +++ b/src/modules/06_retirement/components/ListRetirement/AddList.vue @@ -1,5 +1,5 @@