From 7e10d92be344a9bdbf6d8aa12ad6ccf8b713e5ce Mon Sep 17 00:00:00 2001
From: cnf <3200815559@qq.com>
Date: 星期二, 02 九月 2025 16:16:13 +0800
Subject: [PATCH] 生产领料增加物料筛选

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

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);
                 });
         }

--
Gitblit v1.9.3