From 169720903b00d3caf5514f2e814951fc1f8441f3 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期日, 31 八月 2025 21:59:24 +0800
Subject: [PATCH] 1.多组织切换 2.生产领料组织信息显示

---
 H5/Js/Nxhd.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/H5/Js/Nxhd.js b/H5/Js/Nxhd.js
index c761c81..4b350ad 100644
--- a/H5/Js/Nxhd.js
+++ b/H5/Js/Nxhd.js
@@ -45,6 +45,7 @@
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.ZsBar.focus();
                         that.ZsBar = "";
                         that.ZsBarInfo = [];
@@ -55,6 +56,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     that.$refs.ZsBar.focus();
                     that.ZsBar = "";
                     that.ZsBarInfo = [];
@@ -70,10 +72,12 @@
             var that = this;
             if (that.ZsBar.length <= 0) {
                 that.$toast.fail("鍚庣洊鐮佷笉鑳戒负绌猴紒");
+                that.$playSound('error');
                 return;
             }
             if (that.LsBar.length <= 0) {
                 that.$toast.fail("绠辩爜涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
 
@@ -88,12 +92,14 @@
                     if (json.status == 0) {
                         // that.scanInfo = json.data.tbBillList;
                         that.$notify({ type: 'success', message: json.message });
+                        that.$playSound('success');
                         that.$refs.ZsBar.focus();
                         that.ZsBar = null;
                         that.LsBar = null;
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.ZsBar.focus();
                         that.ZsBar = null;
                         that.LsBar = null;
@@ -104,6 +110,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     that.$refs.ZsBar.focus();
                     that.ZsBar = null;
                     that.LsBar = null;

--
Gitblit v1.9.3