订单列表: 修复差异
This commit is contained in:
parent
9507e2b687
commit
8239ca474f
@ -195,22 +195,6 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
|||||||
noTagsView: true
|
noTagsView: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
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',
|
path: '/403',
|
||||||
component: () => import('@/views/Error/403.vue'),
|
component: () => import('@/views/Error/403.vue'),
|
||||||
@ -411,7 +395,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
|||||||
{
|
{
|
||||||
path: '/trade/order',
|
path: '/trade/order',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
name: 'Detail',
|
name: 'Order',
|
||||||
meta: {
|
meta: {
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
@ -419,7 +403,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
|||||||
{
|
{
|
||||||
path: 'detail/:orderId(\\d+)',
|
path: 'detail/:orderId(\\d+)',
|
||||||
component: () => import('@/views/mall/trade/order/detail/index.vue'),
|
component: () => import('@/views/mall/trade/order/detail/index.vue'),
|
||||||
name: 'TradeOrderDetailForm',
|
name: 'TradeOrderDetail',
|
||||||
meta: { title: '订单详情', icon: '', activeMenu: '/trade/trade/order' }
|
meta: { title: '订单详情', icon: '', activeMenu: '/trade/trade/order' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -149,14 +149,14 @@
|
|||||||
:data="scope.row.items"
|
:data="scope.row.items"
|
||||||
:header-cell-style="headerStyle"
|
:header-cell-style="headerStyle"
|
||||||
:span-method="spanMethod"
|
:span-method="spanMethod"
|
||||||
border
|
:border="true"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<el-table-column min-width="300" prop="spuName">
|
<el-table-column min-width="300" prop="spuName">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div
|
<div
|
||||||
class="flex items-center"
|
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">订单号:{{ scope.row.no }} </span>
|
||||||
<span class="mr-20px">下单时间:{{ formatDate(scope.row.createTime) }}</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
|
(order) => order.items?.findIndex((item) => item.id === row.id) !== -1
|
||||||
)?.items?.length
|
)?.items?.length
|
||||||
// 要合并的列,从零开始
|
// 要合并的列,从零开始
|
||||||
const colIndex = [3, 4, 5, 6]
|
const colIndex = [3, 4, 5, 6, 7]
|
||||||
if (colIndex.includes(columnIndex)) {
|
if (colIndex.includes(columnIndex)) {
|
||||||
// 除了第一行其余的不要
|
// 除了第一行其余的不要
|
||||||
if (rowIndex !== 0) {
|
if (rowIndex !== 0) {
|
||||||
@ -434,7 +434,7 @@ const imagePreview = (imgUrl: string) => {
|
|||||||
|
|
||||||
/** 查看订单详情 */
|
/** 查看订单详情 */
|
||||||
const openForm = (id: number) => {
|
const openForm = (id: number) => {
|
||||||
push({ name: 'TradeOrderDetailForm', params: { orderId: id } })
|
push({ name: 'TradeOrderDetail', params: { orderId: id } })
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 操作分发 */
|
/** 操作分发 */
|
||||||
|
Loading…
Reference in New Issue
Block a user