From 55cf996ffe8b36a8a494d588893034972832661b Mon Sep 17 00:00:00 2001 From: puriphatt Date: Fri, 4 Oct 2024 15:12:36 +0700 Subject: [PATCH] fix: node checked --- src/pages/05_quotation/ProductServiceForm.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/05_quotation/ProductServiceForm.vue b/src/pages/05_quotation/ProductServiceForm.vue index 96aeedb9..e0d961af 100644 --- a/src/pages/05_quotation/ProductServiceForm.vue +++ b/src/pages/05_quotation/ProductServiceForm.vue @@ -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)',