2026-07-28 16:13:32 +08:00

248 lines
6.4 KiB
JavaScript

export const settlementRows = [
{
id: 'stl20260601001',
no: 'STL202606010001',
type: '供应商',
typeKey: 'supplier',
orgId: 'supplier001',
name: '云海科技股份有限公司',
periodType: '月结',
start: '2026-05-01',
end: '2026-05-31',
sales: '¥156,800.00',
settlement: '¥109,760.00',
income: '¥47,040.00',
status: 'settled',
createdAt: '2026-06-01 09:23:15',
approvalId: 'apv20260601001'
},
{
id: 'stl20260602001',
no: 'STL202606020002',
type: '供应商',
typeKey: 'supplier',
orgId: 'supplier002',
name: '星际云计算服务公司',
periodType: '月结',
start: '2026-05-01',
end: '2026-05-31',
sales: '¥234,500.00',
settlement: '¥164,150.00',
income: '¥70,350.00',
status: 'approved',
createdAt: '2026-06-02 10:45:30',
approvalId: 'apv20260602001'
},
{
id: 'stl20260603001',
no: 'STL202606030003',
type: '分销商',
typeKey: 'reseller',
orgId: 'reseller001',
name: '东方明珠销售有限公司',
periodType: '月结',
start: '2026-05-01',
end: '2026-05-31',
sales: '¥89,500.00',
settlement: '¥76,075.00',
income: '¥13,425.00',
status: 'approving',
createdAt: '2026-06-03 14:20:00',
approvalId: 'apv20260603001'
},
{
id: 'stl20260604001',
no: 'STL202606040004',
type: '供应商',
typeKey: 'supplier',
orgId: 'supplier003',
name: '智算数据科技有限公司',
periodType: '月结',
start: '2026-05-01',
end: '2026-05-31',
sales: '¥178,900.00',
settlement: '¥125,230.00',
income: '¥53,670.00',
status: 'draft',
createdAt: '2026-06-04 11:15:45',
approvalId: ''
},
{
id: 'stl20260605001',
no: 'STL202606050005',
type: '分销商',
typeKey: 'reseller',
orgId: 'reseller002',
name: '粤港澳渠道服务商',
periodType: '月结',
start: '2026-05-01',
end: '2026-05-31',
sales: '¥123,400.00',
settlement: '¥104,890.00',
income: '¥18,510.00',
status: 'rejected',
createdAt: '2026-06-05 16:30:20',
approvalId: 'apv20260605001',
reason: '金额与对账单不一致,需重新核对'
},
{
id: 'stl20260606001',
no: 'STL202606060006',
type: '供应商',
typeKey: 'supplier',
orgId: 'supplier004',
name: '极光网络通信集团',
periodType: '月结',
start: '2026-05-01',
end: '2026-05-31',
sales: '¥267,800.00',
settlement: '¥187,460.00',
income: '¥80,340.00',
status: 'failed',
createdAt: '2026-06-06 08:50:10',
approvalId: 'apv20260606001',
reason: '银行账户信息错误,结算转账失败'
}
]
export const summaryRows = [
{
period: '2026-06',
id: 'supplier001',
name: '云海科技股份有限公司',
sales: '¥156,800.00',
settlement: '¥109,760.00',
income: '¥47,040.00',
bills: '42',
ratio: '22.6%'
},
{
period: '2026-06',
id: 'supplier002',
name: '星际云计算服务公司',
sales: '¥142,600.00',
settlement: '¥99,820.00',
income: '¥42,780.00',
bills: '36',
ratio: '20.6%'
},
{
period: '2026-06',
id: 'supplier003',
name: '智算数据科技有限公司',
sales: '¥98,760.00',
settlement: '¥69,132.00',
income: '¥29,628.00',
bills: '27',
ratio: '14.2%'
},
{
period: '2026-06',
id: 'reseller001',
name: '东方明珠销售有限公司',
sales: '¥86,400.00',
settlement: '¥73,440.00',
income: '¥12,960.00',
bills: '19',
ratio: '12.5%'
}
]
export const billRows = [
{
billId: 'B202606010001',
orderId: 'O202606001',
date: '2026-06-01',
mode: '标准销售',
sales: '¥12,580.00',
settlement: '¥8,806.00',
income: '¥3,774.00'
},
{
billId: 'B202606010002',
orderId: 'O202606002',
date: '2026-06-03',
mode: '代理销售',
sales: '¥8,920.00',
settlement: '¥6,244.00',
income: '¥2,676.00'
},
{
billId: 'B202606010003',
orderId: 'O202606003',
date: '2026-06-08',
mode: '标准销售',
sales: '¥15,600.00',
settlement: '¥10,920.00',
income: '¥4,680.00'
},
{
billId: 'B202606010004',
orderId: 'O202606004',
date: '2026-06-12',
mode: '项目销售',
sales: '¥19,860.00',
settlement: '¥13,902.00',
income: '¥5,958.00'
},
{
billId: 'B202606010005',
orderId: 'O202606005',
date: '2026-06-21',
mode: '标准销售',
sales: '¥11,720.00',
settlement: '¥8,204.00',
income: '¥3,516.00'
}
]
export const flowSteps = [
{
index: 1,
icon: 'el-icon-s-data',
title: '汇总查询',
subtitle: '数据盘点',
description: '查询指定账期内供应商或分销商的销售额、结算金额、平台收入和账单数量。',
endpoint: '/bill/finance_settlement_summary.dspy'
},
{
index: 2,
icon: 'el-icon-view',
title: '结算单预览',
subtitle: '核对明细',
description: '创建前预览结算明细,检查指定账期是否已存在结算单,避免重复创建。',
endpoint: '/bill/finance_settlement_preview.dspy'
},
{
index: 3,
icon: 'el-icon-circle-plus-outline',
title: '创建结算单',
subtitle: '生成草稿',
description: '基于预览数据创建结算单主表和明细快照,结算单初始状态为草稿。',
endpoint: '/bill/finance_settlement_create.dspy'
},
{
index: 4,
icon: 'el-icon-s-promotion',
title: '提交审批',
subtitle: '送审',
description: '将草稿、审批拒绝或结算失败状态的结算单提交至审批流程。',
endpoint: '/bill/finance_settlement_submit.dspy'
},
{
index: 5,
icon: 'el-icon-circle-check',
title: '审批回调',
subtitle: '记账闭环',
description: '接收审批结果,审批通过后自动完成结算记账并更新结算单状态。',
endpoint: '/bill/finance_settlement_apv_callback.dspy'
}
]
export const incomeRanks = [
{ name: '星际云计算服务公司', type: '供应商', income: '¥70,350.00', ratio: '26.3%', width: '100%' },
{ name: '极光网络通信集团', type: '供应商', income: '¥62,480.00', ratio: '23.4%', width: '89%' },
{ name: '云海科技股份有限公司', type: '供应商', income: '¥47,040.00', ratio: '17.6%', width: '67%' },
{ name: '东方明珠销售有限公司', type: '分销商', income: '¥31,860.00', ratio: '11.9%', width: '45%' }
]