เครื่องราชอิสริยาภรณ์ => ปรับ form Dialog

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-06-11 11:07:34 +07:00
parent 5450ad5e87
commit e8976a3d82
7 changed files with 276 additions and 290 deletions

View file

@ -1360,7 +1360,6 @@ onMounted(async () => {
@click="clickSave" @click="clickSave"
class="q-px-md" class="q-px-md"
> >
<!-- icon="mdi-content-save-outline" -->
<q-tooltip>นท</q-tooltip> <q-tooltip>นท</q-tooltip>
</q-btn> </q-btn>
</q-card-actions> </q-card-actions>

View file

@ -1,4 +1,4 @@
<script setup lang="ts"> divdiv<script setup lang="ts">
import { ref, watch, computed } from "vue"; import { ref, watch, computed } from "vue";
import { QForm, useQuasar } from "quasar"; import { QForm, useQuasar } from "quasar";
import http from "@/plugins/http"; import http from "@/plugins/http";
@ -238,7 +238,10 @@ async function fectDataByid(id: string) {
} }
/** function บักทึกผล*/ /** function บักทึกผล*/
async function clickSave() { async function onSubmit() {
dialogConfirm($q, () => {
if (props.roundId !== undefined) {
showLoader();
let body = { let body = {
citizanId: cardid.value, // citizanId: cardid.value, //
insigniaId: brand.value, // insigniaID insigniaId: brand.value, // insigniaID
@ -256,33 +259,20 @@ async function clickSave() {
typePayment: payment.value, // typePayment: payment.value, //
address: addressPayment.value, // address: addressPayment.value, //
}; };
// http
await myForm.value!.validate().then((result: boolean) => {
if (result) {
dialogConfirm($q, async () => {
await addNote(body);
});
}
});
}
/** function เพิ่มแก้ ข้อมูลบันทึกผล*/
async function addNote(body: any) {
if (props.roundId !== undefined) {
await http
.put(config.API.noteAdd(props.roundId), body) .put(config.API.noteAdd(props.roundId), body)
.then(() => { .then(() => {
success($q, "บันทึกข้อมูลสำเร็จ"); success($q, "บันทึกข้อมูลสำเร็จ");
props.close?.();
}) })
.catch((err) => { .catch((err) => {
messageError($q, err); messageError($q, err);
}) })
.finally(() => { .finally(() => {
if (props.close) { hideLoader();
props.close();
}
}); });
} }
});
} }
/** function หาเลขประจำตัวประชาชน*/ /** function หาเลขประจำตัวประชาชน*/
@ -317,12 +307,16 @@ const filterSelector = (val: any, update: Function, name: any) => {
<template> <template>
<q-dialog v-model="props.modal" persistent> <q-dialog v-model="props.modal" persistent>
<q-card style="min-width: 900px" class="q-pb-md"> <q-card style="min-width: 900px" >
<q-form
ref="myForm"
greedy
@submit.prevent
@validation-success="onSubmit"
>
<DialogHeader tittle="บันทึกผล" :close="props.close" /> <DialogHeader tittle="บันทึกผล" :close="props.close" />
<q-separator /> <q-separator />
<q-card-section>
<q-form ref="myForm">
<div class="q-pa-md bg-grey-1">
<div class="row col-12 q-col-gutter-x-xs q-col-gutter-y-xs"> <div class="row col-12 q-col-gutter-x-xs q-col-gutter-y-xs">
<div class="col-4"> <div class="col-4">
<q-select <q-select
@ -343,6 +337,7 @@ const filterSelector = (val: any, update: Function, name: any) => {
@update:model-value="selectType" @update:model-value="selectType"
:disable="status !== ''" :disable="status !== ''"
lazy-rules lazy-rules
class="inputgreen"
/> />
</div> </div>
<div class="col-12 text-weight-bold text-grey"> <div class="col-12 text-weight-bold text-grey">
@ -421,6 +416,7 @@ const filterSelector = (val: any, update: Function, name: any) => {
v-model="Advertise" v-model="Advertise"
lazy-rules lazy-rules
label="หมายเลขประกาศนีย์บัตรกำกับเครื่องราชอิสริยาภรณ์" label="หมายเลขประกาศนีย์บัตรกำกับเครื่องราชอิสริยาภรณ์"
class="inputgreen"
/> />
</div> </div>
<div class="col-xs-12 col-sm-6"> <div class="col-xs-12 col-sm-6">
@ -440,6 +436,7 @@ const filterSelector = (val: any, update: Function, name: any) => {
:readonly="false" :readonly="false"
use-input use-input
:borderless="false" :borderless="false"
class="inputgreen"
style="min-width: 150px" style="min-width: 150px"
:rules="[ :rules="[
(val) => !!val || 'กรุณากรอกชื่อชั้นตราเครื่องราชอิสริยาภรณ์', (val) => !!val || 'กรุณากรอกชื่อชั้นตราเครื่องราชอิสริยาภรณ์',
@ -472,6 +469,7 @@ const filterSelector = (val: any, update: Function, name: any) => {
borderless borderless
outlined outlined
:rules="[(val) => !!val || 'กรุณาเลือกวันที่']" :rules="[(val) => !!val || 'กรุณาเลือกวันที่']"
class="inputgreen"
hide-bottom-space hide-bottom-space
:model-value=" :model-value="
receivedate != null ? date2Thai(receivedate) : undefined receivedate != null ? date2Thai(receivedate) : undefined
@ -493,6 +491,7 @@ const filterSelector = (val: any, update: Function, name: any) => {
<q-input <q-input
:disable="disbleStatus || status == 'DONE'" :disable="disbleStatus || status == 'DONE'"
:rules="[(val) => !!val || 'กรุณากรอกทะเบียนฐานนันดร']" :rules="[(val) => !!val || 'กรุณากรอกทะเบียนฐานนันดร']"
class="inputgreen"
hide-bottom-space hide-bottom-space
dense dense
borderless borderless
@ -508,6 +507,7 @@ const filterSelector = (val: any, update: Function, name: any) => {
disbleStatus || status == 'DONE' || status == 'PENDING' disbleStatus || status == 'DONE' || status == 'PENDING'
" "
:rules="[(val) => !!val || 'กรุณากรอกสังกัด']" :rules="[(val) => !!val || 'กรุณากรอกสังกัด']"
class="inputgreen"
hide-bottom-space hide-bottom-space
dense dense
lazy-rules lazy-rules
@ -523,6 +523,7 @@ const filterSelector = (val: any, update: Function, name: any) => {
disbleStatus || status == 'DONE' || status == 'PENDING' disbleStatus || status == 'DONE' || status == 'PENDING'
" "
:rules="[(val) => !!val || 'กรุณากรอกสังกัด']" :rules="[(val) => !!val || 'กรุณากรอกสังกัด']"
class="inputgreen"
hide-bottom-space hide-bottom-space
dense dense
borderless borderless
@ -560,6 +561,7 @@ const filterSelector = (val: any, update: Function, name: any) => {
borderless borderless
outlined outlined
:rules="[(val) => !!val || 'กรุณาเลือกวันที่']" :rules="[(val) => !!val || 'กรุณาเลือกวันที่']"
class="inputgreen"
hide-bottom-space hide-bottom-space
:model-value=" :model-value="
announceDate != null ? date2Thai(announceDate) : undefined announceDate != null ? date2Thai(announceDate) : undefined
@ -660,6 +662,7 @@ const filterSelector = (val: any, update: Function, name: any) => {
borderless borderless
outlined outlined
hide-bottom-space hide-bottom-space
class="inputgreen"
:model-value=" :model-value="
invoiceDate != null ? date2Thai(invoiceDate) : undefined invoiceDate != null ? date2Thai(invoiceDate) : undefined
" "
@ -684,7 +687,7 @@ const filterSelector = (val: any, update: Function, name: any) => {
:disable="disbleStatus" :disable="disbleStatus"
hide-bottom-space hide-bottom-space
:options="paymentOp" :options="paymentOp"
class="col-xs-12 col-sm-6" class="inputgreen"
dense dense
borderless borderless
option-label="label" option-label="label"
@ -701,27 +704,24 @@ const filterSelector = (val: any, update: Function, name: any) => {
<q-input <q-input
:disable="disbleStatus" :disable="disbleStatus"
label="ที่อยู่ที่จ่าย" label="ที่อยู่ที่จ่าย"
class="bg-white"
dense dense
lazy-rules lazy-rules
borderless borderless
outlined outlined
v-model="addressPayment" v-model="addressPayment"
type="textarea" type="textarea"
class="inputgreen"
/> />
</div> </div>
</div> </div>
</div> </q-card-section>
</q-form>
<q-separator /> <q-separator />
<div class="q-pa-md"> <q-card-actions align="right">
<div class="row justify-end"> <q-btn label="บันทึก" type="submit" color="public"
<q-btn label="บันทึก" @click="clickSave" color="public"
><q-tooltip>นท</q-tooltip></q-btn ><q-tooltip>นท</q-tooltip></q-btn
> >
</div> </q-card-actions>
</div> </q-form>
</q-card> </q-card>
</q-dialog> </q-dialog>
</template> </template>

View file

@ -1,3 +1,4 @@
div
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, ref, watch } from "vue"; import { onMounted, ref, watch } from "vue";
import { QForm, useQuasar } from "quasar"; import { QForm, useQuasar } from "quasar";
@ -74,21 +75,8 @@ function close() {
* @param type receive,return * @param type receive,return
* @param id personId * @param id personId
*/ */
async function SaveData(type: string, id: string) { async function onSubmit(type: string, id: string) {
await myForm.value.validate().then((result: boolean) => { dialogConfirm($q, () => {
if (result) {
dialogConfirm($q, () => dataSave(type, id));
} else {
}
});
}
/**
* function นทกขอม
* @param type receive,return
* @param id personId
*/
function dataSave(type: string, id: string) {
const formData = new FormData(); const formData = new FormData();
if (props.dateCheckReceive === null) { if (props.dateCheckReceive === null) {
formData.append("Date", dateToISO((Datereceive.value as Date) ?? nullii)); formData.append("Date", dateToISO((Datereceive.value as Date) ?? nullii));
@ -119,6 +107,7 @@ function dataSave(type: string, id: string) {
props.close?.(); props.close?.();
hideLoader(); hideLoader();
}); });
});
} }
/** function เรียกหน่วยงาน*/ /** function เรียกหน่วยงาน*/
@ -175,6 +164,17 @@ watch(props, () => {
<template> <template>
<q-dialog v-model="props.modal" persistent> <q-dialog v-model="props.modal" persistent>
<q-card style="min-width: 900px"> <q-card style="min-width: 900px">
<q-form
ref="myForm"
greedy
@submit.prevent
@validation-success="
onSubmit(
props.dateCheckReceive === null ? 'receive' : 'return',
props.personId as string
)
"
>
<q-toolbar> <q-toolbar>
<q-toolbar-title class="text-subtitle2 text-bold" <q-toolbar-title class="text-subtitle2 text-bold"
>-นเครองราชฯ</q-toolbar-title >-นเครองราชฯ</q-toolbar-title
@ -189,9 +189,7 @@ watch(props, () => {
/> />
</q-toolbar> </q-toolbar>
<q-separator /> <q-separator />
<q-card-section>
<q-form ref="myForm">
<div class="q-pa-md bg-grey-1">
<div class="row col-12 q-col-gutter-x-xs q-col-gutter-y-xs"> <div class="row col-12 q-col-gutter-x-xs q-col-gutter-y-xs">
<div class="col-12 text-weight-bold text-grey-7"> <div class="col-12 text-weight-bold text-grey-7">
บเครองราชฯ บเครองราชฯ
@ -220,18 +218,20 @@ watch(props, () => {
outlined outlined
:rules="[(val) => !!val || 'กรุณาเลือกวันที่ได้รับ']" :rules="[(val) => !!val || 'กรุณาเลือกวันที่ได้รับ']"
hide-bottom-space hide-bottom-space
class="inputgreen"
:model-value=" :model-value="
Datereceive != null ? date2Thai(Datereceive) : null Datereceive != null ? date2Thai(Datereceive) : null
" "
:label="`${'วันที่ได้รับ'}`" :label="`${'วันที่ได้รับ'}`"
:disable="dateCheckReceive !== null" :disable="dateCheckReceive !== null"
> >
<template v-if="Datereceive" v-slot:append> <template v-slot:prepend>
<q-icon <q-icon
name="cancel" name="event"
@click.stop.prevent="Datereceive = null"
class="cursor-pointer" class="cursor-pointer"
/> color="primary"
>
</q-icon>
</template> </template>
</q-input> </q-input>
</template> </template>
@ -285,6 +285,7 @@ watch(props, () => {
:label="`หน่วยงานที่รับ`" :label="`หน่วยงานที่รับ`"
:rules="[(val) => !!val || 'กรุณาเลือกหน่วยงานที่รับ']" :rules="[(val) => !!val || 'กรุณาเลือกหน่วยงานที่รับ']"
:disable="dateCheckReceive !== null" :disable="dateCheckReceive !== null"
class="inputgreen"
/> />
</div> </div>
</div> </div>
@ -319,6 +320,7 @@ watch(props, () => {
dense dense
borderless borderless
outlined outlined
class="inputgreen"
:rules="[(val) => !!val || 'กรุณาเลือกวันที่คืน']" :rules="[(val) => !!val || 'กรุณาเลือกวันที่คืน']"
hide-bottom-space hide-bottom-space
:model-value=" :model-value="
@ -389,30 +391,24 @@ watch(props, () => {
:label="`หน่วยงานที่คืน`" :label="`หน่วยงานที่คืน`"
:rules="[(val) => !!val || 'กรุณาเลือกหน่วยงานที่คืน']" :rules="[(val) => !!val || 'กรุณาเลือกหน่วยงานที่คืน']"
:disable="dateCheckReturn !== null" :disable="dateCheckReturn !== null"
class="inputgreen"
/> />
</div> </div>
</div> </div>
</div> </q-card-section>
</q-form>
<q-separator /> <q-separator v-if="dateCheckReturn === null" />
<div class="q-px-md q-py-sm"> <q-card-actions align="right">
<div class="row justify-end">
<q-btn <q-btn
v-if="dateCheckReturn === null" v-if="dateCheckReturn === null"
label="บันทึก" label="บันทึก"
color="public" color="public"
@click=" type="submit"
SaveData(
props.dateCheckReceive === null ? 'receive' : 'return',
props.personId as string
)
"
> >
<q-tooltip>นท</q-tooltip> <q-tooltip>นท</q-tooltip>
</q-btn> </q-btn>
</div> </q-card-actions>
</div> </q-form>
</q-card> </q-card>
</q-dialog> </q-dialog>
</template> </template>

View file

@ -1,3 +1,4 @@
div
<script setup lang="ts"> <script setup lang="ts">
import { ref, watch } from "vue"; import { ref, watch } from "vue";
import { QForm, useQuasar } from "quasar"; import { QForm, useQuasar } from "quasar";
@ -41,7 +42,7 @@ function closeModal() {
} }
/** function ยืนยันการบันทึก*/ /** function ยืนยันการบันทึก*/
const clickSave = () => { const onSubmit = () => {
dialogConfirm($q, () => { dialogConfirm($q, () => {
if (props.actionType === "insignia") { if (props.actionType === "insignia") {
props.save( props.save(
@ -68,11 +69,15 @@ watch(props, () => {
<template> <template>
<q-dialog v-model="props.modal" persistent> <q-dialog v-model="props.modal" persistent>
<q-card style="width: 800px"> <q-card style="width: 800px">
<q-form
ref="myForm"
greedy
@submit.prevent
@validation-success="onSubmit"
>
<DialogHeader tittle="แก้ไขการจัดสรรเครื่องราชฯ" :close="closeModal" /> <DialogHeader tittle="แก้ไขการจัดสรรเครื่องราชฯ" :close="closeModal" />
<q-separator /> <q-separator />
<q-card-section>
<q-form ref="myForm">
<div class="q-pa-md bg-grey-1">
<div <div
class="row col-12 items-center q-col-gutter-x-xs q-col-gutter-y-xs" class="row col-12 items-center q-col-gutter-x-xs q-col-gutter-y-xs"
> >
@ -99,17 +104,18 @@ watch(props, () => {
lazy-rules lazy-rules
type="number" type="number"
label="จำนวน" label="จำนวน"
:rules="[(val) => !!val || `${'กรุณากรอกจำนวน'}`]"
/> />
</div> </div></div
</div> ></q-card-section>
</div>
</q-form>
<q-separator /> <q-separator />
<div class="row justify-end q-py-sm"> <q-card-actions align="right">
<div class="q-px-md"> <q-btn label="บันทึก" type="submit" color="public">
<q-btn label="บันทึก" @click="clickSave" color="public" /> <q-tooltip>นท</q-tooltip>
</div> </q-btn>
</div> </q-card-actions>
</q-form>
</q-card> </q-card>
</q-dialog> </q-dialog>
</template> </template>

View file

@ -1,3 +1,4 @@
div
<script setup lang="ts"> <script setup lang="ts">
import { ref, watch } from "vue"; import { ref, watch } from "vue";
import { QForm, useQuasar } from "quasar"; import { QForm, useQuasar } from "quasar";
@ -53,7 +54,10 @@ function filterSelector(val: any, update: Function, name: any) {
const needle = val.toLowerCase(); const needle = val.toLowerCase();
if (name === "filterInsigniaOp") { if (name === "filterInsigniaOp") {
grandCross.value = null; grandCross.value = null;
filterInsigniaOp.value = props.insigniaList.filter( const newList = props.insigniaList.filter(
(e: any) => e.name !== "ทั้งหมด"
);
filterInsigniaOp.value = newList.filter(
(v: any) => v.name.toLowerCase().indexOf(needle) > -1 (v: any) => v.name.toLowerCase().indexOf(needle) > -1
); );
} }
@ -61,16 +65,16 @@ function filterSelector(val: any, update: Function, name: any) {
} }
/** function ยืนยันการบันทึก*/ /** function ยืนยันการบันทึก*/
const clickSave = () => { const onSubmit = () => {
if (myForm.value !== null) { // if (myForm.value !== null) {
myForm.value.validate().then(async (success) => { // myForm.value.validate().then(async (success) => {
if (success) { // if (success) {
dialogConfirm($q, () => props.save(grandCross.value, amount.value)); dialogConfirm($q, () => props.save(grandCross.value, amount.value));
} else { // } else {
dialogMessageNotify($q, "กรุณาข้อมูลให้ครบ"); // dialogMessageNotify($q, "");
} // }
}); // });
} // }
}; };
watch(props, () => { watch(props, () => {
@ -84,22 +88,28 @@ watch(props, () => {
watch( watch(
() => props.insigniaList, () => props.insigniaList,
(newVal) => { (newVal) => {
filterInsigniaOp.value = newVal; filterInsigniaOp.value = newVal.filter((e: any) => e.name !== "ทั้งหมด");
} }
); );
</script> </script>
<template> <template>
<q-dialog v-model="props.modal" persistent> <q-dialog v-model="props.modal" persistent>
<q-card style="width: 800px"> <q-card style="width: 700px; max-width: 80vw">
<q-form
ref="myForm"
greedy
@submit.prevent
@validation-success="onSubmit"
>
<DialogHeader tittle="จัดสรรเครื่องราชฯ" :close="closeModal" /> <DialogHeader tittle="จัดสรรเครื่องราชฯ" :close="closeModal" />
<q-separator /> <q-separator />
<q-form ref="myForm"> <q-card-section>
<div class="q-pa-md bg-grey-1">
<div class="row col-12 q-col-gutter-x-xs q-col-gutter-y-xs"> <div class="row col-12 q-col-gutter-x-xs q-col-gutter-y-xs">
<div class="col-6"> <div class="col-6">
<q-select <q-select
class="inputgreen"
hide-bottom-space hide-bottom-space
:options="filterInsigniaOp" :options="filterInsigniaOp"
dense dense
@ -112,7 +122,7 @@ watch(
map-options map-options
outlined outlined
options-cover options-cover
:rules="[(val) => !!val || `${'กรุณากรอกจำนวน'}`]" :rules="[(val) => !!val || `${'กรุณาเลือกเครื่องราชฯ'}`]"
v-model="grandCross" v-model="grandCross"
:label=" :label="
routeName == 'insigniaAllocate' routeName == 'insigniaAllocate'
@ -137,20 +147,15 @@ watch(
/> />
</div> </div>
</div> </div>
</div> </q-card-section>
</q-form>
<q-separator /> <q-separator />
<div class="row justify-end q-py-sm"> <q-card-actions align="right">
<div class="q-px-md"> <q-btn label="บันทึก" type="submit" color="public"
<q-btn ><q-tooltip>นท</q-tooltip></q-btn
label="บันทึก" >
@click="clickSave" </q-card-actions>
color="public" </q-form>
:disable="grandCross == '' || amount == null || amount == 0"
/>
</div>
</div>
</q-card> </q-card>
</q-dialog> </q-dialog>
</template> </template>

View file

@ -160,26 +160,25 @@ async function fetchOrgList() {
// - // -
/** function บันทึกการเพิ่มข้อมูล*/ /** function บันทึกการเพิ่มข้อมูล*/
async function clickSave() { async function onSubmit() {
await myForm.value!.validate().then((result: boolean) => {
if (result) {
dialogConfirm($q, async () => { dialogConfirm($q, async () => {
showLoader();
if (props.action == "addData") { if (props.action == "addData") {
await http await http
.post(config.API.insigniaManageBorrow(), { .post(config.API.insigniaManageBorrow(), {
borrowDate: receivedate.value, borrowDate: receivedate.value,
// borrowOrganizationId: OrganazationId.value,
insigniaNoteProfileId: insigniaNoteProfileId.value, insigniaNoteProfileId: insigniaNoteProfileId.value,
}) })
.then(() => { .then(() => {
success($q, "บันทึกข้อมูลสำเร็จ"); success($q, "บันทึกข้อมูลสำเร็จ");
clearData();
props.closeAndFecth();
}) })
.catch((err) => { .catch((err) => {
messageError($q, err); messageError($q, err);
}) })
.finally(() => { .finally(() => {
clearData(); hideLoader();
props.closeAndFecth();
}); });
} else { } else {
await http await http
@ -190,15 +189,14 @@ async function clickSave() {
}) })
.then(() => { .then(() => {
success($q, "บันทึกข้อมูลสำเร็จ"); success($q, "บันทึกข้อมูลสำเร็จ");
clearData();
props.closeAndFecth();
}) })
.catch((err) => { .catch((err) => {
messageError($q, err); messageError($q, err);
}) })
.finally(() => { .finally(() => {
clearData(); hideLoader();
props.closeAndFecth();
});
}
}); });
} }
}); });
@ -297,11 +295,15 @@ watch(props, () => {
<template> <template>
<q-dialog v-model="props.modal" persistent> <q-dialog v-model="props.modal" persistent>
<q-card style="min-width: 900px"> <q-card style="min-width: 900px">
<q-form
ref="myForm "
greedy
@submit.prevent
@validation-success="onSubmit"
>
<DialogHeader tittle="ยืม-คืนเครื่องราชฯ" :close="closeDialog" /> <DialogHeader tittle="ยืม-คืนเครื่องราชฯ" :close="closeDialog" />
<q-separator /> <q-separator />
<q-card-section>
<q-form ref="myForm">
<div class="q-pa-md bg-grey-1">
<div <div
class="row col-12 items-center q-col-gutter-x-xs q-col-gutter-y-xs" class="row col-12 items-center q-col-gutter-x-xs q-col-gutter-y-xs"
> >
@ -311,6 +313,7 @@ watch(props, () => {
> >
<div class="col-6"> <div class="col-6">
<q-select <q-select
class="inputgreen"
v-model="roundNo" v-model="roundNo"
dense dense
outlined outlined
@ -409,6 +412,7 @@ watch(props, () => {
</template> </template>
<template #trigger> <template #trigger>
<q-input <q-input
class="inputgreen"
dense dense
borderless borderless
outlined outlined
@ -430,28 +434,6 @@ watch(props, () => {
</template> </template>
</datepicker> </datepicker>
</div> </div>
<!-- <div class="col-xs-12 col-sm-6">
<q-select
hide-bottom-space
:options="filterOrgList"
dense
borderless
option-label="name"
option-value="id"
emit-value
use-input
map-options
outlined
v-model="OrganazationId"
lazy-rules
:label="`เลือกหน่วยงาน`"
:rules="[(val) => !!val || 'กรุณาเลือกหน่วยงาน']"
@filter="(inputValue:any,
doneFn:Function) => filterSelector(inputValue, doneFn,'filterOrgList'
) "
/>
</div> -->
</div> </div>
<div <div
@ -542,19 +524,17 @@ watch(props, () => {
:label="`สาเหตุที่ส่งคืนเครื่องราชอิสริยาภรณ์`" :label="`สาเหตุที่ส่งคืนเครื่องราชอิสริยาภรณ์`"
/> />
</div> </div>
</div> </div></div
</div> ></q-card-section>
</div>
</q-form>
<q-separator /> <q-separator />
<div class="q-pa-md">
<div class="row justify-end"> <q-card-actions align="right">
<q-btn label="บันทึก" @click="clickSave" color="public"> <q-btn label="บันทึก" type="submit" color="public">
<q-tooltip>นท</q-tooltip> <q-tooltip>นท</q-tooltip>
</q-btn> </q-btn>
</div> </q-card-actions>
</div> </q-form>
</q-card> </q-card>
</q-dialog> </q-dialog>
</template> </template>

View file

@ -36,7 +36,7 @@ export const useRegistryEmp = defineStore("registry-employee", () => {
switch (val) { switch (val) {
case "WAITTING": case "WAITTING":
return "รอดำเนินการ"; return "รอดำเนินการ";
case "REPORT": case "PENDING":
return "เลือกตำแหน่งแล้ว"; return "เลือกตำแหน่งแล้ว";
case "APPROVE": case "APPROVE":
return "อนุมัติ"; return "อนุมัติ";