fix เครื่องราช

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-29 13:51:58 +07:00
parent 2bcbbe8c9f
commit 8f3926994a
4 changed files with 62 additions and 31 deletions

View file

@ -10,7 +10,8 @@ import config from "@/app.config";
/**
* import Type
*/
import type { DataOption } from "@/modules/04_registry/components/profileType";
// import type { DataOption } from "@/modules/04_registry/components/profileType";
import type { OptionData } from "@/modules/07_insignia/interface/index/Main";
import DialogHeader from "@/components/DialogHeader.vue";
@ -76,10 +77,10 @@ const affiliationReceived = ref<string>(""); //สังกัด ณ วัน
const receivedate = ref<Date | null>(); //
const announceDate = ref<Date | null>(); //
const invoiceDate = ref<Date | null>(null); //
const filterinsigniaOp2 = ref<DataOption[]>([]); //
const filterinsigniaOp2 = ref<OptionData[]>([]); //
const employeeClass = ref<string>(""); //./
// ./
const employeeClassOps = ref<DataOption[]>([
const employeeClassOps = ref<OptionData[]>([
{ id: "officer", name: "ข้าราชการ กทม.สามัญ" },
{ id: "employee", name: "ลูกจ้างประจำ" },
]);
@ -267,7 +268,7 @@ function filterSelector(val: string, update: Function, name: string) {
if (name === "insigniaOp2") {
brand.value = val ? "" : brand.value;
filterinsigniaOp2.value = DataStore.insigniaOp2.filter(
(v: DataOption) => v.name.toLowerCase().indexOf(needle) > -1
(v: OptionData) => v.name.toLowerCase().indexOf(needle) > -1
);
}
});
@ -486,6 +487,14 @@ watch(props, () => {
class="cursor-pointer"
/>
</template>
<template v-slot:prepend>
<q-icon
name="event"
class="cursor-pointer"
color="primary"
>
</q-icon>
</template>
</q-input>
</template>
</datepicker>
@ -578,6 +587,14 @@ watch(props, () => {
class="cursor-pointer"
/>
</template>
<template v-slot:prepend>
<q-icon
name="event"
class="cursor-pointer"
color="primary"
>
</q-icon>
</template>
</q-input>
</template>
</datepicker>
@ -651,6 +668,7 @@ watch(props, () => {
borderless
:enableTimePicker="false"
week-start="0"
:readonly="disbleStatus"
>
<template #year="{ year }">
{{ year + 543 }}