Remove supervisor.log and update uWSGI configuration paths to reflect new directory structure; enhance filtering options in work order views and improve CSS styles for better UI responsiveness.

This commit is contained in:
2025-12-10 12:00:50 +08:00
parent c7dc4d6c02
commit 0f41063688
39 changed files with 2643 additions and 3698 deletions
+74 -30
View File
@@ -8,46 +8,90 @@
<span class="stats_label">在途工单总数</span>
<span class="stats_value">{{ total_orders }}</span>
</div>
{% if current_user.branch == '交付中心' %}
<div class="stats_branches_row">
{% for branch, count in branch_stats.items() %}
<a href="{{ url_for('receive', branch=branch) }}" class="branch_stat {% if branch == selected_branch %}active{% endif %}">
<span class="branch_name">{{ branch }}</span>
<span class="branch_count">{{ count }}</span>
</a>
{% endfor %}
<!-- 设备类型统计 -->
{% if device_type_stats %}
<div class="stats_section">
<h4 class="stats_section_title">设备类型分布</h4>
<div class="stats_grid">
{% for device_type, count in device_type_stats.items() %}
<a href="{{ url_for('receive', device_type=device_type, branch=selected_branch, per_page=request.args.get('per_page', '50')) }}" class="stats_card device-type-{{ device_type | replace(' ', '-') }} {% if device_type == request.args.get('device_type') %}active{% endif %}">
<span class="stats_card_label">{{ device_type }}</span>
<span class="stats_card_value">{{ count }}</span>
</a>
{% endfor %}
</div>
</div>
<div class="receive_actions">
<button onclick="recallAllOrders()" class="receive_btn receive_btn_warning">一键追回所有工单</button>
{% if selected_branch %}
<a href="{{ url_for('receive') }}" class="receive_btn receive_btn_secondary">清除筛选</a>
{% endif %}
{% endif %}
<!-- 项目类型统计 -->
{% if project_type_stats %}
<div class="stats_section">
<h4 class="stats_section_title">项目类型分布</h4>
<div class="stats_grid">
{% for project_type, count in project_type_stats.items() %}
<a href="{{ url_for('receive', project_type=project_type, branch=selected_branch, per_page=request.args.get('per_page', '50')) }}" class="stats_card project-type-{{ project_type | replace(' ', '-') }} {% if project_type == request.args.get('project_type') %}active{% endif %}">
<span class="stats_card_label">{{ project_type }}</span>
<span class="stats_card_value">{{ count }}</span>
</a>
{% endfor %}
</div>
</div>
{% endif %}
</div>
<!-- 筛选区域 -->
<div class="receive_filter">
<div class="filter_header">
<h4 class="filter_title">工单筛选</h4>
<div class="filter_actions">
{% if current_user.branch == '交付中心' %}
<button onclick="recallAllOrders()" class="receive_btn receive_btn_warning">一键追回所有工单</button>
{% endif %}
{% if request.args.get('device_type') or request.args.get('project_type') or selected_branch %}
<a href="{{ url_for('receive', per_page=request.args.get('per_page', '50')) }}" class="receive_btn receive_btn_clear">清除所有筛选</a>
{% endif %}
</div>
</div>
<form method="GET" action="{{ url_for('receive') }}" class="filter_form">
<select name="device_type" class="filter_select">
<option value="">所有设备类型</option>
{% for device_type in device_types %}
<option value="{{ device_type }}" {% if device_type == request.args.get('device_type') %}selected{% endif %}>{{ device_type }}</option>
{% endfor %}
</select>
<select name="project_type" class="filter_select">
<option value="">所有项目类型</option>
{% for project_type in project_types %}
<option value="{{ project_type }}" {% if project_type == request.args.get('project_type') %}selected{% endif %}>{{ project_type }}</option>
{% endfor %}
</select>
<input type="hidden" name="branch" value="{{ selected_branch }}">
{% if current_user.branch == '交付中心' %}
<div class="filter_group">
<label class="filter_label">所属支局</label>
<select name="branch" class="filter_select">
<option value="">所有支局</option>
{% for branch in branches %}
<option value="{{ branch }}" {% if branch == selected_branch %}selected{% endif %}>{{ branch }}</option>
{% endfor %}
</select>
</div>
{% endif %}
<div class="filter_group">
<label class="filter_label">设备类型</label>
<select name="device_type" class="filter_select">
<option value="">所有设备类型</option>
{% for device_type in device_types %}
<option value="{{ device_type }}" {% if device_type == request.args.get('device_type') %}selected{% endif %}>{{ device_type }}</option>
{% endfor %}
</select>
</div>
<div class="filter_group">
<label class="filter_label">项目类型</label>
<select name="project_type" class="filter_select">
<option value="">所有项目类型</option>
{% for project_type in project_types %}
<option value="{{ project_type }}" {% if project_type == request.args.get('project_type') %}selected{% endif %}>{{ project_type }}</option>
{% endfor %}
</select>
</div>
<input type="hidden" name="page" value="1">
<input type="hidden" name="per_page" value="{{ request.args.get('per_page', '50') }}">
<button type="submit" class="receive_btn receive_btn_primary">筛选</button>
{% if request.args.get('device_type') or request.args.get('project_type') %}
<a href="{{ url_for('receive', branch=selected_branch, per_page=request.args.get('per_page', '50')) }}" class="receive_btn receive_btn_secondary">清除筛选</a>
{% endif %}
<div class="filter_group">
<button type="submit" class="receive_btn receive_btn_primary">应用筛选</button>
</div>
</form>
</div>