Files
star 882508aee9 feat: 物料编号可编辑 + 工作台行内编辑/搜索 + 编号冲突合并/删除
- 物料编辑页物料编号放开可编辑并校验唯一性
- 工厂工作台看板行内可编辑型号/单位/安全库存/物料编号
- 工作台新增物料编号/型号搜索过滤
- 编号冲突时支持合并到已存在物料(保留流水)或删除整条物料(删前备份)
2026-10-10 16:08:33 +08:00

23 lines
1.0 KiB
HTML

{% extends "base.html" %}
{% block title %}{{ '编辑' if m else '新增' }}物料{% endblock %}
{% block content %}
<form method="post" class="card form-card">
<h3>{{ '编辑物料' if m else '新增物料' }}</h3>
<label>物料编号 *</label>
<input name="part_number" value="{{ m.part_number if m else '' }}" {{ 'required' if m else 'required' }}>
<p class="small muted" style="margin-top:2px">物料编码为唯一业务编号(不可与其他物料重复)。</p>
<label>型号 / 规格</label>
<input name="manufacturer" value="{{ m.manufacturer if m else '' }}">
<label>单位</label>
<input name="unit" value="{{ m.unit if m else '个' }}">
<label>安全库存</label>
<input name="safety_stock" type="number" step="0.01" value="{{ m.safety_stock if m else 0 }}">
<label>备注</label>
<input name="note" value="{{ m.note if m else '' }}">
<div class="row-actions">
<button class="primary">保存</button>
<a class="btn" href="{{ url_for('materials') }}">返回</a>
</div>
</form>
{% endblock %}