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
587c076b
Commit
587c076b
authored
Nov 17, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复查看母订单异常
parent
79effc3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
order.js
src/api/ecw/order.js
+8
-0
index.vue
src/views/ecw/order/index.vue
+8
-1
No files found.
src/api/ecw/order.js
View file @
587c076b
...
...
@@ -1015,3 +1015,11 @@ export function setCanNotShipment(orderId){
method
:
'
put
'
,
})
}
// 查看母订单
export
function
getParentOrder
(
orderId
){
return
request
({
url
:
'
/ecw/order/getParentOrder?orderId=
'
+
orderId
,
method
:
'
get
'
})
}
src/views/ecw/order/index.vue
View file @
587c076b
...
...
@@ -361,7 +361,7 @@
<el-dropdown-item
@
click.native=
"splitRevoke(scope.row)"
v-hasPermi=
"['ecw:order:split_revoke']"
>
{{
$t
(
'
撤销拆单
'
)
}}
</el-dropdown-item>
</
template
>
<
template
v-if=
"scope.row.parentOrderId"
>
<el-dropdown-item
@
click.native=
"
$router.push('./detail?orderId=' + scope.row.parentOrderId
)"
>
{{
$t
(
'
查看母订单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"
showParentOrder(scope.row
)"
>
{{
$t
(
'
查看母订单
'
)
}}
</el-dropdown-item>
</
template
>
...
...
@@ -566,6 +566,7 @@ import {
exportShippingDatas
,
exportShipFee
,
exportUnload
,
splitCancelApply
,
orderSplitRevoke
,
setCanShipment
,
setCanNotShipment
,
getParentOrder
}
from
"
@/api/ecw/order
"
;
/* import { getDictDatas, DICT_TYPE } from '@/utils/dict'; */
import
PrintTag
from
'
./components/PrintTag
'
...
...
@@ -1021,6 +1022,12 @@ export default {
this
.
$message
(
this
.
$t
(
'
操作成功
'
))
this
.
getList
()
})
},
// 查看母订单
showParentOrder
(
row
){
getParentOrder
(
row
.
orderId
).
then
(
res
=>
{
this
.
$router
.
push
(
'
./detail?orderId=
'
+
res
.
data
.
orderId
)
})
}
}
};
...
...
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