-
-
Prestataire: {{ piece.prestataire }}
+
+ Constructeur: {{ piece.constructeur }}
Emplacement: {{ piece.emplacement }}
@@ -401,8 +401,8 @@ const expandedSubComponentPieceCustomFields = reactive({})
const compactInfo = computed(() => {
const infos = []
- if (props.component?.prestataire) {
- infos.push(props.component.prestataire)
+ if (props.component?.constructeur) {
+ infos.push(props.component.constructeur)
}
if (props.component?.emplacement) {
infos.push(props.component.emplacement)
@@ -412,14 +412,14 @@ const compactInfo = computed(() => {
const quickPieceSummary = (piece) => {
const infos = []
- if (piece?.prestataire) infos.push(piece.prestataire)
+ if (piece?.constructeur) infos.push(piece.constructeur)
if (piece?.emplacement) infos.push(piece.emplacement)
return infos.join(' • ')
}
const quickSubSummary = (subComponent) => {
const infos = []
- if (subComponent?.prestataire) infos.push(subComponent.prestataire)
+ if (subComponent?.constructeur) infos.push(subComponent.constructeur)
if (subComponent?.emplacement) infos.push(subComponent.emplacement)
return infos.join(' • ')
}
diff --git a/app/components/TypeComponentForm.vue b/app/components/TypeComponentForm.vue
index 8368f18..ffa6701 100644
--- a/app/components/TypeComponentForm.vue
+++ b/app/components/TypeComponentForm.vue
@@ -91,12 +91,12 @@
@@ -1015,7 +1015,7 @@ const addComponent = () => {
components.value.push({
name: '',
reference: '',
- prestataire: '',
+ constructeur: '',
emplacement: '',
prix: null,
pieces: [],
@@ -1095,7 +1095,7 @@ const addComponentPiece = (componentIndex) => {
component.pieces.push({
name: '',
reference: '',
- prestataire: '',
+ constructeur: '',
emplacement: '',
prix: null,
customFields: []
@@ -1156,7 +1156,7 @@ const addSubComponent = (componentIndex) => {
component.subComponents.push({
name: '',
reference: '',
- prestataire: '',
+ constructeur: '',
emplacement: '',
prix: null,
customFields: [],
@@ -1226,7 +1226,7 @@ const addSubComponentPiece = (componentIndex, subIndex) => {
subComponent.pieces.push({
name: '',
reference: '',
- prestataire: '',
+ constructeur: '',
emplacement: '',
prix: null,
customFields: []
diff --git a/app/components/TypeEditForm.vue b/app/components/TypeEditForm.vue
index 0f630a2..bd4ec93 100644
--- a/app/components/TypeEditForm.vue
+++ b/app/components/TypeEditForm.vue
@@ -348,12 +348,12 @@
@@ -586,12 +586,12 @@
@@ -1176,7 +1176,7 @@ const addMachinePiece = () => {
formData.machinePieces.push({
name: '',
reference: '',
- prestataire: '',
+ constructeur: '',
emplacement: '',
prix: null,
customFields: []
@@ -1237,7 +1237,7 @@ const addComponent = () => {
formData.components.push({
name: '',
reference: '',
- prestataire: '',
+ constructeur: '',
emplacement: '',
prix: null,
customFields: [],
@@ -1310,7 +1310,7 @@ const addComponentPiece = (componentIndex) => {
formData.components[componentIndex].pieces.push({
name: '',
reference: '',
- prestataire: '',
+ constructeur: '',
emplacement: '',
prix: null,
customFields: []
diff --git a/app/components/TypeMachinePieceDisplay.vue b/app/components/TypeMachinePieceDisplay.vue
index 0fc3ad0..0f477ca 100644
--- a/app/components/TypeMachinePieceDisplay.vue
+++ b/app/components/TypeMachinePieceDisplay.vue
@@ -34,8 +34,8 @@
Référence: {{ piece.reference }}
-
-
Prestataire: {{ piece.prestataire }}
+
+ Constructeur: {{ piece.constructeur }}
Emplacement: {{ piece.emplacement }}
@@ -78,8 +78,8 @@ const expanded = ref(true)
const quickSummary = computed(() => {
const infos = []
- if (props.piece?.prestataire) {
- infos.push(props.piece.prestataire)
+ if (props.piece?.constructeur) {
+ infos.push(props.piece.constructeur)
}
if (props.piece?.emplacement) {
infos.push(props.piece.emplacement)
diff --git a/app/components/TypeMachinePieceForm.vue b/app/components/TypeMachinePieceForm.vue
index 72d247b..3832b37 100644
--- a/app/components/TypeMachinePieceForm.vue
+++ b/app/components/TypeMachinePieceForm.vue
@@ -87,12 +87,12 @@
@@ -326,7 +326,7 @@ const addPiece = () => {
pieces.value.push({
name: '',
reference: '',
- prestataire: '',
+ constructeur: '',
emplacement: '',
prix: null,
customFields: []
diff --git a/app/pages/machine/[id].vue b/app/pages/machine/[id].vue
index f99d234..ed2d273 100644
--- a/app/pages/machine/[id].vue
+++ b/app/pages/machine/[id].vue
@@ -103,18 +103,18 @@
@@ -334,7 +334,7 @@ const pieces = ref([])
const machineName = ref('')
const machineReference = ref('')
const machineEmplacement = ref('')
-const machinePrestataire = ref('')
+const machineConstructeur = ref('')
// Valeurs des champs personnalisés de la machine
const machineCustomFieldValues = reactive({})
@@ -363,7 +363,7 @@ const initMachineFields = () => {
machineName.value = machine.value.name || ''
machineReference.value = machine.value.reference || ''
machineEmplacement.value = machine.value.emplacement || ''
- machinePrestataire.value = machine.value.prestataire || ''
+ machineConstructeur.value = machine.value.constructeur || ''
}
}
@@ -533,7 +533,7 @@ const updateMachineInfo = async () => {
name: machineName.value,
reference: machineReference.value,
emplacement: machineEmplacement.value,
- prestataire: machinePrestataire.value
+ constructeur: machineConstructeur.value
})
if (result.success) {
// Machine updated successfully
@@ -549,7 +549,7 @@ const updateComponent = async (updatedComponent) => {
const result = await updateComposantApi(updatedComponent.id, {
name: updatedComponent.name,
reference: updatedComponent.reference,
- prestataire: updatedComponent.prestataire,
+ constructeur: updatedComponent.constructeur,
emplacement: updatedComponent.emplacement,
prix: prixValue && prixValue !== '' ? parseFloat(prixValue) : null
})
@@ -566,7 +566,7 @@ const updatePieceFromComponent = async (updatedPiece) => {
const result = await updatePieceApi(updatedPiece.id, {
name: updatedPiece.name,
reference: updatedPiece.reference,
- prestataire: updatedPiece.prestataire,
+ constructeur: updatedPiece.constructeur,
emplacement: updatedPiece.emplacement,
prix: updatedPiece.prix && updatedPiece.prix !== '' ? parseFloat(updatedPiece.prix) : null
})
@@ -597,7 +597,7 @@ const updatePieceInfo = async (updatedPiece) => {
const result = await updatePieceApi(updatedPiece.id, {
name: updatedPiece.name,
reference: updatedPiece.reference,
- prestataire: updatedPiece.prestataire,
+ constructeur: updatedPiece.constructeur,
emplacement: updatedPiece.emplacement,
prix: updatedPiece.prix && updatedPiece.prix !== '' ? parseFloat(updatedPiece.prix) : null
})
diff --git a/app/pages/type/edit/[id].vue b/app/pages/type/edit/[id].vue
index 5ef2bd9..a472a03 100644
--- a/app/pages/type/edit/[id].vue
+++ b/app/pages/type/edit/[id].vue
@@ -108,7 +108,7 @@ const saveChanges = async () => {
.map(piece => ({
name: piece.name,
reference: piece.reference || '',
- prestataire: piece.prestataire || '',
+ constructeur: piece.constructeur || '',
emplacement: piece.emplacement || '',
prix: piece.prix || null,
customFields: (piece.customFields || [])
@@ -129,7 +129,7 @@ const saveChanges = async () => {
.map(comp => ({
name: comp.name,
reference: comp.reference || '',
- prestataire: comp.prestataire || '',
+ constructeur: comp.constructeur || '',
emplacement: comp.emplacement || '',
prix: comp.prix || null,
customFields: (comp.customFields || [])
@@ -148,7 +148,7 @@ const saveChanges = async () => {
.map(piece => ({
name: piece.name,
reference: piece.reference || '',
- prestataire: piece.prestataire || '',
+ constructeur: piece.constructeur || '',
emplacement: piece.emplacement || '',
prix: piece.prix || null,
customFields: (piece.customFields || [])