Files
Mdeical_Sur_Report/工程分析/需求分析-2026-04-18-17-48-59.md

31 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 需求分析 —— 2026-04-18-17-48-59
## 需求来源
用户基于打印预览效果,提出默认模板排版微调和打印样式修复需求。
## 需求概述
### 需求 1缩减基本信息栏字段间空格
当前默认模板中「姓名:性别:年龄:科别:床号:住院号:」之间使用了 `   `(三个不间断空格),间距过大。需缩减为单个空格 ` `
### 需求 2Logo 与医院名/标题靠拢并整体居中
当前顶部使用 3 列 table20%-60%-20%Logo 固定在左侧 20% 区域,与中间标题距离过远。需改为 Flex 布局,使 Logo 与文字内容作为一个整体水平居中,且两者间距缩小。
### 需求 3打印时隐藏所有「×」删除按钮
打印预览中,`.smart-field-wrapper` 内的 `.delete-btn`(红色×)仍然可见。`print.ts` 中仅隐藏了 `.image-placeholder .delete-btn`,遗漏了文本字段中的删除按钮。需全局隐藏 `.delete-btn`
### 需求 4统一全文行距为 1.5,消除段前段后间距
当前模板中各 `<p>` 标签的 `line-height` 不统一(有 1.8、默认行高等),且部分段落有默认 margin/padding。需统一为 `line-height: 1.5; margin: 0; padding: 0;`
### 需求 5下划线紧贴文字底部
「西 安 交 通 大 学 第 一 附 属 医 院」下方的 `border-bottom` 和「姓名:」等基本信息栏下方的 `border-bottom` 与文字间距过大。需移除 `padding-bottom`,并通过 `line-height: 1` 或类似手段消除字体底部留白,使横线紧贴文字底部。
## 涉及文件
- `src/utils/defaultContent.ts`(需求 1、2、4、5
- `src/utils/print.ts`(需求 3、4
## 需求影响范围
- 默认报告模板的视觉效果
- 打印输出样式
- 无业务逻辑变更