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
a85d1012
Commit
a85d1012
authored
Aug 02, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改驳回按钮
parent
fd4bb34b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
src/api/podUsOrder.ts
+1
-0
src/views/order/podUs/index.vue
+11
-7
No files found.
src/api/podUsOrder.ts
View file @
a85d1012
...
...
@@ -509,6 +509,7 @@ export function updateToWaitShipmentApi(params: {
export
function
rejectToApi
(
params
:
{
orderStatus
:
string
productList
:
ProductList
[]
reasonStr
:
string
})
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
`factory/podJomallOrderUs/rejectTo`
,
...
...
src/views/order/podUs/index.vue
View file @
a85d1012
...
...
@@ -505,13 +505,6 @@
<
template
#
dropdown
>
<ElDropdownMenu>
<ElDropdownItem
v-if=
"
status === 'STOCK_OUT' ||
status === 'CREATE_LOGISTICS' ||
status === 'TO_BE_ARRANGE' ||
status === 'PICKING' ||
status === 'IN_PRODUCTION'
"
:disabled=
"
selection.length === 0 && cardSelection.length === 0
"
...
...
@@ -3655,7 +3648,17 @@ const rejectOrder = async (type: string) => {
text
:
'操作中...'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
}
)
try
{
const
{
value
}
=
await
ElMessageBox
.
prompt
(
'驳回确认'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
inputType
:
'textarea'
,
inputPlaceholder
:
'驳回原因'
,
inputPattern
:
/
\S
+/
,
// 非空验证,至少一个非空白字符
inputErrorMessage
:
'内容不能为空'
,
}
)
const
res
=
await
rejectToApi
({
orderStatus
:
type
,
productList
:
selection
.
value
.
length
...
...
@@ -3663,6 +3666,7 @@ const rejectOrder = async (type: string) => {
(
item
:
PodUsOrderListData
)
=>
item
.
productList
||
[],
)
:
cardSelection
.
value
,
reasonStr
:
value
,
}
)
if
(
res
.
code
!==
200
)
return
...
...
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