Added Quantity to Invetoryitems
This commit is contained in:
@@ -18,7 +18,8 @@ let currentItem = ref(null)
|
|||||||
const mode = ref(route.params.mode || "show")
|
const mode = ref(route.params.mode || "show")
|
||||||
const itemInfo = ref({
|
const itemInfo = ref({
|
||||||
name: null,
|
name: null,
|
||||||
description: null
|
description: null,
|
||||||
|
quantity: 0
|
||||||
})
|
})
|
||||||
|
|
||||||
//Functions
|
//Functions
|
||||||
@@ -84,6 +85,7 @@ setupPage()
|
|||||||
<div class="text-wrap">
|
<div class="text-wrap">
|
||||||
<p v-if="currentItem.currentSpace">Lagerplatz: {{dataStore.getSpaceById(currentItem.currentSpace).spaceNumber}} - {{dataStore.getSpaceById(currentItem.currentSpace).description}}</p>
|
<p v-if="currentItem.currentSpace">Lagerplatz: {{dataStore.getSpaceById(currentItem.currentSpace).spaceNumber}} - {{dataStore.getSpaceById(currentItem.currentSpace).description}}</p>
|
||||||
<p>Seriennummer: {{currentItem.serialNumber}}</p>
|
<p>Seriennummer: {{currentItem.serialNumber}}</p>
|
||||||
|
<p>Menge: {{currentItem.quantity > 0 ? currentItem.quantity : 'Einzelarktikel'}}</p>
|
||||||
<p>Artikelnummer: {{currentItem.articleNumber}}</p>
|
<p>Artikelnummer: {{currentItem.articleNumber}}</p>
|
||||||
<p>Lieferant: {{currentItem.vendor ? currentItem.vendor.name : ''}}</p>
|
<p>Lieferant: {{currentItem.vendor ? currentItem.vendor.name : ''}}</p>
|
||||||
<p>Kaufdatum: {{currentItem.purchaseDate}}</p>
|
<p>Kaufdatum: {{currentItem.purchaseDate}}</p>
|
||||||
@@ -135,6 +137,15 @@ setupPage()
|
|||||||
v-model="itemInfo.serialNumber"
|
v-model="itemInfo.serialNumber"
|
||||||
/>
|
/>
|
||||||
</UFormGroup>
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="Menge:"
|
||||||
|
help="Einzelartikel 0 und Mengenerfassung größer 0"
|
||||||
|
>
|
||||||
|
<UInput
|
||||||
|
type="number"
|
||||||
|
v-model="itemInfo.quantity"
|
||||||
|
/>
|
||||||
|
</UFormGroup>
|
||||||
<UFormGroup
|
<UFormGroup
|
||||||
label="Artikelnummer:"
|
label="Artikelnummer:"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user