ทะเบียนประวัติ: ผลการประเมิน + แก้ไขฟอร์ม

This commit is contained in:
puriphatt 2024-03-14 16:44:43 +07:00
parent 748a878deb
commit c045d4f7ff
5 changed files with 831 additions and 18 deletions

View file

@ -48,9 +48,9 @@ const page = ref<string>();
const dateAnnounce = ref<Date | null | string>(null);
const refCommandNo = ref<string>();
const refCommandDate = ref<Date | null | string>();
const editRow = ref<boolean>(false);
const note = ref<string>();
const editRow = ref<boolean>(false);
const myForm = ref<any>();
const edit = ref<boolean>(false);
const modal = ref<boolean>(false);
@ -534,7 +534,7 @@ const clickClose = async () => {
ok: "ยืนยัน",
persistent: true,
}).onOk(async () => {
// modal.value = false;
modal.value = false;
// next.value = false;
// previous.value = false;
});
@ -903,6 +903,7 @@ onMounted(async () => {
menu-class-name="modalfix"
v-model="receiveDate"
:locale="'th'"
:enableTimePicker="false"
>
<template #year="{ year }">
{{ year + 543 }}
@ -922,9 +923,9 @@ onMounted(async () => {
? date2Thai(receiveDate as Date)
: null
"
:label="`${'วัน/เดือน/ปี ที่วันที่ได้รับ'}`"
:label="`${'วันที่ได้รับ'}`"
:rules="[
(val) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`,
(val) => !!val || `${'กรุณาเลือกวันที่ได้รับ'}`,
]"
@update:modelValue="() => (editRow = true)"
>
@ -1065,7 +1066,7 @@ onMounted(async () => {
lazy-rules
hide-bottom-space
:model-value="date2Thai(dateAnnounce as Date)"
:label="`${'วัน/เดือน/ปี ที่ประกาศในราชกิจจาฯ'}`"
:label="`${'วันที่ประกาศในราชกิจจาฯ'}`"
:rules="[
(val:string) =>
!!val || `${'กรุณาเลือกวันที่ประกาศในราชกิจจาฯ'}`,
@ -1140,13 +1141,6 @@ onMounted(async () => {
color="primary"
/>
</template>
<template v-if="refCommandDate && edit" v-slot:append>
<q-icon
name="cancel"
@click.stop.prevent="refCommandDate = null"
class="cursor-pointer"
/>
</template>
</q-input>
</template>
</datepicker>