diff --git a/src/modules/05_command/interface/index/Main.ts b/src/modules/05_command/interface/index/Main.ts index 0d238adb..3bd5516b 100644 --- a/src/modules/05_command/interface/index/Main.ts +++ b/src/modules/05_command/interface/index/Main.ts @@ -31,6 +31,7 @@ interface ListOrder { isAttachment: boolean; category?: string; commandSysId: string; + isUploadAttachment: boolean; } interface ListTemplateSalary { @@ -50,5 +51,5 @@ export type { ListOrder, Tabs, ListTemplateSalary, - CommandSysType + CommandSysType, }; diff --git a/src/modules/05_command/views/lists.vue b/src/modules/05_command/views/lists.vue index 306fd2e4..1fd5a240 100644 --- a/src/modules/05_command/views/lists.vue +++ b/src/modules/05_command/views/lists.vue @@ -8,7 +8,6 @@ import { useCounterMixin } from "@/stores/mixin"; import { useDataStore } from "@/modules/05_command/stores/main"; import type { - ActiveOptions, ListOrder, Tabs, DateOption, @@ -59,6 +58,7 @@ const isActive = ref(true); // สถานะของรายกา const isAttachment = ref(true); // บัญชีแนบท้าย const isSalary = ref(true); // แก้ไขเงินเดือน const isAttachmentShow = ref(true); // บัญชีแนบท้าย show/off +const isUploadAttachment = ref(false); const dataCategory = ref([]); //ข้อมูล หมวดหมู่ const categoryOP = ref([]); // options หมวดหมู่ @@ -79,9 +79,7 @@ const page = ref(1); // หน้า const pageSize = ref(13); // จำนวนข้อมูล const maxPage = ref(0); // จำนวนหน้า -/** - * ฟังก์ชั่นดึงรายการประเภทคำสั่ง - */ +/** ฟังก์ชั่นดึงรายการประเภทคำสั่ง*/ async function fetchCommandType() { showLoader(); await http @@ -114,9 +112,7 @@ async function fetchCommandType() { }); } -/** - * ฟังก์ชันดึงข้อมูลรายการหมวดหมู่ - */ +/** ฟังก์ชันดึงข้อมูลรายการหมวดหมู่*/ function fetchCommandSys() { showLoader(); http @@ -161,6 +157,7 @@ function onDialogEdit(data: ListOrder) { subtitle.value = data.subtitle ? data.subtitle : ""; isEdit.value = true; isAttachment.value = data.isAttachment; + isUploadAttachment.value = data.isUploadAttachment; dialogFormCommand.value = true; } @@ -177,9 +174,7 @@ function closeDialog() { category.value = ""; } -/** - * บันทึกข้อมูลการแก้ไขคำสั่ง - */ +/** บันทึกข้อมูลการแก้ไขคำสั่ง*/ function onSubmit() { dialogConfirm($q, async () => { showLoader(); @@ -191,6 +186,7 @@ function onSubmit() { isActive: status.value, isAttachment: isAttachment.value, isSalary: isSalary.value, + isUploadAttachment: isUploadAttachment.value, }) .then(async () => { await fetchCommandType(); @@ -505,6 +501,12 @@ onMounted(async () => { size="sm" /> + +