Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
0a84ab31
Commit
0a84ab31
authored
Aug 13, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加物流轨迹
parent
eac2d845
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
1 deletions
+53
-1
src/api/podUsOrder.ts
+4
-0
src/views/order/podUs/index.vue
+49
-1
No files found.
src/api/podUsOrder.ts
View file @
0a84ab31
...
...
@@ -553,3 +553,7 @@ export function completeDeliveryApi(params: {
params
,
)
}
// 物流轨迹
export
function
get17TrackInfoApi
(
params
:
{
id
:
string
|
number
})
{
return
axios
.
get
(
`factory/podJomallOrderUs/get17TrackInfo`
,
{
params
})
}
src/views/order/podUs/index.vue
View file @
0a84ab31
...
...
@@ -519,6 +519,7 @@
<ElButton
type=
"warning"
@
click=
"arrangeFinish"
>
排单完成
</ElButton>
</span>
</ElFormItem>
<ElFormItem
v-if=
"status !== 'BATCH_DOWNLOAD' && status !== 'WAIT_SHIPMENT'"
>
...
...
@@ -1530,6 +1531,14 @@
刷新地址
<
/ElButton
>
<
/span
>
<
span
v
-
if
=
"status === 'IN_TRANSIT' || status === 'COMPLETE'"
class
=
"operate-item"
>
<
ElButton
link
type
=
"primary"
@
click
=
"logTrajectory(row)"
>
物流轨迹
<
/ElButto
n
>
<
/span
>
<
/div
>
<
/template
>
<
/TableView
>
...
...
@@ -2278,6 +2287,21 @@
<
el
-
dialog
v
-
model
=
"dialogVisible"
width
=
"35%"
>
<
img
:
src
=
"dialogImageUrl"
alt
=
"商品预览图片"
/>
<
/el-dialog
>
<
el
-
dialog
title
=
"物流轨迹"
v
-
model
=
"timeLineVisible"
width
=
"1000px"
>
<
el
-
timeline
>
<
el
-
timeline
-
item
v
-
for
=
"(item, index) in timeLine"
:
key
=
"index"
:
timestamp
=
"item.time_utc"
placement
=
"top"
:
type
=
"index == 0 ? 'primary' : ''"
>
<
el
-
card
>
{{
item
.
description
}}
<
/el-card
>
<
/el-timeline-item
>
<
/el-timeline
>
<
/el-dialog
>
<
/template
>
<
script
setup
lang
=
"ts"
>
import
{
getUserMarkList
}
from
'@/api/common'
...
...
@@ -2345,6 +2369,7 @@ import {
rejectToApi
,
statusPushApi
,
completeDeliveryApi
,
get17TrackInfoApi
,
}
from
'@/api/podUsOrder'
import
{
BaseRespData
}
from
'@/types/api'
...
...
@@ -3852,6 +3877,24 @@ const arrangeFinish = async () => {
loading
.
close
()
}
}
interface
timeLineType
{
time_iso
?:
string
time_utc
?:
string
description
?:
string
}
const
timeLineVisible
=
ref
(
false
)
const
timeLine
=
ref
<
timeLineType
[]
>
([])
const
logTrajectory
=
async
(
row
:
{
id
:
string
}
)
=>
{
const
{
data
}
=
await
get17TrackInfoApi
({
id
:
row
.
id
}
)
const
res
=
data
.
accepted
[
0
]?.
track_info
?.
tracking
timeLine
.
value
=
res
?.
providers
[
0
]?.
events
// if (data.rejected?.length)
{
// console.log(data.rejected[0].error.message)
// throw Error(data.rejected[0].error.message)
//
}
timeLineVisible
.
value
=
true
}
const
logList
=
ref
<
LogListData
[]
>
([])
const
logVisible
=
ref
(
false
)
const
operationLog
=
async
(
id
:
number
,
e
:
MouseEvent
|
null
)
=>
{
...
...
@@ -5316,6 +5359,11 @@ useRouter().beforeEach((to, from, next) => {
}
.
el
-
timeline
-
item__wrapper
{
padding
-
left
:
15
px
;
top
:
-
6
px
;
top
:
-
4
px
;
}
.
el
-
timeline
>
.
el
-
timeline
-
item
:
first
-
child
.
el
-
timeline
-
item__timestamp
.
is
-
top
{
color
:
#
409
eff
;
}
<
/style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment