From 86895e49bc873a18874565b48d88036ef12a0c78 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 27 Jan 2025 14:55:06 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B9=80?= =?UTF-8?q?=E0=B8=A5=E0=B8=82=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=84=E0=B8=B3?= =?UTF-8?q?=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=E0=B9=80=E0=B8=9E=E0=B8=B4?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B8=84=E0=B8=A5?= =?UTF-8?q?=E0=B8=B4=E0=B8=81=E0=B8=94=E0=B8=B9=E0=B9=84=E0=B8=94=E0=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/PersonalList/Table.vue | 45 +++++++++++++++++++ .../components/DialogCreateCommand.vue | 13 ++++++ 2 files changed, 58 insertions(+) diff --git a/src/modules/05_placement/components/PersonalList/Table.vue b/src/modules/05_placement/components/PersonalList/Table.vue index 94f0a224c..c1c4be31a 100644 --- a/src/modules/05_placement/components/PersonalList/Table.vue +++ b/src/modules/05_placement/components/PersonalList/Table.vue @@ -23,6 +23,7 @@ import DialogFooter from "@/modules/05_placement/components/PersonalList/DialogF import DialogHeader from "@/components/DialogHeader.vue"; import DialogOrders from "@/modules/05_placement/components/PersonalList/DialogOrders.vue"; //ส่งไปออกคำสั่งขอโอน import PopupPersonal from "@/components/Dialogs/PopupPersonalNew.vue"; +import DialogPreviewCommand from "@/modules/18_command/components/DialogPreviewCommand.vue"; const $q = useQuasar(); // show dialog const DataStore = usePlacementDataStore(); @@ -48,6 +49,10 @@ const props = defineProps({ }, }); +const modalCommand = ref(false); +const command = ref(""); +const commandId = ref(""); + let roleAdmin = ref(false); const edit = ref(true); const modalPersonal = ref(false); @@ -116,6 +121,7 @@ const visibleColumns = ref([ "statusName", "draft", "positionCandidate", + "refCommandNo", ]); /** แสดงข้แมูลใน ตาราง @@ -227,6 +233,17 @@ const columns = ref([ sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, + { + name: "refCommandNo", + align: "left", + label: "คำสั่งบรรจุ", + sortable: true, + field: "refCommandNo", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + sort: (a: string, b: string) => + a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + }, ]); /** @@ -370,6 +387,8 @@ async function getTable() { citizenId: data.citizenId, id: data.id, profileId: data.profileId, + refCommandNo: data.refCommandNo, + commandId: data.commandId, }; rowsAll.value.push(rowData); }); @@ -845,6 +864,13 @@ function onSearchAdd() { ); } +function onRefCommand(data: any) { + modalCommand.value = true; + command.value = data.refCommandNo; + commandId.value = data.commandId; + // commandId.value = 'bdf9da91-ba45-497a-a2b7-cc49e2446d97'; //จำลอง +} + onMounted(async () => { await getWorkFlow(); await getTable(); @@ -1283,6 +1309,19 @@ onMounted(async () => { {{ props.row.statusName }} + @@ -1677,6 +1716,12 @@ onMounted(async () => { :id="personalId" @update:modal="updatemodalPersonal" /> + +