fix: type error

This commit is contained in:
Methapon Metanipat 2024-09-26 09:59:26 +07:00
parent 61b7f19577
commit d740a48c7f
5 changed files with 57 additions and 57 deletions

View file

@ -367,7 +367,6 @@ const useCustomerStore = defineStore('api-customer', () => {
data: CustomerBranchCreate & {
id?: string;
customerId: string;
codeCustomer: string;
},
) {
if (data.citizenId) {

View file

@ -25,56 +25,56 @@ export type Customer = {
export type CustomerBranch = {
customerCode?: string;
wageRateText: 'string';
wageRate: 0;
payDateEN: 'string';
payDate: 'string';
jobDescription: 'string';
jobPosition: 'string';
businessType: 'string';
agent: 'string';
contactName: 'string';
officeTel: 'string';
contactTel: 'string';
email: 'string';
subDistrictId: 'string';
districtId: 'string';
provinceId: 'string';
streetEN: 'string';
street: 'string';
mooEN: 'string';
moo: 'string';
soiEN: 'string';
soi: 'string';
addressEN: 'string';
address: 'string';
employmentOfficeEN: 'string';
employmentOffice: 'string';
homeCode: 'string';
authorizedNameEN: 'string';
authorizedName: 'string';
authorizedCapital: 'string';
registerDate: '2024-09-16T07:52:42.627Z';
registerNameEN: 'string';
registerName: 'string';
legalPersonNo: 'string';
citizenId: 'string';
birthDate: '2024-09-16T07:52:42.627Z';
gender: 'string';
lastNameEN: 'string';
lastName: 'string';
firstNameEN: 'string';
firstName: 'string';
namePrefix: 'string';
telephoneNo: 'string';
codeCustomer: 'string';
customerName: 'string';
updatedByUserId: 'string';
createdByUserId: 'string';
code: 'string';
wageRateText: string;
wageRate: number;
payDateEN: string;
payDate: string;
jobDescription: string;
jobPosition: string;
businessType: string;
agent: string;
contactName: string;
officeTel: string;
contactTel: string;
email: string;
subDistrictId: string;
districtId: string;
provinceId: string;
streetEN: string;
street: string;
mooEN: string;
moo: string;
soiEN: string;
soi: string;
addressEN: string;
address: string;
employmentOfficeEN: string;
employmentOffice: string;
homeCode: string;
authorizedNameEN: string;
authorizedName: string;
authorizedCapital: string;
registerDate: string | Date | null;
registerNameEN: string;
registerName: string;
legalPersonNo: string;
citizenId: string;
birthDate: string;
gender: string;
lastNameEN: string;
lastName: string;
firstNameEN: string;
firstName: string;
namePrefix: string;
telephoneNo: string;
codeCustomer: string;
customerName: string;
updatedByUserId: string;
createdByUserId: string;
code: string;
statusOrder: 0;
customerId: 'string';
id: 'string';
customerId: string;
id: string;
status: Status;
createdBy: string | null;
@ -132,11 +132,11 @@ export type CustomerBranchCreate = {
customerName?: string;
registerName?: string;
registerNameEN?: string;
registerDate?: Date | null;
registerDate?: string | Date | null;
authorizedCapital?: string;
authorizedName?: string;
authorizedNameEN?: string;
code?: 'string';
code?: string;
citizen?: CitizenPayload[];
file?: {
name?: string;