From 973c780bf6544568a19b01ec27cff0ed8945d77d Mon Sep 17 00:00:00 2001 From: sheng <905537351@qq.com> Date: Mon, 22 Jun 2026 17:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E7=94=B5=E6=B1=A0=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=8A=A5=E8=A1=A8=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/功能测试-电池详情报表.md | 23 ++++ docs/迁移任务列表.md | 6 +- .../production-reports/battery-detail.js | 23 ++++ src/locales/en.json | 21 +++ src/locales/zh-chs.json | 21 +++ src/router/modules/data-platform.js | 6 + .../battery-detail/index.vue | 123 ++++++++++++++++++ 7 files changed, 220 insertions(+), 3 deletions(-) create mode 100644 docs/功能测试-电池详情报表.md create mode 100644 src/api/data-platform/production-reports/battery-detail.js create mode 100644 src/views/data-platform/production-reports/battery-detail/index.vue diff --git a/docs/功能测试-电池详情报表.md b/docs/功能测试-电池详情报表.md new file mode 100644 index 00000000..50f406fb --- /dev/null +++ b/docs/功能测试-电池详情报表.md @@ -0,0 +1,23 @@ +# 功能测试 - 电池详情报表 + +> 模块:数据中台 / 生产报表 / 电池详情报表 (Battery Detail Report) +> 路由:`/data_middleground/produce/report/battery-detail` + +## 测试任务列表 + +| 序号 | 测试项 | 操作步骤 | 预期结果 | +|---:|---|---|---| +| 1 | 页面入口 | 进入电池详情报表页面 | 页面显示工艺流程、批次、工序、托盘、时间筛选项 | +| 2 | 工艺选择 | 选择工艺流程 | 批次和工序下拉数据按工艺刷新 | +| 3 | 批次必填校验 | 不选批次点击查询 | 页面提示请选择批次 | +| 4 | 查询报表 | 选择批次和筛选条件后查询 | 表格按动态表头展示电池详情数据 | +| 5 | 分页切换 | 查询出多页数据后切换分页 | 当前页数据刷新,总数正确 | +| 6 | 导出任务 | 选择批次后点击导出并确认 | 创建导出任务成功并跳转任务页面 | +| 7 | 重置功能 | 点击重置 | 筛选项、动态表头、表格和分页清空 | +| 8 | 国际化检查 | 切换中英文语言 | 页面文案随语言切换 | + +## 回归关注点 + +- 查询前必须先获取动态表头。 +- 导出任务 action 必须为 `download`。 +- 后端返回嵌套表头时需要展开为可展示列。 diff --git a/docs/迁移任务列表.md b/docs/迁移任务列表.md index 83d5e197..87e4e308 100644 --- a/docs/迁移任务列表.md +++ b/docs/迁移任务列表.md @@ -3,8 +3,8 @@ > 根据 `后台Webman界面截图对照表.md` 生成。状态以当前 V2 项目中已落地的页面目录为准。 - 总功能数:79 -- 已迁移:33 -- 未迁移:46 +- 已迁移:34 +- 未迁移:45 | 状态 | 一级模块 | 二级模块 | 三级模块 | 功能说明 | V2 目标路径 | |:---:|---|---|---|---|---| @@ -85,7 +85,7 @@ | ✅ | 数据中台 (Data Platform) | 基础追溯 (Traceability) | 托盘追溯 (Tray Traceability) | 托盘追溯 | `src/views/data-platform/traceability/tray/` | | ✅ | 数据中台 (Data Platform) | 基础追溯 (Traceability) | 电池追溯 (Battery Traceability) | 电池追溯 | `src/views/data-platform/traceability/battery/` | | ✅ | 数据中台 (Data Platform) | 生产报表 (Production Reports) | 设备履历报表 (Equipment History Report) | 设备履历报表 | `src/views/data-platform/production-reports/equipment-history/` | -| ⬜ | 数据中台 (Data Platform) | 生产报表 (Production Reports) | 电池详情报表 (Battery Detail Report) | | 待确认 | +| ✅ | 数据中台 (Data Platform) | 生产报表 (Production Reports) | 电池详情报表 (Battery Detail Report) | 电池详情报表 | `src/views/data-platform/production-reports/battery-detail/` | | ⬜ | 数据中台 (Data Platform) | 相关性分析 (Correlation Analysis) | 鹰眼 (Hawkeye) | | 待确认 | ## 状态说明 diff --git a/src/api/data-platform/production-reports/battery-detail.js b/src/api/data-platform/production-reports/battery-detail.js new file mode 100644 index 00000000..708daf9d --- /dev/null +++ b/src/api/data-platform/production-reports/battery-detail.js @@ -0,0 +1,23 @@ +import { request } from '@/api/_service' + +const BASE = 'planning_production/produce/battery_details_report/' + +function dataParams (method, data = {}, platform = 'api') { + return { method, platform, ...data } +} + +export function getBatteryDetailTitle (data) { + return request({ url: BASE + 'battery_details_title', method: 'post', data: dataParams('production_report_battery_details_title', data) }) +} + +export function getBatteryDetailList (data) { + return request({ url: BASE + 'battery_details_list', method: 'post', data: dataParams('production_report_battery_details_list', data) }) +} + +export function getBatteryDetailFlowBatch (data) { + return request({ url: BASE + 'battery_details_flow_batch', method: 'get', params: dataParams('production_report_battery_details_flow_batch', data) }) +} + +export function createBatteryDetailExportTask (data) { + return request({ url: BASE + 'battery_details_task', method: 'post', data: dataParams('system_exporttask_battery_details_task', data, 'admin') }) +} diff --git a/src/locales/en.json b/src/locales/en.json index a209c10d..2b65a3b0 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1356,6 +1356,27 @@ "duration": "Duration", "remark": "Remark", "no_data": "No data" + }, + "battery_detail": { + "query": "Search", + "reset": "Reset", + "export": "Export", + "flow": "Process Flow", + "select_flow": "Select process flow", + "batch": "Batch", + "select_batch": "Select batch", + "process": "Process", + "select_process": "Select process", + "tray_no": "Tray No.", + "enter_tray_no": "Enter tray no.", + "time": "Completion Time", + "start_date": "Start Time", + "end_date": "End Time", + "no_data": "No data", + "please_select_batch": "Select batch", + "export_confirm": "Create battery detail export task?", + "prompt": "Prompt", + "create_download_task_success": "Download task created successfully" } } } diff --git a/src/locales/zh-chs.json b/src/locales/zh-chs.json index 0b482d4b..eccd29f7 100644 --- a/src/locales/zh-chs.json +++ b/src/locales/zh-chs.json @@ -1356,6 +1356,27 @@ "duration": "持续时长", "remark": "备注", "no_data": "暂无数据" + }, + "battery_detail": { + "query": "查询", + "reset": "重置", + "export": "导出", + "flow": "工艺流程", + "select_flow": "请选择工艺流程", + "batch": "批次", + "select_batch": "请选择批次", + "process": "工序", + "select_process": "请选择工序", + "tray_no": "托盘号", + "enter_tray_no": "请输入托盘号", + "time": "完成时间", + "start_date": "开始时间", + "end_date": "结束时间", + "no_data": "暂无数据", + "please_select_batch": "请选择批次", + "export_confirm": "确认创建电池详情报表导出任务?", + "prompt": "提示", + "create_download_task_success": "创建下载任务成功" } } } diff --git a/src/router/modules/data-platform.js b/src/router/modules/data-platform.js index be6784ca..d101770b 100644 --- a/src/router/modules/data-platform.js +++ b/src/router/modules/data-platform.js @@ -49,6 +49,12 @@ export default { name: `${pre}report-equipment-history`, meta: { ...meta, cache: true, title: '设备履历报表' }, component: _import('data-platform/production-reports/equipment-history') + }, + { + path: 'produce/report/battery-detail', + name: `${pre}report-battery-detail`, + meta: { ...meta, cache: true, title: '电池详情报表' }, + component: _import('data-platform/production-reports/battery-detail') } ])('data_middleground-') } diff --git a/src/views/data-platform/production-reports/battery-detail/index.vue b/src/views/data-platform/production-reports/battery-detail/index.vue new file mode 100644 index 00000000..ec6f481b --- /dev/null +++ b/src/views/data-platform/production-reports/battery-detail/index.vue @@ -0,0 +1,123 @@ + + + + +