feat: 添加锁仓模式设置,优化编辑和入库功能提示
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
{% if notice %}
|
||||
<p class="notice">{{ notice }}</p>
|
||||
{% endif %}
|
||||
{% if lock_storage_mode %}
|
||||
<p class="notice">当前为锁仓模式: 禁止删除位置绑定,禁止替换当前位置料号。</p>
|
||||
{% endif %}
|
||||
|
||||
<div class="entry-shell">
|
||||
<section class="entry-main">
|
||||
@@ -51,6 +54,14 @@
|
||||
备注
|
||||
<textarea name="note" rows="3" placeholder="如 LCSC item 9243">{{ component.note if component else '' }}</textarea>
|
||||
</label>
|
||||
<label class="full">
|
||||
<input type="checkbox" name="confirm_merge" value="1">
|
||||
人工确认后合并: 若检测到同料号或同参数物料,保存时将数量合并到已存在位置
|
||||
</label>
|
||||
<label class="full">
|
||||
<input type="checkbox" name="confirm_position_change" value="1">
|
||||
我确认替换当前位物料(会改变该位置原有绑定)
|
||||
</label>
|
||||
|
||||
<div class="actions full">
|
||||
<button class="btn" type="submit" name="action" value="save">保存</button>
|
||||
@@ -60,6 +71,10 @@
|
||||
{% else %}
|
||||
<button class="btn btn-light" type="submit" name="action" value="toggle_enable">启用</button>
|
||||
{% endif %}
|
||||
<label class="full">
|
||||
删除确认(输入当前位置编号 {{ slot_code }})
|
||||
<input type="text" name="delete_confirm_slot" placeholder="请输入 {{ slot_code }}">
|
||||
</label>
|
||||
<button class="btn btn-danger" type="submit" name="action" value="delete" onclick="return confirm('确认删除这个元件记录吗?')">删除</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -79,6 +94,14 @@
|
||||
数量
|
||||
<input type="number" name="quantity" min="0" value="0">
|
||||
</label>
|
||||
<label class="full">
|
||||
<input type="checkbox" name="confirm_merge" value="1">
|
||||
人工确认后合并: 若检测到同料号或同参数物料,将合并到已存在位置
|
||||
</label>
|
||||
<label class="full">
|
||||
<input type="checkbox" name="confirm_position_change" value="1">
|
||||
我确认替换当前位物料(会改变该位置原有绑定)
|
||||
</label>
|
||||
<div class="actions full">
|
||||
<button class="btn" type="submit">拉取并写入当前位</button>
|
||||
<a class="btn btn-light" href="{{ url_for('ai_settings_page') }}">接口参数</a>
|
||||
|
||||
Reference in New Issue
Block a user