fix bug display data report registry

This commit is contained in:
Warunee Tamkoo 2025-05-29 11:09:50 +07:00
parent d76686caba
commit 2ae10162ae

View file

@ -139,7 +139,7 @@ const visibleColumnsBase = ref<string[]>([
"age",
"positionDate",
"levelDate",
"posExecutive",
"posExecutiveDate",
]);
const columns = computed<QTableProps["columns"]>(() => {
@ -362,11 +362,11 @@ const columns = computed<QTableProps["columns"]>(() => {
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "posExecutive",
name: "posExecutiveDate",
align: "left",
label: "ระยะเวลาดำรงตำแหน่ง (บริหาร) ปัจจุบัน",
sortable: true,
field: "posExecutive",
field: "posExecutiveDate",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
@ -620,9 +620,15 @@ async function onSearch() {
) ?? "-",
levelDate:
formatDatePositionReport(
item.levelDate?.posExecutiveYears,
item.levelDate?.posExecutiveMonths,
item.levelDate?.posExecutiveDays
item.levelDate?.Years,
item.levelDate?.Months,
item.levelDate?.Days
) ?? "-",
posExecutiveDate:
formatDatePositionReport(
item.posExecutiveDate?.Years,
item.posExecutiveDate?.Months,
item.posExecutiveDate?.Days
) ?? "-",
empType: employeeClass.value,
dateRetireLaw: item.dateRetireLaw ?? "-",