diff --git a/public/option/option.json b/public/option/option.json index 7b9f975f..2d4991aa 100644 --- a/public/option/option.json +++ b/public/option/option.json @@ -1,28 +1,5 @@ { "eng": { - "visaType": [ - { - "label": "Non-LA", - "value": "nla" - }, - { - "label": "Non-B", - "value": "nb" - }, - { - "label": "TV.60", - "value": "tv60" - }, - { - "label": "Non-TR", - "value": "ntr" - }, - { - "label": "TV.30", - "value": "tv30" - } - ], - "workerStatus": [ { "label": "Normal", @@ -1074,29 +1051,6 @@ }, "tha": { - "visaType": [ - { - "label": "Non-LA", - "value": "nla" - }, - { - "label": "Non-B", - "value": "nb" - }, - { - "label": "ผผ.60", - "value": "tv60" - }, - { - "label": "Non-TR", - "value": "ntr" - }, - { - "label": "ผผ.30", - "value": "tv30" - } - ], - "workerStatus": [ { "label": "ปกติ", diff --git a/src/boot/i18n.ts b/src/boot/i18n.ts index 9e2cda0d..647f3d10 100644 --- a/src/boot/i18n.ts +++ b/src/boot/i18n.ts @@ -2,7 +2,6 @@ import { defineBoot } from '#q-app/wrappers'; import { createI18n } from 'vue-i18n'; import messages from 'src/i18n'; -import { Lang } from 'src/utils/ui'; export type MessageLanguages = keyof typeof messages; // Type-define 'eng' as the master schema for the resource @@ -27,7 +26,7 @@ export const i18n = createI18n< MessageLanguages, false >({ - locale: Lang.Thai, + locale: 'en-US', legacy: false, messages, }); diff --git a/src/components/02_personnel-management/FormPerson.vue b/src/components/02_personnel-management/FormPerson.vue index 7773b161..5fa321b6 100644 --- a/src/components/02_personnel-management/FormPerson.vue +++ b/src/components/02_personnel-management/FormPerson.vue @@ -196,11 +196,7 @@ watch( class="col" :label="$t('personnel.form.firstName')" v-model="firstName" - :rules=" - employee - ? [] - : [(val: string) => !!val || $t('form.error.required')] - " + :rules="[(val: string) => !!val || $t('form.error.required')]" /> @@ -410,15 +394,11 @@ watch( :readonly="readonly" :label="$t('form.birthDate')" :disabled-dates="disabledAfterToday" - :rules=" - employee - ? [] - : [ - (val: string) => - !!val || - $t('form.error.selectField', { field: $t('form.birthDate') }), - ] - " + :rules="[ + (val: string) => + !!val || + $t('form.error.selectField', { field: $t('form.birthDate') }), + ]" />