From b942d24f2ccc466b3a13b85d0d36c30ec1671fe5 Mon Sep 17 00:00:00 2001 From: sheng <905537351@qq.com> Date: Mon, 22 Jun 2026 15:24:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E9=A2=84=E8=AD=A6=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增计划与生产预警中心 V2 页面 - 新增预警中心接口、路由和中英文文案 - 更新迁移任务列表中的预警中心状态 --- docs/迁移任务列表.md | 6 +- src/api/planning-production/alert-center.js | 59 ++++ src/locales/en.json | 45 +++ src/locales/zh-chs.json | 45 +++ src/router/modules/planning-production.js | 6 + .../alert-center/index.vue | 318 ++++++++++++++++++ 6 files changed, 476 insertions(+), 3 deletions(-) create mode 100644 src/api/planning-production/alert-center.js create mode 100644 src/views/planning-production/alert-center/index.vue diff --git a/docs/迁移任务列表.md b/docs/迁移任务列表.md index adfe489a..dd594f05 100644 --- a/docs/迁移任务列表.md +++ b/docs/迁移任务列表.md @@ -3,8 +3,8 @@ > 根据 `后台Webman界面截图对照表.md` 生成。状态以当前 V2 项目中已落地的页面目录为准。 - 总功能数:79 -- 已迁移:22 -- 未迁移:57 +- 已迁移:23 +- 未迁移:56 | 状态 | 一级模块 | 二级模块 | 三级模块 | 功能说明 | V2 目标路径 | |:---:|---|---|---|---|---| @@ -46,7 +46,7 @@ | ✅ | 计划与生产 (Planning & Production) | 生产批次管理 (Batch Management) | 批次列表 (Batch List) | 批次管理 | `src/views/planning-production/batch-management/batch-list/` | | ✅ | 计划与生产 (Planning & Production) | 生产批次管理 (Batch Management) | 批次托盘 (Tray Tracking) | 托盘跟踪与操作 | `src/views/planning-production/batch-management/tray-tracking/` | | ✅ | 计划与生产 (Planning & Production) | 生产批次管理 (Batch Management) | 生产批次不良报表 (Batch Defect Report) | 不良报表 | `src/views/planning-production/batch-management/batch-defect-report/` | -| ⬜ | 计划与生产 (Planning & Production) | 预警中心 (Alert Center) | 预警中心 (Alert Center) | 预警中心 | 待确认 | +| ✅ | 计划与生产 (Planning & Production) | 预警中心 (Alert Center) | 预警中心 (Alert Center) | 预警中心 | `src/views/planning-production/alert-center/` | | ⬜ | 计划与生产 (Planning & Production) | 生产监控 (Production Monitoring) | 物料监控 (Material Monitoring) | 物料监控 | 待确认 | | ⬜ | 计划与生产 (Planning & Production) | 生产监控 (Production Monitoring) | 电池复投管理 (Rework Management) | 返工管理 | 待确认 | | ✅ | 计划与生产 (Planning & Production) | 生产监控 (Production Monitoring) | 托盘管理 (Tray Management) | 托盘管理 | `src/views/planning-production/production-monitoring/tray-management/` | diff --git a/src/api/planning-production/alert-center.js b/src/api/planning-production/alert-center.js new file mode 100644 index 00000000..dee4b1a0 --- /dev/null +++ b/src/api/planning-production/alert-center.js @@ -0,0 +1,59 @@ +import { request } from '@/api/_service' + +const BASE = 'planning_production/produce/pin_check/' + +function apiParams (method, data = {}) { + return { + method, + platform: 'background', + ...data + } +} + +export function getPincheckWorkstation (data) { + return request({ + url: BASE + 'workstation', + method: 'get', + params: apiParams('planning_production_produce_pincheck_workstation', data) + }) +} + +export function getDevicePinCheckList (data) { + return request({ + url: BASE + 'list', + method: 'get', + params: apiParams('planning_production_produce_pincheck_list', data) + }) +} + +export function getPinCheckDetail (data) { + return request({ + url: BASE + 'detail', + method: 'get', + params: apiParams('planning_production_produce_pincheck_detail', data) + }) +} + +export function setPinCheckClean (data) { + return request({ + url: BASE + 'clean', + method: 'get', + params: apiParams('planning_production_produce_pincheck_clean', data) + }) +} + +export function setPinCheckCleanSingle (data) { + return request({ + url: BASE + 'clean_single_channel', + method: 'get', + params: apiParams('planning_production_produce_pincheck_clean_single_channel', data) + }) +} + +export function getWorkstationSearch (data) { + return request({ + url: BASE + 'search', + method: 'get', + params: apiParams('planning_production_produce_pincheck_search', data) + }) +} diff --git a/src/locales/en.json b/src/locales/en.json index 933db52f..3ae80dfd 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -994,6 +994,51 @@ "previous_process": "Previous Process", "current_process": "Current Process" } + }, + "alert_center": { + "refresh": "Refresh", + "continuous_count": "Consecutive Channel Errors (3x)", + "cumulative_count": "Cumulative Channel Errors (10x)", + "continuous": "3 Consecutive Errors", + "cumulative": "10 Cumulative Errors", + "error_channel_count": "Error Channel Count", + "last_clear_time": "Last Cleared At", + "update_time": "Update Time", + "detail_continuous": "3 Consecutive Error Details", + "detail_cumulative": "10 Cumulative Error Details", + "view_data": "View Data", + "operation": "Actions", + "detail": "Details", + "clear": "Clear", + "confirm": "Confirm", + "cancel": "Cancel", + "error_code": "Error Code", + "error_message": "Error Message", + "error_time": "Error Time", + "clear_confirm": "Confirmed resolved. Clear alarm data?", + "clear_success": "Cleared successfully", + "clear_cancel": "Operation canceled", + "prompt": "Notice", + "device_name": "Device Name", + "channel": "Channel", + "channel_no": "Channel No.", + "device_code": "Device Code", + "query": "Search", + "reset": "Reset", + "export": "Export", + "select_time": "Select Time", + "start_date": "Start Date", + "end_date": "End Date", + "workstation": "Workstation", + "select_device": "Please select device", + "select_workstation": "Please select workstation", + "please_select_time": "Please select time", + "please_select_workstation": "Please select a workstation to query", + "export_confirm_message": "Exporting requires creating a download task first. Continue?", + "create_download_task_success": "Download task created successfully", + "continuous_detail": "{device_name} ({device_code}): 3 Consecutive Error Details", + "accumulated_detail": "{device_name} ({device_code}): 10 Cumulative Error Details", + "workstation_detail": "Workstation [{device_name}] Channel Error Details" } } }, diff --git a/src/locales/zh-chs.json b/src/locales/zh-chs.json index 292f36bc..c96a0282 100644 --- a/src/locales/zh-chs.json +++ b/src/locales/zh-chs.json @@ -994,6 +994,51 @@ "previous_process": "上一工序", "current_process": "当前工序" } + }, + "alert_center": { + "refresh": "刷新", + "continuous_count": "连续3次通道异常设备数量", + "cumulative_count": "累计10次通道异常设备数量", + "continuous": "连续3次通道异常", + "cumulative": "累计10次通道异常", + "error_channel_count": "异常通道数量", + "last_clear_time": "上次清除时间", + "update_time": "更新时间", + "detail_continuous": "3次连续通道异常详情", + "detail_cumulative": "10次累计通道异常详情", + "view_data": "查看数据", + "operation": "操作", + "detail": "详情", + "clear": "清除", + "confirm": "确定", + "cancel": "取消", + "error_code": "异常码", + "error_message": "异常信息", + "error_time": "异常时间", + "clear_confirm": "此操作是已确认通道报警信息已解决,是否继续清除", + "clear_success": "清除成功!", + "clear_cancel": "已取消操作", + "prompt": "提示", + "device_name": "设备名称", + "channel": "通道", + "channel_no": "通道号", + "device_code": "设备编码", + "query": "查询", + "reset": "重置", + "export": "导出", + "select_time": "选择时间", + "start_date": "开始日期", + "end_date": "结束日期", + "workstation": "工作站", + "select_device": "请选择设备", + "select_workstation": "请选择工作站", + "please_select_time": "请选择时间", + "please_select_workstation": "请选择要查询工作站", + "export_confirm_message": "数据导出需要先创建下载任务(可在系统顶部系统下载任务中查看下载进度并下载文件),是否继续?", + "create_download_task_success": "创建下载任务成功", + "continuous_detail": "{device_name}({device_code}) 3次连续通道异常详情", + "accumulated_detail": "{device_name}({device_code}) 10次累计通道异常详情", + "workstation_detail": "【{device_name}】工作站设备通道异常详情" } } }, diff --git a/src/router/modules/planning-production.js b/src/router/modules/planning-production.js index 834e1a92..4038ff35 100644 --- a/src/router/modules/planning-production.js +++ b/src/router/modules/planning-production.js @@ -32,6 +32,12 @@ export default { meta: { ...meta, cache: true, title: '生产批次不良报表' }, component: _import('planning-production/batch-management/batch-defect-report') }, + { + path: 'produce/report/pin_check', + name: `${pre}report-pin_check`, + meta: { ...meta, cache: true, title: '预警中心' }, + component: _import('planning-production/alert-center') + }, { path: 'produce/monitor/tray_manage', name: `${pre}monitor-tray_manage`, diff --git a/src/views/planning-production/alert-center/index.vue b/src/views/planning-production/alert-center/index.vue new file mode 100644 index 00000000..566d1f54 --- /dev/null +++ b/src/views/planning-production/alert-center/index.vue @@ -0,0 +1,318 @@ + + + + +