refactor(admin-web): 财务各页去掉大标题,统一由财务导航栏进入

- 销售毛利 / 收支明细 / 商品与成本中心 / 履约渠道 移除 PageHeader 大标题块
- 与钱包管理、总账与对账保持一致(这两页本来就没有大标题)
- 成本中心的「刷新」按钮并入统计口径行,功能位置不变
This commit is contained in:
yml2213
2026-10-31 18:42:20 +08:00
parent 4538ed2ce9
commit 6d86d4df7e
4 changed files with 9 additions and 33 deletions
@@ -24,7 +24,6 @@ import {
} from 'antd'
import { useQuery, useQueryClient } from '@tanstack/react-query'
import PageHeader from '@/components/admin/PageHeader'
import FinanceSubNav from '@/components/admin/FinanceSubNav'
import { usePersistedState } from '@/hooks/usePersistedState'
import { fetchAdminCostCenterOptions, fetchAdminCostCenterOverview } from '@/services/admin'
@@ -123,26 +122,20 @@ export default function CostCenterShell() {
>
<section className="page-stack">
<FinanceSubNav current="/admin/cost-center" />
<PageHeader
title="商品与成本中心"
description="商品 SKU 先归一;成本在各来源自己的配置里维护(人工 SKU 消耗积分 / 自动发货采购价 / 接单模板发单金额),历史成本靠快照固化。"
extra={
<Button
icon={<ReloadOutlined />}
onClick={refreshAll}
loading={overviewQuery.isFetching}
>
刷新
</Button>
}
/>
<Space size={6}>
<Space size={6} wrap>
<Typography.Text type="secondary">统计口径</Typography.Text>
<Tag color={scope === 'all' ? 'default' : 'blue'}>{scopeLabel}</Tag>
{scope !== 'all' ? (
<Typography.Text type="secondary">(跟随上方来源筛选变化)</Typography.Text>
) : null}
<Button
size="small"
icon={<ReloadOutlined />}
onClick={refreshAll}
loading={overviewQuery.isFetching}
>
刷新
</Button>
</Space>
<Row gutter={[16, 16]}>