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 hide-bottom-space
option-label="name" option-label="name"
option-value="id" option-value="id"
:options="dataStore.statusOptions" :options="dataStore.statusOptionsEdit"
/> />
<q-input <q-input
ref="reasonRef" ref="reasonRef"

View file

@ -86,6 +86,15 @@ export const useAppealComplainStore = defineStore(
{ id: "SUMMARY", name: "สรุปผลการพิจารณา" }, { id: "SUMMARY", name: "สรุปผลการพิจารณา" },
{ id: "DONE", 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) { // function filterSelector(val: string, update: Function, type: string) {
// update(() => { // update(() => {
@ -116,7 +125,8 @@ export const useAppealComplainStore = defineStore(
statusOptions, statusOptions,
fiscalyearOP, fiscalyearOP,
getRow, getRow,
rowsAdd rowsAdd,
statusOptionsEdit
}; };
} }
); );