新增:查询页面快照并修复筛选选框闪烁

页面快照支持勾选查询条件、指标卡片、趋势、汇总表、不良构成和细分缺陷图,复制PNG或下载;增加取消、分阶段提示和等待超时恢复。

修复公共Select弹层准备帧被opacity覆盖导致的先闪出再展开,并取消查询字段原生label的重复点击转发。

同步已经验收上线的销售订单类型映射、排除筛选及预聚合,以及其线上权限、删除确认配套源码;保留既有公式编辑和名录编码修改。源码范围按发布清单冻结,不纳入本机数据、凭据及未发布工作。

验证:前后端独立源码构建通过;10项前端检查、4项订单分类单元测试通过;实际系统剪贴板粘贴PNG验证通过;线上配置及筛选结果与发布前一致,后端未重启。
This commit is contained in:
2026-11-04 00:15:32 +08:00
parent 54813accaa
commit c3354c1f64
106 changed files with 1678 additions and 353 deletions
+4 -2
View File
@@ -1,3 +1,4 @@
import { useDeleteConfirmation } from './useDeleteConfirmation';
import { useEffect, useState } from 'react';
import { Alert, Button, Checkbox, Collapse, Dropdown, Form, Input, Modal, Select, Tabs } from 'antd';
import { MoreOutlined, PlusOutlined } from '@ant-design/icons';
@@ -16,6 +17,7 @@ const nullLabels: Record<string, string> = { PROPAGATE:'任一输入缺失,运
const resultLabels = (rate: boolean): Record<string, string> => ({ ONE: rate ? '按100%处理' : '取1', ZERO: rate ? '按0%处理' : '取0', NULL:'保留空白', ERROR:'停止并报错' });
export function RuleSettingsEditor({ value, onChange, schema, schemaError, showWorkbookActions = true, focusMetric, readOnly = false }: Props) {
const confirmDelete = useDeleteConfirmation();
const [tab, setTab] = useState('black');
const [sourceEdit, setSourceEdit] = useState<{ stage: string; alias: string; header: string } | null>(null);
const [sourceForm] = Form.useForm<{ header: string }>();
@@ -67,10 +69,10 @@ export function RuleSettingsEditor({ value, onChange, schema, schemaError, showW
const next = planResultMove(value, result.stage, result.target, direction, schema);
if (next.definition) { onChange(next.definition); setOrderError(''); } else setOrderError(next.reason || '该调整会破坏计算依赖');
};
const remove = (result: ResultFormula) => {
const remove = (result: ResultFormula) => confirmDelete({ title:`移除“${label(result.target)}”的完整公式?`, description:`将移除此结果的全部取值及 ${result.rules.filter(rule=>rule.when).length} 个条件分支,保存并更新报表后生效。`, confirmText:"确认移除", onConfirm:() => {
const next = replaceResultFormula(value, result, []), issue = newResultIssue(value, next, schema);
if (issue) setOrderError(issue); else { onChange(next); setOrderError(''); }
};
}});
const rowColumns = [
{ title:'执行顺序', key:'sequence', width:90, render:(_: unknown, _row: ResultFormula, position: number) => position + 1 },
{ title:'计算结果', dataIndex:'target', width:200, render:label },