From 32274bc8fad5251f78229d67d86c234a4b32df2e Mon Sep 17 00:00:00 2001
From: cnf <3200815559@qq.com>
Date: 星期四, 11 九月 2025 17:34:32 +0800
Subject: [PATCH] 销售与其他出入库功能挪移

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

diff --git a/H5/Js/Scbl.js b/H5/Js/Scbl.js
index 5f3725d..d407253 100644
--- a/H5/Js/Scbl.js
+++ b/H5/Js/Scbl.js
@@ -56,12 +56,14 @@
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                     }
                     that.isLoading = false;
                 })
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     console.log(error);
                 });
         },
@@ -88,9 +90,11 @@
                         that.ItemDetail = json.data.tbBillList;
                         that.daa001 = json.data.tbBillList.daa001;
                         that.$refs.barcode.focus();
+                        that.$playSound('success');
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.billNo.focus();
                         that.billNo = "";
                         that.daa001 = "";
@@ -101,6 +105,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     //console.log(error);
                     tthat.$refs.billNo.focus();
                     that.billNo = "";
@@ -121,24 +126,28 @@
 
             if (!that.userInfo.loginAccount) {
                 this.$toast.fail("璇烽噸鏂版鏌ョ櫥褰曠姸鎬�");
+                that.$playSound('error');
                 that.isLoading = false;
                 return;
             }
 
             if (!that.barcode) {
                 this.$toast.fail("鏉$爜涓嶈兘涓虹┖");
+                that.$playSound('error');
                 that.isLoading = false;
                 return;
             }
 
             if (!that.billNo) {
                 this.$toast.fail("琛ユ枡鍗曞彿涓嶈兘涓虹┖");
+                that.$playSound('error');
                 that.isLoading = false;
                 return;
             }
 
             if (!that.daa001) {
                 this.$toast.fail("宸ュ崟鍙蜂笉鑳戒负绌�");
+                that.$playSound('error');
                 that.isLoading = false;
                 return;
             }
@@ -169,12 +178,14 @@
                         
 
                     } else if (json.status == 2) {
+                        that.$playSound('error');
                         that.$refs.splitNum.focus();
                         that.splitNum = json.data.cfNum;
                         that.num = json.data.num;
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.barcode.focus();
                         that.barcode = "";
                         that.num = "";
@@ -184,6 +195,7 @@
                 })
                 .catch(function (error) {
                     that.isLoading = false;
+                    that.$playSound('error');
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
                     //console.log(error);
                     that.$refs.barcode.focus();
@@ -200,30 +212,35 @@
 
             if (!that.userInfo.loginAccount) {
                 this.$toast.fail("璇烽噸鏂版鏌ョ櫥褰曠姸鎬�");
+                that.$playSound('error');
                 that.isLoading = false;
                 return;
             }
 
             if (!that.barcode) {
                 this.$toast.fail("鏉$爜涓嶈兘涓虹┖");
+                that.$playSound('error');
                 that.isLoading = false;
                 return;
             }
 
             if (!that.billNo) {
                 this.$toast.fail("琛ユ枡鍗曞彿涓嶈兘涓虹┖");
+                that.$playSound('error');
                 that.isLoading = false;
                 return;
             }
 
             if (!that.daa001) {
                 this.$toast.fail("宸ュ崟鍙蜂笉鑳戒负绌�");
+                that.$playSound('error');
                 that.isLoading = false;
                 return;
             }
 
             if (!that.splitNum) {
                 this.$toast.fail("鍙戣揣鏁伴噺涓嶈兘涓虹┖");
+                that.$playSound('error');
                 that.isLoading = false;
                 return;
             }
@@ -241,6 +258,7 @@
                     if (json.status == 0) {
                         that.ItemBlDetail = json.data.pendingList;
                         that.$notify({ type: 'success', message: '鎵弿鎴愬姛' });
+                        that.$playSound('success');
                         that.$refs.barcode.focus();
                         that.barcode = "";
                         that.num = "";
@@ -249,6 +267,7 @@
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.barcode.focus();
                     }
                     that.isLoading = false;
@@ -256,6 +275,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     //console.log(error);
                     that.$refs.barcode.focus();
                     that.barcode = "";

--
Gitblit v1.9.3