feat(transport) : consultation — contenant en radios lecture seule (aligné ajout/modif) (ERP-170)
This commit is contained in:
@@ -86,7 +86,27 @@
|
|||||||
<!-- Champs d'affrètement (ligne 2) si affrété. -->
|
<!-- Champs d'affrètement (ligne 2) si affrété. -->
|
||||||
<template v-if="main.isChartered">
|
<template v-if="main.isChartered">
|
||||||
<MalioInputText :model-value="indexationDisplay" :label="t('transport.carriers.form.main.indexationRate')" readonly />
|
<MalioInputText :model-value="indexationDisplay" :label="t('transport.carriers.form.main.indexationRate')" readonly />
|
||||||
<MalioInputText :model-value="containerLabel" :label="t('transport.carriers.form.main.containerType')" readonly />
|
<!-- Contenant : radios désactivés (lecture seule), aligné sur l'ajout / la modif. -->
|
||||||
|
<div>
|
||||||
|
<div class="flex h-12 items-center gap-4">
|
||||||
|
<MalioRadioButton
|
||||||
|
:model-value="main.containerType"
|
||||||
|
name="carrier-view-container"
|
||||||
|
value="BENNE"
|
||||||
|
:label="t('transport.carriers.containerType.BENNE')"
|
||||||
|
readonly
|
||||||
|
group-class="mt-0"
|
||||||
|
/>
|
||||||
|
<MalioRadioButton
|
||||||
|
:model-value="main.containerType"
|
||||||
|
name="carrier-view-container"
|
||||||
|
value="FOND_MOUVANT"
|
||||||
|
:label="t('transport.carriers.containerType.FOND_MOUVANT')"
|
||||||
|
readonly
|
||||||
|
group-class="mt-0"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<MalioInputText :model-value="main.volumeM3" :label="t('transport.carriers.form.main.volumeM3')" readonly />
|
<MalioInputText :model-value="main.volumeM3" :label="t('transport.carriers.form.main.volumeM3')" readonly />
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@@ -252,9 +272,6 @@ const isLiot = computed(() => main.value.name.trim().toUpperCase() === 'LIOT')
|
|||||||
const certificationLabel = computed(() => main.value.certificationType
|
const certificationLabel = computed(() => main.value.certificationType
|
||||||
? t(`transport.carriers.certification.${main.value.certificationType}`)
|
? t(`transport.carriers.certification.${main.value.certificationType}`)
|
||||||
: '')
|
: '')
|
||||||
const containerLabel = computed(() => main.value.containerType
|
|
||||||
? t(`transport.carriers.containerType.${main.value.containerType}`)
|
|
||||||
: '')
|
|
||||||
// Indexation affichée avec le « % » (comme l'icône du champ amount de l'ajout).
|
// Indexation affichée avec le « % » (comme l'icône du champ amount de l'ajout).
|
||||||
const indexationDisplay = computed(() => main.value.indexationRate ? `${main.value.indexationRate} %` : '')
|
const indexationDisplay = computed(() => main.value.indexationRate ? `${main.value.indexationRate} %` : '')
|
||||||
// Décharge : nom du fichier embarqué si présent (sinon vide ; la colonne reste réservée).
|
// Décharge : nom du fichier embarqué si présent (sinon vide ; la colonne reste réservée).
|
||||||
|
|||||||
Reference in New Issue
Block a user