feat: infrastructure assets management with warranty tracking and EAN lookup integration
This commit is contained in:
@@ -6,6 +6,7 @@ const props = defineProps({
|
||||
contrat: Object,
|
||||
services: Array,
|
||||
fournisseurs: Array,
|
||||
communes: Array,
|
||||
statuts: Object,
|
||||
})
|
||||
|
||||
@@ -13,6 +14,7 @@ const form = useForm({
|
||||
titre: props.contrat.titre ?? '',
|
||||
description: props.contrat.description ?? '',
|
||||
fournisseur_id: props.contrat.fournisseur_id ?? '',
|
||||
commune_id: props.contrat.commune_id ?? '',
|
||||
service_id: props.contrat.service_id ?? (props.services.length === 1 ? props.services[0].id : ''),
|
||||
date_debut: props.contrat.date_debut ?? '',
|
||||
date_echeance: props.contrat.date_echeance ?? '',
|
||||
@@ -80,6 +82,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"
|
||||
|
||||
Reference in New Issue
Block a user