Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
6215d1ad
Commit
6215d1ad
authored
Sep 18, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消调仓
parent
e41baeca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
6 deletions
+29
-6
order.js
src/api/ecw/order.js
+16
-0
transferWarehousing.vue
src/views/ecw/order/transferWarehousing.vue
+13
-6
No files found.
src/api/ecw/order.js
View file @
6215d1ad
...
...
@@ -429,3 +429,19 @@ export function orderSpecialNeedGet(params){
params
})
}
//取消调仓
export
function
cancelAdjust
(
data
){
return
request
({
url
:
'
/order/order-warehouse-in/cancel-adjust
'
,
method
:
'
post
'
,
data
})
}
//取消订单费用申请
export
function
feeApplicationCancel
(
data
){
return
request
({
url
:
'
/order/fee-application/cancel
'
,
method
:
'
delete
'
,
data
})
}
src/views/ecw/order/transferWarehousing.vue
View file @
6215d1ad
<
template
>
<div
style=
"padding: 0 20px"
>
<h1>
调拨出仓
</h1>
<h1>
{{
type
==
1
?
'
调拨出仓
'
:
'
调拨到仓
'
}}
</h1>
<el-divider
content-position=
"left"
>
订单信息
</el-divider>
...
...
@@ -147,6 +147,7 @@
<
script
>
import
ordeDetailsForm
from
"
@/views/ecw/order/components/ordeDetailsForm
"
;
import
{
cancelAdjust
,
getAdjustInfo
,
getOrder
,
listByOrderId
,
orderWarehouseInGetAdjustInfo
,
...
...
@@ -335,11 +336,17 @@ export default {
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
}).
then
(({
value
})
=>
{
warehouseApprovalCancel
(
this
.
applyStatus
.
orderWarehouseApprovalBackVO
.
id
,
value
)
.
then
(
r
=>
{
if
(
r
.
data
){
this
.
$message
.
success
(
'
取消调仓成功
'
)
cancelAdjust
({
orderId
:
this
.
orderId
,
reason
:
value
,
}).
then
(
r
=>
{
console
.
log
(
r
,
'
r
'
);
if
(
r
.
code
===
0
){
this
.
$message
({
type
:
'
info
'
,
message
:
'
取消调仓成功
'
});
this
.
$tab
.
closeOpenPage
({
path
:
'
/order/order
'
})
}
})
}).
catch
(()
=>
{
...
...
@@ -348,7 +355,7 @@ export default {
message
:
'
取消成功
'
});
});
}
}
,
},
}
</
script
>
...
...
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