feat: 客户列表展示全部字段并加斑马纹/网格线
- 列表补齐结算人、产品明细、押金、买断、备注,按业务顺序排列 - 长文本列(产品明细/备注)换行完整显示 - Table 组件新增可选 striped/bordered,仅客户列表启用 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -54,22 +54,27 @@ export default async function CustomersPage({
|
||||
/>
|
||||
|
||||
<Card className="overflow-hidden">
|
||||
<Table>
|
||||
<Table striped bordered>
|
||||
<THead>
|
||||
<tr>
|
||||
<TH>客户名称</TH>
|
||||
<TH>商户名称</TH>
|
||||
<TH>联系人</TH>
|
||||
<TH>电话</TH>
|
||||
<TH>业务员</TH>
|
||||
<TH>报单时间</TH>
|
||||
<TH>结算人</TH>
|
||||
<TH>联系电话</TH>
|
||||
<TH>产品明细</TH>
|
||||
<TH>押金</TH>
|
||||
<TH>买断</TH>
|
||||
<TH>生日</TH>
|
||||
<TH>业务员</TH>
|
||||
<TH>报单日期</TH>
|
||||
<TH>备注</TH>
|
||||
<TH className="text-right">操作</TH>
|
||||
</tr>
|
||||
</THead>
|
||||
<tbody>
|
||||
{rows.length === 0 && (
|
||||
<tr>
|
||||
<TD colSpan={7} className="py-14 text-center text-[var(--color-muted-foreground)]">
|
||||
<TD colSpan={12} className="py-14 text-center text-[var(--color-muted-foreground)]">
|
||||
暂无数据
|
||||
</TD>
|
||||
</tr>
|
||||
@@ -78,9 +83,11 @@ export default async function CustomersPage({
|
||||
<TR key={c.id}>
|
||||
<TD className="font-medium">{c.customerName}</TD>
|
||||
<TD>{c.contacts}</TD>
|
||||
<TD>{c.balanceUser}</TD>
|
||||
<TD className="tabular-nums">{c.phone}</TD>
|
||||
<TD>{c.salesman}</TD>
|
||||
<TD className="tabular-nums">{fmtDate(c.reportDate)}</TD>
|
||||
<TD className="max-w-[280px] whitespace-normal break-words">{c.detail}</TD>
|
||||
<TD>{c.deposit}</TD>
|
||||
<TD>{c.buy}</TD>
|
||||
<TD>
|
||||
<span className="tabular-nums">{fmtDate(c.birthday)}</span>
|
||||
{c.birthday && (
|
||||
@@ -89,6 +96,9 @@ export default async function CustomersPage({
|
||||
</Badge>
|
||||
)}
|
||||
</TD>
|
||||
<TD>{c.salesman}</TD>
|
||||
<TD className="tabular-nums">{fmtDate(c.reportDate)}</TD>
|
||||
<TD className="max-w-[280px] whitespace-normal break-words">{c.remark}</TD>
|
||||
<TD>
|
||||
<div className="flex justify-end gap-1.5">
|
||||
<Link href={`/customers/${c.id}/edit`}>
|
||||
|
||||
Reference in New Issue
Block a user