This commit is contained in:
j3d1 2025-09-25 16:09:52 +02:00
parent 2fe8d14c2c
commit 4627f0aca2
14 changed files with 1064 additions and 11 deletions

View file

@ -39,6 +39,17 @@
</option>
</select>
</div>
<div class="mb-3">
<label for="storage_location" class="form-label">Storage Location</label>
<select class="form-select" id="storage_location" name="storage_location"
v-model="item.storage_location_id">
<option value="">No storage location</option>
<option v-for="location in storage_locations" :value="location.id"
:key="location.id">
{{ location.path }}
</option>
</select>
</div>
<div class="mb-3">
<label for="image" class="form-label">Image</label>
<combined-file-field :item_files="item.files" create
@ -92,7 +103,7 @@ export default {
...mapActions(['createInventoryItem', 'fetchInfo'])
},
computed: {
...mapState(["availability_policies"]),
...mapState(["availability_policies", "storage_locations"]),
},
async mounted() {
await this.fetchInfo();