feat: count product type, service, product

This commit is contained in:
puriphatt 2024-07-01 04:49:11 +00:00
parent 51e8d2897e
commit 962b69baf6
3 changed files with 14 additions and 4 deletions

View file

@ -1250,8 +1250,11 @@ watch(inputSearchProductAndService, async () => {
>
<ProductCardComponent
v-if="productMode === 'type'"
:title="v.name"
isType
:count-product="v._count.product"
:count-type="v._count.type"
:count-service="999"
:title="v.name"
:subtitle="v.code"
:date="new Date(v.updatedAt)"
:status="v.status"
@ -1304,6 +1307,9 @@ watch(inputSearchProductAndService, async () => {
v-else-if="productMode === 'group'"
:title="v.name"
:subtitle="v.code"
:count-product="v._count.product"
:count-type="v._count.type"
:count-service="999"
:date="new Date(v.updatedAt)"
:status="v.status"
color="var(--pink-6-hsl)"