From 408b576b8aa155c9f7c8b919be3cd82be52a1da8 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期二, 25 十一月 2025 08:52:44 +0800
Subject: [PATCH] 1.标准代码更新(2025-11-25)

---
 H5/Js/Cpbd.js |   41 ++++++++++++++++++++++++++++++++++++-----
 1 files changed, 36 insertions(+), 5 deletions(-)

diff --git a/H5/Js/Cpbd.js b/H5/Js/Cpbd.js
index ec4b01b..8bf9d59 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) {
@@ -39,7 +39,14 @@
                         that.$refs.LsBar.focus();
                     }
                     else {
-                        that.$toast.fail(json.message);
+                        //that.$toast.fail(json.message);
+                        that.$dialog.alert({
+                            message: json.message,
+                            theme: 'round-button',
+                        }).then(() => {
+                            // on close
+                        });
+                        that.$playSound('error');
                         that.$refs.ZsBar.focus();
                         that.ZsBar = "";
                         that.ZsBarInfo = [];
@@ -49,7 +56,14 @@
                 })
                 .catch(function (error) {
                     that.isLoading = false;
-                    that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    //that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$dialog.alert({
+                        message: "缃戠粶閿欒锛岃閲嶈瘯锛�",
+                        theme: 'round-button',
+                    }).then(() => {
+                        // on close
+                    });
+                    that.$playSound('error');
                     that.$refs.ZsBar.focus();
                     that.ZsBar = "";
                     that.ZsBarInfo = [];
@@ -60,10 +74,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,12 +94,20 @@
                     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.$toast.fail(json.message);
+                        that.$dialog.alert({
+                            message: json.message,
+                            theme: 'round-button',
+                        }).then(() => {
+                            // on close
+                        });
+                        that.$playSound('error');
                         that.$refs.ZsBar.focus();
                         that.ZsBar = null;
                         that.LsBar = null;
@@ -93,7 +117,14 @@
                 })
                 .catch(function (error) {
                     that.isLoading = false;
-                    that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    //that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$dialog.alert({
+                        message: "缃戠粶閿欒锛岃閲嶈瘯锛�",
+                        theme: 'round-button',
+                    }).then(() => {
+                        // on close
+                    });
+                    that.$playSound('error');
                     that.$refs.ZsBar.focus();
                     that.ZsBar = null;
                     that.LsBar = null;

--
Gitblit v1.9.3