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,13 +204,14 @@ 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'"
> >
<UCard class="mt-5">
<Toolbar> <Toolbar>
<DocumentUpload <DocumentUpload
type="product" type="product"
@@ -219,6 +221,7 @@ setupPage()
<DocumentList :documents="dataStore.getDocumentsByProductId(itemInfo.id)"/> <DocumentList :documents="dataStore.getDocumentsByProductId(itemInfo.id)"/>
</UCard>
</div> </div>
</template> </template>
</UTabs> </UTabs>