refactor: 统一客户→商户命名;字段一致;导入失败返回错误Excel
- 全局:客户→商户(表单/列表/查看/编辑/新增/导出/导航/品牌) - 字段统一:详情→产品明细、电话→联系电话、报单时间→报单日期 - 新增商户导入模板下载(/customers/template) - 导入失败时返回含错误列的 Excel,提示具体原因 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -58,7 +58,7 @@ export default async function DashboardPage() {
|
||||
const last12Total = chartData.reduce((s, d) => s + d.count, 0);
|
||||
|
||||
const stats = [
|
||||
{ label: "客户总数", value: total.toLocaleString(), icon: Users, tone: "primary" as const },
|
||||
{ label: "商户总数", value: total.toLocaleString(), icon: Users, tone: "primary" as const },
|
||||
{ label: "本月新增", value: monthNew.toLocaleString(), icon: CalendarClock, tone: "info" as const },
|
||||
{ label: "今日生日", value: birthdayCount.toLocaleString(), icon: Cake, tone: "warning" as const },
|
||||
{ label: "后台账号", value: admins.toLocaleString(), icon: UserCheck, tone: "success" as const },
|
||||
@@ -115,10 +115,10 @@ export default async function DashboardPage() {
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 最近客户 */}
|
||||
{/* 最近商户 */}
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>最近报单客户</CardTitle>
|
||||
<CardTitle>最近报单商户</CardTitle>
|
||||
<Link
|
||||
href="/customers"
|
||||
className="flex items-center gap-1 text-[13px] font-medium text-[var(--color-primary)] hover:underline"
|
||||
@@ -129,7 +129,7 @@ export default async function DashboardPage() {
|
||||
<Table>
|
||||
<THead>
|
||||
<tr>
|
||||
<TH>客户名称</TH>
|
||||
<TH>商户名称</TH>
|
||||
<TH>联系人</TH>
|
||||
<TH>业务员</TH>
|
||||
<TH>报单时间</TH>
|
||||
|
||||
Reference in New Issue
Block a user