refactor: 统一客户→商户命名;字段一致;导入失败返回错误Excel

- 全局:客户→商户(表单/列表/查看/编辑/新增/导出/导航/品牌)
- 字段统一:详情→产品明细、电话→联系电话、报单时间→报单日期
- 新增商户导入模板下载(/customers/template)
- 导入失败时返回含错误列的 Excel,提示具体原因

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-12 00:30:17 +08:00
co-authored by Claude Opus 4.8
parent 2bb2945678
commit 90c4efb9ec
14 changed files with 182 additions and 68 deletions
@@ -67,7 +67,7 @@ export default async function BirthdayPage({
<Card className="flex flex-wrap items-center justify-between gap-3 p-3">
<BirthdayControl mode={mode} date={dateStr} />
<div className="pr-1 text-sm text-[var(--color-muted-foreground)]">
命中 <span className="font-semibold text-[var(--color-foreground)]">{rows.length}</span> 位客户
命中 <span className="font-semibold text-[var(--color-foreground)]">{rows.length}</span> 位商户
</div>
</Card>
@@ -75,9 +75,9 @@ export default async function BirthdayPage({
<Table>
<THead>
<tr>
<TH>客户名称</TH>
<TH>商户名称</TH>
<TH>联系人</TH>
<TH>电话</TH>
<TH>联系电话</TH>
<TH>业务员</TH>
<TH>生日</TH>
<TH>历法</TH>
@@ -87,7 +87,7 @@ export default async function BirthdayPage({
{rows.length === 0 && (
<tr>
<TD colSpan={6} className="py-14 text-center text-[var(--color-muted-foreground)]">
该时段暂无生日客户
该时段暂无生日商户
</TD>
</tr>
)}