From ffd88d66e16c6c7a37135bb2631c3f1aa4b43e98 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期三, 10 九月 2025 15:22:30 +0800
Subject: [PATCH] 111

---
 H5/Js/Sctl.js |   28 ++++++++++------------------
 1 files changed, 10 insertions(+), 18 deletions(-)

diff --git a/H5/Js/Sctl.js b/H5/Js/Sctl.js
index 7ecfce0..002a44f 100644
--- a/H5/Js/Sctl.js
+++ b/H5/Js/Sctl.js
@@ -50,14 +50,12 @@
                     }
                     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,14 +82,12 @@
                     var json = res;
                     if (json.status == 0) {
                         that.ItemDetail = json.data.tbBillList;
-                        that.$refs.sectionCode.focus();
-                        that.$playSound('success');
+                        //that.$refs.sectionCode.focus();
                     }
                     else {
                         that.$toast.fail(json.message);
-                        that.$playSound('error');
                         that.$refs.billNo.focus();
-                        that.ItemDetail = null;
+                        that.ItemDetail = [];
                         that.billNo = null;
                     }
                     that.isLoading = false;
@@ -99,9 +95,8 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
-                    that.$playSound('error');
                     that.$refs.billNo.focus();
-                    that.ItemDetail = null;
+                    that.ItemDetail = [];
                     that.billNo = null;
                     console.log(error);
                 });
@@ -120,12 +115,10 @@
                     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;
                     }
@@ -134,7 +127,6 @@
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
-                    that.$playSound('error');
                     that.$refs.sectionCode.focus();
                     that.depotSectionCode = null;
                     console.log(error);
@@ -149,7 +141,6 @@
 
             if (!that.billNo) {
                 this.$toast.fail("鐢宠鍗曞彿涓嶈兘涓虹┖");
-                that.$playSound('error');
                 that.$refs.billNo.focus();
                 that.isLoading = false;
                 return;
@@ -157,7 +148,6 @@
 
             if (!that.depotSectionCode) {
                 this.$toast.fail("搴撲綅缂栧彿涓嶈兘涓虹┖");
-                that.$playSound('error');
                 that.$refs.sectionCode.focus();
                 that.depotSectionCode = null;
                 that.isLoading = false;
@@ -166,7 +156,6 @@
 
             if (!that.barcode) {
                 this.$toast.fail("鏉$爜缂栧彿涓嶈兘涓虹┖");
-                that.$playSound('error');
                 that.$refs.barcode.focus();
                 that.barcode = null;
                 that.isLoading = false;
@@ -175,7 +164,6 @@
             
             if (!that.userInfo.loginAccount) {
                 this.$toast.fail(json.message);
-                that.$playSound('error');
                 return;
             }
 
@@ -191,19 +179,23 @@
 
                         that.itemNo = json.data.tbBillList.itemNo;
                         that.sms = json.data.tbBillList.num;
-                        that.$playSound('success');
                         that.$notify({ type: 'success', message: '鎵弿鎴愬姛' });
+                        that.getMesItemTblDetailByBillNo();
+                        that.$refs.barcode.focus();
+                        that.barcode = null;
                     }
                     else {
                         that.$toast.fail(json.message);
-                        that.$playSound('error');
+                        that.$refs.barcode.focus();
+                        that.barcode = null;
                     }
                     that.isLoading = false;
                 })
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
-                    that.$playSound('error');
+                    that.$refs.barcode.focus();
+                    that.barcode = null;
                     console.log(error);
                 });
         },

--
Gitblit v1.9.3