fx isupload
This commit is contained in:
parent
1382aaa268
commit
9651d6dc91
2 changed files with 14 additions and 11 deletions
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue