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