แก้ สืบ สอบ

This commit is contained in:
setthawutttty 2023-12-15 17:29:47 +07:00
parent 749113a3cc
commit 480393efe3
8 changed files with 375 additions and 31 deletions

View file

@ -66,6 +66,7 @@ export const useInvestigateFactStore = defineStore(
"investigationDetail",
"dateInvestigate",
"investigationStatusResult",
"createdAt",
"status",
]);
@ -144,6 +145,17 @@ export const useInvestigateFactStore = defineStore(
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "createdAt",
align: "left",
label: "วันที่สืบสวน",
sortable: true,
field: "createdAt",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "status",
align: "left",
@ -213,6 +225,7 @@ export const useInvestigateFactStore = defineStore(
investigationStatusResult: mainStore.convertStatusResult(
e.investigationStatusResult
),
createdAt: date2Thai(e.createdAt as Date),
status: convertStatus(e.status),
};
});