From 09677d60a0b389af5389e4cd92e74e582f639967 Mon Sep 17 00:00:00 2001
From: zhizhijie <zhizhijie@users.noreply.gitee.com>
Date: 星期二, 20 十月 2026 16:51:42 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/main'

---
 traffic-audit-web/src/views/AuditResult.vue |  605 ++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 470 insertions(+), 135 deletions(-)

diff --git a/traffic-audit-web/src/views/AuditResult.vue b/traffic-audit-web/src/views/AuditResult.vue
index fb821eb..7bc3c73 100644
--- a/traffic-audit-web/src/views/AuditResult.vue
+++ b/traffic-audit-web/src/views/AuditResult.vue
@@ -10,36 +10,59 @@
           <el-menu-item index="/explain">浼佷笟瑙i噴</el-menu-item>
           <el-menu-item index="/audit">瀹℃牳缁撴灉</el-menu-item>
           <el-menu-item index="/report">鎶ヨ〃鐢熸垚</el-menu-item>
+          <el-submenu index="/special-stats">
+            <template slot="title">涓撻」缁熻</template>
+            <el-menu-item index="/holiday-stat">鑺傚亣鏃�</el-menu-item>
+          </el-submenu>
           <el-menu-item index="/rules">瑙勫垯绠$悊</el-menu-item>
           <el-menu-item index="/users">鐢ㄦ埛绠$悊</el-menu-item>
-</el-menu>
+          <el-menu-item v-if="operatorIsAdmin" index="/system-config">绯荤粺閰嶇疆</el-menu-item>
+        </el-menu>
       </el-aside>
       <el-main :class="{ 'main-focus': focusMode }" style="display:flex;flex-direction:column;min-height:0">
         <h3 v-show="!focusMode" style="flex:none;margin:0 0 10px">瀹℃牳缁撴灉</h3>
         <el-form :inline="true" style="flex:none">
-          <el-form-item label="鎶ヨ〃绫诲瀷">
-            <el-radio-group v-model="reportType" @change="onTypeChange">
-              <el-radio label="H2032">璐ц繍鏈堟姤</el-radio>
-              <el-radio label="H2031">鏃呭鏈堟姤</el-radio>
-              <el-radio label="CITY_BUS">鍩庡競鍏氦鏈堟姤</el-radio>
-              <el-radio label="CITY_TAXI">宸℃父鍑虹鏈堟姤</el-radio>
-              <el-radio label="INVEST">鎶曡祫鏈堟姤</el-radio>
-              <el-radio label="H204">鑳借�楀鎶�</el-radio>
-            
-            
-            
-            </el-radio-group>
-          </el-form-item>
           <el-form-item label="鎶ヨ〃鏈�">
-            <el-date-picker v-model="period" type="month" placeholder="閫夋嫨鏈堜唤" value-format="yyyy-MM" @change="onPeriodChange"></el-date-picker>
+            <el-date-picker v-model="period" type="month" placeholder="閫夋嫨鏈堜唤" value-format="yyyy-MM"
+                            :picker-options="periodPickerOptions" @change="onPeriodChange"></el-date-picker>
           </el-form-item>
+          <el-form-item label="鏁版嵁绫诲瀷">
+            <el-select v-model="reportType" size="small" style="width:230px" filterable placeholder="閫夋嫨鏁版嵁绫诲瀷"
+                       popper-class="data-type-select" :title="reportTypeLabel" @change="onTypeChange">
+              <el-option-group v-for="g in auditTypeGroups" :key="g.key" :label="g.name">
+                <el-option v-for="t in g.types" :key="t.value" :label="t.label" :value="t.value"></el-option>
+              </el-option-group>
+            </el-select>
+          </el-form-item>
+
           <el-form-item>
-            <el-button type="primary" @click="executeAudit" :loading="loading">鎵ц瀹℃牳</el-button>
-            <el-button type="success" plain @click="markAudited" :loading="marking">鏍囪宸插鏍�</el-button>
-            <el-button @click="queryResults">鏌ヨ缁撴灉</el-button>
-            <el-button type="success" icon="el-icon-download" @click="exportExcel">瀵煎嚭 Excel</el-button>
-            <el-button v-if="!focusMode" size="small" icon="el-icon-full-screen" @click="focusMode = true">鑱氱劍鏌ョ湅</el-button>
-            <el-button v-else type="primary" size="small" icon="el-icon-crop" @click="focusMode = false">閫�鍑鸿仛鐒�</el-button>
+            <el-button icon="el-icon-refresh" @click="queryResults">鍒锋柊缁撴灉</el-button>
+          </el-form-item>
+        </el-form>
+        <div v-if="periodHint" class="period-hint-line">{{ periodHint }}</div>
+        <!-- 鎿嶄綔鍗★細鎸夌敤閫斿垎缁勶紙甯冨眬鍙傝��"涓撻」缁熻-鑺傚亣鏃�"锛� -->
+        <el-card v-if="!focusMode" shadow="never" class="audit-ops-card" style="flex:none">
+          <div class="operation-row">
+            <div class="operation-item">
+              <span class="label">瀹℃牳</span>
+              <el-button type="primary" size="small" @click="executeAudit" :loading="loading">鎵ц瀹℃牳</el-button>
+              <el-button type="success" size="small" plain @click="markAudited" :loading="marking">鏍囪宸插鏍�</el-button>
+            </div>
+            <div class="operation-item">
+              <span class="label">缁撴灉</span>
+              <el-button type="success" size="small" icon="el-icon-download" @click="exportExcel">瀵煎嚭 Excel</el-button>
+              <el-button size="small" icon="el-icon-full-screen" @click="focusMode = true">鑱氱劍鏌ョ湅</el-button>
+            </div>
+            <div class="operation-item" v-if="viewMode === 'detail'">
+              <span class="label">鎵归噺</span>
+              <el-button size="small" type="success" :disabled="!batchPending.length" @click="reviewBatch('CONFIRMED')">鎵归噺纭({{ batchPending.length }})</el-button>
+              <el-button size="small" type="info" :disabled="!batchPending.length" @click="reviewBatch('IGNORED')">鎵归噺蹇界暐({{ batchPending.length }})</el-button>
+            </div>
+          </div>
+        </el-card>
+        <el-form v-else :inline="true" style="flex:none">
+          <el-form-item>
+            <el-button type="primary" size="small" icon="el-icon-crop" @click="focusMode = false">閫�鍑鸿仛鐒�</el-button>
           </el-form-item>
         </el-form>
         <!-- 闂姒傝缁熻鍗� -->
@@ -49,7 +72,8 @@
           <div class="sev-card sev-pending"><b>{{ severityStats.pending }}</b> 寰呭鐞�</div>
           <div class="sev-card sev-done"><b>{{ severityStats.done }}</b> 宸插鐞�</div>
         </div>
-        <el-form v-if="!focusMode" :inline="true" style="margin-top:8px;flex:none">
+        <div v-if="!focusMode" class="audit-filter-bar">
+        <el-form :inline="true">
           <el-form-item label="浼佷笟鍚嶇О">
             <el-input v-model="enterpriseFilter" placeholder="杈撳叆浼佷笟鍚嶇О鍏抽敭瀛�" clearable style="width:200px" @keyup.enter.native="queryResults"></el-input>
           </el-form-item>
