diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index d0eae329..b12d5ca2 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -908,6 +908,7 @@ async function assignFormDataProductService(id: string) { res.work.forEach((item) => { prevService.value.work.push({ + id: item.id, name: item.name, attributes: item.attributes, product: item.productOnWork.map((productOnWorkItem) => ({ @@ -1059,6 +1060,7 @@ function assignFormDataProductServiceCreate() { workItems.value.forEach((item) => { formDataProductService.value.work.push({ + id: item.id, name: item.name, attributes: item.attributes, product: item.product.map((productItem) => ({ diff --git a/src/stores/product-service/types.ts b/src/stores/product-service/types.ts index ad3eb19b..d8e3e2f6 100644 --- a/src/stores/product-service/types.ts +++ b/src/stores/product-service/types.ts @@ -53,6 +53,7 @@ export interface ServiceCreate { id?: string; installments?: number; work: { + id?: string; attributes: Attributes; product: { id: string;