Pārlūkot izejas kodu

Merge branch 'master' of https://git.leanwo.com/Chengfei_LiTiKu/client-wms-board

liuyanpeng 4 mēneši atpakaļ
vecāks
revīzija
2649a6ed3e

+ 9 - 0
src/Fingerprint/FingerprintEnroll.vue

@@ -183,6 +183,15 @@ const handleFingerprintResponse = data => {
     const code = data.code;
     const msg = data.message || '';
 
+    
+    if(msg === '请抬起手指'){
+        //播放提示音
+        plugin.soundPlay.playLift();
+    }else if(msg === '请按压手指'){
+        //播放提示音
+        plugin.soundPlay.playPress();
+    }
+
     if (code === 0) {
         statusText.value = msg || '指纹录入成功!';
         

+ 11 - 15
src/hardware/Light.js

@@ -5,7 +5,7 @@
 /**
  * 正常状态灯光配置
  * 用于闸机待机或正常通行状态
- * 效果:呼吸灯 - 绿色缓慢呼吸效果
+ * 效果:呼吸灯 - 绿色缓慢呼吸效果  STATIC_COLOR 静态灯  BREATH 呼吸灯
  */
 const LIGHT_NORMAL = {
     'lightEffect': 'BREATH',  // 呼吸灯效果
@@ -18,29 +18,25 @@ const LIGHT_NORMAL = {
 
 /**
  * 开门状态灯光配置
- * 用于闸机开门允许通行状态
+ * 用于闸机开门允许通行状态  FLOW   flowParams repeat false  flowInterval 1
  * 效果:流动灯 - 白色单向流动效果
  */
 const LIGHT_CLOSE = {
-    'lightEffect': 'FLOW',     // 流动灯效果
-    'flowParams': {
-        'color': 0x0066FF,      // 流动灯颜色 (白色: #0066FF)
-        'repeat': false,        // 是否重复播放 (false: 单次播放)
-        'flowInterval': 1,      // 流动间隔 (数值越小流动越快)
+    'lightEffect': 'STATIC_COLOR',     // 静态灯效果
+    'staticColorParams': {
+        'color': 0x0066FF,      // 灯颜色 (蓝色: #0066FF)
     },
 };
 
 /**
- * 关门状态灯光配置
- * 用于闸机关闭禁止通行状态
- * 效果:反向流动灯 - 白色反向流动效果
+ * 关门状态灯光配置 
+ * 用于闸机关闭禁止通行状态 #0011FF #0066FF
+ * 效果:反向流动灯 - 白色反向流动效果 FLOW_RESERVE  flowParams repeat true  flowInterval 1 
  */
 const LIGHT_OPEN = {
-    'lightEffect': 'FLOW_RESERVE', // 反向流动灯效果
-    'flowParams': {
-        'color': 0x0066FF,      // 流动灯颜色 (白色: #0066FF)
-        'repeat': true,        // 是否重复播放 (false: 单次播放)
-        'flowInterval': 1,      // 流动间隔 (数值越小流动越快)
+    'lightEffect': 'STATIC_COLOR', // 静态灯效果
+    'staticColorParams': {
+        'color': 0x0066FF,      // 灯颜色 (蓝色: #0066FF)
     },
 };
 

+ 3 - 0
src/login/FingerprintLogin.vue

@@ -197,6 +197,9 @@ const handleFingerprintResponse = data => {
                     router.push('/home');
                 }
                 checkPasswordReminder();
+
+                //登录成功播放提示音
+                plugin.soundPlay.playLogin();
             }, 1000);
         }
     } else {

+ 9 - 0
src/login/UserHome.vue

@@ -49,6 +49,10 @@
               <i class="fas fa-door-open mr-2" />
               <span>闸机控制</span>
             </div>
+            <div v-if="isAdmin" class="dropdown-item" @click="updatePassward">
+              <i class="fas fa-truck mr-2" />
+              <span>修改密码</span>
+            </div>
 
             <!-- 调试使用 -->
             <div v-if="isOutMenu" class="dropdown-item" @click="toggleMenu">
@@ -552,6 +556,11 @@ const goControlGate = () => {
     router.push('/control-gate');
 };
 
+// 修改密码
+const updatePassward = () => {
+    isUpdatePassword.value = true;
+};
+
 // 跳转到异常停泊区页面
 const goAbnormalArea = () => {
     showSettings.value = false;

+ 2 - 0
src/login/UserLogin.vue

@@ -271,6 +271,8 @@ const handleLogin = async () => {
             }
             // checkPasswordReminder();
             checkAwayAbnormalCar();
+            //登录成功播放提示音
+            plugin.soundPlay.playLogin();
         } else {
             showNotify({ type: 'danger', message: res.errorMessage });
         }

+ 1 - 1
src/stock-out/OutboundConfirm.vue

@@ -113,7 +113,7 @@
       <!-- 底部操作按钮 -->
       <div class="bottom-actions">
         <button class="submit-btn" @click="hasValidMaterials ? handleLeaveClick() : directExit()">
-          {{ hasValidMaterials ? '借用离开' : '直接出仓库' }}
+          {{ hasValidMaterials ? '闸机开门' : '直接出仓库' }}
           <span v-if="hasValidMaterials && selectedCount > 0">({{ selectedCount }})</span>
         </button>
       </div>