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