From aaa704732e1767156bf9ee4f9e5465a89a25fcc1 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Tue, 5 Nov 2024 13:01:14 +0700 Subject: [PATCH] posNo --- .../components/Step/View0_Digital.vue | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/src/modules/18_command/components/Step/View0_Digital.vue b/src/modules/18_command/components/Step/View0_Digital.vue index a9018d4b5..119a8af35 100644 --- a/src/modules/18_command/components/Step/View0_Digital.vue +++ b/src/modules/18_command/components/Step/View0_Digital.vue @@ -48,6 +48,8 @@ const fileUploadOrder = ref(null); //ไฟล์คำสั่ง const fileUploadTailer = ref(null); //ไฟล์เอกสารแนบท้าย const fileOrder = ref(null); //ไฟล์คำสั่ง const fileTailer = ref(null); //ไฟล์เอกสารแนบท้าย +const isDirector = ref(true); +const isAct = ref(false); const modalSelect = ref(false); //popup เลือกผู้บังคับบัญชา/ผู้มีอำนาจออกคำสั่ง const search = ref(""); @@ -67,6 +69,15 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, + { + name: "posNo", + align: "left", + label: "เลที่ตำแหน่ง", + sortable: true, + field: "posNo", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, { name: "fullName", @@ -149,7 +160,8 @@ function fetchListDirector() { showLoader(); http .post(config.API.commandDirector, { - isDirector: true, // fix ค่านี้เป็น true + isDirector: isDirector.value, // fix ค่านี้เป็น true + isAct: isAct.value, keyword: search.value, page: page.value, pageSize: pageSize.value, @@ -232,6 +244,8 @@ function onSubmitComment() { } function onCloseDialog() { + isAct.value = false + isDirector.value = true modalSelect.value = false; modalComment.value = false; isPersonSign.value = false; @@ -373,6 +387,10 @@ async function fetchListAuthority() { }); } +function onAct() { + isDirector.value = !isDirector.value; +} + watch( () => pageSize.value, () => { @@ -682,9 +700,7 @@ onMounted(async () => {
- - -
+
{ @clear="search = ''" />
+ + แสดงเฉพาะรักษาการแทน + +