refactor: customer
This commit is contained in:
parent
e50904bead
commit
f2b318060e
11 changed files with 596 additions and 355 deletions
|
|
@ -441,6 +441,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
|||
statusOrder,
|
||||
updatedAt,
|
||||
updatedByUserId,
|
||||
customerCode,
|
||||
file,
|
||||
registerCompanyName,
|
||||
statusSave,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue