Răsfoiți Sursa

feat: 优化
- 成品出入库完成后跳转登录
- 修改灯光颜色

liuyanpeng 5 luni în urmă
părinte
comite
a1106585d2

+ 1 - 0
src/finishProduct/FinishProductIn.vue

@@ -302,6 +302,7 @@ const executeInbound = async () => {
             gateController('SHOTOPEN');
 
             showNotify({ type: 'success', message: `已提交 ${count} 条成品入库记录` });
+            router.push('/');
         } else {
             showNotify({ type: 'danger', message: res.errorMessage || '添加失败' });
         }

+ 2 - 1
src/finishProduct/FinishProductOut.vue

@@ -367,7 +367,8 @@ const executeOutbound = async () => {
             gateController('SHOTOPEN');
             showNotify({ type: 'success', message: '出库成功' });
             selectedProducts.value = [];
-            await getList(); // 重新加载列表
+            router.push('/');
+            // await getList(); // 重新加载列表
         } else {
             showNotify({ type: 'danger', message: res.errorMessage });
         }

+ 4 - 4
src/hardware/Light.js

@@ -10,7 +10,7 @@
 const LIGHT_NORMAL = {
     'lightEffect': 'BREATH',  // 呼吸灯效果
     'breathParams': {
-        'color': 0x0066FF,      // 呼吸灯颜色 (蓝色: #0066FF)
+        'color': 0x0032fa,      // 呼吸灯颜色 (蓝色: #0032fa)
         'speed': 3,             // 呼吸速度 (数值越大呼吸越快)
         'lightOffInterval': 1000, // 呼吸间隔时间 (毫秒)
     },
@@ -24,7 +24,7 @@ const LIGHT_NORMAL = {
 const LIGHT_CLOSE = {
     'lightEffect': 'FLOW',     // 流动灯效果
     'flowParams': {
-        'color': 0xFFFFFF,      // 流动灯颜色 (白色: #FFFFFF)
+        'color': 0x0066FF,      // 流动灯颜色 (白色: #0066FF)
         'repeat': false,        // 是否重复播放 (false: 单次播放)
         'flowInterval': 1,      // 流动间隔 (数值越小流动越快)
     },
@@ -38,7 +38,7 @@ const LIGHT_CLOSE = {
 const LIGHT_OPEN = {
     'lightEffect': 'FLOW_RESERVE', // 反向流动灯效果
     'flowParams': {
-        'color': 0xFFFFFF,      // 流动灯颜色 (白色: #FFFFFF)
+        'color': 0x0066FF,      // 流动灯颜色 (白色: #0066FF)
         'repeat': true,        // 是否重复播放 (false: 单次播放)
         'flowInterval': 1,      // 流动间隔 (数值越小流动越快)
     },
@@ -66,7 +66,7 @@ const LIGHT_ALARM = {
 const LIGHT_RESTART = {
     'lightEffect': 'FLASH',    // 闪烁灯效果
     'flashParameters': {
-        'color': 0xFFFFFF,      // 闪烁灯颜色 (白色: #FFFFFF)
+        'color': 0x0066FF,      // 闪烁灯颜色 (白色: #0066FF)
         'lightOnInterval': 1000, // 亮灯持续时间 (毫秒)
         'lightOffInterval': 1000, // 灭灯持续时间 (毫秒)
     },