订单列表: 修复差异

This commit is contained in:
puhui999
2023-08-28 10:05:49 +08:00
parent 9507e2b687
commit 8239ca474f
2 changed files with 6 additions and 22 deletions

View File

@ -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: 'TradeOrderDetailForm', params: { orderId: id } })
push({ name: 'TradeOrderDetail', params: { orderId: id } })
}
/** 操作分发 */