เครื่องราช
This commit is contained in:
parent
88016802b4
commit
b02e8283d0
5 changed files with 40 additions and 73 deletions
|
|
@ -125,8 +125,6 @@ async function fecthlistInsignia() {
|
|||
}
|
||||
}
|
||||
|
||||
/** function ดึงข้อมูลรายการหน่วยงาน */
|
||||
|
||||
/** funcion เรียกข้อมูลหน่วยงานจัดสรรเครื่องราชอิสริยาภรณ์ */
|
||||
async function fetchOrgList() {
|
||||
http
|
||||
|
|
@ -180,8 +178,8 @@ async function onSubmit() {
|
|||
})
|
||||
.then(async () => {
|
||||
await props.closeAndFecth();
|
||||
await clearData();
|
||||
await success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
await clearData();
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
@ -292,6 +290,7 @@ watch(props, () => {
|
|||
// fetchOrgList();
|
||||
} else {
|
||||
fecthlistInsignia();
|
||||
setValue();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -476,6 +475,7 @@ watch(props, () => {
|
|||
"
|
||||
:label="`${'วันที่คืน'}`"
|
||||
clearable
|
||||
class="inputgreen"
|
||||
@clear="clearReturnDate"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
|
|
@ -515,6 +515,7 @@ watch(props, () => {
|
|||
|
||||
<div class="col-12">
|
||||
<q-input
|
||||
class="inputgreen"
|
||||
type="textarea"
|
||||
hide-bottom-space
|
||||
dense
|
||||
|
|
@ -529,8 +530,9 @@ watch(props, () => {
|
|||
:label="`สาเหตุที่ส่งคืนเครื่องราชอิสริยาภรณ์`"
|
||||
/>
|
||||
</div>
|
||||
</div></div
|
||||
></q-card-section>
|
||||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
|
||||
<q-separator />
|
||||
|
||||
|
|
|
|||
|
|
@ -374,9 +374,9 @@ function close() {
|
|||
}
|
||||
|
||||
/** function closePopup และเเรียกข้อมูลรายชื่อการเสนอขอเครื่องราชฯ */
|
||||
function closeAndFecth() {
|
||||
async function closeAndFecth() {
|
||||
await fecthlistInsignia();
|
||||
modal.value = false;
|
||||
fecthlistInsignia();
|
||||
}
|
||||
|
||||
/** function openPopup เพิ่มรายการ ยืม-คืนเครื่องราชฯ*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue