add additional fields

This commit is contained in:
Julian Krauser 2025-05-21 09:10:41 +02:00
parent 43f46c0fad
commit b83b22d806
16 changed files with 97 additions and 3 deletions

View file

@ -14,6 +14,10 @@
<input type="text" id="name" required />
</div>
<ScanInput name="code" label="Code" :required="false" />
<div>
<label for="commissioned">In-Betrieb-Nahme</label>
<input type="date" id="commissioned" required />
</div>
<div>
<label for="location">Verortung (optional)</label>
<input type="text" id="location" />
@ -80,6 +84,7 @@ export default defineComponent({
code: formData.code.value || null,
location: formData.location.value,
vehicleTypeId: this.selectedType,
commissioned: formData.commissioned.value,
};
this.status = "loading";
this.createVehicle(createVehicle)