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
8239ca47
authored
Aug 28, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单列表: 修复差异
parent
9507e2b6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
22 deletions
+6
-22
src/router/modules/remaining.ts
+2
-18
src/views/mall/trade/order/index.vue
+4
-4
No files found.
src/router/modules/remaining.ts
View file @
8239ca47
...
...
@@ -196,22 +196,6 @@ const remainingRouter: AppRouteRecordRaw[] = [
}
},
{
path
:
'/trade/order'
,
component
:
Layout
,
name
:
'order'
,
meta
:
{
hidden
:
true
},
children
:
[
{
path
:
'detail'
,
name
:
'TradeOrderDetail'
,
component
:
()
=>
import
(
'@/views/mall/trade/order/tradeOrderDetail.vue'
),
meta
:
{
title
:
'订单详情'
,
hidden
:
true
}
}
]
},
{
path
:
'/403'
,
component
:
()
=>
import
(
'@/views/Error/403.vue'
),
name
:
'NoAccess'
,
...
...
@@ -411,7 +395,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
{
path
:
'/trade/order'
,
component
:
Layout
,
name
:
'
Detail
'
,
name
:
'
Order
'
,
meta
:
{
hidden
:
true
},
...
...
@@ -419,7 +403,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
{
path
:
'detail/:orderId(\\d+)'
,
component
:
()
=>
import
(
'@/views/mall/trade/order/detail/index.vue'
),
name
:
'TradeOrderDetail
Form
'
,
name
:
'TradeOrderDetail'
,
meta
:
{
title
:
'订单详情'
,
icon
:
''
,
activeMenu
:
'/trade/trade/order'
}
}
]
...
...
src/views/mall/trade/order/index.vue
View file @
8239ca47
...
...
@@ -149,14 +149,14 @@
:data=
"scope.row.items"
:header-cell-style=
"headerStyle"
:span-method=
"spanMethod"
border
:border=
"true"
style=
"width: 100%"
>
<el-table-column
min-width=
"300"
prop=
"spuName"
>
<template
#
header
>
<div
class=
"flex items-center"
style=
"
height: 35px; background-color: #f7f7f7; width: 100%
"
style=
"
width: 100%; height: 35px; background-color: #f7f7f7
"
>
<span
class=
"mr-20px"
>
订单号:
{{
scope
.
row
.
no
}}
</span>
<span
class=
"mr-20px"
>
下单时间:
{{
formatDate
(
scope
.
row
.
createTime
)
}}
</span>
...
...
@@ -384,7 +384,7 @@ const spanMethod = ({ row, rowIndex, columnIndex }: SpanMethodProps) => {
(
order
)
=>
order
.
items
?.
findIndex
((
item
)
=>
item
.
id
===
row
.
id
)
!==
-
1
)?.
items
?.
length
// 要合并的列,从零开始
const
colIndex
=
[
3
,
4
,
5
,
6
]
const
colIndex
=
[
3
,
4
,
5
,
6
,
7
]
if
(
colIndex
.
includes
(
columnIndex
))
{
// 除了第一行其余的不要
if
(
rowIndex
!==
0
)
{
...
...
@@ -434,7 +434,7 @@ const imagePreview = (imgUrl: string) => {
/** 查看订单详情 */
const
openForm
=
(
id
:
number
)
=>
{
push
({
name
:
'TradeOrderDetail
Form
'
,
params
:
{
orderId
:
id
}
})
push
({
name
:
'TradeOrderDetail'
,
params
:
{
orderId
:
id
}
})
}
/** 操作分发 */
...
...
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