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