|
|
|
@ -124,7 +124,7 @@ export default {
|
|
|
|
name: "",
|
|
|
|
name: "",
|
|
|
|
description: "",
|
|
|
|
description: "",
|
|
|
|
size: null,
|
|
|
|
size: null,
|
|
|
|
unit: "",
|
|
|
|
unit: null,
|
|
|
|
units: [
|
|
|
|
units: [
|
|
|
|
{ value: 0, text: "Teaspoon" },
|
|
|
|
{ value: 0, text: "Teaspoon" },
|
|
|
|
{ value: 1, text: "Tablespoon" },
|
|
|
|
{ value: 1, text: "Tablespoon" },
|
|
|
|
@ -191,7 +191,7 @@ export default {
|
|
|
|
name: this.name,
|
|
|
|
name: this.name,
|
|
|
|
description: this.description,
|
|
|
|
description: this.description,
|
|
|
|
size: this.size,
|
|
|
|
size: this.size,
|
|
|
|
unit: this.unit.id,
|
|
|
|
unit: this.unit,
|
|
|
|
location: {"id": this.location},
|
|
|
|
location: {"id": this.location},
|
|
|
|
barcode: this.barcode,
|
|
|
|
barcode: this.barcode,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|