@@ -58,24 +82,32 @@
               <el-option v-for="rn in ruleOptions" :key="rn" :label="rn" :value="rn"></el-option>
             </el-select>
           </el-form-item>
+          <el-form-item label="闂鑼冨洿">
+            <el-checkbox v-model="includeReminder" @change="updateBatchSelection">鍚彁閱掑瀷锛堜粎鎻愮ず鍙樺寲銆佷笉闇�澶勭悊锛屽鍑洪粯璁や笉鍚級</el-checkbox>
+          </el-form-item>
+          <el-form-item label="鐘舵��">
+            <el-select v-model="statusScope" style="width:110px" @change="updateBatchSelection">
+              <el-option label="鍏ㄩ儴" value="all"></el-option>
+              <el-option label="寰呭鐞�" value="pending"></el-option>
+              <el-option label="宸插鐞�" value="handled"></el-option>
+            </el-select>
+          </el-form-item>
           <el-form-item label="瑙嗗浘">
             <el-radio-group v-model="viewMode">
               <el-radio label="detail">鎸夋潯鏄庣粏</el-radio>
               <el-radio label="merged">鎸変紒涓氬悎骞�</el-radio>
             </el-radio-group>
           </el-form-item>
-          <el-form-item v-if="viewMode === 'detail'">
-            <el-button size="small" type="success" :disabled="!batchPending.length" @click="reviewBatch('CONFIRMED')">鎵归噺纭({{ batchPending.length }})</el-button>
-            <el-button size="small" type="info" :disabled="!batchPending.length" @click="reviewBatch('IGNORED')">鎵归噺蹇界暐({{ batchPending.length }})</el-button>
-          </el-form-item>
           <el-form-item>
             <el-button size="small" @click="clearFilters">娓呯┖杩囨护</el-button>
             <el-button size="small" plain @click="statsCollapsed = !statsCollapsed">{{ statsCollapsed ? '灞曞紑' : '鏀惰捣' }}瑙勫垯缁熻</el-button>
           </el-form-item>
           <el-form-item>
-            <span style="color:#909399;font-size:12px">鍏� {{ results.length }} 鏉¢棶棰橈紝{{ mergedResults.length }} 瀹朵紒涓�</span>
+            <span style="color:#303133;font-size:13px;font-weight:600">褰撳墠绛涢�� {{ filteredResults.length }} 鏉� / {{ mergedResults.length }} 瀹朵紒涓�</span>
+            <span style="color:#909399;font-size:12px;margin-left:8px">锛堝叡 {{ results.length }} 鏉¢棶棰橈級</span>
           </el-form-item>
         </el-form>
+        </div>
         <div v-if="ruleStats.length && !statsCollapsed && !focusMode" class="rule-stats" style="flex:none">
           <div class="stats-cards">
             <div v-for="rs in sortedRuleStats" :key="rs.ruleId" class="stat-card"
@@ -97,65 +129,52 @@
           鍏� {{ results.length }} 鏉¢棶棰橈紝{{ mergedResults.length }} 瀹朵紒涓�
         </div>
         <div class="table-area" style="flex:1;min-height:0">
-        <!-- 鏄庣粏瑙嗗浘锛氫竴鏉¢棶棰樹竴寮犲崱鐗� -->
+        <!-- 鏄庣粏瑙嗗浘锛氫竴鏉¢棶棰樹竴琛岋紙涓庡鍑烘ā鏉� Sheet鈥滃鏍哥粨鏋溾�濆悓娆撅級 -->
         <div v-if="viewMode === 'detail'" class="detail-cards-wrap" v-loading="loading">
           <div class="detail-toolbar">
             <el-checkbox :value="allSelected" :indeterminate="someSelected" @change="toggleSelectAll">鍏ㄩ�夊綋鍓� {{ filteredResults.length }} 鏉�</el-checkbox>
             <span class="toolbar-tip">鍕鹃�夊悗鍙壒閲忕‘璁� / 蹇界暐</span>
           </div>
-          <div v-for="row in filteredResults" :key="row.id" class="detail-card"
-               :class="{ 'card-red': row.alertLevel === 'RED', 'card-yellow': row.alertLevel === 'YELLOW', 'card-done': row.status !== 'PENDING' }">
-            <div class="card-head">
-              <el-checkbox v-model="row._selected" @change="updateBatchSelection"></el-checkbox>
-              <div class="card-ent">
-                <div class="ent-name">{{ row.enterpriseName || row.city || '鏈煡浼佷笟' }}</div>
-                <div class="ent-sub">{{ row.reportPeriod }}</div>
-              </div>
-              <el-tag :type="row.alertLevel === 'RED' ? 'danger' : 'warning'" size="small" effect="dark">{{ row.alertLevel }}</el-tag>
-              <el-tag :type="statusType(row.status)" size="small" effect="plain" class="status-tag">
-                <i :class="statusIcon(row.status)"></i> {{ statusText(row.status) }}
-              </el-tag>
-              <span class="spacer"></span>
-              <el-link v-if="dataType(reportType)" type="primary" :underline="false" size="mini" @click="goData(row)">鏁版嵁</el-link>
-              <el-tag v-if="explainType(reportType)" size="mini" :type="row.verifyExplanation ? 'success' : 'warning'"
-                       style="cursor:pointer" :title="expandedExplain === row.reportId ? '鏀惰捣瑙i噴' : '灞曞紑濉啓/鏌ョ湅瑙i噴'"
-                       @click="toggleExplain(row.reportId)">
-                {{ row.verifyExplanation ? '瑙i噴锛氬凡濉啓' : '瑙i噴锛氭湭濉啓' }}
-              </el-tag>
-              <el-button v-if="row.status === 'PENDING'" size="mini" type="success" icon="el-icon-check" round @click="review(row, 'CONFIRMED')">纭</el-button>
-              <el-button v-if="row.status === 'PENDING'" size="mini" type="info" icon="el-icon-close" round plain @click="review(row, 'IGNORED')">蹇界暐</el-button>
-              <span v-else class="done-text">宸插鐞�</span>
+          <el-table :data="filteredResults" border stripe height="100%"
+            :header-cell-style="{ background: '#F5F7FA', color: '#303133', fontWeight: 600 }">
+            <el-table-column width="40">
+              <template slot-scope="{ row }">
+                <el-checkbox v-model="row._selected" @change="updateBatchSelection"></el-checkbox>
+              </template>
+            </el-table-column>
+            <el-table-column prop="reportPeriod" label="鎶ヨ〃鏈�" width="90"></el-table-column>
+            <el-table-column label="浼佷笟/甯傚窞" min-width="200" show-overflow-tooltip>
+              <template slot-scope="{ row }">{{ row.enterpriseName || row.city || '鏈煡浼佷笟' }}</template>
+            </el-table-column>
+            <el-table-column prop="ruleCode" label="瑙勫垯缂栫爜" width="100"></el-table-column>
+            <el-table-column prop="ruleName" label="瀹℃牳瑙勫垯" min-width="150" show-overflow-tooltip></el-table-column>
+            <el-table-column label="绛夌骇" width="76">
+              <template slot-scope="{ row }">
+                <el-tag :type="row.alertLevel === 'RED' ? 'danger' : 'warning'" size="mini">{{ row.alertLevel }}</el-tag>
+              </template>
+            </el-table-column>
+            <el-table-column prop="actualValue" label="瀹為檯鍊�" min-width="230" show-overflow-tooltip></el-table-column>
+            <el-table-column prop="thresholdValue" label="闃堝��/鍩哄噯" min-width="140" show-overflow-tooltip></el-table-column>
+            <el-table-column prop="deviation" label="鍋忓樊璇存槑" min-width="170" show-overflow-tooltip></el-table-column>
+            <el-table-column label="鐘舵��" width="92">
+              <template slot-scope="{ row }">
+                <el-tag :type="statusType(row.status)" size="mini">
+                  <i :class="statusIcon(row.status)"></i> {{ statusText(row.status) }}
+                </el-tag>
+              </template>
+            </el-table-column>
+            <el-table-column label="鎿嶄綔" width="185" align="right">
+              <template slot-scope="{ row }">
+                <el-link v-if="dataType(reportType)" type="primary" :underline="false" size="mini" @click="openMonthReport(row)">鏁版嵁</el-link>
+                <el-button v-if="row.status === 'PENDING'" size="mini" type="success" icon="el-icon-check" round @click="review(row, 'CONFIRMED')">纭</el-button>
+                <el-button v-if="row.status === 'PENDING'" size="mini" type="info" icon="el-icon-close" round plain @click="review(row, 'IGNORED')">蹇界暐</el-button>
+                <span v-else class="done-text">宸插鐞�</span>
+              </template>
+            </el-table-column>
+            <div slot="empty">
+              <el-empty description="褰撳墠绛涢�夋潯浠朵笅娌℃湁闂鏁版嵁"></el-empty>
             </div>
