修复:快照合并分析图并支持导出订单对应表

快照将不良构成与柏拉图合并为一个选项,完整保留页面容器,黑片和亮片继续并排展示两张分析图;迁移旧快照选项并等待组合图的数据准备完成。

销售订单类型对应表支持下载当前生效版本的完整Excel,订单号按文本写入,保留前导零,沿用管理员角色与来源字段权限。导出开始时固定版本,使用滚动工作簿限制内存。

菜单、页面及快照标题统一改为黑片数据和亮片数据。

验证:11项前端检查、8项后端单元测试通过;157698条实际对应关系与数据库逐条一致,重新导入预览零变更;黑片完整快照和亮片单模块快照均通过视觉检查。
This commit is contained in:
2026-11-04 09:06:07 +08:00
parent 80cd9e79eb
commit 147b56d0fd
11 changed files with 133 additions and 20 deletions
+2 -2
View File
@@ -827,13 +827,13 @@ export default function QueryPage({ page, onUnauthorized }: {
</SmoothTableFrame>
</QueryTablePanel>
<section className="panel section-panel defects-panel" ref={defectsSection} aria-busy={defectsRefreshing} style={{ minHeight: queryBusy && trendAnchorTop.current != null ? defectsHeight.current : undefined }}>
<section className="panel section-panel defects-panel" data-snapshot-module="defects" ref={defectsSection} aria-busy={defectsRefreshing} style={{ minHeight: queryBusy && trendAnchorTop.current != null ? defectsHeight.current : undefined }}>
<div className="section-heading-row">
<SectionHeading title="不良具体构成" />
{defectsRefreshing && <span className="defect-refresh-indicator"><Spin size="small" />正在更新</span>}
</div>
{trendObjectMetricsError && <Alert showIcon type="warning" message="当前趋势对象的不良数据读取失败" description={trendObjectMetricsError} />}
<div className="defect-stage-grid" data-snapshot-module="defects" inert={!activeDefectData}>
<div className="defect-stage-grid" inert={!activeDefectData}>
{(['black', 'bright'] as const).map(stage => {
const items = stage === 'black' ? blackDefectItems : brightDefectItems;
return <section className="defect-stage-column" key={stage} aria-label={`${stage === 'black' ? '黑片' : '亮片'}不良构成`}>