Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b3639977
authored
Sep 08, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善订单详情
parent
f44688d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
src/views/mall/trade/order/detail/index.vue
+12
-1
No files found.
src/views/mall/trade/order/detail/index.vue
View file @
b3639977
...
...
@@ -195,6 +195,7 @@ import OrderDeliveryForm from '@/views/mall/trade/order/form/OrderDeliveryForm.v
import
OrderUpdateAddressForm
from
'@/views/mall/trade/order/form/OrderUpdateAddressForm.vue'
import
OrderUpdatePriceForm
from
'@/views/mall/trade/order/form/OrderUpdatePriceForm.vue'
import
*
as
DeliveryExpressApi
from
'@/api/mall/trade/delivery/express'
import
{
useTagsViewStore
}
from
'@/store/modules/tagsView'
defineOptions
({
name
:
'TradeOrderDetail'
})
...
...
@@ -242,10 +243,20 @@ const getDetail = async () => {
const
id
=
params
.
orderId
as
unknown
as
number
if
(
id
)
{
const
res
=
(
await
TradeOrderApi
.
getOrder
(
id
))
as
TradeOrderApi
.
OrderVO
// 没有表单信息则关闭页面返回
if
(
res
===
null
)
{
close
()
}
formData
.
value
=
res
}
}
const
{
delView
}
=
useTagsViewStore
()
// 视图操作
const
{
push
,
currentRoute
}
=
useRouter
()
// 路由
/** 关闭 tag */
const
close
=
()
=>
{
delView
(
unref
(
currentRoute
))
push
({
name
:
'TradeAfterSale'
})
}
/** 复制 */
const
clipboardSuccess
=
()
=>
{
message
.
success
(
'复制成功'
)
...
...
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