From 7980aa186b80ca159632facd8a6044e176738fed Mon Sep 17 00:00:00 2001 From: Matthieu Date: Thu, 25 Sep 2025 11:25:43 +0200 Subject: [PATCH] FIx: delete champs par default --- app/components/ComponentItem.vue | 19 ++--------- .../ComponentModelStructureEditor.vue | 15 ++------- app/components/CustomFieldsDisplay.vue | 13 +++----- app/components/MachinePrintSelectionModal.vue | 2 +- app/components/PieceItem.vue | 24 ++------------ app/components/PieceModelStructureEditor.vue | 22 ++----------- .../StructureSubComponentEditor.vue | 15 ++------- app/components/TypeComponentForm.vue | 22 +++---------- .../TypeEditCustomFieldsSection.vue | 16 +--------- app/pages/generator.vue | 1 - app/pages/index.vue | 26 ++------------- app/pages/machine/[id].vue | 32 ++----------------- app/pages/machines/index.vue | 5 --- app/pages/machines/new.vue | 22 ------------- app/pages/type/edit/[id].vue | 1 - app/shared/modelUtils.ts | 8 ----- app/utils/printTemplates/machineReport.js | 7 ++-- 17 files changed, 32 insertions(+), 218 deletions(-) diff --git a/app/components/ComponentItem.vue b/app/components/ComponentItem.vue index 18e3113..0df6901 100644 --- a/app/components/ComponentItem.vue +++ b/app/components/ComponentItem.vue @@ -25,7 +25,6 @@
{{ component.reference }} {{ component.constructeur?.name }} - {{ component.emplacement }} {{ component.prix }}€
{{ component.reference || 'Non définie' }}
-
- - -
{{ component.emplacement || 'Non défini' }}
-
- +
@@ -204,14 +190,13 @@ v-else-if="field.type === 'date'" v-model="field.value" type="date" - :placeholder="field.defaultValue || ''" class="input input-bordered input-sm" :required="field.required" @blur="updateComponentCustomField(field)" />
diff --git a/app/components/ComponentModelStructureEditor.vue b/app/components/ComponentModelStructureEditor.vue index 85bf8e9..e9ac3ce 100644 --- a/app/components/ComponentModelStructureEditor.vue +++ b/app/components/ComponentModelStructureEditor.vue @@ -34,17 +34,9 @@ -
- - +
+ + Obligatoire