comment สำนักนายก

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-21 17:01:30 +07:00
parent 1e7f1a4d85
commit 8dfa5ca02e

View file

@ -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">