fix รายงานทะเบียนประวัติ xlsx

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-24 15:04:50 +07:00
parent 32ec0e31ed
commit 95224671b1

View file

@ -565,7 +565,7 @@ async function onSearch() {
function exportToExcel() {
const newData = rows.value.map((e: any) => {
const { dateAppointFull, profileId, empType, ...rest } = e;
return rest;
return { ...rest, dateRetireLaw: date2Thai(e.dateRetireLaw) };
});
const headers = columns.value?.map((item: any) => item.label) || []; //