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
@@ -30,7 +30,7 @@ export function PermissionForm({
<div className="grid grid-cols-2 gap-4">
<div className="space-y-1.5">
<Label htmlFor="title">权限名称<span className="ml-0.5 text-[var(--color-danger)]">*</span></Label>
<Input id="title" name="title" defaultValue={v.title} placeholder="如:客户列表" />
<Input id="title" name="title" defaultValue={v.title} placeholder="如:商户列表" />
</div>
<div className="space-y-1.5">
<Label htmlFor="name">权限标识<span className="ml-0.5 text-[var(--color-danger)]">*</span></Label>