From ab7ac22ce773c12d2950a62eb204f49e7da1c255 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Fri, 7 Jun 2024 14:14:38 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20type=20pay?= =?UTF-8?q?Date=20=E0=B8=81=E0=B8=B1=E0=B8=9A=20wageRate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TabComponent.vue | 4 ++-- src/stores/customer/types.ts | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/components/TabComponent.vue b/src/components/TabComponent.vue index 5328cf92..ad4dd54e 100644 --- a/src/components/TabComponent.vue +++ b/src/components/TabComponent.vue @@ -40,8 +40,8 @@ function addData() { jobPositionEN: '', jobDescription: '', saleEmployee: '', - payDate: '', - wageDate: '', + payDate: new Date(), + wageRate: 0, }); tab.value = customerBranch.value.length - 1; diff --git a/src/stores/customer/types.ts b/src/stores/customer/types.ts index b6ea0de4..8d64bc6a 100644 --- a/src/stores/customer/types.ts +++ b/src/stores/customer/types.ts @@ -19,7 +19,7 @@ export type Customer = { export type CustomerBranch = { id: string; - branchNo: string; + branchNo: number; legalPersonNo: string; name: string; nameEN: string; @@ -43,8 +43,8 @@ export type CustomerBranch = { jobPositionEN: string; jobDescription: string; saleEmployee: string; - payDate: string; - wageDate: string; + payDate: Date; + wageRate: number; status: Status; createdBy: string | null; createdAt: string; @@ -79,8 +79,8 @@ export type CustomerBranchCreate = { jobPositionEN: string; jobDescription: string; saleEmployee: string; - payDate: string; - wageDate: string; + payDate: Date; + wageRate: number; file?: File[]; }; @@ -111,3 +111,8 @@ export type BranchAttachment = { name: string; url: string; }; + +export type CustomerStats = { + CORP: number; + PERS: number; +};