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
f0249e94
authored
Sep 01, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单管理:完善订单详情
parent
07a0530f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
src/api/mall/trade/order/index.ts
+15
-3
src/views/mall/trade/order/detail/index.vue
+0
-0
No files found.
src/api/mall/trade/order/index.ts
View file @
f0249e94
...
...
@@ -15,11 +15,11 @@ export interface OrderVO {
cancelTime
?:
Date
|
null
// 订单取消时间
cancelType
?:
number
|
null
// 取消类型
remark
?:
string
// 商家备注
payOrderId
:
number
|
null
// 支付订单编号
payOrderId
?
:
number
|
null
// 支付订单编号
payed
?:
boolean
// 是否已支付
payTime
?:
Date
|
null
// 付款时间
payChannelCode
?:
string
// 支付渠道
origin
alPrice
?:
number
|
null
// 商品原价(总)
tot
alPrice
?:
number
|
null
// 商品原价(总)
orderPrice
?:
number
|
null
// 订单原价(总)
discountPrice
?:
number
|
null
// 订单优惠(总)
deliveryPrice
?:
number
|
null
// 运费金额
...
...
@@ -44,12 +44,19 @@ export interface OrderVO {
pointPrice
?:
number
|
null
// 积分抵扣的金额
receiverAreaName
?:
string
//收件人地区名字
items
?:
OrderItemRespVO
[]
// 订单项列表
//用户信息
//
用户信息
user
?:
{
id
?:
number
|
null
nickname
?:
string
avatar
?:
string
}
// 订单操作日志
orderLog
:
orderLog
[]
}
export
interface
orderLog
{
content
?:
string
createTime
?:
Date
}
export
interface
OrderItemRespVO
{
...
...
@@ -94,6 +101,11 @@ export const getOrder = async (id: number | null) => {
return
await
request
.
get
({
url
:
`/trade/order/get-detail?id=`
+
id
})
}
// 查询交易订单物流详情
export
const
getExpressTrackList
=
async
(
id
:
number
|
null
)
=>
{
return
await
request
.
get
({
url
:
`/trade/order/get-express-track-list?id=`
+
id
})
}
export
interface
DeliveryVO
{
id
:
number
// 订单编号
logisticsId
:
number
|
null
// 物流公司编号
...
...
src/views/mall/trade/order/detail/index.vue
View file @
f0249e94
This diff is collapsed.
Click to expand it.
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