From 9efb30c53156e25ff6b954db83fadcaeab813e6d Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 18 Jul 2025 15:50:52 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=81?= =?UTF-8?q?=E0=B8=AA=E0=B8=94=E0=B8=87=20template=20code=20C-PM-47?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/05_command/interface/index/Main.ts | 1 + src/modules/05_command/views/lists.vue | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/modules/05_command/interface/index/Main.ts b/src/modules/05_command/interface/index/Main.ts index 3bd5516b..7447d2ed 100644 --- a/src/modules/05_command/interface/index/Main.ts +++ b/src/modules/05_command/interface/index/Main.ts @@ -30,6 +30,7 @@ interface ListOrder { isActive: boolean; isAttachment: boolean; category?: string; + code: string; commandSysId: string; isUploadAttachment: boolean; } diff --git a/src/modules/05_command/views/lists.vue b/src/modules/05_command/views/lists.vue index 1fd5a240..4ff20d52 100644 --- a/src/modules/05_command/views/lists.vue +++ b/src/modules/05_command/views/lists.vue @@ -54,6 +54,7 @@ const filteredTabs = computed(() => : tabs.value.filter((tab) => tab.value !== "attachment") ); +const isCode = ref(""); // ตัวแปรเก็บ code const isActive = ref(true); // สถานะของรายการคำสั่ง const isAttachment = ref(true); // บัญชีแนบท้าย const isSalary = ref(true); // แก้ไขเงินเดือน @@ -206,6 +207,12 @@ function onSubmit() { * เก็บ id list คำสั่งที่เลือก เพื่อใช้ class */ function selectInbox(data: ListOrder) { + isCode.value = data.code; + if (data.code === "C-PM-47") { + isAttachmentShow.value = false; + activeCommandId.value = ""; + return; + } store.currentTab = !data.isAttachment && store.currentTab == "attachment" ? "cover" @@ -404,6 +411,15 @@ onMounted(async () => { +
+
+