feat: infrastructure assets management with warranty tracking and EAN lookup integration

This commit is contained in:
jeremy bayse
2026-04-09 21:51:43 +02:00
parent 3544c77bd1
commit b28c56c94c
46 changed files with 2961 additions and 414 deletions

View File

@@ -5,6 +5,7 @@ import { Head, Link, useForm } from '@inertiajs/vue3'
const props = defineProps({
services: Array,
fournisseurs: Array,
communes: Array,
statuts: Object,
})
@@ -12,6 +13,7 @@ const form = useForm({
titre: '',
description: '',
fournisseur_id: '',
commune_id: '',
service_id: props.services.length === 1 ? props.services[0].id : '',
date_debut: '',
date_echeance: '',
@@ -79,6 +81,15 @@ function submit() {
class="w-full rounded-lg border border-gray-200 bg-gray-50 px-3 py-2 text-sm text-gray-500" />
</div>
<div>
<label class="mb-1 block text-sm font-medium text-gray-700">Ville / Commune</label>
<select v-model="form.commune_id"
class="w-full rounded-lg border border-gray-300 px-3 py-2 text-sm focus:border-blue-500 focus:outline-none">
<option value=""> Non défini </option>
<option v-for="c in communes" :key="c.id" :value="c.id">{{ c.nom }}</option>
</select>
</div>
<div class="sm:col-span-2">
<label class="mb-1 block text-sm font-medium text-gray-700">Description</label>
<textarea v-model="form.description" rows="3"