-            <div class="card-body">
-              <div class="rule-title">
-                <b>{{ row.ruleName }}</b>
-                <span class="rule-code">{{ row.ruleCode }}</span>
-              </div>
-              <div class="card-details">
-                <div class="detail-line"><span class="dt-label">瀹為檯</span><span class="dt-val">{{ row.actualValue }}</span></div>
-                <div class="detail-line"><span class="dt-label">鍩哄噯</span><span class="dt-val">{{ row.thresholdValue }}</span></div>
-                <div class="detail-line"><span class="dt-label">宸紓</span><span class="dt-val dt-warn">{{ row.deviation }}</span></div>
-              </div>
-            </div>
-            <div v-if="explainType(reportType) && expandedExplain === row.reportId" class="explain-side" style="margin:0 12px 10px">
-              <div class="explain-head">
-                <span class="explain-title">浼佷笟瑙i噴</span>
-                <el-tag size="mini" :type="row.verifyExplanation ? 'success' : 'warning'">{{ row.verifyExplanation ? '宸插~鍐�' : '鏈~鍐�' }}</el-tag>
-                <span style="flex:1"></span>
-                <el-button size="mini" text @click="expandedExplain = null">鏀惰捣</el-button>
-              </div>
-              <span v-if="row.verifyExplanation" class="explain-cur">{{ row.verifyExplanation }}</span>
-              <el-input v-model="explainDrafts[row.reportId]" type="textarea" :rows="2" resize="none"
-                        placeholder="濉啓/淇敼璇ヤ紒涓氱殑瑙i噴璇存槑鈥�"></el-input>
-              <div class="explain-actions">
-                <el-button size="mini" type="primary" plain :loading="savingExplainId === row.reportId" @click="saveExplain(row)">淇濆瓨瑙i噴</el-button>
-                <el-button v-if="(explainDrafts[row.reportId] || '') !== (row.verifyExplanation || '')" size="mini" text @click="resetDraft(row.reportId)">閲嶇疆</el-button>
-              </div>
-            </div>
-          </div>
-          <div v-if="!filteredResults.length" class="empty-tip">
-            <el-empty description="褰撳墠绛涢�夋潯浠朵笅娌℃湁闂鏁版嵁"></el-empty>
-          </div>
+          </el-table>
         </div>
         <!-- 鍚堝苟瑙嗗浘 -->
         <el-table v-else :data="mergedResults" border stripe v-loading="loading" height="100%"
@@ -166,82 +185,242 @@
               <div style="color:#909399;font-size:12px;margin-top:2px">鍏� {{ scope.row.items.length }} 鏉¢棶棰�</div>
             </template>
           </el-table-column>
-          <el-table-column label="瀹℃牳闂鏄庣粏" min-width="520">
+          <el-table-column label="瀹℃牳闂鏄庣粏" min-width="640">
             <template slot-scope="scope">
-              <div v-for="(item, i) in scope.row.items" :key="item.id"
-                   style="padding:6px 0;border-bottom:1px dashed #EBEEF5"
-                   :class="{ 'no-border': i === scope.row.items.length - 1 }">
-                <div style="display:flex;align-items:center;flex-wrap:wrap;gap:6px">
-                  <b>{{ item.ruleName }}</b>
-                  <el-tag :type="item.alertLevel === 'RED' ? 'danger' : 'warning'" size="mini">{{ item.alertLevel }}</el-tag>
-                  <el-tag :type="statusType(item.status)" size="mini">{{ statusText(item.status) }}</el-tag>
-                  <el-link v-if="dataType(reportType)" type="primary" :underline="false" size="mini" @click="goData(item)">鏁版嵁</el-link>
+              <!-- 鍚屼竴浼佷笟鍐呭啀鎸�"瀹℃牳瑙勫垯"褰掑苟锛氬悓涓�瑙勫垯鐨勫鏉� = 璇ヤ紒涓氬鍙拌溅閮芥湁杩欎釜闂 -->
+              <div v-for="(gp, gi) in scope.row.groups" :key="gp.key" class="mr-group"
+                   :class="{ 'no-border': gi === scope.row.groups.length - 1 }">
+                <div class="mr-group-head">
+                  <b>{{ gp.ruleName }}</b>
+                  <span class="mr-code">{{ gp.ruleCode }}</span>
+                  <el-tag :type="gp.alertLevel === 'RED' ? 'danger' : 'warning'" size="mini">{{ gp.alertLevel }}</el-tag>
+                  <el-tag size="mini" type="info">{{ groupCountText(gp) }}</el-tag>
+                  <el-tag v-if="gp.pending > 0" size="mini" type="warning">{{ gp.pending }} 鍙板緟澶勭悊</el-tag>
+                  <el-tag v-else size="mini" type="success">宸插鐞�</el-tag>
+                  <el-link v-if="dataType(reportType)" type="primary" :underline="false" size="mini" @click="openMonthReport(gp.items[0])">鏁版嵁</el-link>
                   <span style="flex:1"></span>
