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>
|
||||
<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>
|
||||
</span>
|
||||
|
||||
|
|
@ -711,19 +720,26 @@ watch(
|
|||
>
|
||||
{{ selectedNode[0].remark || '-' }}
|
||||
</aside>
|
||||
<aside v-else class="q-pt-md row q-gutter-sm">
|
||||
<aside v-else>
|
||||
<template
|
||||
v-if="
|
||||
selectedNode[0].attributes.additional.length > 0
|
||||
selectedNode[0].attributes.workflowStep.length >
|
||||
0
|
||||
"
|
||||
>
|
||||
<div
|
||||
v-for="att in selectedNode[0].attributes
|
||||
.additional"
|
||||
:key="att"
|
||||
class="bordered q-py-xs q-px-sm rounded"
|
||||
v-for="step in selectedNode[0].attributes
|
||||
.workflowStep"
|
||||
:key="step"
|
||||
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>
|
||||
</template>
|
||||
<div v-else>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue