From 802971e1c3f378354dbd5014a0c552f9081d4a00 Mon Sep 17 00:00:00 2001
From: cnf <3200815559@qq.com>
Date: 星期二, 26 八月 2025 13:14:05 +0800
Subject: [PATCH] 部分模块加上声音提示

---
 H5/Js/Scbl.js              |   17 +++++
 H5/Js/cprk.js              |   15 +++++
 H5/Js/Scllhb.js            |   10 +++
 H5/Js/PurchaseReturn.js    |    2 
 H5/Js/Scll.js              |    9 +++
 H5/Js/IPQC_SJ/Add.js       |    9 +++
 H5/Js/BarCfBefore.js       |    8 ++
 H5/Js/Scbg.js              |   15 +++++
 H5/Js/PurchaseInventory.js |    1 
 H5/Js/Sctl.js              |   15 +++++
 H5/Js/Sccl.js              |   20 ++++++
 H5/Js/BarCf.js             |    9 +++
 12 files changed, 130 insertions(+), 0 deletions(-)

diff --git a/H5/Js/BarCf.js b/H5/Js/BarCf.js
index 9f2065a..ad71d69 100644
--- a/H5/Js/BarCf.js
+++ b/H5/Js/BarCf.js
@@ -87,10 +87,13 @@
                         //that.barMessage = json.data.tbBillList.message;
                         //that.$refs.barcode.focus();
                         //that.formData.barcode = null;
+
+                        that.$playSound('success');
                         that.$refs.cfNum.focus();
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.barcode.focus();
                         that.formData.barcode = null;
                     }
@@ -100,6 +103,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     console.log(error);
                     that.$refs.barcode.focus();
                 });
@@ -113,10 +117,12 @@
 
             if (that.formData.cfNum * 1 <= 0) {
                 that.$toast.fail("鎷嗗垎鏁伴噺涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             if (that.formData.barcode.length * 1 <= 0) {
                 that.$toast.fail("鐗╂枡鏉$爜涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             that.isLoading = true;
@@ -134,10 +140,12 @@
                         that.$refs.barcode.focus();
                         that.formData.barcode = null;
                         that.formData.cfNum = null;
+                        that.$playSound('success');
                         that.$notify({ type: 'success', message: json.message });
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.cfNum.focus();
                     }
                     that.isLoading = false;
@@ -145,6 +153,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     console.log(error);
                 });
         },
diff --git a/H5/Js/BarCfBefore.js b/H5/Js/BarCfBefore.js
index 526f35f..eb0c438 100644
--- a/H5/Js/BarCfBefore.js
+++ b/H5/Js/BarCfBefore.js
@@ -87,10 +87,12 @@
                         //that.barMessage = json.data.tbBillList.message;
                         //that.$refs.barcode.focus();
                         //that.formData.barcode = null;
+                        that.$playSound('success');
                         that.$refs.cfNum.focus();
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.barcode.focus();
                         that.formData.barcode = null;
                     }
@@ -100,6 +102,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     console.log(error);
                     that.$refs.barcode.focus();
                 });
@@ -113,16 +116,19 @@
 
             if (that.formData.cfNum * 1 <= 0) {
                 that.$toast.fail("鎷嗗垎鏁伴噺涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             // ... existing code ...
             if (parseFloat(that.formData.cfNum) > parseFloat(that.formData.sumQuantity)) {
                 that.$toast.fail("鎷嗗垎鏁伴噺涓嶈兘澶т簬鏉$爜鏁伴噺锛�");
+                that.$playSound('error');
                 return;
             }
             // ... existing code ...
             if (that.formData.barcode.length * 1 <= 0) {
                 that.$toast.fail("鐗╂枡鏉$爜涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             that.isLoading = true;
@@ -140,6 +146,7 @@
                         that.$refs.barcode.focus();
                         that.formData.barcode = null;
                         that.formData.cfNum = null;
+                        that.$playSound('success');
                         that.$notify({ type: 'success', message: json.message });
                     }
                     else {
@@ -151,6 +158,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     console.log(error);
                 });
         },
diff --git a/H5/Js/IPQC_SJ/Add.js b/H5/Js/IPQC_SJ/Add.js
index d19e67d..cba4509 100644
--- a/H5/Js/IPQC_SJ/Add.js
+++ b/H5/Js/IPQC_SJ/Add.js
@@ -186,9 +186,11 @@
             }, true, 1).then(function (res1) {
                 if (res1.rtnCode == 1) {
                     that.tableMxData = res1.rtnData;
+                    that.$playSound('success');
 
                 } else {
                     that.$toast.fail(res1.rtnMsg);
+                    that.$playSound('error');
                 }
             }).catch(function (error) {
                 that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
@@ -201,6 +203,7 @@
 
             if (!that.inputValue) {
                 this.$toast.fail("妫�楠屽�间笉鑳戒负绌�");
+                that.$playSound('error');
                 that.isLoading = false;
                 return;
             }
@@ -222,12 +225,14 @@
                     that.$notify({
                         type: 'success', message: res1.rtnMsg
                     });
+                    that.$playSound('success');
                     that.refreshJYItem();//鍒锋柊妫�楠岄」鐩�
                     //that.handleTabClick();//鍒锋柊妫�楠屾槑缁嗛潰鏉�
                     //that.$refs.inputValue.focus();
                     that.inputValue = null;
                 } else {
                     that.$toast.fail(res1.rtnMsg);
+                    that.$playSound('error');
                     that.inputValue = null;
                 }
                 that.isLoading = false;
@@ -311,9 +316,11 @@
             }, true, 1).then(function (res1) {
                 if (res1.rtnData.outSum == 1) {
                     that.$notify({ type: 'success', message: '鎻愪氦鎴愬姛' });
+                    that.$playSound('success');
                     that.init();
                 } else {
                     that.$toast.fail(res1.rtnData.outMsg);
+                    that.$playSound('error');
                 }
                 that.ttrre = false
             }).catch(function (error) {
@@ -336,9 +343,11 @@
                 }, true, 1).then(res1 => {
                     if (res1.rtnCode == 1) {
                         that.$notify({ type: 'success', message: '閲嶆柊鍔犺浇鎴愬姛' });
+                        that.$playSound('success');
                         that.init();
                     } else {
                         that.$toast.fail(res1.rtnMsg);
+                        that.$playSound('error');
                     }
                     that.isLoading = false;
                 }).catch(error => {
diff --git a/H5/Js/PurchaseInventory.js b/H5/Js/PurchaseInventory.js
index 615bf63..10780cb 100644
--- a/H5/Js/PurchaseInventory.js
+++ b/H5/Js/PurchaseInventory.js
@@ -70,6 +70,7 @@
                     var json = res;
                     if (json.status == 0) {
                         that.depotData = json.data.tbBillList;
+                        that.$playSound('success');
                         that.$refs.barcode.focus();
                     }
                     else {
diff --git a/H5/Js/PurchaseReturn.js b/H5/Js/PurchaseReturn.js
index 4ceb63e..1624203 100644
--- a/H5/Js/PurchaseReturn.js
+++ b/H5/Js/PurchaseReturn.js
@@ -55,6 +55,7 @@
                     var json = res;
                     if (json.status == 0) {
                         that.itemOutNoList = json.data.tbBillList;
+                        that.$playSound('success');
                         that.itemOutNoStr = that.itemOutNoList.map(s => {
                             return { name: s.billNo }
                         });
@@ -133,6 +134,7 @@
                     if (json.status == 0) {
                         that.ItemDetail = json.data.tbBillList;
                         that.$refs.barcode.focus();
+                        that.$playSound('success');
                     }
                     else {
                         that.$playSound('error');
diff --git a/H5/Js/Scbg.js b/H5/Js/Scbg.js
index 119968d..78864ea 100644
--- a/H5/Js/Scbg.js
+++ b/H5/Js/Scbg.js
@@ -68,15 +68,18 @@
                         that.$refs.barcode.focus();
                     } else {
                         that.$toast("鏈壘鍒板尮閰嶇殑 鐢ㄦ埛鍚嶇О");
+                        that.$playSound('error');
                     }
                 }
                 else {
                     that.$toast.fail(json.message);
+                    that.$playSound('error');
                 }
                 that.isLoading = false;
             })
             .catch(function (error) {
                 that.isLoading = false;
+                that.$playSound('error');
                 that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
                 console.log(error);
             });
@@ -104,17 +107,20 @@
                         that.actions = json.data.tbBillList.map(item => {
                             return { name: item.staffName }
                         });
+                        that.$playSound('success');
 
                         that.stafList = json.data.tbBillList;
                     }
                     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);
                 });
         },
@@ -218,6 +224,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     console.log(error);
                 });
             // 榛樿鎯呭喌涓嬬偣鍑婚�夐」鏃朵笉浼氳嚜鍔ㄦ敹璧�
