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;
isAttachment: boolean;
category?: string;
code: string;
commandSysId: string;
isUploadAttachment: boolean;
}

View file

@ -54,6 +54,7 @@ const filteredTabs = computed(() =>
: tabs.value.filter((tab) => tab.value !== "attachment")
);
const isCode = ref<string>(""); // code
const isActive = ref<boolean>(true); //
const isAttachment = ref<boolean>(true); //
const isSalary = ref<boolean>(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 () => {
</q-tab-panel>
</q-tab-panels>
</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
class="absolute-center text-center text-grey-9"