From 47ae3682d3d9253331df420044e93827cf13597d Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期五, 12 九月 2025 11:21:58 +0800
Subject: [PATCH] 1.调拨入库缓存修改

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

diff --git a/H5/Js/Sctl.js b/H5/Js/Sctl.js
index f798b1f..002a44f 100644
--- a/H5/Js/Sctl.js
+++ b/H5/Js/Sctl.js
@@ -82,12 +82,12 @@
                     var json = res;
                     if (json.status == 0) {
                         that.ItemDetail = json.data.tbBillList;
-                        that.$refs.sectionCode.focus();
+                        //that.$refs.sectionCode.focus();
                     }
                     else {
                         that.$toast.fail(json.message);
                         that.$refs.billNo.focus();
-                        that.ItemDetail = null;
+                        that.ItemDetail = [];
                         that.billNo = null;
                     }
                     that.isLoading = false;
@@ -96,7 +96,7 @@
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
                     that.$refs.billNo.focus();
-                    that.ItemDetail = null;
+                    that.ItemDetail = [];
                     that.billNo = null;
                     console.log(error);
                 });
@@ -186,12 +186,16 @@
                     }
                     else {
                         that.$toast.fail(json.message);
+                        that.$refs.barcode.focus();
+                        that.barcode = null;
                     }
                     that.isLoading = false;
                 })
                 .catch(function (error) {
                     that.isLoading = false;
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    that.$refs.barcode.focus();
+                    that.barcode = null;
                     console.log(error);
                 });
         },

--
Gitblit v1.9.3