@@ -248,16 +255,19 @@
 
             if (!that.userInfo.loginAccount) {
                 this.$toast.fail("璇烽噸鏂版鏌ョ櫥褰曠姸鎬�");
+                that.$playSound('error');
                 return;
             }
 
             if (!that.barcode) {
                 this.$toast.fail("鏉$爜涓嶈兘涓虹┖");
+                that.$playSound('error');
                 return;
             }
 
             if (!that.stafId) {
                 that.$toast.fail("鍛樺伐涓嶅厑璁镐负绌�");
+                that.$playSound('error');
                 return;
             }
 
@@ -301,6 +311,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     console.log(error);
                 });
         },
@@ -313,6 +324,7 @@
 
             if (!that.userInfo.loginAccount) {
                 this.$toast.fail("璇烽噸鏂版鏌ョ櫥褰曠姸鎬�");
+                that.$playSound('error');
                 that.load = false;
                 return;
             }
@@ -337,6 +349,7 @@
 
             if (!that.sjBillNo) {
                 this.$toast.fail("閫佹鍗曞彿涓嶈兘涓虹┖");
+                that.$playSound('error');
                 that.load = false;
                 return;
             }
@@ -365,6 +378,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     console.log(error);
                 });
         },
@@ -400,6 +414,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     console.log(error);
                 });
             // 榛樿鎯呭喌涓嬬偣鍑婚�夐」鏃朵笉浼氳嚜鍔ㄦ敹璧�
diff --git a/H5/Js/Scbl.js b/H5/Js/Scbl.js
index 78c3b87..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;
             }
@@ -203,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;
             }
@@ -244,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 = "";
@@ -252,6 +267,7 @@
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.barcode.focus();
                     }
                     that.isLoading = false;
@@ -259,6 +275,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     //console.log(error);
                     that.$refs.barcode.focus();
                     that.barcode = "";
diff --git a/H5/Js/Sccl.js b/H5/Js/Sccl.js
index 9e0cad8..4153c19 100644
--- a/H5/Js/Sccl.js
+++ b/H5/Js/Sccl.js
@@ -48,12 +48,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);
                 });
         },
@@ -84,15 +86,18 @@
                     if (json.status == 0) {
                         that.ItemBlDetail = json.data.tbBillList.item;
                         that.daa001 = json.data.tbBillList.bl001;
+                        that.$playSound('success');
                     }
                     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);
                 });
         },
@@ -105,24 +110,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;
             }
@@ -143,16 +152,19 @@
                         that.sms = json.data.tbBillList.item.fum;
                         that.num = json.data.tbBillList.item.num;
                         that.ItemBlDetail = json.data.tbBillList.pendingList
+                        that.$playSound('error');
                         that.$notify({ type: 'success', message: '鎵弿鎴愬姛' });
                     }
                     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);
                 });
         },
@@ -164,30 +176,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.sms) {
                 this.$toast.fail("鍙戣揣鏁伴噺涓嶈兘涓虹┖");
+                that.$playSound('error');
                 that.isLoading = false;
                 return;
             }
@@ -204,16 +221,19 @@
                     var json = res;
                     if (json.status == 0) {
                         that.ItemBlDetail = json.data.tbBillList.pendingList;
+                        that.$playSound('success');
                         that.$notify({ type: 'success', message: '鎵弿鎴愬姛' });
                     }
                     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);
                 });
         }
diff --git a/H5/Js/Scll.js b/H5/Js/Scll.js
index 18334ca..d48712d 100644
--- a/H5/Js/Scll.js
+++ b/H5/Js/Scll.js
@@ -48,10 +48,12 @@
                         console.log(json)
                         that.ItemDetail = json.data.tbBillList;
                         that.modeInfo.planNo = json.data.tbBillList.planNo;
+                        that.$playSound('success');
                         that.$refs.barcode.focus();
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.daa001.focus();
                         that.modeInfo.daa001 = "";
                         that.modeInfo.planNo = "";
@@ -62,6 +64,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     console.log(error);
                     that.$refs.daa001.focus();
                     that.modeInfo.daa001 = "";
