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

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
+3 -4
View File
@@ -22,12 +22,12 @@
<button class="btn primary">查询</button>
<span class="grow"></span>
<a class="btn" href="{{ url_for('export_ledger') }}">导出 Excel 台账</a>
<a class="btn primary" href="{{ url_for('order_new') }}">新建订单</a>
{% if user.role in ['maker','admin'] %}<a class="btn primary" href="{{ url_for('order_new') }}">新建订单</a>{% endif %}
</form>
<table class="grid">
<tr>
<th>单号</th><th>类型</th><th>供应商</th><th>采购日期</th><th class="num">金额</th>
<th>状态</th><th>制单</th><th>审核</th><th>批准</th><th class="nowrap">操作</th>
<th>状态</th><th>制单</th><th>审批</th><th class="nowrap">操作</th>
</tr>
{% for o in rows %}
<tr>
@@ -38,7 +38,6 @@
<td class="num">{{ '%.2f'|format(o.total_amount) }}</td>
<td><span class="badge {{ o.status }}">{{ o.status_text }}</span></td>
<td>{{ o.created_by_name }}</td>
<td>{{ o.reviewed_by or '-' }}</td>
<td>{{ o.approved_by or '-' }}</td>
<td class="nowrap">
<a class="btn sm" href="{{ url_for('order_view', oid=o.id) }}">查看</a>
@@ -46,7 +45,7 @@
</td>
</tr>
{% else %}
<tr><td colspan="10" class="center muted">没有符合条件的订单</td></tr>
<tr><td colspan="9" class="center muted">没有符合条件的订单</td></tr>
{% endfor %}
</table>
</div>