diff --git a/src/modules/04_registryPerson/components/requestEdit/01_TabInformation.vue b/src/modules/04_registryPerson/components/requestEdit/01_TabInformation.vue index a043fd963..b2890d17f 100644 --- a/src/modules/04_registryPerson/components/requestEdit/01_TabInformation.vue +++ b/src/modules/04_registryPerson/components/requestEdit/01_TabInformation.vue @@ -336,14 +336,14 @@ onMounted(() => { - แก้ไขสถานะคำร้อง + {{props.row.topic == 'ขออัปเดตข้อมูลจากกรมการปกครอง' ? 'ขออัปเดตข้อมูลจากกรมการปกครอง':'แก้ไขสถานะคำร้อง'}} diff --git a/src/modules/05_placement/components/probation/MainProbation.vue b/src/modules/05_placement/components/probation/MainProbation.vue index 0088a74e2..1cb71ba72 100644 --- a/src/modules/05_placement/components/probation/MainProbation.vue +++ b/src/modules/05_placement/components/probation/MainProbation.vue @@ -33,7 +33,7 @@ const filterRef2 = ref(null); const attrs = ref(useAttrs()); const paging2 = ref(true); const fillterStatus = ref([]); -const fillter = ref(''); +const fillter = ref(""); const filterKeyword = ref(""); const filterKeyword2 = ref(""); const rows = ref([]); @@ -218,6 +218,15 @@ const columns2 = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, + { + name: "refCommandNo", + align: "center", + label: "เลขที่คําสั่งบรรจุแต่งตั้ง", + sortable: true, + field: "refCommandNo", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, ]); /** get ข้อมูล */ @@ -282,31 +291,55 @@ async function filterKeyword2Fn(page: number) { * @param data personal data */ function clickAdd(data: any) { + const body = { + id: data.id, + prefix: data.prefix, + rank: data.rank, + firstName: data.firstName, + lastName: data.lastName, + position: data.position, + idcard: data.idcard, + order_number: data.refCommandNo ? data.refCommandNo:'', + posLevelName: data.posLevelName, + posTypeName: data.posTypeName, + posNo: data.posNo, + positionField: data.positionField, + positionArea: data.positionArea, + posExecutiveName: data.posExecutiveName, + positionExecutiveField: data.positionExecutiveField, + isProbation: data.isProbation, + orgRootName: data.orgRootName, + orgChild1Name: data.orgChild1Name, + orgChild2Name: data.orgChild2Name, + orgChild3Name: data.orgChild3Name, + orgChild4Name: data.orgChild4Name, + }; dialogConfirm( $q, async () => { showLoader(); await http - .post(config.API.personalAdd(), data) + .post(config.API.personalAdd(), body) .then(async () => { await http .get(config.API.orgProfileStatus(data.id)) - .then((res) => { - getpersonalList(); + .then(async(res) => { + await getpersonalList(); success($q, "เพิ่มข้อมูลสำเร็จ"); + clickClose(); + hideLoader(); }) .catch((e) => { messageError($q, e); + hideLoader(); }); }) .catch((e) => { messageError($q, e); - }) - .finally(() => { - clickClose(); hideLoader(); - }); + }) + .finally(() => {}); }, "ยันยันการเพิ่มข้อมูล", "ต้องการเพิ่มข้อมูลนี้หรือไม่ ?" @@ -389,64 +422,62 @@ onMounted(async () => {
-
- - - +
+ + + -
- - เพิ่มผู้ทดลองปฏิบัติหน้าที่ราชการ - -
-
- - ส่งไปออกคำสั่ง - -
+
+ + เพิ่มผู้ทดลองปฏิบัติหน้าที่ราชการ +
+
+ + ส่งไปออกคำสั่ง + +
+
@@ -717,6 +748,15 @@ onMounted(async () => { }${props.row.orgRootName ? props.row.orgRootName : ""}` }}
+
+ {{ + props.row.refCommandNo + ? props.row.refCommandNo != "xx/2566" + ? props.row.refCommandNo + : "-" + : "-" + }} +
{{ col.value ? col.value : "-" }}