Let me examine the current measure report page's filter area and summary section.
Let me read the filter state, filter logic, summary generation, and the filter/batch JSX sections.
Let me read the filter logic, summary generation, and the filter/batch JSX sections.
Now let me read the filter JSX area (790-850) and the MultiSelect helper, plus the batch params JSX (1126-1185).
Now let me read the left panel date picker and the filter JSX area (700-850).
Now let me read the batch params JSX (1126-1200) and check available data constants (measureTypes, wellGroupTree, SNAPSHOT_DATE).
Let me check the data constants and imports at the top of the file.
Let me check the SNAPSHOT_DATE constant and the data's measureEndDate values.
Now I have full context. Let me implement the changes. First, add startOfMonth to the date-fns import:
Now let me add the new filter state (措施状态 and 措施结束日期) and add a list of snapshot dates for the calendar dots.
Now let me add a snapshot-dates constant and 井区 options near the top constants. The 井区 single-select uses wellGroupTree, but the PRD wants 井区 as a separate filter. Looking at the existing design, the left panel already has the 井组树 for 井区 selection. The PRD lists 井区 as a 下拉单选 in the filter row. I'll add it as a filter dropdown that syncs with selectedGroup. Let me add the snapshot dates constant:
Now update the filter logic to incorporate 措施状态 and 措施结束日期 with the linkage rules described in the PRD.
Now requirement 2: remove batch content from the summary. Let me update the summary generation to remove the batch line and batch variables.
Now remove the batch line from the overview text:
Now update the useMemo dependency array to remove batchNo/batchTotalWells, and remove the batch state declarations and batch JSX. First the dependency array:
Now remove the batch state declarations:
Now remove the batch params JSX block in the summary panel:
Now let me add the calendar dots to the 日报日期 picker (green for snapshot dates, red for none). Let me update the Calendar in the left panel:
Now add the 措施状态, 措施结束日期, and 井区 filters to the filter row. Let me update the filter row JSX. I'll add 井区 (单选, syncs with selectedGroup), 措施状态 (多选), and 措施结束日期 (区间) after 井号.
I used Select/SelectItem/etc. — I need to import them. Let me add the import:
Now update resetFilters to reset the new filters:
Now let me type-check.
No errors. Let me verify in the browser.
The filter row now shows 井号、措施状态、措施结束日期(默认当月 2026-04-01 ~ 2026-04-22)、井区、措施类型、连油队伍、作业队伍、重置. Let me test the 措施状态="施工中" linkage and verify the summary no longer has batch content. Let me select 施工中 first.
The summary now shows only the two paragraphs (总体运行情况 + 效果分析) with no batch line and no batch parameter inputs. I notice a corrupted character "��" in line 2 of the effect text ("累计影响产油22.5��吨" should be "吨"). Let me fix that pre-existing encoding issue.
Both changes are complete. Let me do a final type-check to confirm everything is clean.
两项修改均已完成并通过浏览器验证:
1、筛选项按大纲调整:日报日期选择器现按"有效果快照"日期显示绿点、无快照显示红点并附图例;新增"措施状态"(多选,默认全部)、"措施结束日期"(区间选择器,默认本月1日至今日)、"井区"(下拉单选,与左侧井组树联动)三个筛选项。三者联动逻辑已实现——勾选"施工中"时强制展示全部施工中措施并忽略结束日期筛选(按钮置灰),勾选"已完成"时按结束日期区间筛选,"全部"时两者并集。重置按钮一并恢复所有新筛选项默认值。
2、总结去批次化:总结文案中移除了"X月第N批M口井…"批次段落,并删除了对应的批次号/总井数维护输入框及相关状态变量;同时顺手修复了文案中一处乱码字符。
Let me check whether the Badge import is still used elsewhere in the file.
Badge is no longer used, so let me remove its import.
已移除措施日报页面"日报日期"右侧的绿色"只读"标签,并删除了不再使用的 Badge 组件导入。