data option

This commit is contained in:
setthawutttty 2023-12-14 16:48:16 +07:00
parent 71b72d6215
commit 55d46f0c1e
2 changed files with 12 additions and 2 deletions

View file

@ -125,7 +125,7 @@ watch(
hide-bottom-space
option-label="name"
option-value="id"
:options="dataStore.statusOptions"
:options="dataStore.statusOptionsEdit"
/>
<q-input
ref="reasonRef"

View file

@ -86,6 +86,15 @@ export const useAppealComplainStore = defineStore(
{ id: "SUMMARY", name: "สรุปผลการพิจารณา" },
{ id: "DONE", name: "ปิดคำร้อง" },
]);
const statusOptionsEdit = ref<DataOption[]>([
{ id: "NEW", name: "ใหม่" },
{ id: "RECEIVE_DOC", name: "ได้รับเอกสารแล้ว" },
{ id: "RECEIVE_APPEAL", name: "รับอุทธรณ์/ร้องทุกข์" },
{ id: "NO_RECEIVE_APPEAL", name: "ไม่รับอุทธรณ์/ร้องทุกข์" },
{ id: "DIAGNOSTIC", name: "ตั้งองค์คณะวินิจฉัย" },
{ id: "SUMMARY", name: "สรุปผลการพิจารณา" },
{ id: "DONE", name: "ปิดคำร้อง" },
]);
// function filterSelector(val: string, update: Function, type: string) {
// update(() => {
@ -116,7 +125,8 @@ export const useAppealComplainStore = defineStore(
statusOptions,
fiscalyearOP,
getRow,
rowsAdd
rowsAdd,
statusOptionsEdit
};
}
);