diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index 812606ee..e6fdae36 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -1246,7 +1246,7 @@ watch(inputSearchProductAndService, async () => { isType :count-product="v._count.product" :count-type="v._count.type" - :count-service="78" + :count-service="v._count.service" :title="v.name" :subtitle="v.code" :date="new Date(v.updatedAt)" @@ -1302,7 +1302,7 @@ watch(inputSearchProductAndService, async () => { :subtitle="v.code" :count-product="v._count.product" :count-type="v._count.type" - :count-service="78" + :count-service="v._count.service" :date="new Date(v.updatedAt)" :status="v.status" color="var(--pink-6-hsl)" diff --git a/src/stores/product-service/types.ts b/src/stores/product-service/types.ts index 383adc6c..e6f07cfb 100644 --- a/src/stores/product-service/types.ts +++ b/src/stores/product-service/types.ts @@ -158,7 +158,7 @@ export type ProductGroup = { createdAt: string; updatedBy: string; updatedAt: string; - _count: { product: number; type: number }; + _count: { product: number; type: number; service: number }; }; export interface ProductGroupCreate {