feat:增强箱子管理功能与界面优化

- 新增箱子重命名与删除功能
- 引入新箱子前缀与起始编号配置
- 在首页展示箱子编号范围
- 添加概览按钮,快速查看已启用的物品及其名称
- 实现组件的启用/禁用功能
- 更新数据库结构,新增箱子与组件字段
- 优化箱子与组件管理界面,改进表单与表格展示
- 在索引页面增加箱子详细信息概览区域
- 增强扫描与搜索功能,优化结果显示效果
This commit is contained in:
2026-03-08 02:48:24 +08:00
parent 672336c578
commit 22147a1c03
7 changed files with 656 additions and 334 deletions

View File

@@ -100,11 +100,15 @@ body {
.new-box-form {
display: grid;
grid-template-columns: 1.2fr 1fr auto;
grid-template-columns: 1.2fr 0.8fr 0.7fr 1fr auto;
gap: 8px;
margin-bottom: 12px;
}
.new-box-form.compact {
grid-template-columns: 1.1fr 0.8fr 0.7fr 1fr auto;
}
.box-card,
.panel {
background: var(--card);
@@ -122,6 +126,34 @@ body {
margin: 0 0 6px;
}
.card-actions {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 8px;
}
.card-actions form {
margin: 0;
}
.box-overview {
margin-top: 8px;
border: 1px dashed var(--line);
border-radius: 10px;
padding: 8px;
}
.box-overview summary {
cursor: pointer;
color: var(--muted);
}
.box-overview ul {
margin: 8px 0 0;
padding-left: 18px;
}
.slot-grid {
display: grid;
grid-template-columns: repeat(7, minmax(90px, 1fr));