fix: product service info
This commit is contained in:
parent
b11c57d9cb
commit
862eee9735
1 changed files with 12 additions and 5 deletions
|
|
@ -178,6 +178,7 @@ function mapNode() {
|
||||||
opened: v.work.length > 0,
|
opened: v.work.length > 0,
|
||||||
checked: true,
|
checked: true,
|
||||||
icon: 'mdi-server-outline',
|
icon: 'mdi-server-outline',
|
||||||
|
attributes: v.attributes,
|
||||||
bg: 'hsla(var(--orange-5-hsl)/0.1)',
|
bg: 'hsla(var(--orange-5-hsl)/0.1)',
|
||||||
fg: 'var(--orange-5)',
|
fg: 'var(--orange-5)',
|
||||||
children: (function () {
|
children: (function () {
|
||||||
|
|
@ -189,6 +190,8 @@ function mapNode() {
|
||||||
id: p.product.id,
|
id: p.product.id,
|
||||||
title: p.product.name,
|
title: p.product.name,
|
||||||
subtitle: p.product.code || ' ',
|
subtitle: p.product.code || ' ',
|
||||||
|
detail: p.product.detail,
|
||||||
|
remark: p.product.remark,
|
||||||
value: {
|
value: {
|
||||||
vat: 0,
|
vat: 0,
|
||||||
pricePerUnit: 0,
|
pricePerUnit: 0,
|
||||||
|
|
@ -213,11 +216,14 @@ function mapNode() {
|
||||||
subtitle: ' ',
|
subtitle: ' ',
|
||||||
opened: w.productOnWork.length > 0,
|
opened: w.productOnWork.length > 0,
|
||||||
checked: true,
|
checked: true,
|
||||||
|
attributes: w.attributes,
|
||||||
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,
|
checked: true,
|
||||||
|
detail: p.product.detail,
|
||||||
|
remark: p.product.remark,
|
||||||
value: {
|
value: {
|
||||||
vat: 0,
|
vat: 0,
|
||||||
pricePerUnit: 0,
|
pricePerUnit: 0,
|
||||||
|
|
@ -238,6 +244,8 @@ function mapNode() {
|
||||||
id: v.id,
|
id: v.id,
|
||||||
title: v.name,
|
title: v.name,
|
||||||
subtitle: v.code,
|
subtitle: v.code,
|
||||||
|
detail: v.detail,
|
||||||
|
remark: v.remark,
|
||||||
value: {
|
value: {
|
||||||
vat: 0,
|
vat: 0,
|
||||||
pricePerUnit: 0,
|
pricePerUnit: 0,
|
||||||
|
|
@ -584,7 +592,7 @@ watch(
|
||||||
}}
|
}}
|
||||||
</span>
|
</span>
|
||||||
<aside class="surface-3 q-pa-md">
|
<aside class="surface-3 q-pa-md">
|
||||||
{{ selectedNode[0].raw.detail || '-' }}
|
{{ selectedNode[0].detail || '-' }}
|
||||||
</aside>
|
</aside>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
@ -609,17 +617,16 @@ watch(
|
||||||
"
|
"
|
||||||
class="surface-3 q-pa-md"
|
class="surface-3 q-pa-md"
|
||||||
>
|
>
|
||||||
{{ selectedNode[0].raw.remark || '-' }}
|
{{ selectedNode[0].remark || '-' }}
|
||||||
</aside>
|
</aside>
|
||||||
<aside v-else class="q-pt-md row q-gutter-sm">
|
<aside v-else class="q-pt-md row q-gutter-sm">
|
||||||
<template
|
<template
|
||||||
v-if="
|
v-if="
|
||||||
selectedNode[0].raw.attributes.additional
|
selectedNode[0].attributes.additional.length > 0
|
||||||
.length > 0
|
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-for="att in selectedNode[0].raw.attributes
|
v-for="att in selectedNode[0].attributes
|
||||||
.additional"
|
.additional"
|
||||||
:key="att"
|
:key="att"
|
||||||
class="bordered q-py-xs q-px-sm rounded"
|
class="bordered q-py-xs q-px-sm rounded"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue