From c2cd7bc6d350d00f4e5df6d114f68f0804cb13d1 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 11 三月 2021 17:03:51 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/pda/stockIn.html |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/views/pda/stockIn.html b/src/main/webapp/views/pda/stockIn.html
index 5a0add0..af79e22 100644
--- a/src/main/webapp/views/pda/stockIn.html
+++ b/src/main/webapp/views/pda/stockIn.html
@@ -151,6 +151,9 @@
                         matData = res.data;
                         tableIns.reload({data: res.data});
                         $('#node').focus();
+                    } else {
+                        matData = [];
+                        tableIns.reload({data: res.data});
                     }
                 } else if (res.code === 403) {
                     top.location.href = baseUrl + "/pda";
@@ -163,6 +166,7 @@
 
     function findNode(el) {
         if (isEmpty(el.value)) {
+            $('#node-ok').hide();
             return;
         }
         $.ajax({
@@ -175,7 +179,7 @@
             success: function (res) {
                 if (res.code === 200) {
                     if (res.data != null) {
-                        $('#pakin').focus();
+                        // $('#pakin').focus();
                         $('#node-ok').show();
                     } else {
                         $('#node-ok').hide();
@@ -232,10 +236,10 @@
     // 閲嶇疆
     function reset() {
         $('#code').val("");
+        $('#node').val("");
         matData = [];
         tableIns.reload({data: matData});
         $('#node-ok').hide();
-        $('#putSiteSelect').val("");
         layui.form.render('select');
     }
 

--
Gitblit v1.9.1