From 689c0de91d40b8e894fe1964f68943fd0f964317 Mon Sep 17 00:00:00 2001 From: luishou Date: Sat, 11 Jul 2026 23:19:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=A2=E6=88=B7=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=85=A8=E9=83=A8=E5=AD=97=E6=AE=B5=E5=B9=B6?= =?UTF-8?q?=E5=8A=A0=E6=96=91=E9=A9=AC=E7=BA=B9/=E7=BD=91=E6=A0=BC?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 列表补齐结算人、产品明细、押金、买断、备注,按业务顺序排列 - 长文本列(产品明细/备注)换行完整显示 - Table 组件新增可选 striped/bordered,仅客户列表启用 Co-Authored-By: Claude Opus 4.8 --- src/app/(dashboard)/customers/page.tsx | 26 ++++++++++++++++++-------- src/components/ui/table.tsx | 21 +++++++++++++++++++-- 2 files changed, 37 insertions(+), 10 deletions(-) diff --git a/src/app/(dashboard)/customers/page.tsx b/src/app/(dashboard)/customers/page.tsx index 59d2415..ad1bfe8 100644 --- a/src/app/(dashboard)/customers/page.tsx +++ b/src/app/(dashboard)/customers/page.tsx @@ -54,22 +54,27 @@ export default async function CustomersPage({ /> - +
- + - - - + + + + + + + + {rows.length === 0 && ( - @@ -78,9 +83,11 @@ export default async function CustomersPage({ + - - + + + + + +
客户名称商户名称 联系人电话业务员报单时间结算人联系电话产品明细押金买断 生日业务员报单日期备注 操作
+ 暂无数据
{c.customerName} {c.contacts}{c.balanceUser} {c.phone}{c.salesman}{fmtDate(c.reportDate)}{c.detail}{c.deposit}{c.buy} {fmtDate(c.birthday)} {c.birthday && ( @@ -89,6 +96,9 @@ export default async function CustomersPage({ )} {c.salesman}{fmtDate(c.reportDate)}{c.remark}
diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsx index 1fbfa10..77a647b 100644 --- a/src/components/ui/table.tsx +++ b/src/components/ui/table.tsx @@ -2,10 +2,27 @@ import * as React from "react"; import { cn } from "@/lib/utils"; /** 统一表格外观:外层 Card 内使用 */ -export function Table({ className, ...props }: React.TableHTMLAttributes) { +export function Table({ + className, + striped, + bordered, + ...props +}: React.TableHTMLAttributes & { + striped?: boolean; + bordered?: boolean; +}) { return (
- +
); }