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
488d5e46
Commit
488d5e46
authored
Jul 29, 2025
by
wuqian
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of 47.122.114.111:qinjianhui/factory_front
parents
ca5e57e0
abf185df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
src/views/order/orderTracking/index.vue
+9
-11
No files found.
src/views/order/orderTracking/index.vue
View file @
488d5e46
...
@@ -286,7 +286,7 @@ const goodsColumns = computed(() => {
...
@@ -286,7 +286,7 @@ const goodsColumns = computed(() => {
},
},
]
]
})
})
const
tableData
=
ref
<
PodUsOrderListData
[]
[]
>
([])
const
tableData
=
ref
<
PodUsOrderListData
[]
>
([])
const
goodsData
=
ref
<
ProductList
[]
>
([])
const
goodsData
=
ref
<
ProductList
[]
>
([])
const
searchVisible
=
ref
(
false
)
const
searchVisible
=
ref
(
false
)
const
goodsLoading
=
ref
(
false
)
const
goodsLoading
=
ref
(
false
)
...
@@ -393,16 +393,16 @@ const submitExportForm = async () => {
...
@@ -393,16 +393,16 @@ const submitExportForm = async () => {
idList
:
[],
idList
:
[],
}
}
// 使用函数封装映射逻辑
// 使用函数封装映射逻辑
const
mapIds
=
(
items
:
PodUsOrderListData
[]
[]
|
PodUsOrderListData
[])
=>
{
const
mapIds
=
(
items
:
PodUsOrderListData
[]
)
=>
// 如果是二维数组,先展平成一维数组
items
const
flatItems
=
Array
.
isArray
(
items
[
0
])
.
filter
(
?
(
items
as
PodUsOrderListData
[][]).
flat
()
(
el
):
el
is
PodUsOrderListData
&
{
id
:
string
|
number
}
=>
:
(
items
as
PodUsOrderListData
[])
el
.
id
!==
undefined
&&
el
.
id
!==
null
,
return
flatItems
.
map
((
el
)
=>
Number
(
el
.
id
)
)
)
}
.
map
((
el
)
=>
Number
(
el
.
id
))
switch
(
resourceType
)
{
switch
(
resourceType
)
{
case
0
:
case
0
:
params
.
idList
=
mapIds
(
tableData
.
value
.
flat
()
)
params
.
idList
=
mapIds
(
tableData
.
value
as
PodUsOrderListData
[]
)
break
break
case
1
:
case
1
:
params
.
idList
=
mapIds
(
selection
.
value
)
params
.
idList
=
mapIds
(
selection
.
value
)
...
@@ -429,7 +429,6 @@ const submitExportForm = async () => {
...
@@ -429,7 +429,6 @@ const submitExportForm = async () => {
exportLoading
.
value
=
false
exportLoading
.
value
=
false
}
}
}
}
const
handleSizeChange
=
(
pageSize
:
number
)
=>
{
const
handleSizeChange
=
(
pageSize
:
number
)
=>
{
pagination
.
value
.
pageSize
=
pageSize
pagination
.
value
.
pageSize
=
pageSize
getOrderListFn
()
getOrderListFn
()
...
@@ -1045,7 +1044,6 @@ onMounted(() => {
...
@@ -1045,7 +1044,6 @@ onMounted(() => {
</span>
</span>
</
template
>
</
template
>
</ElDialog>
</ElDialog>
<ResultInfo
<ResultInfo
ref=
"resultRefs"
ref=
"resultRefs"
:list=
"resultInfo"
:list=
"resultInfo"
...
...
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