From 65fd6feeeda0fba59dd93f2ea1a39311e5293289 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期一, 18 八月 2025 09:52:13 +0800
Subject: [PATCH] 1.内箱核对添加音效 2.产品绑定优化 3.核对送检优化 4.界面优化 5.AGV送检 6.核对送检线体选择 7.AGV呼叫

---
 H5/Js/Cpbd.js |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/H5/Js/Cpbd.js b/H5/Js/Cpbd.js
index ece0de9..bb144f8 100644
--- a/H5/Js/Cpbd.js
+++ b/H5/Js/Cpbd.js
@@ -28,7 +28,7 @@
             var that = this;
             that.isLoading = true;
             that.AxiosHttp("post", 'Womdaa/getZsBarInfo', {
-                Xt: that.GX,
+                GX: that.GX,
                 Zsbarcode: that.ZsBar
             }, false)
                 .then(function (res) {
@@ -40,6 +40,7 @@
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.ZsBar.focus();
                         that.ZsBar = "";
                         that.ZsBarInfo = [];
@@ -50,6 +51,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     that.$refs.ZsBar.focus();
                     that.ZsBar = "";
                     that.ZsBarInfo = [];
@@ -60,10 +62,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;
             }
 
@@ -78,15 +82,17 @@
                     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.ZsBar = null;
+                        that.LsBar = null;
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.ZsBar.focus();
                         that.ZsBar = null;
-                        that.ZsBar = null;
+                        that.LsBar = null;
                     }
                     
                     that.isLoading = false;
@@ -94,9 +100,10 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     that.$refs.ZsBar.focus();
                     that.ZsBar = null;
-                    that.ZsBar = null;
+                    that.LsBar = null;
                 });
         },
         //鎵撳嵃鏈烘敞閲�

--
Gitblit v1.9.3