Tidying in Product Page

This commit is contained in:
2024-11-20 13:45:18 +01:00
parent fc9984eb3a
commit 988c33d07d

View File

@@ -196,6 +196,7 @@ setupPage()
type="product" type="product"
v-if="itemInfo" v-if="itemInfo"
:element-id="itemInfo.id" :element-id="itemInfo.id"
render-headline
/> />
</UCard> </UCard>
</div> </div>
@@ -203,22 +204,24 @@ setupPage()
<div <div
v-if="item.label === 'Bestand'" v-if="item.label === 'Bestand'"
> >
<UCard> <UCard class="mt-5">
Bestand: {{dataStore.getStockByProductId(itemInfo.id)}} {{dataStore.units.find(unit => unit.id === itemInfo.unit) ? dataStore.units.find(unit => unit.id === itemInfo.unit).name : ""}} Bestand: {{dataStore.getStockByProductId(itemInfo.id)}} {{dataStore.units.find(unit => unit.id === itemInfo.unit) ? dataStore.units.find(unit => unit.id === itemInfo.unit).name : ""}}
</UCard> </UCard>
</div> </div>
<div <div
v-if="item.label === 'Dokumente'" v-if="item.label === 'Dokumente'"
> >
<Toolbar> <UCard class="mt-5">
<DocumentUpload <Toolbar>
type="product" <DocumentUpload
:element-id="itemInfo.id" type="product"
/> :element-id="itemInfo.id"
</Toolbar> />
</Toolbar>
<DocumentList :documents="dataStore.getDocumentsByProductId(itemInfo.id)"/> <DocumentList :documents="dataStore.getDocumentsByProductId(itemInfo.id)"/>
</UCard>
</div> </div>
</template> </template>
</UTabs> </UTabs>