|
@@ -5,15 +5,25 @@ import { useRouter } from 'vue-router'
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
const props = defineProps<{
|
|
const props = defineProps<{
|
|
|
data: {
|
|
data: {
|
|
|
- type: 'milestone' | 'container' | 'delay' | 'change'
|
|
|
|
|
- numericRecords?: number // 是否有多条记录
|
|
|
|
|
|
|
+ type: string // 'milestone' | 'container' | 'delay' | 'change'
|
|
|
|
|
+ isMultiple?: boolean
|
|
|
|
|
+ numericRecords?: number // 多条记录数
|
|
|
isRead: boolean // 是否已读
|
|
isRead: boolean // 是否已读
|
|
|
title?: string
|
|
title?: string
|
|
|
- mode: string // 运输方式
|
|
|
|
|
|
|
+ mode?: string // 运输方式
|
|
|
no: string // HBOL: SHJN2301234
|
|
no: string // HBOL: SHJN2301234
|
|
|
tag: string // tag
|
|
tag: string // tag
|
|
|
location: string
|
|
location: string
|
|
|
- delayTime?: string
|
|
|
|
|
|
|
+ delayInfo?: {
|
|
|
|
|
+ departureDelayNum?: number
|
|
|
|
|
+ arrivalDelayNum?: number
|
|
|
|
|
+ delayTime: string
|
|
|
|
|
+ }
|
|
|
|
|
+ changeInfo?: {
|
|
|
|
|
+ eTDChangeNum?: number
|
|
|
|
|
+ eTAChangeNum?: number
|
|
|
|
|
+ changeTime: string
|
|
|
|
|
+ }
|
|
|
changeTime?: string
|
|
changeTime?: string
|
|
|
time: string
|
|
time: string
|
|
|
previous?: string
|
|
previous?: string
|
|
@@ -35,7 +45,7 @@ const handleSeeAll = () => {
|
|
|
<div class="title">{{ data.title }}</div>
|
|
<div class="title">{{ data.title }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="content">
|
|
<div class="content">
|
|
|
- <div class="more-tips" v-if="data.numericRecords">
|
|
|
|
|
|
|
+ <div class="more-tips" v-if="data.isMultiple">
|
|
|
<span>Latest Status Updates ({{ data.numericRecords }})</span>
|
|
<span>Latest Status Updates ({{ data.numericRecords }})</span>
|
|
|
<el-button @click="handleSeeAll" class="see-all-icon el-button--text">
|
|
<el-button @click="handleSeeAll" class="see-all-icon el-button--text">
|
|
|
See All
|
|
See All
|
|
@@ -63,9 +73,9 @@ const handleSeeAll = () => {
|
|
|
<span class="font_family icon-icon_location_b"></span>
|
|
<span class="font_family icon-icon_location_b"></span>
|
|
|
<span>{{ data.location }}</span>
|
|
<span>{{ data.location }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="delay-time" v-if="data.delayTime">
|
|
|
|
|
|
|
+ <div class="delay-time" v-if="data.type === 'delay'">
|
|
|
<span class="font_family icon-icon_delay_b"></span>
|
|
<span class="font_family icon-icon_delay_b"></span>
|
|
|
- <span>{{ data.time }}</span>
|
|
|
|
|
|
|
+ <span>{{ data.delayInfo.delayTime }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="change-time" v-if="data.changeTime">
|
|
<div class="change-time" v-if="data.changeTime">
|
|
|
<span style="margin-left: 1px" class="font_family icon-icon_time_b"></span>
|
|
<span style="margin-left: 1px" class="font_family icon-icon_time_b"></span>
|