From 9fcd3cc350bdc8c1db8477081f73b9388103a1a1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BE=90=E6=98=9F?=
<10947742+xu-xing9@user.noreply.gitee.com>
Date: Tue, 31 Mar 2026 16:30:42 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0+1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/app/components/Sidebar.vue | 4 +-
src/app/pages/CalibrationRecords.vue | 13 +-
src/app/pages/Dashboard.vue | 2 +-
src/app/pages/DeviceDetail.vue | 11 -
src/app/pages/DeviceModelManagement.vue | 4 +-
src/app/pages/RepairOrderDetail.vue | 353 +++++-------------------
src/app/router.ts | 2 +
7 files changed, 89 insertions(+), 300 deletions(-)
diff --git a/src/app/components/Sidebar.vue b/src/app/components/Sidebar.vue
index 58eb529..3af7078 100644
--- a/src/app/components/Sidebar.vue
+++ b/src/app/components/Sidebar.vue
@@ -41,7 +41,7 @@ const menuGroups = [
{ title: '授权', items: [{ path: '/licenses', label: '授权管理' }, { path: '/activation', label: '激活管理' }] },
{ title: '固件', items: [{ path: '/firmware', label: '固件库' }, { path: '/firmware-upgrade', label: '升级任务' }] },
{ title: '配置', items: [{ path: '/config-files', label: '配置管理' }] },
- { title: '校准', items: [{ path: '/calibration', label: '校准记录' }] },
- { title: '维修', items: [{ path: '/repair-orders', label: '维修工单' }, { path: '/repair-stats', label: '维修统计' }, { path: '/scrap', label: '报废回收' }] },
+ { title: '校准', items: [{ path: '/calibration', label: '校准管理' }] },
+ { title: '维修', items: [{ path: '/repair', label: '维修工单' }, { path: '/repair/stats', label: '维修统计' }, { path: '/scrap', label: '报废回收' }] },
]
diff --git a/src/app/pages/CalibrationRecords.vue b/src/app/pages/CalibrationRecords.vue
index 26df734..7cb4083 100644
--- a/src/app/pages/CalibrationRecords.vue
+++ b/src/app/pages/CalibrationRecords.vue
@@ -12,7 +12,7 @@ interface CalibrationRecord {
const calibrationRecords: CalibrationRecord[] = [
{
- boardSn: 'AC20240308001',
+ boardSn: 'RX20240308001',
deviceSn: 'GD30-2025-000001',
calibrationDate: '2024-03-01',
calibrator: '王工程师',
@@ -20,16 +20,16 @@ const calibrationRecords: CalibrationRecord[] = [
status: '合格',
},
{
- boardSn: 'AC20240308002',
- deviceSn: 'GT20-2025-000045',
+ boardSn: 'RX20240308002',
+ deviceSn: 'GD20-2025-000045',
calibrationDate: '2024-03-05',
calibrator: '李工程师',
expiryDate: '2025-03-05',
status: '合格',
},
{
- boardSn: 'AC20240308003',
- deviceSn: 'GTXD-2025-000023',
+ boardSn: 'RX20240308003',
+ deviceSn: 'GD10-2025-000023',
calibrationDate: '2024-03-08',
calibrator: '张工程师',
expiryDate: '2025-03-08',
@@ -65,7 +65,7 @@ const getStatusStyle = (status: CalibrationRecord['status']) => {
-
采集板校准记录
+
校准管理
管理采集板校准数据
@@ -186,7 +186,6 @@ const getStatusStyle = (status: CalibrationRecord['status']) => {
-
diff --git a/src/app/pages/Dashboard.vue b/src/app/pages/Dashboard.vue
index 869a5cb..3600d6d 100644
--- a/src/app/pages/Dashboard.vue
+++ b/src/app/pages/Dashboard.vue
@@ -71,7 +71,7 @@
-
待处理任务
+
通知
diff --git a/src/app/pages/DeviceDetail.vue b/src/app/pages/DeviceDetail.vue
index d74fe6e..5f9f13d 100644
--- a/src/app/pages/DeviceDetail.vue
+++ b/src/app/pages/DeviceDetail.vue
@@ -131,10 +131,6 @@
授权文件
-
@@ -162,13 +158,6 @@
配置同步时间
2024-03-01 10:35
-
diff --git a/src/app/pages/DeviceModelManagement.vue b/src/app/pages/DeviceModelManagement.vue
index 737239a..e20bf59 100644
--- a/src/app/pages/DeviceModelManagement.vue
+++ b/src/app/pages/DeviceModelManagement.vue
@@ -94,7 +94,7 @@ const checklistData = ref({
{ id: 4, text: '系统启动正常', type: 'bool', required: true, note: '' },
{ id: 5, text: '整体功能测试', type: 'bool', required: true, note: '' },
],
- GTXD: [
+ GM10: [
{ id: 1, text: '主板SN扫码绑定主机', type: 'text', required: true, note: '唯一SN' },
{ id: 2, text: '传感器模块连接', type: 'bool', required: true, note: '' },
{ id: 3, text: '接口板安装', type: 'bool', required: true, note: '' },
@@ -153,7 +153,7 @@ const boardVersionData = [
status: 'active',
},
{
- boardType: '测控板',
+ boardType: '发射板',
requiredVersion: 'v1.5.x',
validationRule: '版本号前缀必须为 v1.5',
status: 'active',
diff --git a/src/app/pages/RepairOrderDetail.vue b/src/app/pages/RepairOrderDetail.vue
index 79bf91c..b55b49f 100644
--- a/src/app/pages/RepairOrderDetail.vue
+++ b/src/app/pages/RepairOrderDetail.vue
@@ -1,17 +1,20 @@
@@ -19,300 +22,96 @@ const processingTimeline = [
-
-
-
-
-
工单信息
-
+
+
+
工单信息
+
+
工单号:{{ orderId }}
-
-
-
-
创建时间
-
2024-03-08 09:00
-
-
-
-
预计完成时间
-
2024-03-09 18:00
+ 状态:
+
🔧 处理中
+
优先级:高
+
创建时间:2024-02-25 14:20:00
+
维修人员:李工
+
预计修复:2024-02-28
-
-
-
设备信息
-
-
-
设备SN号
-
GD30-2025-000001
-
-
-
-
-
-
+
+
+
设备信息
+
+
设备SN:GD30-2024-000056
+
设备型号:GD30-Supreme
+
固件版本:v3.2.0
+
硬件版本:A1
+
客户:XX地质勘探公司
-
-
-
故障信息
-
-
-
-
-
故障描述
-
- 设备在野外作业时突然关机,之后无法重新启动。检查电源连接正常,充电器工作正常,初步判断为主控板损坏。
-
-
+
+
+
故障信息
+
+
故障类型:综合故障
+
故障描述:采集板AC-2024-0001无法正常工作,引起数据采集异常
+
初判结果:自动点采集板验证不通过,无法获取测量数据
-
-
-
处理记录
-
-
-
-
-
-
-
-
-
- {{ entry.action }}
- {{ entry.time }}
- 操作人:{{ entry.operator }}
-
-
- {{ entry.description }}
-
-
-
-
-
-
-
-
-
-
板卡更换记录
-
-
-
-
旧板卡
-
主控板 MB20231215001
-
-
-
-
新板卡
-
主控板 MB20240308001
-
-
-
更换时间
-
2024-03-08 14:00
-
-
-
-
-
-
-
-
-
授权处理
+
+
+
+
+
+
板卡更换记录
+
+
原板卡:AC-2024-0001 硬件版本: A1 状态: 已换下
+
新板卡:AC-2024-0003 硬件版本: A1 状态: 已安装
+
更换时间:2024-02-26 09:20:00
+
更换人员:李工
-
-
-
报废处理
-
-
-
-
-
-
警告:报废操作不可逆
-
- 报废后设备将无法恢复使用,请谨慎操作
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 采集板 AC20240308002
-
-
- 测控板 CT20240308003
-
-
- 电源模块 PS20240308004
-
-
-
-
-
-
-
-
-
- 报废流程:
- 申请报废 → 创建报废单 → 报废审批 → 物料回收 → 入库
-
+
+
+
授权处理
+
板卡更换后,需要重新生成授权文件
+
+
+
+
处理授权
-
-
- 取消
-
-
- 关闭工单
-
-
-
- 申请报废
-
+
+ 取消
+ 关闭工单
diff --git a/src/app/router.ts b/src/app/router.ts
index 0630351..26e293d 100644
--- a/src/app/router.ts
+++ b/src/app/router.ts
@@ -17,6 +17,8 @@ export const router = createRouter({
{ path: 'licenses/generate', component: () => import('./pages/LicenseGenerate.vue') },
{ path: 'activation', component: () => import('./pages/ActivationManagement.vue') },
{ path: 'calibration', component: () => import('./pages/CalibrationRecords.vue') },
+ { path: 'repair', component: () => import('./pages/RepairOrders.vue') },
+ { path: 'repair/stats', component: () => import('./pages/RepairStats.vue') },
{ path: 'repair/:orderId', component: () => import('./pages/RepairOrderDetail.vue') },
{ path: 'scrap', component: () => import('./pages/ScrapManagement.vue') },
{ path: 'firmware', component: () => import('./pages/FirmwareLibrary.vue') },