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
7dcdae8e
Commit
7dcdae8e
authored
Apr 17, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 挂起修改
parent
7f3b1bc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
18 deletions
+4
-18
src/api/factoryOrderNew.ts
+2
-0
src/views/order/factoryOrderNew/hooks/useOrderListAndDetail.ts
+2
-18
No files found.
src/api/factoryOrderNew.ts
View file @
7dcdae8e
...
...
@@ -42,6 +42,7 @@ export function getFactoryOrderNewListApi(
pageSize
:
number
,
status
?:
string
,
subStatus
?:
number
,
pauseReason
?:
number
,
)
{
const
body
=
normalizePodOrderQueryPayload
({
...
data
}
as
Record
<
string
,
...
...
@@ -55,6 +56,7 @@ export function getFactoryOrderNewListApi(
pageSize
,
status
,
acceptedStatus
:
subStatus
,
pauseReason
,
},
)
}
...
...
src/views/order/factoryOrderNew/hooks/useOrderListAndDetail.ts
View file @
7dcdae8e
...
...
@@ -5,7 +5,6 @@ import {
getFactoryOrderNewDetailApi
,
getFactoryOrderNewListApi
,
getFactoryOrderNewLogApi
,
getSuspendListApi
,
}
from
'@/api/factoryOrderNew'
import
type
{
SearchForm
}
from
'@/types/api/factoryOrderNew'
import
type
{
...
...
@@ -70,29 +69,14 @@ export function useOrderListAndDetail(options: UseOrderListAndDetailOptions) {
refresh
:
refreshTableList
,
}
=
usePageList
<
FactoryOrderNewListData
>
({
query
:
(
page
,
size
)
=>
{
if
(
status
.
value
===
'SUSPEND'
)
{
return
getSuspendListApi
(
buildListQueryBody
(),
page
,
size
,
suspendedSubTab
.
value
,
).
then
(
async
(
res
)
=>
{
const
records
=
Array
.
isArray
(
res
.
data
?.
records
)
?
res
.
data
.
records
:
[]
await
nextTick
(()
=>
{
tableRef
.
value
.
setCurrentRow
(
records
[
0
])
currentRow
.
value
=
records
[
0
]
as
never
})
return
res
.
data
})
}
const
isSuspend
=
status
.
value
===
'SUSPEND'
return
getFactoryOrderNewListApi
(
buildListQueryBody
(),
page
,
size
,
status
.
value
===
'ALL'
?
undefined
:
status
.
value
,
getListPageAcceptedSubStatus
(),
isSuspend
?
suspendedSubTab
.
value
:
undefined
,
).
then
(
async
(
res
)
=>
{
const
records
=
res
.
data
.
records
||
[]
await
nextTick
(()
=>
{
...
...
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