fix(registry):display govAgeBkk

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-02-06 15:06:28 +07:00
parent 597cbc4ed3
commit d1600281f9
2 changed files with 22 additions and 0 deletions

View file

@ -57,6 +57,11 @@ const formMain = reactive<FormMain>({
}, //
absent: 0, //
age: 0, //
govAgeBkk:{
year: 0,
month: 0,
day: 0,
}
});
const modalEdit = ref<boolean>(false); // popup
@ -163,6 +168,7 @@ async function getData() {
formMain.ageAll = data.govAge;
formMain.absent = data.govAgeAbsent;
formMain.age = data.govAgePlus;
formMain.govAgeBkk = data.govAgeBkk;
})
.catch((e) => {
messageError($q, e);
@ -457,6 +463,21 @@ onMounted(() => {
</div>
</div>
</div>
<div class="col-12 col-sm-6 col-md-6">
<div class="row">
<div class="col-12 col-sm-12 col-md-5">
<span class="text-grey-6 text-weight-medium">อายราชการ (กทม.)</span>
</div>
<div class="col-12 col-sm-12 col-md-7">
<span>{{
formMain.govAgeBkk
? `${formMain.govAgeBkk.year} ปี ${formMain.govAgeBkk.month} เดือน ${formMain.govAgeBkk.day} วัน`
: "-"
}}</span>
</div>
</div>
</div>
<div class="col-12 col-sm-6 col-md-6">
<div class="row">
<div class="col-12 col-sm-12 col-md-5">

View file

@ -14,6 +14,7 @@ interface FormMain {
reasonSameDate: string;
retireDate: any;
ageAll: GovAgeForm;
govAgeBkk: GovAgeForm;
absent: number;
age: number;
[key: string]: any;