comment สำนักนายก
This commit is contained in:
parent
1e7f1a4d85
commit
8dfa5ca02e
1 changed files with 22 additions and 19 deletions
|
|
@ -126,18 +126,17 @@ const fetchOrgList = async () => {
|
|||
id: e.organizationId,
|
||||
name: e.organizationName,
|
||||
}));
|
||||
|
||||
if (props.action == "editData") {
|
||||
OrgList.value = [
|
||||
{
|
||||
id: "00000000-0000-0000-0000-000000000000",
|
||||
name: "สำนักนายกรัฐมนตรี",
|
||||
},
|
||||
...orgArr,
|
||||
];
|
||||
} else {
|
||||
OrgList.value = orgArr;
|
||||
}
|
||||
// if (props.action == "editData") {
|
||||
// OrgList.value = [
|
||||
// {
|
||||
// id: "00000000-0000-0000-0000-000000000000",
|
||||
// name: "สำนักนายกรัฐมนตรี",
|
||||
// },
|
||||
// ...orgArr,
|
||||
// ];
|
||||
// } else {
|
||||
OrgList.value = orgArr;
|
||||
// }
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
@ -160,7 +159,6 @@ const fetchOrgList = async () => {
|
|||
// });
|
||||
// };
|
||||
|
||||
|
||||
// บันทึกข้อมูลการยืม-คืน
|
||||
const clickSave = async () => {
|
||||
await myForm.value!.validate().then((result: boolean) => {
|
||||
|
|
@ -236,12 +234,12 @@ const closeDialog = () => {
|
|||
// reset วันที่ยืม
|
||||
const clearReceiveDate = () => {
|
||||
receivedate.value = null;
|
||||
}
|
||||
};
|
||||
|
||||
// reset วันที่คืน
|
||||
const clearReturnDate = () => {
|
||||
returndate.value = null;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -279,7 +277,9 @@ const clearReturnDate = () => {
|
|||
@update:model-value="fecthlistInsignia()"
|
||||
/>
|
||||
</div>
|
||||
<div class="col-12 q-mt-md text-weight-bold text-grey-7">ข้อมูลผู้ยืม</div>
|
||||
<div class="col-12 q-mt-md text-weight-bold text-grey-7">
|
||||
ข้อมูลผู้ยืม
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<q-input
|
||||
:disable="roundNo == ''"
|
||||
|
|
@ -312,7 +312,11 @@ const clearReturnDate = () => {
|
|||
borderless
|
||||
v-model="fullName"
|
||||
:label="`${'ชื่อ-นามสกุล'}`"
|
||||
:rules="[(val) => !!val || 'ชื่อ-นามสกุลต้องไม่ว่าง กรุณากรอกเลขประจำตัวประชาชนให้ถูกต้อง']"
|
||||
:rules="[
|
||||
(val) =>
|
||||
!!val ||
|
||||
'ชื่อ-นามสกุลต้องไม่ว่าง กรุณากรอกเลขประจำตัวประชาชนให้ถูกต้อง',
|
||||
]"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
@ -398,8 +402,7 @@ const clearReturnDate = () => {
|
|||
class="row col-12 q-col-gutter-x-xs q-col-gutter-y-xs"
|
||||
v-if="props.action === 'editData'"
|
||||
>
|
||||
|
||||
<div class="col-12 text-weight-bold text-grey-7">
|
||||
<div class="col-12 text-weight-bold text-grey-7">
|
||||
รายละเอียดการคืนเครื่องราชฯ
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue