fix: ไม่แสดง template code C-PM-47

This commit is contained in:
setthawutttty 2025-07-18 15:50:52 +07:00
parent fa22a301aa
commit 9efb30c531
2 changed files with 17 additions and 0 deletions

View file

@ -30,6 +30,7 @@ interface ListOrder {
isActive: boolean; isActive: boolean;
isAttachment: boolean; isAttachment: boolean;
category?: string; category?: string;
code: string;
commandSysId: string; commandSysId: string;
isUploadAttachment: boolean; isUploadAttachment: boolean;
} }

View file

@ -54,6 +54,7 @@ const filteredTabs = computed(() =>
: tabs.value.filter((tab) => tab.value !== "attachment") : tabs.value.filter((tab) => tab.value !== "attachment")
); );
const isCode = ref<string>(""); // code
const isActive = ref<boolean>(true); // const isActive = ref<boolean>(true); //
const isAttachment = ref<boolean>(true); // const isAttachment = ref<boolean>(true); //
const isSalary = ref<boolean>(true); // const isSalary = ref<boolean>(true); //
@ -206,6 +207,12 @@ function onSubmit() {
* เก id list คำสงทเลอก เพอใช class * เก id list คำสงทเลอก เพอใช class
*/ */
function selectInbox(data: ListOrder) { function selectInbox(data: ListOrder) {
isCode.value = data.code;
if (data.code === "C-PM-47") {
isAttachmentShow.value = false;
activeCommandId.value = "";
return;
}
store.currentTab = store.currentTab =
!data.isAttachment && store.currentTab == "attachment" !data.isAttachment && store.currentTab == "attachment"
? "cover" ? "cover"
@ -404,6 +411,15 @@ onMounted(async () => {
</q-tab-panel> </q-tab-panel>
</q-tab-panels> </q-tab-panels>
</div> </div>
<div
v-else-if="isCode == 'C-PM-47'"
style="height: auto; max-width: 100%; max-height: 90vh"
>
<div
class="absolute-center text-center text-grey-9"
style="width: 100%"
></div>
</div>
<div v-else style="height: auto; max-width: 100%; max-height: 90vh"> <div v-else style="height: auto; max-width: 100%; max-height: 90vh">
<div <div
class="absolute-center text-center text-grey-9" class="absolute-center text-center text-grey-9"