refactro: by installmentNo
This commit is contained in:
parent
916ecf113d
commit
0b5ff5dff2
1 changed files with 6 additions and 1 deletions
|
|
@ -931,6 +931,7 @@ async function assignFormDataProductService(id: string) {
|
|||
attributes: item.attributes,
|
||||
product: item.productOnWork.map((productOnWorkItem) => ({
|
||||
id: productOnWorkItem.product.id,
|
||||
installmentNo: productOnWorkItem.installmentNo,
|
||||
})),
|
||||
});
|
||||
});
|
||||
|
|
@ -946,6 +947,7 @@ async function assignFormDataProductService(id: string) {
|
|||
return {
|
||||
...productOnWorkItem.product,
|
||||
nameEn: productOnWorkItem.product.name,
|
||||
installmentNo: productOnWorkItem.installmentNo,
|
||||
};
|
||||
}),
|
||||
};
|
||||
|
|
@ -1063,7 +1065,10 @@ function assignFormDataProductServiceCreate() {
|
|||
formDataProductService.value.work.push({
|
||||
name: item.name,
|
||||
attributes: item.attributes,
|
||||
product: item.product.map((productItem) => ({ id: productItem.id })),
|
||||
product: item.product.map((productItem) => ({
|
||||
id: productItem.id,
|
||||
installmentNo: productItem.installmentNo,
|
||||
})),
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue