{{ box.name }} - {{ box_types.get(box.box_type, box_types['small_28']).label }}

核心操作: 新增/编辑/快速入库,路径最短化

{% if error %}

{{ error }}

{% endif %} {% if notice %}

{{ notice }}

{% endif %}
{% if box.box_type == 'bag' %}

袋装记录

编号前缀: {{ box.slot_prefix }} | 一袋一种器件(同料号会自动合并)

{% for row in bag_rows %} {% set c = row.component %} {% else %} {% endfor %}
袋位编号 料号 名称 数量 状态 规格 操作
{{ row.slot_code }} {{ c.part_no }} {{ c.name }} {{ c.quantity }} {% if c.is_enabled %}启用{% else %}停用{% endif %} {{ c.specification or '-' }} 编辑
当前没有袋装记录,请先新增。

新增单条

3步完成: 填写料号与名称 -> 填数量 -> 保存到袋装清单(同料号自动合并)

批量新增

每行一条, 格式: 料号, 名称, 数量, 规格, 备注。可用英文逗号或 Tab 分隔;同料号自动合并。

建议格式: 名称尽量写品类+型号;规格只留关键参数。

{% else %}

容量: {{ box.slot_capacity }} 位 | 编号范围: {{ slot_range }}

{% for item in slots %} {{ item.slot_code }} {% if item.component %} {{ item.component.name }} 数量: {{ item.component.quantity }} {% if item.component.quantity < low_stock_threshold %} 低库存预警 {% endif %} {% else %} 空位 {% endif %} {% endfor %}
{% endif %}