@@ -76,10 +79,12 @@
             var that = this;
             if (that.modeInfo.daa001.length <= 0) {
                 that.$toast.fail("宸ュ崟鍗曞彿涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             if (that.scanInfo.barcode.length * 1 <= 0) {
                 that.$toast.fail("鐗╂枡鏉$爜涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
 
@@ -101,6 +106,7 @@
                     }
                     else if (json.status == 2) {
                         that.$refs.splitNum.focus();
+                        that.$playSound('success');
                         that.scanInfo.splitNum = json.data.tbBillList.splitNum;
                         that.scanInfo.barcodeNum = json.data.tbBillList.barcodeNum;
                     }
@@ -129,14 +135,17 @@
             var that = this;
             if (that.modeInfo.daa001.length <= 0) {
                 that.$toast.fail("宸ュ崟鍗曞彿涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             if (that.scanInfo.splitNum * 1 <= 0) {
                 that.$toast.fail("鎷嗗垎鏁伴噺涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             if (that.scanInfo.barcode.length * 1 <= 0) {
                 that.$toast.fail("鐗╂枡鏉$爜涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             //that.ip = "";
diff --git a/H5/Js/Scllhb.js b/H5/Js/Scllhb.js
index 75cb99d..597336d 100644
--- a/H5/Js/Scllhb.js
+++ b/H5/Js/Scllhb.js
@@ -48,10 +48,12 @@
                         console.log(json)
                         that.ItemDetail = json.data.tbBillList;
                         that.modeInfo.planNo = json.data.tbBillList.planNo;
+                        that.$playSound('success');
                         that.$refs.barcode.focus();
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.daa001.focus();
                         that.modeInfo.daa001 = "";
                         that.modeInfo.planNo = "";
@@ -62,6 +64,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     console.log(error);
                     that.$refs.daa001.focus();
                     that.modeInfo.daa001 = "";
@@ -76,10 +79,12 @@
             var that = this;
             if (that.modeInfo.daa001.length <= 0) {
                 that.$toast.fail("姹囨姤鍗曞彿涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             if (that.scanInfo.barcode.length * 1 <= 0) {
                 that.$toast.fail("鐗╂枡鏉$爜涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
 
@@ -101,6 +106,7 @@
                     }
                     else if (json.status == 2) {
                         that.$refs.splitNum.focus();
+                        that.$playSound('success');
                         that.scanInfo.splitNum = json.data.tbBillList.splitNum;
                         that.scanInfo.barcodeNum = json.data.tbBillList.barcodeNum;
                     }
@@ -129,14 +135,17 @@
             var that = this;
             if (that.modeInfo.daa001.length <= 0) {
                 that.$toast.fail("宸ュ崟鍗曞彿涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             if (that.scanInfo.splitNum * 1 <= 0) {
                 that.$toast.fail("鎷嗗垎鏁伴噺涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             if (that.scanInfo.barcode.length * 1 <= 0) {
                 that.$toast.fail("鐗╂枡鏉$爜涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             //that.ip = "";
@@ -347,6 +356,7 @@
                 console.log('鎻愬彇鐨凞AA001:', this.modeInfo.daa001);
             } else {
                 this.$toast.fail('宸ュ崟鍙锋牸寮忓紓甯�');
+                that.$playSound('error');
                 this.modeInfo.daa001 = '';
             }
             this.getModel();
diff --git a/H5/Js/Sctl.js b/H5/Js/Sctl.js
index b757f6a..7ecfce0 100644
--- a/H5/Js/Sctl.js
+++ b/H5/Js/Sctl.js
@@ -50,12 +50,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);
                 });
         },
@@ -83,9 +85,11 @@
                     if (json.status == 0) {
                         that.ItemDetail = json.data.tbBillList;
                         that.$refs.sectionCode.focus();
+                        that.$playSound('success');
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.billNo.focus();
                         that.ItemDetail = null;
                         that.billNo = null;
@@ -95,6 +99,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     that.$refs.billNo.focus();
                     that.ItemDetail = null;
                     that.billNo = null;
@@ -115,10 +120,12 @@
                     var json = res;
                     if (json.status == 0) {
                         that.depot = json.data.tbBillList;
+                        that.$playSound('success');
                         that.$refs.barcode.focus();
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.sectionCode.focus();
                         that.depotSectionCode = null;
                     }
@@ -127,6 +134,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     that.$refs.sectionCode.focus();
                     that.depotSectionCode = null;
                     console.log(error);
@@ -141,6 +149,7 @@
 
             if (!that.billNo) {
                 this.$toast.fail("鐢宠鍗曞彿涓嶈兘涓虹┖");
+                that.$playSound('error');
                 that.$refs.billNo.focus();
                 that.isLoading = false;
                 return;
@@ -148,6 +157,7 @@
 
             if (!that.depotSectionCode) {
                 this.$toast.fail("搴撲綅缂栧彿涓嶈兘涓虹┖");
+                that.$playSound('error');
                 that.$refs.sectionCode.focus();
                 that.depotSectionCode = null;
                 that.isLoading = false;
@@ -156,6 +166,7 @@
 
             if (!that.barcode) {
                 this.$toast.fail("鏉$爜缂栧彿涓嶈兘涓虹┖");
+                that.$playSound('error');
                 that.$refs.barcode.focus();
                 that.barcode = null;
                 that.isLoading = false;
@@ -164,6 +175,7 @@
             
             if (!that.userInfo.loginAccount) {
                 this.$toast.fail(json.message);
+                that.$playSound('error');
                 return;
             }
 
@@ -179,16 +191,19 @@
 
                         that.itemNo = json.data.tbBillList.itemNo;
                         that.sms = json.data.tbBillList.num;
+                        that.$playSound('success');
                         that.$notify({ type: 'success', message: '鎵弿鎴愬姛' });
                     }
                     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);
                 });
         },
diff --git a/H5/Js/cprk.js b/H5/Js/cprk.js
index 1b9f066..2acfe43 100644
--- a/H5/Js/cprk.js
+++ b/H5/Js/cprk.js
@@ -55,6 +55,7 @@
 
                         if (that.formData.barcode == "" || that.formData.barcode == null) {
                             that.$refs.barcode.focus();
+                            that.$playSound('success');
                             that.isLoading = false;
                         } else {
                             that.getScan();
@@ -62,6 +63,7 @@
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.formData.sectionCode = null;
                         that.$refs.sectionCode.focus();
                         that.isLoading = false;
@@ -72,6 +74,7 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$playSound('error');
                     console.log(error);
                     that.formData.sectionCode = null;
                     that.$refs.sectionCode.focus();
@@ -97,6 +100,7 @@
                         //that.formData.sumQuantity = json.data.tbMesItems.quantity;
                         if (that.formData.sectionCode == "" || that.formData.sectionCode == null) {
                             that.$refs.sectionCode.focus();
+                            that.$playSound('sucess');
                             that.isLoading = false;
                         } else {
                             that.getScan();
@@ -104,6 +108,7 @@
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$playSound('error');
                         that.$refs.barcode.focus();
                         that.formData.barcode = null;
                         that.isLoading = false;
@@ -112,6 +117,7 @@
                 })
                 .catch(function (error) {
                     that.isLoading = false;
+                    that.$playSound('error');
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
                     console.log(error);
                     that.$refs.barcode.focus();
@@ -122,10 +128,12 @@
 
             if (that.formData.sectionCode.length * 1 <= 0) {
                 that.$toast.fail("搴撲綅缂栫爜涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             if (that.formData.barcode.length * 1 <= 0) {
                 that.$toast.fail("鐗╂枡鏉$爜涓嶈兘涓虹┖锛�");
+                that.$playSound('error');
                 return;
             }
             that.isLoading = true;
@@ -141,9 +149,11 @@
                         that.$refs.barcode.focus();
                         that.formData.barcode = null;
                         that.formData.cfNum = null;
+                        that.$playSound('success');
                         that.$notify({ type: 'success', message: json.message });
                     }
                     else {
+                        that.$playSound('error');
                         that.$toast.fail(json.message);
                         that.$refs.barcode.focus();
                         that.formData.barcode = null;
@@ -152,6 +162,7 @@
                 })
                 .catch(function (error) {
                     that.isLoading = false;
+                    that.$playSound('error');
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
                     console.log(error);
                 });
@@ -199,6 +210,7 @@
             this.Message = "";
             if (this.tableData.length == 0) {
                 this.Message = "鏉$爜涓虹┖锛屾棤娉曟帹閫丒RP";
+                that.$playSound('error');
                 return;
             }
             let userName = this.$loginInfo.account;
@@ -237,6 +249,7 @@
                     this.messageCenter.dealWith = 0;
                     this.messageCenter.status = 1;
                     this.messageCenter.resultData = res.msg;
+                    that.$playSound('success');
                     this.updateMessage(this.messageCenter);
                 }
             });
@@ -252,8 +265,10 @@
             }).then(res => {
                 if (res.data.tbBillList) {
                     this.Message += "  瀹℃牳鎴愬姛锛�";
+                    that.$playSound('success');
                 } else {
                     this.Message += " 瀹℃牳澶辫触锛�";
+                    that.$playSound('error');
                 }
 
                 let entity = {

--
Gitblit v1.9.3