-                  <el-button v-if="item.status === 'PENDING'" size="mini" type="success" @click="review(item, 'CONFIRMED')">纭</el-button>
-                  <el-button v-if="item.status === 'PENDING'" size="mini" type="info" @click="review(item, 'IGNORED')">蹇界暐</el-button>
+                  <el-button v-if="gp.pending > 0" size="mini" type="success" @click="reviewMany(gp.items, 'CONFIRMED')">{{ gp.items.length > 1 ? '鏈粍鍏ㄩ儴纭' : '纭' }}</el-button>
+                  <el-button v-if="gp.pending > 0" size="mini" type="info" @click="reviewMany(gp.items, 'IGNORED')">{{ gp.items.length > 1 ? '鏈粍鍏ㄩ儴蹇界暐' : '蹇界暐' }}</el-button>
                 </div>
-                <div style="color:#606266;font-size:12px;line-height:1.6;margin-top:2px">
-                  <span>瀹為檯锛歿{ item.actualValue }}</span>
-                  <span style="margin:0 8px">鍩哄噯锛歿{ item.thresholdValue }}</span>
-                  <span>宸紓锛歿{ item.deviation }}</span>
-                </div>
-              </div>
-            </template>
-          </el-table-column>
-          <el-table-column label="浼佷笟瑙i噴" width="340">
-            <template slot-scope="scope">
-              <div v-if="explainType(reportType) && scope.row.items[0]" class="explain-cell">
-                <div v-if="expandedExplain !== scope.row.items[0].reportId" class="explain-compact">
-                  <el-tag size="mini" :type="scope.row.items[0].verifyExplanation ? 'success' : 'warning'">{{ scope.row.items[0].verifyExplanation ? '宸插~鍐�' : '鏈~鍐�' }}</el-tag>
-                  <div v-if="scope.row.items[0].verifyExplanation" class="explain-preview">{{ scope.row.items[0].verifyExplanation }}</div>
-                  <el-button size="mini" text type="primary" @click="expandedExplain = scope.row.items[0].reportId">濉啓/淇敼</el-button>
-                </div>
-                <div v-else class="explain-side">
-                  <div class="explain-head">
-                    <span class="explain-title">浼佷笟瑙i噴</span>
-                    <span style="flex:1"></span>
-                    <el-button size="mini" text @click="expandedExplain = null">鏀惰捣</el-button>
-                  </div>
-                  <span v-if="scope.row.items[0].verifyExplanation" class="explain-cur">{{ scope.row.items[0].verifyExplanation }}</span>
-                  <el-input v-model="explainDrafts[scope.row.items[0].reportId]" type="textarea" :rows="2" resize="none"
-                            placeholder="濉啓/淇敼璇ヤ紒涓氱殑瑙i噴璇存槑鈥�"></el-input>
-                  <div class="explain-actions">
-                    <el-button size="mini" type="primary" plain :loading="savingExplainId === scope.row.items[0].reportId" @click="saveExplain(scope.row.items[0])">淇濆瓨瑙i噴</el-button>
-                    <el-button v-if="(explainDrafts[scope.row.items[0].reportId] || '') !== (scope.row.items[0].verifyExplanation || '')" size="mini" text @click="resetDraft(scope.row.items[0].reportId)">閲嶇疆</el-button>
+                <div class="mr-items">
+                  <div v-for="item in gp.items" :key="item.id" class="mr-item">
+                    <el-tag :type="statusType(item.status)" size="mini">{{ statusText(item.status) }}</el-tag>
+                    <span>瀹為檯锛歿{ item.actualValue }}</span>
+                    <span class="mr-sep">鍩哄噯锛歿{ item.thresholdValue }}</span>
+                    <span>宸紓锛歿{ item.deviation }}</span>
                   </div>
                 </div>
               </div>
-              <span v-else style="color:#C0C4CC;font-size:12px">鈥�</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="鎿嶄綔" width="130">
-            <template slot-scope="scope">
-              <el-button v-if="hasPending(scope.row)" size="mini" type="success" plain @click="reviewAll(scope.row, 'CONFIRMED')">鍏ㄩ儴纭</el-button>
-              <el-button v-if="hasPending(scope.row)" size="mini" type="info" plain @click="reviewAll(scope.row, 'IGNORED')">鍏ㄩ儴蹇界暐</el-button>
             </template>
           </el-table-column>
         </el-table>
         </div>
       </el-main>
     </el-container>
+
+        <el-dialog :title="monthConfig ? '鏁版嵁鏌ョ湅锛堟湀鎶ユ牱寮忥級' : '鏁版嵁鏌ョ湅'" :visible.sync="monthVisible" width="880px" top="4vh" custom-class="mr-dialog">
+          <div v-if="monthLoading" style="padding:40px 0;text-align:center;color:#909399">鍔犺浇涓��</div>
+          <div v-else-if="!monthRecords.length" style="padding:30px 0;text-align:center;color:#909399">
+            鏈煡璇㈠埌璇ヤ紒涓氥�佽鎶ヨ〃鏈熺殑濉姤鏁版嵁锛堝彲鑳借繕鏈鍏ワ級
+          </div>
+          <!-- 娌℃湁涓撳睘"鏈堟姤鏍峰紡"閰嶇疆鐨勭被鍨嬶紙濡傝兘鑰楀鎶ワ級锛氱洿鎺ユ寜鎺ュ彛杩斿洖鐨勫垪娓叉煋琛ㄦ牸 -->
+          <div v-else-if="!monthConfig" class="mr-body" style="max-height:72vh;overflow:auto">
+            <el-table :data="monthRecords" border size="small" style="width:100%">
+              <el-table-column v-for="c in monthColumns" :key="c.prop" :prop="c.prop" :label="c.label"
+                               min-width="110" show-overflow-tooltip></el-table-column>
+            </el-table>
+          </div>
+          <div v-else class="mr-body">
+            <div v-for="(rec, ri) in monthRecords" :key="ri" class="mr-card">
+              <div class="mr-title">{{ monthTitle(rec) }}</div>
+              <table class="mr-meta">
+                <tbody>
+                  <tr v-for="(m, mi) in monthMeta(rec)" :key="mi">
+                    <td class="mr-meta-k">{{ m.label }}</td>
+                    <td class="mr-meta-v">{{ fmtVal(m.value) }}</td>
+                  </tr>
+                </tbody>
+              </table>
+              <div v-for="sec in monthSections(rec)" :key="sec.title" class="mr-sec">
+                <div class="mr-sec-title">{{ sec.title }}</div>
+                <table class="mr-sec-tab" border="1">
+                  <thead>
+                    <tr>
+                      <th style="width:34%">鎸囨爣鍚嶇О</th>
+                      <th v-for="(h, hi) in sec.head" :key="hi" style="width:16.5%">{{ h }}</th>
+                    </tr>
+                  </thead>
+                  <tbody>
+                    <tr v-for="(rw, rwi) in sec.rows" :key="rwi">
+                      <td>{{ rw.label }}</td>
+                      <td v-for="(c, ci) in rw.cells" :key="ci">{{ fmtVal(c.v) }}</td>
+                    </tr>
+                  </tbody>
+                </table>
+              </div>
+              <div v-if="rec.verifyExplanation || rec.reportNotes" class="mr-note">
+                <div v-if="rec.verifyExplanation" class="mr-note-line"><b>鏍稿疄瑙i噴锛�</b>{{ rec.verifyExplanation }}</div>
+                <div v-if="rec.reportNotes" class="mr-note-line"><b>澶囨敞锛�</b>{{ rec.reportNotes }}</div>
+              </div>
+            </div>
+          </div>
+          <span slot="footer">
+            <el-button size="small" @click="monthVisible = false">鍏抽棴</el-button>
+          </span>
+        </el-dialog>
   </el-container>
 </template>
 <script>
 import AppHeader from '@/components/AppHeader.vue'
 import api from '@/api'
