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 () => { +
+
+