fix: แก้ type payDate กับ wageRate

This commit is contained in:
Net 2024-06-07 14:14:38 +07:00
parent ccd7364b8a
commit ab7ac22ce7
2 changed files with 12 additions and 7 deletions

View file

@ -40,8 +40,8 @@ function addData() {
jobPositionEN: '', jobPositionEN: '',
jobDescription: '', jobDescription: '',
saleEmployee: '', saleEmployee: '',
payDate: '', payDate: new Date(),
wageDate: '', wageRate: 0,
}); });
tab.value = customerBranch.value.length - 1; tab.value = customerBranch.value.length - 1;

View file

@ -19,7 +19,7 @@ export type Customer = {
export type CustomerBranch = { export type CustomerBranch = {
id: string; id: string;
branchNo: string; branchNo: number;
legalPersonNo: string; legalPersonNo: string;
name: string; name: string;
nameEN: string; nameEN: string;
@ -43,8 +43,8 @@ export type CustomerBranch = {
jobPositionEN: string; jobPositionEN: string;
jobDescription: string; jobDescription: string;
saleEmployee: string; saleEmployee: string;
payDate: string; payDate: Date;
wageDate: string; wageRate: number;
status: Status; status: Status;
createdBy: string | null; createdBy: string | null;
createdAt: string; createdAt: string;
@ -79,8 +79,8 @@ export type CustomerBranchCreate = {
jobPositionEN: string; jobPositionEN: string;
jobDescription: string; jobDescription: string;
saleEmployee: string; saleEmployee: string;
payDate: string; payDate: Date;
wageDate: string; wageRate: number;
file?: File[]; file?: File[];
}; };
@ -111,3 +111,8 @@ export type BranchAttachment = {
name: string; name: string;
url: string; url: string;
}; };
export type CustomerStats = {
CORP: number;
PERS: number;
};