-const DATA_TYPE_MAP = { H2032: 'h2032', H2031: 'h2031', CITY_BUS: 'cityBus', CITY_TAXI: 'cityTaxi' }
+import { granularityOfReportType, disabledDateFor, granularityHint, snapPeriod } from '@/utils/periodGranularity'
+// 鎶ヨ〃绫诲瀷 -> 鏁版嵁鏌ョ湅閲岀殑鏁版嵁绫诲瀷锛�"鏁版嵁"閾炬帴鐐瑰紑鍚庣湅璇ヤ紒涓氳鏈熺殑濉姤鏁版嵁锛�
+// H204 璧�"杞﹁締鑳借�楀搴︽暟鎹�"锛堣兘鑰楁槑缁嗭級锛屼笌鍏跺畠绫诲瀷涓�鏍风湅鐨勬槸鏈被鍨嬭嚜宸辩殑鏁版嵁
+const DATA_TYPE_MAP = {
+  H2032: 'h2032', H2031: 'h2031', CITY_BUS: 'cityBus', CITY_TAXI: 'cityTaxi',
+  H204: 'energyVehicle'
+}
 const EXPLAIN_TYPES = ['H2032', 'H2031', 'CITY_BUS', 'CITY_TAXI']
+
+const MONTH_CFG = {
+  h2032: {
+    meta: [['鎶ヨ〃鏈�', 'reportPeriod'], ['浼佷笟鍚嶇О', 'enterpriseName'], ['缁熶竴绀句細淇$敤浠g爜', 'unifiedCreditCode'], ['濉姤鍗曚綅', 'reportUnit']],
+    sections: [
+      { title: '涓�銆佽繍鍔涙儏鍐�', head: ['杞﹁締鏁帮紙杈嗭級', '鏍囪鍚ㄤ綅鏁帮紙鍚級'], rows: [
+        ['鎬昏', ['vehicleTotal', 'tonsTotal']],
+        ['鍏朵腑锛氱壍寮曡溅', ['vehicleTractor', null]],
+        ['鎸傝溅', ['vehicleTrailer', 'tonsTrailer']],
+        ['鍏朵腑锛氶泦瑁呯杞�', ['vehicleContainer', 'tonsContainer']],
+        ['鏁磋溅', ['vehicleWhole', 'tonsWhole']]
+      ]},
+      { title: '浜屻�佽繍杈撶敓浜ф儏鍐�', head: ['璐ц繍閲忥紙鍚級', '璐х墿鍛ㄨ浆閲忥紙鍚ㄥ叕閲岋級'], rows: [
+        ['杩愯緭閲�', ['freightTotal', 'turnoverTotal']],
+        ['鍏朵腑锛氶泦瑁呯', ['freightContainer', null]],
+        ['鍏朵腑锛氱叅鐐強鍒跺搧', ['freightCoal', null]],
+        ['鐭虫补銆佸ぉ鐒舵皵鍙婂埗鍝�', ['freightOilGas', null]],
+        ['鍏朵腑锛氬師娌�', ['freightCrudeOil', null]],
+        ['閲戝睘鐭跨煶', ['freightMetalOre', null]],
+        ['鍏朵腑锛氶搧鐭跨煶', ['freightIronOre', null]],
+        ['鐭垮缓鎬у缓绛戞潗鏂�', ['freightBuilding', null]],
+        ['绮', ['freightGrain', null]]
+      ]},
+      { title: '骞冲潎鎸囨爣', head: [], rows: [
+        ['璐ц溅骞冲潎鍚ㄤ綅', ['avgTonnage', null]],
+        ['璐ц溅骞冲潎杩愯窛', ['avgDistance', null]]
+      ]},
+      { title: '濉姤浜轰俊鎭�', head: [], rows: [
+        ['鍗曚綅璐熻矗浜�', ['unitLeader', null]], ['缁熻璐熻矗浜�', ['statsLeader', null]],
+        ['濉〃浜�', ['contactPerson', null]], ['鑱旂郴鐢佃瘽', ['contactPhone', null]], ['鎶ュ嚭鏃ユ湡', ['reportDate', null]]
+      ]}
+    ]
+  },
+  h2031: {
+    meta: [['鎶ヨ〃鏈�', 'reportPeriod'], ['浼佷笟鍚嶇О', 'enterpriseName']],
+    sections: [
+      { title: '涓�銆佽繍鍔涙儏鍐�', head: ['杞﹁締鏁帮紙杈嗭級', '鏍稿畾杞藉浣嶏紙瀹綅锛�'], rows: [
+        ['鎬昏', ['vehicleTotal', 'seatTotal']],
+        ['瀹㈣繍鐝溅锛堝惈瀹氱嚎鏃呮父瀹㈣繍瀹㈣溅锛�', ['vehicleSchedule', 'seatSchedule']],
+        ['瀹㈣繍鍖呰溅锛堝惈闈炲畾绾挎梾娓稿杩愬杞︼級', ['vehicleCharter', 'seatCharter']]
+      ]},
+      { title: '浜屻�佽繍杈撶敓浜ф儏鍐�', head: ['瀹㈣繍閲忥紙浜烘锛�', '鏃呭鍛ㄨ浆閲忥紙浜哄叕閲岋級'], rows: [
+        ['鎬昏', ['passengerTotal', 'turnoverTotal']],
+        ['涓�绫诲杩愮彮绾匡紙鍚畾绾挎梾娓革級', ['passengerClass1', 'turnoverClass1']],
+        ['浜岀被瀹㈣繍鐝嚎锛堝惈瀹氱嚎鏃呮父锛�', ['passengerClass2', 'turnoverClass2']],
+        ['涓夌被瀹㈣繍鐝嚎锛堝惈瀹氱嚎鏃呮父锛�', ['passengerClass3', 'turnoverClass3']],
+        ['鍥涚被瀹㈣繍鐝嚎锛堝惈瀹氱嚎鏃呮父锛�', ['passengerClass4', 'turnoverClass4']],
+        ['瀹㈣繍鍖呰溅锛堝惈闈炲畾绾挎梾娓革級', ['passengerCharter', 'turnoverCharter']]
+      ]},
+      { title: '瀹㈣繍骞冲潎杩愯窛', head: [], rows: [
+        ['瀹㈣繍骞冲潎杩愯窛', ['avgDistanceTotal', null]],
+        ['涓�绫诲杩愮彮绾垮钩鍧囪繍璺�', ['avgDistanceClass1', null]],
+        ['浜岀被瀹㈣繍鐝嚎骞冲潎杩愯窛', ['avgDistanceClass2', null]],
+        ['涓夌被瀹㈣繍鐝嚎骞冲潎杩愯窛', ['avgDistanceClass3', null]],
+        ['鍥涚被瀹㈣繍鐝嚎骞冲潎杩愯窛', ['avgDistanceClass4', null]],
+        ['瀹㈣繍鍖呰溅骞冲潎杩愯窛', ['avgDistanceCharter', null]]
+      ]}
+    ]
+  },
+  cityBus: {
+    meta: [['鎶ヨ〃鏈�', 'reportPeriod'], ['甯傚窞', 'city'], ['浼佷笟鍚嶇О', 'enterpriseName']],
+    sections: [
+      { title: '涓�銆佸叕鍏辨苯鐢佃溅杩愯惀', head: [], rows: [
+        ['杩愯惀杞︽暟锛堣締锛�', ['opVehicles', null]], ['杩愯惀绔欑偣鎬讳釜鏁帮紙涓級', ['stopTotal', null]],
+        ['鍏朵腑锛氬煄甯傝繍钀ョ珯鐐�', ['stopCity', null]], ['瀹㈣繍閲忥紙涓囦汉娆★級', ['passengerVolume', null]],
+        ['鍏朵腑锛氬煄甯傚杩愰噺', ['passengerCity', null]], ['鏃呭鍛ㄨ浆閲忥紙涓囦汉鍏噷锛�', ['turnover', null]],
+        ['鍏朵腑锛氬煄甯傛梾瀹㈠懆杞噺', ['turnoverCity', null]]
+      ]},
+      { title: '浜屻�佹淳鐢熸寚鏍囦笌澧為��', head: [], rows: [
+        ['骞冲潎杩愯窛锛堝叕閲岋級', ['avgDistance', null]], ['鍩庡競鍐呭钩鍧囪繍璺�', ['avgDistanceCity', null]],
+        ['鍩庨檯鍩庝埂瀹㈣繍閲�', ['passengerChengxiang', null]], ['鍩庨檯鍩庝埂鍛ㄨ浆閲�', ['turnoverChengxiang', null]],
+        ['鍩庨檯鍩庝埂骞冲潎杩愯窛', ['avgDistanceChengxiang', null]], ['瀹㈣繍閲忕幆姣�', ['ratePassengerMom', null]],
+        ['鍩庡競鍐呭杩愰噺鐜瘮', ['ratePassengerCityMom', null]], ['鍩庨檯鍩庝埂瀹㈣繍閲忕幆姣�', ['rateChengxiangMom', null]],
+        ['瀹㈣繍閲忓悓姣�', ['ratePassengerYoy', null]], ['鍩庡競鍐呭杩愰噺鍗犳瘮', ['passengerCityRatio', null]],
+        ['鍩庨檯鍩庝埂瀹㈣繍閲忓崰姣�', ['chengxiangRatio', null]], ['濉〃浜�', ['contactPerson', null]],
+        ['鎶ュ嚭鏃ユ湡', ['reportDate', null]]
+      ]}
+    ]
+  },
+  cityTaxi: {
+    meta: [['鎶ヨ〃鏈�', 'reportPeriod'], ['甯傚窞', 'city'], ['浼佷笟鍚嶇О', 'enterpriseName']],
+    sections: [
+      { title: '涓�銆佸贰娓稿嚭绉熻繍钀ユ湇鍔�', head: [], rows: [
+        ['杞藉杞︽鎬绘暟锛堜竾杞︽锛�', ['tripTotal', null]], ['鍏朵腑锛氬煄甯傝浇瀹㈣溅娆�', ['tripCity', null]],
+        ['瀹㈣繍閲忥紙涓囦汉娆★級', ['passengerVolume', null]], ['鍏朵腑锛氬煄甯傚杩愰噺', ['passengerCity', null]],
+        ['鏃呭鍛ㄨ浆閲忥紙涓囦汉鍏噷锛�', ['turnover', null]], ['鍏朵腑锛氬煄甯傛梾瀹㈠懆杞噺', ['turnoverCity', null]],
+        ['杩愯惀杞﹁締鏁帮紙杈嗭級', ['opVehicles', null]]
+      ]},
+      { title: '浜屻�佹淳鐢熸寚鏍囦笌澧為��', head: [], rows: [
+        ['骞冲潎杩愯窛锛堝叕閲岋級', ['avgDistance', null]], ['鍩庡競鍐呭钩鍧囪繍璺�', ['avgDistanceCity', null]],
+        ['鍗曡溅娆¤浇瀹汉鏁�', ['passengersPerTrip', null]], ['杞藉杞︽鐜瘮', ['rateTripMom', null]],
+        ['杞藉杞︽鍚屾瘮', ['rateTripYoy', null]], ['瀹㈣繍閲忕幆姣�', ['ratePassengerMom', null]],
+        ['瀹㈣繍閲忓悓姣�', ['ratePassengerYoy', null]], ['鍩庡競鍐呭杩愰噺鍗犳瘮', ['passengerCityRatio', null]],
+        ['鍩庨檯鍩庝埂骞冲潎杩愯窛', ['avgDistanceChengxiang', null]]
+      ]}
+    ]
+  }
+}
 export default {
   components: { AppHeader },
   name: 'AuditResult',
   data() {
     return {
       period: '', reportType: 'H2032', loading: false, marking: false, results: [], ruleStats: [], statsCollapsed: false,
-      enterpriseFilter: '', ruleFilter: '', viewMode: 'merged', batchSelection: [], focusMode: false,
-      explainDrafts: {}, savingExplainId: null, expandedExplain: null
+      enterpriseFilter: '', ruleFilter: '', viewMode: 'merged', includeReminder: false, statusScope: 'all', batchSelection: [], focusMode: false,
+      explainDrafts: {}, savingExplainId: null, expandedExplain: null,
+      monthVisible: false, monthLoading: false, monthType: '', monthPeriod: '', monthKeyword: '', monthRecords: [], monthColumns: []
     }
   },
   computed: {
+    // 鎶ヨ〃绫诲瀷涓嬫媺锛堝垎缁勶紝浠�"鏁版嵁鏌ョ湅"鐨勫仛娉曪級
+    auditTypeGroups() {
+      return [
+        { key: 'freight', name: '閬撹矾璐ц繍', types: [{ value: 'H2032', label: '璐ц繍鏈堟姤锛圚203-2锛�' }] },
+        { key: 'passenger', name: '鍏矾鏃呭', types: [{ value: 'H2031', label: '鏃呭鏈堟姤锛圚203-1锛�' }] },
+        { key: 'city', name: '鍩庡競瀹㈣繍', types: [
+          { value: 'CITY_BUS', label: '鍩庡競鍏氦鏈堟姤' },
+          { value: 'CITY_TAXI', label: '宸℃父鍑虹鏈堟姤' }
+        ] },
+        { key: 'invest', name: '鎶曡祫', types: [{ value: 'INVEST', label: '鎶曡祫鏈堟姤' }] },
+        { key: 'energy', name: '璐ц繍鑳借�楀鎶�', types: [{ value: 'H204', label: '鑳借�楀鎶�' }] }
+      ]
+    },
+    // 褰撳墠鏁版嵁绫诲瀷鏄惁鏈�"鏈堟姤鏍峰紡"閰嶇疆锛堣兘鑰楃瓑娌℃湁 鈫� 鐢ㄩ�氱敤琛ㄦ牸娓叉煋锛�
+    monthConfig() { return MONTH_CFG[this.monthType] || null },
+    reportTypeLabel() {
+      for (const g of this.auditTypeGroups) {
+        const t = g.types.find(x => x.value === this.reportType)
+        if (t) return t.label
+      }
+      return this.reportType
+    },
+    // 闂鑼冨洿锛氫笉鍕�"鍚彁閱掑瀷"鏃剁瓑鍚屽師鏉ョ殑"浠呴渶鏍稿疄"锛堝鍑洪粯璁や笉鍚彁閱掑瀷锛�
+    issueScope() { return this.includeReminder ? 'all' : 'verify' },
+    periodGranularity() { return granularityOfReportType(this.reportType) },
+    periodPickerOptions() {
+      const d = disabledDateFor(this.periodGranularity)
+      return d ? { disabledDate: d } : {}
+    },
+    periodHint() { return granularityHint(this.periodGranularity) },
     ruleOptions() {
       const names = []
       this.results.forEach(r => { if (r.ruleName && names.indexOf(r.ruleName) < 0) names.push(r.ruleName) })
@@ -249,7 +428,7 @@
     },
     severityStats() {
       const s = { red: 0, yellow: 0, pending: 0, done: 0 }
-      this.results.forEach(r => {
+      this.filteredResults.forEach(r => {
         if (r.alertLevel === 'RED') s.red++
         else if (r.alertLevel === 'YELLOW') s.yellow++
         if (r.status === 'PENDING') s.pending++
@@ -269,10 +448,14 @@
     filteredResults() {
       const kw = (this.enterpriseFilter || '').trim()
       const rule = this.ruleFilter
-      if (!kw && !rule) return this.results
+      const scope = this.issueScope || 'verify'
+      const st = this.statusScope || 'all'
       return this.results.filter(r => {
         if (kw && !(r.enterpriseName || '').includes(kw)) return false
         if (rule && r.ruleName !== rule) return false
+        if (scope === 'verify' && this.isReminderRow(r)) return false
+        if (st === 'pending' && r.status !== 'PENDING') return false
+        if (st === 'handled' && (!r.status || r.status === 'PENDING')) return false
         return true
       })
     },
@@ -294,17 +477,94 @@
         map.get(key).push(r)
       })
       return Array.from(map.entries())
-        .map(([name, items]) => ({ enterpriseName: name, items }))
+        .map(([name, items]) => {
+          // 浼佷笟鍐呮寜瑙勫垯褰掑苟锛堝悓瑙勫垯澶氭潯锛濆鍙拌溅鍚屼竴闂锛�
+          const gmap = new Map()
+          items.forEach(it => {
+            const k = it.ruleCode || it.ruleName || '鏈煡瑙勫垯'
+            if (!gmap.has(k)) gmap.set(k, [])
+            gmap.get(k).push(it)
+          })
+          const groups = Array.from(gmap.entries()).map(([k, list]) => ({
+            key: k,
+            ruleName: list[0].ruleName,
+            ruleCode: list[0].ruleCode,
+            alertLevel: list[0].alertLevel,
+            items: list,
+            pending: list.filter(x => x.status === 'PENDING').length
+          })).sort((a, b) => b.items.length - a.items.length)
+          return { enterpriseName: name, items, groups }
+        })
         .sort((a, b) => b.items.length - a.items.length)
     }
   },
+  watch: {
+    // 鑳借�楋紙H204锛夋槸瀛f姤锛氬垏鍒拌兘鑰楁椂鎶婃姤琛ㄦ湡瀵归綈鍒板搴︽湯鏈�
+    periodGranularity() {
+      const snapped = snapPeriod(this.period, this.periodGranularity)
+      if (snapped && snapped !== this.period) {
+        this.period = snapped
+        const hint = granularityHint(this.periodGranularity)
+        if (hint) this.$message.warning(hint + '锛堝凡鑷姩璋冩暣涓� ' + snapped + '锛�')
+      }
+    }
+  },
   methods: {
+    isReminderRow(r) {
+      return !!(r && r.ruleCode === 'RULE_004')
+    },
     dataType(t) { return DATA_TYPE_MAP[t] || '' },
     explainType(t) { return EXPLAIN_TYPES.indexOf(t) >= 0 },
-    goData(row) {
+    openMonthReport(row) {
       const type = DATA_TYPE_MAP[this.reportType]
       if (!type) return
-      this.$router.push({ path: '/data', query: { type, period: row.reportPeriod, keyword: row.enterpriseName || row.city || '' } })
+      this.monthType = type
+      this.monthPeriod = row.reportPeriod
+      this.monthKeyword = row.enterpriseName || row.city || ''
+      this.monthRecords = []
+      this.monthColumns = []
+      this.monthVisible = true
+      this.monthLoading = true
+      api.get('/data/list', {
+        params: {
+          type, period: row.reportPeriod,
+          keyword: row.enterpriseName || row.city || '',
+          page: 1, size: 50
+        }, timeout: 60000
+      }).then(res => {
+        const d = res.data || {}
+        this.monthRecords = d.records || []
+        this.monthColumns = d.columns || []
+        if (!this.monthRecords.length) this.$message.warning('鏈煡璇㈠埌璇ヤ紒涓氳鎶ヨ〃鏈熺殑濉姤鏁版嵁锛堝彲鑳藉皻鏈鍏ワ級')
+      }).catch(e => {
+        if (e && e._toast) return
+        this.$message.error('鏈堟姤鏁版嵁鏌ヨ澶辫触')
+      }).finally(() => { this.monthLoading = false })
+    },
+    monthTitle(rec) {
+      const cfg = MONTH_CFG[this.monthType] || null
+      if (!cfg) return (this.monthKeyword || '') + '锛�' + this.monthPeriod + '锛�'
+      const name = rec.enterpriseName || rec.city || this.monthKeyword || ''
+      return name + ' ' + (rec.reportPeriod || this.monthPeriod || '') + ' 鏈堟姤鏁版嵁'
+    },
+    monthMeta(rec) {
+      const cfg = MONTH_CFG[this.monthType] || null
+      if (!cfg) return []
+      return cfg.meta.map(m => ({ label: m[0], value: rec[m[1]] })).filter(m => m.value !== undefined)
+    },
+    monthSections(rec) {
+      const cfg = MONTH_CFG[this.monthType]
+      if (!cfg) return []
+      return cfg.sections.map(sec => ({
+        title: sec.title, head: sec.head || [],
+        rows: sec.rows.map(r => ({ label: r[0], cells: (r[1] || []).map(prop => ({ prop, v: prop ? rec[prop] : null })) }))
+          .filter(rw => rw.cells.some(c => c.v !== null && c.v !== undefined && c.v !== ''))
+      })).filter(sec => sec.rows.length)
+    },
+    fmtVal(v) {
+      if (v === null || v === undefined || v === '') return '鈥�'
+      if (typeof v === 'number') return String(v)
+      return String(v)
     },
     goExplain(row) {
       this.$router.push({ path: '/explain', query: { reportType: this.reportType, keyword: row.enterpriseName || row.city || '', period: row.reportPeriod } })
@@ -433,7 +693,26 @@
     },
     exportExcel() {
       if (!this.period) { this.$message.warning('璇烽�夋嫨鎶ヨ〃鏈�'); return }
-      window.open('/api/audit/export?period=' + this.period + '&reportType=' + this.reportType)
+      const params = {
+        period: this.period,
+        reportType: this.reportType,
+        onlyVerify: this.issueScope !== 'all',
+        status: this.statusScope || 'all'
+      }
+      api.get('/audit/export', { params, responseType: 'blob' })
+        .then(res => this.downloadBlob(res, '瀹℃牳缁撴灉_' + this.period + '.xlsx'))
+        .catch(() => this.$message.error('瀵煎嚭澶辫触锛氳纭璇ユ姤琛ㄦ湡宸叉湁瀹℃牳缁撴灉'))
+    },
+    downloadBlob(res, fileName) {
+      const blob = res instanceof Blob ? res : new Blob([res], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' })
+      const url = window.URL.createObjectURL(blob)
+      const a = document.createElement('a')
+      a.href = url
+      a.download = fileName
+      document.body.appendChild(a)
+      a.click()
+      window.URL.revokeObjectURL(url)
+      document.body.removeChild(a)
     },
     review(row, status) {
       if (status === 'IGNORED') {
@@ -453,6 +732,25 @@
       api.post('/audit/review', fd, { timeout: 60000 })
         .then(() => { row.status = status; this.$message.success(status === 'CONFIRMED' ? '宸茬‘璁�' : '宸插拷鐣�') })
         .catch(e => { if (e && e._toast) return; this.$message.error('鎿嶄綔澶辫触') })
+    },
+    /** 缁勫唴鏉℃暟鏂囨锛氳溅杈嗙骇瑙勫垯 1 鏉�=1 鍙拌溅锛汦008 鏄紒涓氱骇锛堟寜浼佷笟姹囨�诲垽涓�娆★級锛屼笉鑳藉啓"鍑犲彴杞�" */
+    groupCountText(gp) {
+      if (!gp) return ''
+      if (gp.ruleCode === 'RULE_E008') return '浼佷笟姹囨�� 1 鏉�'
+      return gp.items.length + ' 鍙拌溅'
+    },
+    /** 鍚堝苟瑙嗗浘閲�"涓�鏉¤鍒欎竴缁�"鐨勬壒閲忕‘璁�/蹇界暐 */
+    reviewMany(items, status) {
+      const list = (items || []).filter(x => x.status === 'PENDING')
+      if (!list.length) return
+      if (status === 'IGNORED') {
+        this.$prompt('璇疯緭鍏ュ拷鐣ュ師鍥狅紙搴旂敤浜庤缁� ' + list.length + ' 鏉★級', '蹇界暐闂', {
+          inputPlaceholder: '鍘熷洜锛堝彲閫夛級', inputType: 'textarea', confirmButtonText: '纭畾蹇界暐', cancelButtonText: '鍙栨秷'
+        }).then(({ value }) => this.doReviewBatch(list, status, (value || '').trim()))
+          .catch(() => {})
+      } else {
+        this.doReviewBatch(list, status)
+      }
     },
     updateBatchSelection() { this.batchSelection = this.filteredResults.filter(r => r._selected) },
     toggleSelectAll(value) {
@@ -581,4 +879,41 @@
 .stat-num { color: #909399; }
 .stat-num b { font-weight: 700; }
 .hit-num { color: #E6A23C; }
+
+.mr-dialog .el-dialog__body { padding: 12px 18px; }
+.mr-body { max-height: 66vh; overflow-y: auto; }
+.mr-card { border: 1px solid #DCDFE6; border-radius: 6px; margin-bottom: 14px; overflow: hidden; }
+.mr-title { background: #409EFF; color: #fff; font-weight: 600; padding: 8px 12px; font-size: 15px; }
+.mr-meta { width: 100%; border-collapse: collapse; background: #F7F9FC; }
+.mr-meta td { border: 1px solid #EBEEF5; padding: 6px 10px; font-size: 13px; }
+.mr-meta-k { width: 120px; color: #909399; background: #F0F4FA; }
+.mr-meta-v { color: #303133; font-weight: 600; }
+.mr-sec { padding: 10px 12px 4px; }
+.mr-sec-title { font-weight: 600; color: #303133; margin: 4px 0 8px; }
+.mr-sec-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
+.mr-sec-tab th, .mr-sec-tab td { border: 1px solid #DCDFE6; padding: 5px 8px; text-align: left; color: #303133; }
+.mr-sec-tab th { background: #F5F7FA; font-weight: 600; }
+.mr-note { margin: 6px 12px 12px; background: #FDF6EC; border: 1px solid #FAECD8; border-radius: 4px; padding: 8px 10px; font-size: 12px; color: #8a6d3b; white-space: pre-wrap; word-break: break-all; }
+.mr-note-line { margin: 2px 0; }
+
+.audit-filter-bar { background:#FAFAFA; border:1px solid #EBEEF5; border-radius:8px; padding:2px 12px 0; margin-top:8px; flex:none; }
+.audit-filter-bar .el-form-item { margin-bottom:6px; }
+.audit-filter-bar .el-form-item__label { color:#606266; font-weight:600; }
+.audit-ops-card { margin-bottom:8px; }
+.audit-ops-card .el-card__body { padding:10px 12px; }
+.operation-row { display:flex; flex-wrap:wrap; gap:28px; align-items:center; }
+.operation-item { display:flex; align-items:center; gap:8px; }
+.operation-item .label { color:#606266; font-weight:600; font-size:13px; }
+.mr-group { padding:8px 0; border-bottom:1px dashed #EBEEF5; }
+.mr-group.no-border { border-bottom:none; }
+.mr-group-head { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
+.mr-code { color:#909399; font-size:12px; }
+.mr-items { margin-top:4px; padding-left:10px; border-left:2px solid #EBEEF5; }
+.mr-item { color:#606266; font-size:12px; line-height:1.9; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
+.mr-sep { color:#909399; }
+.period-hint-line { flex:none; margin:-4px 0 6px; color:#E6A23C; font-size:12px; }
+/* 鎿嶄綔鍒楋細涓や釜鎸夐挳涓婁笅鎺掑垪銆佺瓑瀹姐�佸眳涓紝琛屽唴鍨傜洿灞呬腑 */
+.row-ops { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; }
+.row-ops .el-button { width:92px; margin:0 !important; }
+.hint { color:#909399; font-size:12px; margin-left:6px; white-space:nowrap; }
 </style>

--
Gitblit v1.9.1