feat(platform): add customer report purpose navigation
This commit is contained in:
@@ -1254,6 +1254,44 @@ export function History({
|
||||
onClick: () => openQueryTab('fields')
|
||||
}
|
||||
];
|
||||
const customerReportPurposeItems = [
|
||||
{
|
||||
title: '日报复盘',
|
||||
value: '运营早会',
|
||||
detail: '每天快速交付车辆位置、轨迹覆盖、区间里程和质量提示。',
|
||||
action: '生成日报',
|
||||
color: locations.total > 0 ? 'green' as const : 'orange' as const,
|
||||
disabled: locations.items.length === 0,
|
||||
onClick: () => exportLocations()
|
||||
},
|
||||
{
|
||||
title: '周报对账',
|
||||
value: '客户对账',
|
||||
detail: '把固定车辆范围和时间窗沉淀为周报计划,给客户对账复核。',
|
||||
action: '生成周报',
|
||||
color: 'blue' as const,
|
||||
disabled: false,
|
||||
onClick: () => copyScheduledHistoryReportPlan()
|
||||
},
|
||||
{
|
||||
title: '临时解释',
|
||||
value: '质量说明',
|
||||
detail: '遇到定位、里程或断链质疑时,复制带证据链接的解释说明。',
|
||||
action: '复制说明',
|
||||
color: deliveryStateColor,
|
||||
disabled: false,
|
||||
onClick: () => copyDeliveryPackage()
|
||||
},
|
||||
{
|
||||
title: '字段模板',
|
||||
value: '稳定字段',
|
||||
detail: '按客户固定字段裁剪导出,减少体积并保证每次字段一致。',
|
||||
action: '字段配置',
|
||||
color: selectedFieldCount > 0 || rawFieldRows.length > 0 ? 'green' as const : 'orange' as const,
|
||||
disabled: false,
|
||||
onClick: () => openQueryTab('fields')
|
||||
}
|
||||
];
|
||||
const savedReportViewItems = [
|
||||
{
|
||||
title: '当前筛选',
|
||||
@@ -1905,6 +1943,36 @@ export function History({
|
||||
) : null}
|
||||
{mode === 'query' ? (
|
||||
<Card bordered title="客户报表交付节奏" style={{ marginTop: 16 }}>
|
||||
<div className="vp-history-report-purpose" aria-label="客户报表用途导航">
|
||||
<div className="vp-history-report-purpose-summary">
|
||||
<Space wrap>
|
||||
<Tag color="blue">客户报表用途导航</Tag>
|
||||
<Tag color={deliveryStateColor}>{deliveryState}</Tag>
|
||||
<Tag color={currentVehicleKeyword ? 'green' : 'grey'}>{currentVehicleKeyword ? '单车范围' : '全部车辆'}</Tag>
|
||||
</Space>
|
||||
<Typography.Title heading={5} style={{ margin: 0 }}>先选择客户要解决的问题,再决定导出位置、字段、统计或说明。</Typography.Title>
|
||||
<Typography.Text type="secondary">
|
||||
报表入口按客户用途组织:日报复盘、周报对账、临时问题解释和字段模板复用,避免客户先面对 RAW 或字段明细。
|
||||
</Typography.Text>
|
||||
</div>
|
||||
<div className="vp-history-report-purpose-grid">
|
||||
{customerReportPurposeItems.map((item) => (
|
||||
<button
|
||||
key={item.title}
|
||||
type="button"
|
||||
className="vp-history-report-purpose-item"
|
||||
disabled={item.disabled}
|
||||
onClick={item.onClick}
|
||||
aria-label={`客户报表用途导航 ${item.title} ${item.value} ${item.action}`}
|
||||
>
|
||||
<Tag color={item.color}>{item.title}</Tag>
|
||||
<strong>{item.value}</strong>
|
||||
<span>{item.detail}</span>
|
||||
<em>{item.action}</em>
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<div className="vp-history-report-cadence">
|
||||
<div className="vp-history-report-cadence-summary">
|
||||
<Space wrap>
|
||||
|
||||
Reference in New Issue
Block a user