added container info to d2d transports
This commit is contained in:
parent
175ac4266b
commit
0b78321e58
1 changed files with 8 additions and 6 deletions
|
|
@ -317,7 +317,7 @@
|
|||
<div class="report-content-row">
|
||||
<div>Stacked layers</div>
|
||||
<div class="report-content-data-cell">{{
|
||||
hasMainRun(destination.sections) ? destination.layer : '-'
|
||||
hasMainRunOrD2D(destination.sections) ? destination.layer : '-'
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -325,7 +325,9 @@
|
|||
<div class="report-content-row">
|
||||
<div>Container unit count</div>
|
||||
<div class="report-content-data-cell">
|
||||
{{ hasMainRun(destination.sections) ? (destination.unit_count * report.premises.hu_unit_count) : '-' }}
|
||||
{{
|
||||
hasMainRunOrD2D(destination.sections) ? (destination.unit_count * report.premises.hu_unit_count) : '-'
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -333,14 +335,14 @@
|
|||
<div class="report-content-row">
|
||||
<div>Container type</div>
|
||||
<div class="report-content-data-cell">
|
||||
{{ hasMainRun(destination.sections) ? getContainerTypeName(destination.container_type) : '-' }}
|
||||
{{ hasMainRunOrD2D(destination.sections) ? getContainerTypeName(destination.container_type) : '-' }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="report-content-row">
|
||||
<div>Limiting factor</div>
|
||||
<div class="report-content-data-cell">
|
||||
{{ hasMainRun(destination.sections) ? destination.weight_exceeded ? 'Weight' : 'Volume' : '-' }}
|
||||
{{ hasMainRunOrD2D(destination.sections) ? destination.weight_exceeded ? 'Weight' : 'Volume' : '-' }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -379,8 +381,8 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
hasMainRun(sections) {
|
||||
return sections.some(section => section.transport_type === 'SEA' || section.transport_type === 'RAIL');
|
||||
hasMainRunOrD2D(sections) {
|
||||
return sections.some(section => section.transport_type === 'SEA' || section.transport_type === 'RAIL' || section.rate_type === 'D2D');
|
||||
},
|
||||
shorten(text, length) {
|
||||
if (text !== null && text !== undefined && text.length > length) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue