Evo-ERP/app/templates/report/index.html
2024-11-06 02:39:48 +08:00

65 lines
2.8 KiB
HTML

{% extends "base.html" %}
{% block page_title %}
<h4 class="mb-0">報表中心</h4>
{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-6 mb-4">
<div class="card h-100">
<div class="card-body">
<div class="d-flex align-items-center mb-3">
<div class="fs-1 text-primary me-3">
<i class="bi bi-box-seam"></i>
</div>
<div>
<h5 class="card-title mb-1">庫存報表</h5>
<p class="card-text text-muted mb-0">匯出所有商品的庫存狀態</p>
</div>
</div>
<ul class="list-unstyled mb-4">
<li><i class="bi bi-check2 text-success me-2"></i>商品基本資料</li>
<li><i class="bi bi-check2 text-success me-2"></i>目前庫存量</li>
<li><i class="bi bi-check2 text-success me-2"></i>庫存警告狀態</li>
<li><i class="bi bi-check2 text-success me-2"></i>庫存金額統計</li>
</ul>
<a href="{{ url_for('report.inventory_report') }}" class="btn btn-primary">
<i class="bi bi-download me-1"></i> 下載庫存報表
</a>
</div>
</div>
</div>
<div class="col-md-6 mb-4">
<div class="card h-100">
<div class="card-body">
<div class="d-flex align-items-center mb-3">
<div class="fs-1 text-success me-3">
<i class="bi bi-arrow-left-right"></i>
</div>
<div>
<h5 class="card-title mb-1">交易報表</h5>
<p class="card-text text-muted mb-0">匯出指定期間的交易記錄</p>
</div>
</div>
<form method="POST" action="{{ url_for('report.transaction_report') }}" class="mt-3">
<div class="mb-3">
<label class="form-label">開始日期</label>
<input type="date" name="start_date" class="form-control" required
value="{{ (today - timedelta(days=30)).strftime('%Y-%m-%d') }}">
</div>
<div class="mb-3">
<label class="form-label">結束日期</label>
<input type="date" name="end_date" class="form-control" required
value="{{ today.strftime('%Y-%m-%d') }}">
</div>
<button type="submit" class="btn btn-success">
<i class="bi bi-download me-1"></i> 下載交易報表
</button>
</form>
</div>
</div>
</div>
</div>
{% endblock %}