完善采购审批流程、企业微信通知和采购专用章

This commit is contained in:
reddaniel110
2026-09-16 11:45:21 +08:00
parent 4876d8805d
commit bf952196fa
58 changed files with 3451 additions and 1909 deletions
+5
View File
@@ -4,6 +4,7 @@
<div class="card">
<h2>新增物料</h2>
<form method="post">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="form-grid">
<div><label>物料代码 *</label><input type="text" name="code" required placeholder="M-1004"></div>
<div><label>物料规格 / 名称</label><input type="text" name="spec"></div>
@@ -31,6 +32,7 @@
data-spec="{{ m.spec or '' }}" data-unit="{{ m.unit or '' }}"
data-price="{{ m.price or 0 }}">编辑</button>
<form method="post" action="{{ url_for('material_toggle', mid=m.id) }}" style="display:inline;">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<button class="btn sm {% if m.active %}danger{% endif %}"
onclick="return confirm('确定{{ '停用' if m.active else '启用' }}该物料?')">
{{ '停用' if m.active else '启用' }}
@@ -38,6 +40,7 @@
</form>
{% if user.role == 'admin' %}
<form method="post" action="{{ url_for('material_delete', mid=m.id) }}" style="display:inline;">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<button class="btn sm danger"
onclick="return confirm('确定彻底删除该物料?删除后不可恢复!')">删除</button>
</form>
@@ -55,6 +58,7 @@
<span class="modal-close" onclick="document.getElementById('matImpModal').style.display='none'">&times;</span>
</div>
<form method="post" action="{{ url_for('material_import_excel') }}" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="modal-body">
<div class="hint">先下载模板按格式填好再导入。<b>物料代码</b>必填;已存在的代码按下方方式处理。</div>
<div class="field">
@@ -88,6 +92,7 @@
<span class="modal-close" onclick="document.getElementById('editModal').style.display='none'">&times;</span>
</div>
<form method="post" action="{{ url_for('materials') }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<input type="hidden" name="id" id="edit_id">
<div class="modal-body">
<div class="field">