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
70b52d63
Commit
70b52d63
authored
Aug 22, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
7c547917
f36a701d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
17 deletions
+55
-17
src/types/api/podUsOrder.ts
+1
-0
src/views/order/podUs/index.vue
+54
-17
No files found.
src/types/api/podUsOrder.ts
View file @
70b52d63
...
@@ -81,6 +81,7 @@ export interface PodUsOrderListData {
...
@@ -81,6 +81,7 @@ export interface PodUsOrderListData {
logisticsWayName
?:
string
logisticsWayName
?:
string
url
?:
string
|
null
url
?:
string
|
null
tiffUrl
?:
string
|
null
tiffUrl
?:
string
|
null
lanshouAddress
?:
string
|
null
}
}
export
interface
ProductList
{
export
interface
ProductList
{
id
:
number
id
:
number
...
...
src/views/order/podUs/index.vue
View file @
70b52d63
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
>
>
<el-option
:value=
"1"
label=
"创建时间"
></el-option>
<el-option
:value=
"1"
label=
"创建时间"
></el-option>
<el-option
:value=
"2"
label=
"确认时间"
></el-option>
<el-option
:value=
"2"
label=
"确认时间"
></el-option>
<el-option
:value=
"3"
label=
"
完成
时间"
></el-option>
<el-option
:value=
"3"
label=
"
发货
时间"
></el-option>
</el-select>
</el-select>
<el-date-picker
<el-date-picker
v-model=
"timeRange"
v-model=
"timeRange"
...
@@ -1402,7 +1402,7 @@
...
@@ -1402,7 +1402,7 @@
{{
row
.
receiverPostCode
}}
{{
row
.
receiverPostCode
}}
</span>
</span>
</div>
</div>
<div
class=
"order-detail-item"
>
<
!--
<
div
class=
"order-detail-item"
>
<span
class=
"order-detail-item-label"
>
收货地址:
</span>
<span
class=
"order-detail-item-label"
>
收货地址:
</span>
<span
<span
class=
"order-detail-item-value"
class=
"order-detail-item-value"
...
@@ -1410,7 +1410,7 @@
...
@@ -1410,7 +1410,7 @@
>
>
{{
row
.
lanshouAddress
}}
{{
row
.
lanshouAddress
}}
</span>
</span>
</div>
</div>
-->
</div>
</div>
</
template
>
</
template
>
<
template
#
price=
"{ row }"
>
<
template
#
price=
"{ row }"
>
...
@@ -1451,9 +1451,29 @@
...
@@ -1451,9 +1451,29 @@
<el-timeline-item
<el-timeline-item
:color=
"row.finishTime ? '#67C23A' : ''"
:color=
"row.finishTime ? '#67C23A' : ''"
:timestamp=
"row.finishTime"
:timestamp=
"row.finishTime"
>
完成时间
>
发货时间
</el-timeline-item>
<el-timeline-item
v-if=
"status === 'IN_TRANSIT'"
:color=
"row.finishTime ? '#F56C6C' : ''"
>
{{
`延迟${(() => {
if (!row.finishTime) return ''
const finishDate = new Date(row.finishTime)
const today = new Date()
const diffTime = today.getTime() - finishDate.getTime()
const diffDays = Math.floor(
diffTime / (1000 * 60 * 60 * 24),
)
return diffDays
}
)()
}
天`
}}
<
/el-timeline-item
>
<
/el-timeline-item
>
<
/el-timeline
>
<
/el-timeline
>
<
div
v
-
if
=
"status === 'IN_TRANSIT'"
style
=
"color: #f56c6c"
><
/div
>
<!--
<
div
class
=
"order-time-box"
>
<!--
<
div
class
=
"order-time-box"
>
<
div
class
=
"order-time-item"
>
<
div
class
=
"order-time-item"
>
<
span
class
=
"order-time-item-label"
>
创建时间:
<
/span
>
<
span
class
=
"order-time-item-label"
>
创建时间:
<
/span
>
...
@@ -1586,7 +1606,7 @@
...
@@ -1586,7 +1606,7 @@
<
ElButton
<
ElButton
link
link
type
=
"primary"
type
=
"primary"
@
click
=
"operationLog(row.id, null)"
@
click
=
"operationLog(row.id, null
, row
)"
>
>
操作日志
操作日志
<
/ElButton
>
<
/ElButton
>
...
@@ -1751,7 +1771,7 @@
...
@@ -1751,7 +1771,7 @@
<
Icon
<
Icon
name
=
"caozuorizhi"
name
=
"caozuorizhi"
style
=
"width: 28px; height: 28px"
style
=
"width: 28px; height: 28px"
@
click
=
"(e: MouseEvent) => operationLog(cardItem.podJomallOrderUsId, e)"
@
click
=
"(e: MouseEvent) => operationLog(cardItem.podJomallOrderUsId, e
, row
)"
>
>
<
template
#
title
>
<
template
#
title
>
<
title
>
操作日志
<
/title
>
<
title
>
操作日志
<
/title
>
...
@@ -2095,6 +2115,10 @@
...
@@ -2095,6 +2115,10 @@
<
/el-button
>
<
/el-button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
style
=
"margin-top: 10px; color: #606266"
>
<
span
>
地址:
<
/span
>
<
span
>
{{
currentItem
?.
lanshouAddress
}}
<
/span
>
<
/div
>
<
/template
>
<
/template
>
<
LogList
:
log
-
list
=
"logList"
/>
<
LogList
:
log
-
list
=
"logList"
/>
<
/el-dialog
>
<
/el-dialog
>
...
@@ -2544,6 +2568,7 @@ const currentRow = ref<AddressInfo>({
...
@@ -2544,6 +2568,7 @@ const currentRow = ref<AddressInfo>({
receiverAddress2
:
''
,
receiverAddress2
:
''
,
receiverPostCode
:
''
,
receiverPostCode
:
''
,
}
)
}
)
const
currentItem
=
ref
<
PodUsOrderListData
|
null
>
(
null
)
const
exportLoading
=
ref
(
false
)
const
exportLoading
=
ref
(
false
)
const
exportVisible
=
ref
(
false
)
const
exportVisible
=
ref
(
false
)
const
exportForm
=
ref
({
const
exportForm
=
ref
({
...
@@ -2691,7 +2716,6 @@ const trackRegisterCount = ref<
...
@@ -2691,7 +2716,6 @@ const trackRegisterCount = ref<
>
([])
>
([])
const
userMarkList
=
ref
<
string
[]
>
([])
const
userMarkList
=
ref
<
string
[]
>
([])
const
selection
=
ref
<
PodUsOrderListData
[]
>
([])
const
selection
=
ref
<
PodUsOrderListData
[]
>
([])
const
currentItem
=
ref
<
PodUsOrderListData
|
null
>
(
null
)
const
pickerOptions
=
{
const
pickerOptions
=
{
shortcuts
:
[
shortcuts
:
[
{
{
...
@@ -2972,7 +2996,7 @@ const tableColumns = computed(() => {
...
@@ -2972,7 +2996,7 @@ const tableColumns = computed(() => {
align
:
'center'
,
align
:
'center'
,
}
,
}
,
{
{
label
:
'
完成
时间'
,
label
:
'
发货
时间'
,
width
:
180
,
width
:
180
,
prop
:
'finishTime'
,
prop
:
'finishTime'
,
slot
:
'finishTime'
,
slot
:
'finishTime'
,
...
@@ -3073,11 +3097,6 @@ const tableColumns = computed(() => {
...
@@ -3073,11 +3097,6 @@ const tableColumns = computed(() => {
if
(
trackRegisterIndex
>=
0
)
{
if
(
trackRegisterIndex
>=
0
)
{
arr
.
splice
(
trackRegisterIndex
,
1
)
arr
.
splice
(
trackRegisterIndex
,
1
)
}
}
const
track17Index
=
arr
.
findIndex
((
item
)
=>
item
.
prop
===
'track17Status'
)
if
(
track17Index
>=
0
)
{
arr
.
splice
(
track17Index
,
1
)
}
}
else
{
}
else
{
if
(
waitTrackStatus
.
value
!==
1
)
{
if
(
waitTrackStatus
.
value
!==
1
)
{
const
trackRegisterIndex
=
arr
.
findIndex
(
const
trackRegisterIndex
=
arr
.
findIndex
(
...
@@ -3150,7 +3169,7 @@ const asyncOrderAddress = async () => {
...
@@ -3150,7 +3169,7 @@ const asyncOrderAddress = async () => {
}
}
}
}
const
changeTab
=
(
item
:
Tab
)
=>
{
const
changeTab
=
async
(
item
:
Tab
)
=>
{
status
.
value
=
item
.
status
||
''
status
.
value
=
item
.
status
||
''
localStorage
.
setItem
(
'podUsStatus'
,
item
.
status
as
string
)
localStorage
.
setItem
(
'podUsStatus'
,
item
.
status
as
string
)
...
@@ -3158,6 +3177,12 @@ const changeTab = (item: Tab) => {
...
@@ -3158,6 +3177,12 @@ const changeTab = (item: Tab) => {
if
(
item
.
status
===
'INTERCEPTED'
&&
!
interceptCurrent
.
value
)
{
if
(
item
.
status
===
'INTERCEPTED'
&&
!
interceptCurrent
.
value
)
{
interceptCurrent
.
value
=
1
interceptCurrent
.
value
=
1
}
}
if
(
item
.
status
===
'WAIT_TRACK'
)
{
await
getRegistData
()
}
if
(
item
.
status
===
'INTERCEPTED'
)
{
await
loadTabData
()
}
selection
.
value
=
[]
selection
.
value
=
[]
cardSelection
.
value
=
[]
cardSelection
.
value
=
[]
...
@@ -3182,14 +3207,19 @@ const onCellClassName = ({ column }: { column: Column }) => {
...
@@ -3182,14 +3207,19 @@ const onCellClassName = ({ column }: { column: Column }) => {
}
}
}
}
// 获取注册列表tab信息
const
getRegistData
=
async
()
=>
{
const
res
=
await
countTrackRegisterApi
()
trackRegisterCount
.
value
=
res
.
data
}
// 获取Tab信息
// 获取Tab信息
const
loadTabData
=
async
()
=>
{
const
loadTabData
=
async
()
=>
{
try
{
try
{
const
res
=
await
getOrderTabData
()
const
res
=
await
getOrderTabData
()
tabsNav
.
value
=
res
.
data
tabsNav
.
value
=
res
.
data
if
(
status
.
value
===
'WAIT_TRACK'
)
{
if
(
status
.
value
===
'WAIT_TRACK'
)
{
const
res
=
await
countTrackRegisterApi
()
await
getRegistData
()
trackRegisterCount
.
value
=
res
.
data
}
}
// 获取拦截数量
// 获取拦截数量
...
@@ -4121,7 +4151,14 @@ const logTrajectory = async (row: { id: string }) => {
...
@@ -4121,7 +4151,14 @@ const logTrajectory = async (row: { id: string }) => {
const
logList
=
ref
<
LogListData
[]
>
([])
const
logList
=
ref
<
LogListData
[]
>
([])
const
logVisible
=
ref
(
false
)
const
logVisible
=
ref
(
false
)
const
operationLog
=
async
(
id
:
number
,
e
:
MouseEvent
|
null
)
=>
{
const
operationLog
=
async
(
id
:
number
,
e
:
MouseEvent
|
null
,
row
:
PodUsOrderListData
,
)
=>
{
currentItem
.
value
=
row
console
.
log
(
currentItem
.
value
)
e
&&
e
.
stopPropagation
()
e
&&
e
.
stopPropagation
()
try
{
try
{
const
res
=
await
getOperationLogApi
(
id
)
const
res
=
await
getOperationLogApi
(
id
)
...
...
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