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,
|
title: v.name,
|
||||||
subtitle: v.code,
|
subtitle: v.code,
|
||||||
opened: v.work.length > 0,
|
opened: v.work.length > 0,
|
||||||
|
checked: true,
|
||||||
icon: 'mdi-server-outline',
|
icon: 'mdi-server-outline',
|
||||||
bg: 'hsla(var(--orange-5-hsl)/0.1)',
|
bg: 'hsla(var(--orange-5-hsl)/0.1)',
|
||||||
fg: 'var(--orange-5)',
|
fg: 'var(--orange-5)',
|
||||||
|
|
@ -197,6 +198,7 @@ function mapNode() {
|
||||||
work: w,
|
work: w,
|
||||||
product: p.product,
|
product: p.product,
|
||||||
},
|
},
|
||||||
|
checked: true,
|
||||||
icon: 'mdi-shopping-outline',
|
icon: 'mdi-shopping-outline',
|
||||||
bg: 'hsla(var(--teal-10-hsl)/0.1)',
|
bg: 'hsla(var(--teal-10-hsl)/0.1)',
|
||||||
fg: 'var(--teal-10)',
|
fg: 'var(--teal-10)',
|
||||||
|
|
@ -210,10 +212,12 @@ function mapNode() {
|
||||||
title: w.name,
|
title: w.name,
|
||||||
subtitle: ' ',
|
subtitle: ' ',
|
||||||
opened: w.productOnWork.length > 0,
|
opened: w.productOnWork.length > 0,
|
||||||
|
checked: true,
|
||||||
children: w.productOnWork.map((p) => ({
|
children: w.productOnWork.map((p) => ({
|
||||||
id: p.product.id,
|
id: p.product.id,
|
||||||
title: p.product.name,
|
title: p.product.name,
|
||||||
subtitle: p.product.code || ' ',
|
subtitle: p.product.code || ' ',
|
||||||
|
checked: true,
|
||||||
value: {
|
value: {
|
||||||
vat: 0,
|
vat: 0,
|
||||||
pricePerUnit: 0,
|
pricePerUnit: 0,
|
||||||
|
|
@ -241,6 +245,7 @@ function mapNode() {
|
||||||
amount: 0,
|
amount: 0,
|
||||||
product: v.raw,
|
product: v.raw,
|
||||||
},
|
},
|
||||||
|
checked: true,
|
||||||
type: 'product',
|
type: 'product',
|
||||||
icon: 'mdi-shopping-outline',
|
icon: 'mdi-shopping-outline',
|
||||||
bg: 'hsla(var(--teal-10-hsl)/0.1)',
|
bg: 'hsla(var(--teal-10-hsl)/0.1)',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue