diff --git a/src/modules/05_placement/components/AppointEmployee/Dialogbody.vue b/src/modules/05_placement/components/AppointEmployee/Dialogbody.vue
index 5cb768b82..9552a83ad 100644
--- a/src/modules/05_placement/components/AppointEmployee/Dialogbody.vue
+++ b/src/modules/05_placement/components/AppointEmployee/Dialogbody.vue
@@ -9,8 +9,13 @@ import DialogHeader from "@/modules/05_placement/components/AppointMent/DialogHe
import http from "@/plugins/http";
import config from "@/app.config";
+
+import { useTransferDataStore } from "@/modules/05_placement/store";
+const storeFn = useTransferDataStore();
+const { statusText } = storeFn;
+
const mixin = useCounterMixin();
-const { showLoader, success, messageError, dialogConfirm, hideLoader } = mixin;
+const { showLoader, success, messageError, dialogConfirm, hideLoader ,date2Thai} = mixin;
const $q = useQuasar();
const selected = ref<[]>([]);
@@ -35,7 +40,7 @@ const visibleColumns2 = ref
([
"citizenId",
"fullname",
"organizationName",
- "birthday",
+ "dateOfBirth",
]);
const columns2 = ref([
{
@@ -68,7 +73,7 @@ const columns2 = ref([
{
name: "organizationName",
align: "left",
- label: "หน่วยงานที่รับการปรับระดับชั้นงาน",
+ label: "หน่วยงานที่รับการแต่งตั้ง-เลื่อน-ย้าย",
sortable: true,
field: "organizationName",
headerStyle: "font-size: 14px",
@@ -77,11 +82,11 @@ const columns2 = ref([
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
- name: "birthday",
+ name: "dateOfBirth",
align: "left",
label: "วัน/เดือน/ปี เกิด",
sortable: true,
- field: "birthday",
+ field: "dateOfBirth",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
@@ -115,7 +120,7 @@ const createdAppoint = async () => {
let pId: string[] = [];
let Type = props.type as string;
selected.value.forEach((e: UserData) => {
- pId.push(e.personalId);
+ pId.push(e.id);
});
let data = {
id: pId,
@@ -228,7 +233,7 @@ watchEffect(() => {
-
+
{
v-model="props.selected"
/>
-
- {{ props.rowIndex + 1 }}
-
-
- {{ props.row.citizenId }}
-
-
- {{ props.row.fullname }}
-
-
- {{ props.row.orgName !== null ? props.row.orgName : "-" }}
- {{
- props.row.organizationShortName !== null
- ? `(${props.row.organizationShortName})`
- : ""
- }}
-
+
+ {{
+ props.row.dateOfBirth
+ ? date2Thai(props.row.dateOfBirth)
+ : "-"
+ }}
+
+
- {{ props.row.orgName !== null ? props.row.orgName : "-" }}
+ {{ props.row.root !== null ? props.row.root : "-" }}
{{
- props.row.organizationShortName !== null
- ? `(${props.row.organizationShortName})`
+ props.row.rootShortName !== null
+ ? `(${props.row.rootShortName})`
: ""
}}
{{
- props.row.positionPath !== null
- ? props.row.positionPath
- : "-"
+ props.row.nodeName !== null ? props.row.nodeName : ""
}}
{{
- props.row.positionNumber !== null
- ? `(${props.row.positionNumber})`
+ props.row.nodeShortName !== null
+ ? `(${props.row.nodeShortName}${props.row.posMasterNo})`
: ""
}}
+
+ {{
+ props.row.createdAt ? date2Thai(props.row.createdAt) : "-"
+ }}
+
-->
-
-
- {{ props.row.birthday }}
+ {{ col.value ? col.value : "-" }}
+
diff --git a/src/modules/05_placement/components/AppointEmployee/Main.vue b/src/modules/05_placement/components/AppointEmployee/Main.vue
index 5cc4c5b6e..053cc0d8d 100644
--- a/src/modules/05_placement/components/AppointEmployee/Main.vue
+++ b/src/modules/05_placement/components/AppointEmployee/Main.vue
@@ -17,6 +17,13 @@ import type { OpType } from "@/modules/05_placement/interface/response/Main";
import http from "@/plugins/http";
import config from "@/app.config";
+import DialogOrgSelectEmployee from "@/components/Dialogs/DialogOrgSelectEmployee.vue";
+
+const posType = ref