feat(线缆管理): 新增向导式接线创建功能

- 新增四步向导流程,简化接线创建过程
- 添加线缆标签、颜色、安装信息等新字段
- 实现端口可视化面板和冲突检测功能
- 新增耗材日志设备关联字段
- 添加耗材导入后台任务管理
- 更新线缆管理文档和使用指南
This commit is contained in:
zhang1106
2026-03-31 14:34:34 +08:00
parent 5d972799f2
commit 06e3b56469
16 changed files with 3914 additions and 105 deletions
+10
View File
@@ -257,6 +257,11 @@ router.post('/', async (req, res) => {
cableLength,
status,
description,
cableLabel,
cableColor,
installedBy,
installedAt,
lastTestedAt,
force,
} = req.body;
@@ -321,6 +326,11 @@ router.post('/', async (req, res) => {
cableLength,
status: status || 'normal',
description,
cableLabel: cableLabel || null,
cableColor: cableColor || null,
installedBy: installedBy || null,
installedAt: installedAt || null,
lastTestedAt: lastTestedAt || null,
});
const createdCable = await Cable.findByPk(cable.cableId, {