Files
tms-erp-web/.workbuddy/memory/2026-07-28.md
赵忠林 8002fe3d50 style(cargo-type): 美化货物类型导入模板Excel样式及失败明细
- 表头底色调整为统一灰色 #D9D9D9,字体改为黑色加粗
- 表头行高从42调整为30,增加视觉紧凑感
- 表头与数据区统一添加细边框,居中对齐并自动换行
- 编码列保持文本格式,防止格式识别错误
- 导入失败明细中「导入失败原因」列字体设置为红色
- 失败原因按 A./B./C. 格式编号,使用分号分隔
- 去除后端重复的「第N行:」前缀,避免冗余信息
- 通过 Node + exceljs 验证样式和格式变更正确生效
2026-07-28 00:37:42 +08:00

9 lines
824 B
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-07-28 工作日志
## 货物类型导入模板美化
- 文件:`src/views/base/cargo-type.vue``handleTemplate()`
- 改动(第一次):表头行加主色底色 `#409EFF` + 白色加粗字体 + 居中对齐 + 细边框;行高 42。
- 改动(调整后):按用户反馈,表头底色改为统一灰色 `#D9D9D9` + 黑色加粗字体,行高降为 30。
- 导入失败明细 `decorateCargoTypeFailDetail` 调整:仅「导入失败原因」列字体红色;错误按 `A./B./C.` 编号分号隔开并去掉后端重复的「第N行」前缀最终格式示例 `第2行A.该货物类型编码已存在,请更换唯一编码`
- 验证Node + exceljs 4.4.0 跑通生成逻辑,确认表头 fill/font/alignment/height、失败原因编号格式与红色字体均正确。