fix(transport) : décharge après volume (nouvelle ligne) + contenant Benne/FM en select (ERP-166)
This commit is contained in:
@@ -63,18 +63,9 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- RG-4.02 : Decharge visible et obligatoire si certification AUTRE.
|
<!-- Espace réservé : laisse un trou en colonne 4 de la ligne 1 (xl)
|
||||||
L'upload reel (File → IRI via useUpload) arrive a ERP-171. -->
|
pour pousser les champs conditionnels sur une nouvelle ligne. -->
|
||||||
<!-- TODO ERP-171 : brancher useUpload pour resoudre le File en IRI
|
<div v-if="showCharteredFields || showDischarge" class="hidden xl:block"></div>
|
||||||
(main.dischargeDocumentIri). Le champ est deja visible/obligatoire. -->
|
|
||||||
<MalioInputUpload
|
|
||||||
v-if="showDischarge"
|
|
||||||
:label="t('transport.carriers.form.main.discharge')"
|
|
||||||
accept="application/pdf,image/*"
|
|
||||||
:required="true"
|
|
||||||
:readonly="mainLocked"
|
|
||||||
:error="mainErrors.errors.dischargeDocument"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- RG-4.03 : champs d'affretement visibles + obligatoires si « Affreter ». -->
|
<!-- RG-4.03 : champs d'affretement visibles + obligatoires si « Affreter ». -->
|
||||||
<template v-if="showCharteredFields">
|
<template v-if="showCharteredFields">
|
||||||
@@ -86,33 +77,17 @@
|
|||||||
:error="mainErrors.errors.indexationRate"
|
:error="mainErrors.errors.indexationRate"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Contenant : radio Benne / Fond mouvant (RG-4.03). -->
|
<!-- Contenant : Benne / Fond mouvant (RG-4.03). -->
|
||||||
<div class="flex flex-col justify-center">
|
<MalioSelect
|
||||||
<span class="mb-1 text-sm font-medium text-m-muted">
|
:model-value="main.containerType"
|
||||||
{{ t('transport.carriers.form.main.containerType') }}<span class="text-m-danger"> *</span>
|
:options="containerOptions"
|
||||||
</span>
|
:label="t('transport.carriers.form.main.containerType')"
|
||||||
<div class="flex gap-4">
|
empty-option-label=""
|
||||||
<MalioRadioButton
|
:required="true"
|
||||||
v-model="main.containerType"
|
:readonly="mainLocked"
|
||||||
name="container-type"
|
:error="mainErrors.errors.containerType"
|
||||||
value="BENNE"
|
@update:model-value="(v: string | number | null) => main.containerType = v === null ? null : String(v)"
|
||||||
:label="t('transport.carriers.containerType.BENNE')"
|
/>
|
||||||
:disabled="mainLocked"
|
|
||||||
group-class="mt-0"
|
|
||||||
/>
|
|
||||||
<MalioRadioButton
|
|
||||||
v-model="main.containerType"
|
|
||||||
name="container-type"
|
|
||||||
value="FOND_MOUVANT"
|
|
||||||
:label="t('transport.carriers.containerType.FOND_MOUVANT')"
|
|
||||||
:disabled="mainLocked"
|
|
||||||
group-class="mt-0"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<p v-if="mainErrors.errors.containerType" class="mt-1 ml-[2px] text-xs text-m-danger">
|
|
||||||
{{ mainErrors.errors.containerType }}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<MalioInputNumber
|
<MalioInputNumber
|
||||||
v-model="main.volumeM3"
|
v-model="main.volumeM3"
|
||||||
@@ -122,6 +97,20 @@
|
|||||||
:error="mainErrors.errors.volumeM3"
|
:error="mainErrors.errors.volumeM3"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<!-- RG-4.02 : Decharge visible et obligatoire si certification AUTRE,
|
||||||
|
placée APRÈS le volume (col 4 ligne 2 si affrété, sinon col 1 ligne 2).
|
||||||
|
L'upload reel (File → IRI via useUpload) arrive a ERP-171. -->
|
||||||
|
<!-- TODO ERP-171 : brancher useUpload pour resoudre le File en IRI
|
||||||
|
(main.dischargeDocumentIri). Le champ est deja visible/obligatoire. -->
|
||||||
|
<MalioInputUpload
|
||||||
|
v-if="showDischarge"
|
||||||
|
:label="t('transport.carriers.form.main.discharge')"
|
||||||
|
accept="application/pdf,image/*"
|
||||||
|
:required="true"
|
||||||
|
:readonly="mainLocked"
|
||||||
|
:error="mainErrors.errors.dischargeDocument"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -293,6 +282,16 @@ const certificationOptions = computed<SelectOption[]>(() =>
|
|||||||
})),
|
})),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Contenant (RG-4.03) : Benne / Fond mouvant — select simple.
|
||||||
|
const CONTAINER_TYPES = ['BENNE', 'FOND_MOUVANT'] as const
|
||||||
|
|
||||||
|
const containerOptions = computed<SelectOption[]>(() =>
|
||||||
|
CONTAINER_TYPES.map(code => ({
|
||||||
|
value: code,
|
||||||
|
label: t(`transport.carriers.containerType.${code}`),
|
||||||
|
})),
|
||||||
|
)
|
||||||
|
|
||||||
// Icone (Iconify) affichee dans chaque onglet, par cle.
|
// Icone (Iconify) affichee dans chaque onglet, par cle.
|
||||||
const TAB_ICONS: Record<string, string> = {
|
const TAB_ICONS: Record<string, string> = {
|
||||||
qualimat: 'mdi:truck-check-outline',
|
qualimat: 'mdi:truck-check-outline',
|
||||||
|
|||||||
Reference in New Issue
Block a user