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: '',
jobDescription: '',
saleEmployee: '',
payDate: '',
wageDate: '',
payDate: new Date(),
wageRate: 0,
});
tab.value = customerBranch.value.length - 1;

View file

@ -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;
};