รายการประวัติตำแหน่ง/เงินเดือน ==> เพิ่ม clearable

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-05-20 15:01:42 +07:00
parent 4291052cc0
commit 2d72db3678

View file

@ -1,5 +1,4 @@
<script setup lang="ts"> <script setup lang="ts">
import { useCounterMixin } from "@/stores/mixin"; import { useCounterMixin } from "@/stores/mixin";
import { useEditPosDataStore } from "@/modules/04_registryPerson/stores/Edit"; import { useEditPosDataStore } from "@/modules/04_registryPerson/stores/Edit";
@ -161,9 +160,15 @@ function classInput(val: boolean) {
outlined outlined
dense dense
borderless borderless
:model-value="date2Thai(formData.commandDateAffect)" :model-value="
formData.commandDateAffect
? date2Thai(formData.commandDateAffect)
: null
"
:label="`${'วันที่คำสั่งมีผล'}`" :label="`${'วันที่คำสั่งมีผล'}`"
hide-bottom-space hide-bottom-space
clearable
@clear="formData.commandDateAffect = null"
> >
<template v-slot:prepend> <template v-slot:prepend>
<q-icon name="event" color="primary" class="cursor-pointer"> <q-icon name="event" color="primary" class="cursor-pointer">
@ -247,6 +252,8 @@ function classInput(val: boolean) {
: formData.commandYear + 543 : formData.commandYear + 543
" "
:label="`${'พ.ศ.'}`" :label="`${'พ.ศ.'}`"
clearable
@clear="formData.commandYear = null"
> >
<template v-slot:prepend> <template v-slot:prepend>
<q-icon <q-icon
@ -284,9 +291,15 @@ function classInput(val: boolean) {
outlined outlined
dense dense
borderless borderless
:model-value="date2Thai(formData.commandDateSign)" :model-value="
formData.commandDateSign
? date2Thai(formData.commandDateSign)
: null
"
:label="`${'วันที่ลงนาม'}`" :label="`${'วันที่ลงนาม'}`"
hide-bottom-space hide-bottom-space
clearable
@clear="formData.commandDateSign = null"
> >
<template v-slot:prepend> <template v-slot:prepend>
<q-icon name="event" color="primary" class="cursor-pointer"> <q-icon name="event" color="primary" class="cursor-pointer">