vehicle update and code
This commit is contained in:
parent
8766bbce08
commit
0ea9601ea3
8 changed files with 135 additions and 112 deletions
|
@ -13,6 +13,7 @@
|
|||
<label for="name">Bezeichnung</label>
|
||||
<input type="text" id="name" required />
|
||||
</div>
|
||||
<ScanInput name="code" label="Code" :required="false" />
|
||||
<div>
|
||||
<label for="location">Verortung (optional)</label>
|
||||
<input type="text" id="location" />
|
||||
|
@ -49,6 +50,7 @@ import SuccessCheckmark from "@/components/SuccessCheckmark.vue";
|
|||
import FailureXMark from "@/components/FailureXMark.vue";
|
||||
import { useVehicleTypeStore } from "@/stores/admin/unit/vehicleType/vehicleType";
|
||||
import VehicleTypeSearchSelect from "@/components/search/VehicleTypeSearchSelect.vue";
|
||||
import ScanInput from "@/components/ScanInput.vue";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
@ -75,6 +77,7 @@ export default defineComponent({
|
|||
let formData = e.target.elements;
|
||||
let createVehicle: CreateVehicleViewModel = {
|
||||
name: formData.name.value,
|
||||
code: formData.code.value || null,
|
||||
location: formData.location.value,
|
||||
vehicleTypeId: this.selectedType,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue