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
b13e7dea
Commit
b13e7dea
authored
Aug 01, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加驳回接口
parent
bfec490b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
src/api/podUsOrder.ts
+10
-0
src/views/order/podUs/index.vue
+26
-2
No files found.
src/api/podUsOrder.ts
View file @
b13e7dea
...
...
@@ -505,3 +505,13 @@ export function updateToWaitShipmentApi(params: {
params
,
)
}
// 驳回
export
function
rejectToApi
(
params
:
{
orderStatus
:
string
productList
:
ProductList
[][]
})
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
`factory/podJomallOrderUs/rejectTo`
,
params
,
)
}
src/views/order/podUs/index.vue
View file @
b13e7dea
...
...
@@ -2144,6 +2144,7 @@ import {
batchDownloadRecomposingApi
,
updateToWaitShipmentApi
,
exportPodUSInfo
,
rejectToApi
,
}
from
'@/api/podUsOrder'
import
{
BaseRespData
}
from
'@/types/api'
...
...
@@ -3655,8 +3656,31 @@ const getOrderByIdApi = async (type: string) => {
}
}
const
rejectOrder
=
(
type
:
string
)
=>
{
console
.
log
(
type
)
const
rejectOrder
=
async
(
type
:
string
)
=>
{
if
(
selection
.
value
.
length
===
0
)
{
return
ElMessage
.
warning
(
'请选择数据'
)
}
const
loading
=
ElLoading
.
service
({
fullscreen
:
true
,
text
:
'操作中...'
,
background
:
'rgba(0, 0, 0, 0.3)'
,
}
)
try
{
const
res
=
await
rejectToApi
({
orderStatus
:
type
,
productList
:
selection
.
value
.
map
(
(
item
:
PodUsOrderListData
)
=>
item
.
productList
as
ProductList
[],
),
}
)
if
(
res
.
code
!==
200
)
return
ElMessage
.
success
(
'操作成功'
)
search
()
loadTabData
()
}
catch
(
e
)
{
console
.
log
(
e
)
}
finally
{
loading
.
close
()
}
}
const
handleStockOut
=
async
(
row
:
PodUsOrderListData
)
=>
{
...
...
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