refactor: add installments type to service
This commit is contained in:
parent
5b5e264c27
commit
61bade2013
4 changed files with 13 additions and 12 deletions
|
|
@ -929,9 +929,9 @@ async function assignFormDataProductService(id: string) {
|
|||
prevService.value.work.push({
|
||||
name: item.name,
|
||||
attributes: item.attributes,
|
||||
productId: item.productOnWork.map(
|
||||
(productOnWorkItem) => productOnWorkItem.product.id,
|
||||
),
|
||||
product: item.productOnWork.map((productOnWorkItem) => ({
|
||||
id: productOnWorkItem.product.id,
|
||||
})),
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -1063,7 +1063,7 @@ function assignFormDataProductServiceCreate() {
|
|||
formDataProductService.value.work.push({
|
||||
name: item.name,
|
||||
attributes: item.attributes,
|
||||
productId: item.product.map((productItem) => productItem.id),
|
||||
product: item.product.map((productItem) => ({ id: productItem.id })),
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue