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
5e0417a2
Commit
5e0417a2
authored
Aug 01, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改驳回请求参数和结果展示
parent
b13e7dea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
src/views/order/podUs/index.vue
+16
-7
No files found.
src/views/order/podUs/index.vue
View file @
5e0417a2
...
...
@@ -512,7 +512,7 @@
@
click=
"rejectOrder('TO_BE_CONFIRMED')"
>
待确认
</ElDropdownItem
>
<ElDropdownItem
<
!--
<
ElDropdownItem
v-if=
"status !== 'STOCK_OUT'"
:disabled=
"
selection.length === 0 ||
...
...
@@ -520,7 +520,7 @@
"
@
click=
"rejectOrder('STOCK_OUT')"
>
缺货
</ElDropdownItem
>
>
-->
<ElDropdownItem
v-if=
"status !== 'STOCK_OUT' && status !== 'TO_BE_ARRANGE'"
:disabled=
"
...
...
@@ -3668,14 +3668,23 @@ const rejectOrder = async (type: string) => {
try
{
const
res
=
await
rejectToApi
({
orderStatus
:
type
,
productList
:
selection
.
value
.
m
ap
(
(
item
:
PodUsOrderListData
)
=>
item
.
productList
as
ProductList
[]
,
productList
:
selection
.
value
.
flatM
ap
(
(
item
:
PodUsOrderListData
)
=>
item
.
productList
,
),
}
)
if
(
res
.
code
!==
200
)
return
ElMessage
.
success
(
'操作成功'
)
search
()
loadTabData
()
await
ElMessageBox
.
alert
(
res
.
data
.
map
((
i
)
=>
i
.
message
).
join
(
'<br>'
),
'操作成功'
,
{
confirmButtonText
:
'确定'
,
dangerouslyUseHTMLString
:
true
,
}
,
).
then
(()
=>
{
search
()
loadTabData
()
}
)
}
catch
(
e
)
{
console
.
log
(
e
)
}
finally
{
...
...
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