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
be5de7ac
Commit
be5de7ac
authored
May 25, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 订单拦截功能接口联调
parent
c7d581fe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
104 additions
and
70 deletions
+104
-70
src/api/factoryOrderNew.ts
+9
-10
src/views/order/factoryOrderNew/hooks/useOrderBatchActions.ts
+5
-2
src/views/order/factoryOrderNew/index.vue
+90
-58
No files found.
src/api/factoryOrderNew.ts
View file @
be5de7ac
...
...
@@ -116,9 +116,9 @@ export function getFactoryOrderNewLogApi(id: number | string) {
}
export
function
getOperationOrderByIdApi
(
id
:
number
|
string
)
{
return
axios
.
get
<
never
,
BaseRespData
<
operateOrderListData
[]
>>
(
'factory/podOrder
/getOperationOrderBy
Id'
,
'factory/podOrder
Operation/getByPodOrder
Id'
,
{
params
:
{
id
},
params
:
{
podOrderId
:
id
},
},
)
}
...
...
@@ -632,18 +632,17 @@ export function exportFactoryOrderInfo(data: ExportParams) {
}
export
function
interceptUpdateApi
(
ids
:
(
string
|
number
)[])
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'factory/podOrder/
interceptUpdate
'
,
return
axios
.
post
<
never
,
BaseRespData
<
ResultInfoDataItem
[]
>>
(
'factory/podOrder/
factoryOrderUnblock
'
,
ids
,
)
}
export
function
interceptSuccessApi
(
data
:
{
ids
:
(
string
|
number
)[]
interceptType
:
number
})
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'factory/podOrder/interceptSuccess'
,
export
function
interceptSuccessApi
(
data
:
{
factoryOrderNumber
:
string
;
suspendSussessType
:
number
}[],
)
{
return
axios
.
post
<
never
,
BaseRespData
<
ResultInfoDataItem
[]
>>
(
'factory/podOrder/factoryOrderBlockSuccess'
,
data
,
)
}
src/views/order/factoryOrderNew/hooks/useOrderBatchActions.ts
View file @
be5de7ac
...
...
@@ -50,8 +50,11 @@ export function useOrderBatchActions(options: UseOrderBatchActionsOptions) {
const
res
=
await
action
.
api
(
ids
)
if
(
res
.
code
!==
200
)
return
if
(
action
.
successText
)
ElMessage
.
success
(
action
.
successText
)
if
(
action
.
onSuccess
)
await
action
.
onSuccess
(
res
)
await
refreshCurrentView
({
isRefreshTree
:
!!
action
.
refreshTree
})
if
(
action
.
onSuccess
)
{
await
action
.
onSuccess
(
res
)
}
else
{
await
refreshCurrentView
({
isRefreshTree
:
!!
action
.
refreshTree
})
}
if
(
action
.
onAfter
)
await
action
.
onAfter
()
}
catch
(
e
)
{
console
.
error
(
e
)
...
...
src/views/order/factoryOrderNew/index.vue
View file @
be5de7ac
This diff is collapsed.
Click to expand it.
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