refactor(admin-web): 财务各页去掉大标题,统一由财务导航栏进入
- 销售毛利 / 收支明细 / 商品与成本中心 / 履约渠道 移除 PageHeader 大标题块 - 与钱包管理、总账与对账保持一致(这两页本来就没有大标题) - 成本中心的「刷新」按钮并入统计口径行,功能位置不变
This commit is contained in:
@@ -18,7 +18,6 @@ import type { TableColumnsType } from 'antd'
|
||||
import { useState } from 'react'
|
||||
|
||||
import { AdminRangePicker } from '@/components/admin/AdminDatePicker'
|
||||
import PageHeader from '@/components/admin/PageHeader'
|
||||
import FinanceSubNav from '@/components/admin/FinanceSubNav'
|
||||
import dayjs from '@/lib/dayjs'
|
||||
import {
|
||||
@@ -162,11 +161,6 @@ export default function AdminFinancePage() {
|
||||
return (
|
||||
<section className="page-stack">
|
||||
<FinanceSubNav current="/admin/finance" />
|
||||
<PageHeader
|
||||
title="收支明细"
|
||||
description="按日期查看订单收款、退款、打手结算与平台现金收付;打手报酬是成本口径,不参与净现金流。"
|
||||
/>
|
||||
|
||||
<Alert
|
||||
type="info"
|
||||
showIcon
|
||||
|
||||
@@ -26,7 +26,6 @@ import {
|
||||
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
|
||||
import { useState } from 'react'
|
||||
|
||||
import PageHeader from '@/components/admin/PageHeader'
|
||||
import PercentTable from '@/components/common/PercentTable'
|
||||
import FinanceSubNav from '@/components/admin/FinanceSubNav'
|
||||
import {
|
||||
@@ -67,10 +66,6 @@ export default function AdminFulfillmentChannelPage() {
|
||||
return (
|
||||
<div className="page-container">
|
||||
<FinanceSubNav current="/admin/fulfillment-channel" />
|
||||
<PageHeader
|
||||
title="履约渠道"
|
||||
description="新单先按规则判定渠道;没有规则的单进待分类队列,收入单独计入未分类桶。"
|
||||
/>
|
||||
<Tabs
|
||||
defaultActiveKey="pending"
|
||||
items={[
|
||||
|
||||
@@ -20,7 +20,6 @@ import type { TableColumnsType } from 'antd'
|
||||
import { useState } from 'react'
|
||||
|
||||
import { AdminRangePicker } from '@/components/admin/AdminDatePicker'
|
||||
import PageHeader from '@/components/admin/PageHeader'
|
||||
import FinanceSubNav from '@/components/admin/FinanceSubNav'
|
||||
import dayjs from '@/lib/dayjs'
|
||||
import {
|
||||
@@ -250,11 +249,6 @@ export default function AdminSalesProfitPage() {
|
||||
return (
|
||||
<section className="page-stack">
|
||||
<FinanceSubNav current="/admin/sales-profit" />
|
||||
<PageHeader
|
||||
title="销售毛利"
|
||||
description="按订单项归集收入与成本;未归一商品单独成行,成本缺失时毛利不直接用于决策。"
|
||||
/>
|
||||
|
||||
<Card>
|
||||
<Form<FilterForm>
|
||||
form={form}
|
||||
|
||||
@@ -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]}>
|
||||
|
||||
Reference in New Issue
Block a user