feat(finance): 完善客服钱包与人工履约成本流水
This commit is contained in:
@@ -156,6 +156,7 @@ export default function FundManagementView({ role }: { role: ManagementRole }) {
|
||||
const canIssue = role === 'admin' || role === 'operator'
|
||||
const canReconcile = role === 'admin' || role === 'operator' || role === 'finance'
|
||||
const canExpense = role === 'admin'
|
||||
const canManageCredits = role === 'admin' || role === 'finance'
|
||||
|
||||
const [activeTab, setActiveTab] = useState('overview')
|
||||
const [submitting, setSubmitting] = useState(false)
|
||||
@@ -875,8 +876,8 @@ export default function FundManagementView({ role }: { role: ManagementRole }) {
|
||||
return (
|
||||
<section className="page-stack">
|
||||
<PageHeader
|
||||
title="备用金"
|
||||
description="主管资金池、客服备用金、支出与对账;余额由流水自动计算。"
|
||||
title="钱包管理"
|
||||
description="统管客服的南航 / 乐玩 / ROCK 积分钱包与备用金现金;可分配积分、发放现金、查看流水与对账。"
|
||||
extra={
|
||||
<Button icon={<ReloadOutlined />} loading={overviewQuery.isFetching} onClick={refreshAll}>
|
||||
刷新
|
||||
@@ -902,7 +903,7 @@ export default function FundManagementView({ role }: { role: ManagementRole }) {
|
||||
items={[
|
||||
{
|
||||
key: 'overview',
|
||||
label: '总览',
|
||||
label: '钱包总览',
|
||||
children: (
|
||||
<Space direction="vertical" size={16} style={{ width: '100%' }}>
|
||||
<Row gutter={[16, 16]}>
|
||||
@@ -997,14 +998,25 @@ export default function FundManagementView({ role }: { role: ManagementRole }) {
|
||||
发放备用金
|
||||
</Button>
|
||||
) : null}
|
||||
{canManageCredits ? (
|
||||
<Button
|
||||
icon={<WalletOutlined />}
|
||||
onClick={() => setActiveTab('platform-credits')}
|
||||
>
|
||||
分配客服积分
|
||||
</Button>
|
||||
) : null}
|
||||
{canExpense ? (
|
||||
<Button icon={<PlusOutlined />} onClick={() => openExpense()}>
|
||||
登记支出
|
||||
</Button>
|
||||
) : null}
|
||||
{canReconcile ? (
|
||||
<Button icon={<CheckCircleOutlined />} onClick={() => openReconcile()}>
|
||||
发起对账
|
||||
<Button
|
||||
icon={<CheckCircleOutlined />}
|
||||
onClick={() => setActiveTab('reconciliations')}
|
||||
>
|
||||
对账中心
|
||||
</Button>
|
||||
) : null}
|
||||
{isAdmin ? <Button onClick={() => openFunding()}>公司拨付</Button> : null}
|
||||
@@ -1024,7 +1036,7 @@ export default function FundManagementView({ role }: { role: ManagementRole }) {
|
||||
},
|
||||
{
|
||||
key: 'agents',
|
||||
label: '客服余额',
|
||||
label: '客服现金钱包',
|
||||
children: (
|
||||
<Card
|
||||
title="客服备用金账户"
|
||||
@@ -1050,7 +1062,7 @@ export default function FundManagementView({ role }: { role: ManagementRole }) {
|
||||
},
|
||||
{
|
||||
key: 'supervisors',
|
||||
label: '主管资金池',
|
||||
label: '现金资金池',
|
||||
children: (
|
||||
<Card
|
||||
title="主管资金池"
|
||||
@@ -1076,12 +1088,12 @@ export default function FundManagementView({ role }: { role: ManagementRole }) {
|
||||
},
|
||||
{
|
||||
key: 'platform-credits',
|
||||
label: '平台积分',
|
||||
label: '客服积分钱包',
|
||||
children: <PlatformCreditPanel />,
|
||||
},
|
||||
{
|
||||
key: 'expenses',
|
||||
label: '支出明细',
|
||||
label: '现金支出',
|
||||
children: (
|
||||
<Card
|
||||
title="备用金支出"
|
||||
@@ -1149,10 +1161,10 @@ export default function FundManagementView({ role }: { role: ManagementRole }) {
|
||||
},
|
||||
{
|
||||
key: 'reconciliations',
|
||||
label: '对账',
|
||||
label: '对账中心',
|
||||
children: (
|
||||
<Card
|
||||
title="备用金对账"
|
||||
title="现金对账"
|
||||
extra={
|
||||
canReconcile ? (
|
||||
<Button type="primary" onClick={() => openReconcile()}>
|
||||
|
||||
Reference in New Issue
Block a user