fx isupload

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-01-07 11:32:51 +07:00
parent 1382aaa268
commit 9651d6dc91
2 changed files with 14 additions and 11 deletions

View file

@ -31,6 +31,7 @@ interface ListOrder {
isAttachment: boolean; isAttachment: boolean;
category?: string; category?: string;
commandSysId: string; commandSysId: string;
isUploadAttachment: boolean;
} }
interface ListTemplateSalary { interface ListTemplateSalary {
@ -50,5 +51,5 @@ export type {
ListOrder, ListOrder,
Tabs, Tabs,
ListTemplateSalary, ListTemplateSalary,
CommandSysType CommandSysType,
}; };

View file

@ -8,7 +8,6 @@ import { useCounterMixin } from "@/stores/mixin";
import { useDataStore } from "@/modules/05_command/stores/main"; import { useDataStore } from "@/modules/05_command/stores/main";
import type { import type {
ActiveOptions,
ListOrder, ListOrder,
Tabs, Tabs,
DateOption, DateOption,
@ -59,6 +58,7 @@ 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); //
const isAttachmentShow = ref<boolean>(true); // show/off const isAttachmentShow = ref<boolean>(true); // show/off
const isUploadAttachment = ref<boolean>(false);
const dataCategory = ref<DateOption[]>([]); // const dataCategory = ref<DateOption[]>([]); //
const categoryOP = ref<DateOption[]>([]); // options const categoryOP = ref<DateOption[]>([]); // options
@ -79,9 +79,7 @@ const page = ref<number>(1); // หน้า
const pageSize = ref<number>(13); // const pageSize = ref<number>(13); //
const maxPage = ref<number>(0); // const maxPage = ref<number>(0); //
/** /** ฟังก์ชั่นดึงรายการประเภทคำสั่ง*/
* งกนดงรายการประเภทคำส
*/
async function fetchCommandType() { async function fetchCommandType() {
showLoader(); showLoader();
await http await http
@ -114,9 +112,7 @@ async function fetchCommandType() {
}); });
} }
/** /** ฟังก์ชันดึงข้อมูลรายการหมวดหมู่*/
* งกนดงขอมลรายการหมวดหม
*/
function fetchCommandSys() { function fetchCommandSys() {
showLoader(); showLoader();
http http
@ -161,6 +157,7 @@ function onDialogEdit(data: ListOrder) {
subtitle.value = data.subtitle ? data.subtitle : ""; subtitle.value = data.subtitle ? data.subtitle : "";
isEdit.value = true; isEdit.value = true;
isAttachment.value = data.isAttachment; isAttachment.value = data.isAttachment;
isUploadAttachment.value = data.isUploadAttachment;
dialogFormCommand.value = true; dialogFormCommand.value = true;
} }
@ -177,9 +174,7 @@ function closeDialog() {
category.value = ""; category.value = "";
} }
/** /** บันทึกข้อมูลการแก้ไขคำสั่ง*/
* นทกขอมลการแกไขคำส
*/
function onSubmit() { function onSubmit() {
dialogConfirm($q, async () => { dialogConfirm($q, async () => {
showLoader(); showLoader();
@ -191,6 +186,7 @@ function onSubmit() {
isActive: status.value, isActive: status.value,
isAttachment: isAttachment.value, isAttachment: isAttachment.value,
isSalary: isSalary.value, isSalary: isSalary.value,
isUploadAttachment: isUploadAttachment.value,
}) })
.then(async () => { .then(async () => {
await fetchCommandType(); await fetchCommandType();
@ -505,6 +501,12 @@ onMounted(async () => {
size="sm" size="sm"
/> />
<q-checkbox v-model="isSalary" label="แก้ไขเงินเดือน" size="sm" /> <q-checkbox v-model="isSalary" label="แก้ไขเงินเดือน" size="sm" />
<q-checkbox
v-model="isUploadAttachment"
label="อัปโหลดบัญชีแนบท้าย"
size="sm"
/>
</div> </div>
</div> </div>
</q-card-section> </q-card-section>