fix: show service count

This commit is contained in:
puriphatt 2024-07-03 06:52:55 +00:00
parent 63aca38e83
commit 05d7c70f97
2 changed files with 3 additions and 3 deletions

View file

@ -1246,7 +1246,7 @@ watch(inputSearchProductAndService, async () => {
isType isType
:count-product="v._count.product" :count-product="v._count.product"
:count-type="v._count.type" :count-type="v._count.type"
:count-service="78" :count-service="v._count.service"
:title="v.name" :title="v.name"
:subtitle="v.code" :subtitle="v.code"
:date="new Date(v.updatedAt)" :date="new Date(v.updatedAt)"
@ -1302,7 +1302,7 @@ watch(inputSearchProductAndService, async () => {
:subtitle="v.code" :subtitle="v.code"
:count-product="v._count.product" :count-product="v._count.product"
:count-type="v._count.type" :count-type="v._count.type"
:count-service="78" :count-service="v._count.service"
:date="new Date(v.updatedAt)" :date="new Date(v.updatedAt)"
:status="v.status" :status="v.status"
color="var(--pink-6-hsl)" color="var(--pink-6-hsl)"

View file

@ -158,7 +158,7 @@ export type ProductGroup = {
createdAt: string; createdAt: string;
updatedBy: string; updatedBy: string;
updatedAt: string; updatedAt: string;
_count: { product: number; type: number }; _count: { product: number; type: number; service: number };
}; };
export interface ProductGroupCreate { export interface ProductGroupCreate {