fix: node checked
This commit is contained in:
parent
0461da4bf8
commit
55cf996ffe
1 changed files with 5 additions and 0 deletions
|
|
@ -176,6 +176,7 @@ function mapNode() {
|
|||
title: v.name,
|
||||
subtitle: v.code,
|
||||
opened: v.work.length > 0,
|
||||
checked: true,
|
||||
icon: 'mdi-server-outline',
|
||||
bg: 'hsla(var(--orange-5-hsl)/0.1)',
|
||||
fg: 'var(--orange-5)',
|
||||
|
|
@ -197,6 +198,7 @@ function mapNode() {
|
|||
work: w,
|
||||
product: p.product,
|
||||
},
|
||||
checked: true,
|
||||
icon: 'mdi-shopping-outline',
|
||||
bg: 'hsla(var(--teal-10-hsl)/0.1)',
|
||||
fg: 'var(--teal-10)',
|
||||
|
|
@ -210,10 +212,12 @@ function mapNode() {
|
|||
title: w.name,
|
||||
subtitle: ' ',
|
||||
opened: w.productOnWork.length > 0,
|
||||
checked: true,
|
||||
children: w.productOnWork.map((p) => ({
|
||||
id: p.product.id,
|
||||
title: p.product.name,
|
||||
subtitle: p.product.code || ' ',
|
||||
checked: true,
|
||||
value: {
|
||||
vat: 0,
|
||||
pricePerUnit: 0,
|
||||
|
|
@ -241,6 +245,7 @@ function mapNode() {
|
|||
amount: 0,
|
||||
product: v.raw,
|
||||
},
|
||||
checked: true,
|
||||
type: 'product',
|
||||
icon: 'mdi-shopping-outline',
|
||||
bg: 'hsla(var(--teal-10-hsl)/0.1)',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue