fix: แก้ type
This commit is contained in:
parent
450b3e10bf
commit
627da99cf0
2 changed files with 3 additions and 2 deletions
|
|
@ -671,6 +671,7 @@ async function assignFormData(data: Customer & { branch: CustomerBranch[] }) {
|
||||||
|
|
||||||
data.branch.forEach((v) => {
|
data.branch.forEach((v) => {
|
||||||
formData.value.customerBranch?.push({
|
formData.value.customerBranch?.push({
|
||||||
|
id: v.id,
|
||||||
address: v.address,
|
address: v.address,
|
||||||
addressEN: v.addressEN,
|
addressEN: v.addressEN,
|
||||||
provinceId: v.province.id,
|
provinceId: v.province.id,
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ export type CustomerBranchCreate = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CustomerCreate = {
|
export type CustomerCreate = {
|
||||||
customerBranch?: CustomerBranchCreate[];
|
customerBranch?: (CustomerBranchCreate & { id?: string })[];
|
||||||
taxNo?: string | null;
|
taxNo?: string | null;
|
||||||
customerNameEN: string;
|
customerNameEN: string;
|
||||||
customerName: string;
|
customerName: string;
|
||||||
|
|
@ -101,7 +101,7 @@ export type CustomerUpdate = {
|
||||||
customerType?: CustomerType;
|
customerType?: CustomerType;
|
||||||
customerName?: string;
|
customerName?: string;
|
||||||
customerNameEN?: string;
|
customerNameEN?: string;
|
||||||
customerBranch?: CustomerBranchCreate[];
|
customerBranch?: (CustomerBranchCreate & { id?: string })[];
|
||||||
taxNo?: string | null;
|
taxNo?: string | null;
|
||||||
image?: File;
|
image?: File;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue