add item images
This commit is contained in:
parent
0af1f40b07
commit
448c166507
18 changed files with 826 additions and 15 deletions
|
|
@ -39,6 +39,11 @@
|
|||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="image" class="form-label">Image</label>
|
||||
<combined-file-field :item_files="item.files" create
|
||||
@change="item.files = $event"></combined-file-field>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<button type="submit" class="btn btn-primary" style="width: 100%"
|
||||
@click="createInventoryItem(item).then(() => $router.push('/inventory'))">Add
|
||||
|
|
@ -58,6 +63,7 @@ import {mapActions, mapState} from "vuex";
|
|||
import BaseLayout from "@/components/BaseLayout.vue";
|
||||
import TagField from "@/components/TagField.vue";
|
||||
import PropertyField from "@/components/PropertyField.vue";
|
||||
import CombinedFileField from "@/components/CombinedFileField.vue";
|
||||
|
||||
export default {
|
||||
name: "InventoryNew",
|
||||
|
|
@ -65,6 +71,7 @@ export default {
|
|||
BaseLayout,
|
||||
TagField,
|
||||
PropertyField,
|
||||
CombinedFileField,
|
||||
...BIcons
|
||||
},
|
||||
data() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue