refactor: quotation select product info display (detail and properties)
This commit is contained in:
parent
389052830a
commit
807c812b1a
1 changed files with 24 additions and 8 deletions
|
|
@ -682,7 +682,16 @@ watch(
|
||||||
}}
|
}}
|
||||||
</span>
|
</span>
|
||||||
<aside class="surface-3 q-pa-md">
|
<aside class="surface-3 q-pa-md">
|
||||||
{{ selectedNode[0].detail || '-' }}
|
<div
|
||||||
|
v-if="
|
||||||
|
selectedType === 'product' &&
|
||||||
|
selectedNode[0].detail
|
||||||
|
"
|
||||||
|
v-html="selectedNode[0].detail"
|
||||||
|
/>
|
||||||
|
<div v-else>
|
||||||
|
{{ selectedNode[0].detail || '-' }}
|
||||||
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
@ -711,19 +720,26 @@ watch(
|
||||||
>
|
>
|
||||||
{{ selectedNode[0].remark || '-' }}
|
{{ selectedNode[0].remark || '-' }}
|
||||||
</aside>
|
</aside>
|
||||||
<aside v-else class="q-pt-md row q-gutter-sm">
|
<aside v-else>
|
||||||
<template
|
<template
|
||||||
v-if="
|
v-if="
|
||||||
selectedNode[0].attributes.additional.length > 0
|
selectedNode[0].attributes.workflowStep.length >
|
||||||
|
0
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-for="att in selectedNode[0].attributes
|
v-for="step in selectedNode[0].attributes
|
||||||
.additional"
|
.workflowStep"
|
||||||
:key="att"
|
:key="step"
|
||||||
class="bordered q-py-xs q-px-sm rounded"
|
class="q-pt-sm row q-gutter-sm"
|
||||||
>
|
>
|
||||||
{{ optionStore.mapOption(att.fieldName) }}
|
<div
|
||||||
|
v-for="att in step.attributes.properties"
|
||||||
|
:key="att"
|
||||||
|
class="bordered q-py-xs q-px-sm rounded"
|
||||||
|
>
|
||||||
|
{{ optionStore.mapOption(att.fieldName) }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue