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;
category?: string;
commandSysId: string;
isUploadAttachment: boolean;
}
interface ListTemplateSalary {
@ -50,5 +51,5 @@ export type {
ListOrder,
Tabs,
ListTemplateSalary,
CommandSysType
CommandSysType,
};

View file

@ -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<boolean>(true); // สถานะของรายกา
const isAttachment = ref<boolean>(true); //
const isSalary = ref<boolean>(true); //
const isAttachmentShow = ref<boolean>(true); // show/off
const isUploadAttachment = ref<boolean>(false);
const dataCategory = ref<DateOption[]>([]); //
const categoryOP = ref<DateOption[]>([]); // options
@ -79,9 +79,7 @@ const page = ref<number>(1); // หน้า
const pageSize = ref<number>(13); //
const maxPage = ref<number>(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"
/>
<q-checkbox v-model="isSalary" label="แก้ไขเงินเดือน" size="sm" />
<q-checkbox
v-model="isUploadAttachment"
label="อัปโหลดบัญชีแนบท้าย"
size="sm"
/>
</div>
</div>
</q-card-section>