refactor: use relation count instead

This commit is contained in:
Methapon Metanipat 2024-10-04 13:23:05 +07:00
parent 5b13ff98b9
commit f790df0ea9

View file

@ -750,7 +750,7 @@ watch(() => pageState.currentTab, fetchQuotationList);
:code="v.code"
:title="v.workName"
:date="new Date(v.createdAt).toLocaleString()"
:amount="v.workerCount"
:amount="v._count.worker"
:customer-name="
v.customerBranch.registerName ||
`${v.customerBranch.firstName || '-'} ${v.customerBranch.lastName || ''}`