feat: update quotation card

This commit is contained in:
Methapon Metanipat 2024-10-25 18:10:36 +07:00
parent e08c3232eb
commit 26ada83f93
2 changed files with 55 additions and 46 deletions

View file

@ -583,8 +583,11 @@ async function storeDataLocal(id: string) {
"
:code="v.code"
:title="v.workName"
:date="new Date(v.createdAt).toLocaleString()"
:amount="v._count.worker"
:created-at="new Date(v.createdAt).toLocaleString()"
:valid-until="new Date(v.dueDate).toLocaleString()"
:status="v.quotationStatus"
:worker-count="v._count.worker"
:worker-max="v.workerMax || v._count.worker"
:customer-name="
v.customerBranch.registerName ||
`${v.customerBranch.firstName || '-'} ${v.customerBranch.lastName || ''}`