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 class="report-content-row">
|
||||||
<div>Stacked layers</div>
|
<div>Stacked layers</div>
|
||||||
<div class="report-content-data-cell">{{
|
<div class="report-content-data-cell">{{
|
||||||
hasMainRun(destination.sections) ? destination.layer : '-'
|
hasMainRunOrD2D(destination.sections) ? destination.layer : '-'
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -325,7 +325,9 @@
|
||||||
<div class="report-content-row">
|
<div class="report-content-row">
|
||||||
<div>Container unit count</div>
|
<div>Container unit count</div>
|
||||||
<div class="report-content-data-cell">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -333,14 +335,14 @@
|
||||||
<div class="report-content-row">
|
<div class="report-content-row">
|
||||||
<div>Container type</div>
|
<div>Container type</div>
|
||||||
<div class="report-content-data-cell">
|
<div class="report-content-data-cell">
|
||||||
{{ hasMainRun(destination.sections) ? getContainerTypeName(destination.container_type) : '-' }}
|
{{ hasMainRunOrD2D(destination.sections) ? getContainerTypeName(destination.container_type) : '-' }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="report-content-row">
|
<div class="report-content-row">
|
||||||
<div>Limiting factor</div>
|
<div>Limiting factor</div>
|
||||||
<div class="report-content-data-cell">
|
<div class="report-content-data-cell">
|
||||||
{{ hasMainRun(destination.sections) ? destination.weight_exceeded ? 'Weight' : 'Volume' : '-' }}
|
{{ hasMainRunOrD2D(destination.sections) ? destination.weight_exceeded ? 'Weight' : 'Volume' : '-' }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -379,8 +381,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
hasMainRun(sections) {
|
hasMainRunOrD2D(sections) {
|
||||||
return sections.some(section => section.transport_type === 'SEA' || section.transport_type === 'RAIL');
|
return sections.some(section => section.transport_type === 'SEA' || section.transport_type === 'RAIL' || section.rate_type === 'D2D');
|
||||||
},
|
},
|
||||||
shorten(text, length) {
|
shorten(text, length) {
|
||||||
if (text !== null && text !== undefined && text.length > length) {
|
if (text !== null && text !== undefined && text.length > length) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue