From 7834db2fbef537a9bed221776cb4462e9fb07c28 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Tue, 22 Jul 2025 11:13:48 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=9F?= =?UTF-8?q?=E0=B8=B4=E0=B8=A5=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=A3=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../11_discipline/interface/response/investigate.ts | 1 + .../11_discipline/store/InvestigateFactStore.ts | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/modules/11_discipline/interface/response/investigate.ts b/src/modules/11_discipline/interface/response/investigate.ts index 78dbfa822..f622bcc7a 100644 --- a/src/modules/11_discipline/interface/response/investigate.ts +++ b/src/modules/11_discipline/interface/response/investigate.ts @@ -9,6 +9,7 @@ interface ListData { investigationStatusResult: string; status: string; createdAt: Date | null; + dateReceived: Date | null; } interface ArrayPerson { diff --git a/src/modules/11_discipline/store/InvestigateFactStore.ts b/src/modules/11_discipline/store/InvestigateFactStore.ts index 00cd2bb8b..8c0240907 100644 --- a/src/modules/11_discipline/store/InvestigateFactStore.ts +++ b/src/modules/11_discipline/store/InvestigateFactStore.ts @@ -69,7 +69,7 @@ export const useInvestigateFactStore = defineStore( "investigationDetail", "dateInvestigate", "investigationStatusResult", - "createdAt", + "dateReceived", "status", ]); @@ -149,11 +149,11 @@ export const useInvestigateFactStore = defineStore( a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "createdAt", + name: "dateReceived", align: "left", label: "วันที่รับเรื่อง", sortable: true, - field: "createdAt", + field: "dateReceived", headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => @@ -256,7 +256,9 @@ export const useInvestigateFactStore = defineStore( investigationStatusResult: e.investigationStatusResult ? mainStore.convertStatusResult(e.investigationStatusResult) : "-", - createdAt: e.createdAt ? date2Thai(e.createdAt as Date) : "-", + dateReceived: e.dateReceived + ? date2Thai(e.dateReceived as Date) + : "-", status: e.status ? convertStatus(e.status) : "-", }; });