refactor: customer

This commit is contained in:
puriphatt 2024-09-17 18:01:13 +07:00
parent e50904bead
commit f2b318060e
11 changed files with 596 additions and 355 deletions

View file

@ -441,6 +441,7 @@ const useCustomerStore = defineStore('api-customer', () => {
statusOrder,
updatedAt,
updatedByUserId,
customerCode,
file,
registerCompanyName,
statusSave,

View file

@ -5,24 +5,18 @@ export type CustomerType = 'CORP' | 'PERS';
export type Customer = {
registeredBranchId: string;
selectedImage: string;
imageUrl: string;
id: string;
code: string;
customerType: CustomerType;
status: Status;
namePrefix: string;
firstName: string;
lastName: string;
firstNameEN: string;
lastNameEN: string;
gender: string;
birthDate: Date;
createdBy: string | null;
createdAt: string;
updatedBy: string | null;
updatedAt: string;
branch: CustomerBranch[];
_count: {
employee: number;