refactro: by installmentNo

This commit is contained in:
Thanaphon Frappet 2024-10-22 16:21:31 +07:00
parent 916ecf113d
commit 0b5ff5dff2

View file

@ -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,
})),
});
});
}