|
|
|
@ -126,13 +126,13 @@ export default {
|
|
|
|
size: null,
|
|
|
|
size: null,
|
|
|
|
unit: null,
|
|
|
|
unit: null,
|
|
|
|
units: [
|
|
|
|
units: [
|
|
|
|
"Teaspoon",
|
|
|
|
{ value: 0, text: "Teaspoon" },
|
|
|
|
"Tablespoon",
|
|
|
|
{ value: 1, text: "Tablespoon" },
|
|
|
|
"Cup",
|
|
|
|
{ value: 2, text: "Cup" },
|
|
|
|
"Ounce",
|
|
|
|
{ value: 3, text: "Ounce" },
|
|
|
|
"Gram",
|
|
|
|
{ value: 4, text: "Gram" },
|
|
|
|
"Pound",
|
|
|
|
{ value: 5, text: "Pound" },
|
|
|
|
"Individual",
|
|
|
|
{ value: 6, text: "Individual" },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
barcode: "",
|
|
|
|
barcode: "",
|
|
|
|
barcodeReader: "none",
|
|
|
|
barcodeReader: "none",
|
|
|
|
@ -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,
|
|
|
|
unit: this.unit.value,
|
|
|
|
location: {"id": this.location},
|
|
|
|
location: {"id": this.location},
|
|
|
|
barcode: this.barcode,
|
|
|
|
barcode: this.barcode,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|