From e1749547c76a5d8bae94e47d38d4d75b481610c1 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 09 九月 2021 10:51:15 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/pda/matQuery.html |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/src/main/webapp/views/pda/matQuery.html b/src/main/webapp/views/pda/matQuery.html
index 5768f15..7b67459 100644
--- a/src/main/webapp/views/pda/matQuery.html
+++ b/src/main/webapp/views/pda/matQuery.html
@@ -44,7 +44,6 @@
             width: 120px;
             margin-left: 10px;
             padding-left: 5px;
-            height: 30px;
             border: 1px solid #777777;
             display: inline-block;
             vertical-align: middle;
@@ -52,6 +51,7 @@
         #selectBtn {
             vertical-align: middle;
             padding: 3px 5px;
+            height: 32px;
         }
 
         #confirm {
@@ -117,6 +117,10 @@
 
 </body>
 <script>
+    var layer;
+    layui.use(['layer'], function() {
+        layer = layui.layer;
+    })
     var countDom = $('#count');
     var initMatCount = 1;
     var pageCurr;
@@ -142,7 +146,7 @@
                         $('#specs').val(res.data.specs);
                         $('#unit').val(res.data.unit);
                         countDom.val(initMatCount);
-                        $('#count').focus().select();
+                        // $('#count').focus().select();
                     }
                 } else if (res.code === 403) {
                     top.location.href = baseUrl + "/pda";
@@ -151,6 +155,13 @@
                 }
             }
         })
+    }
+
+    function findBySelect(el) {
+        $("#matnr").val(el.value);
+        find(el);
+        layer.close(matSelectIdx);
+
     }
 
     /**
@@ -167,17 +178,17 @@
     }
 
     window.onload = function(){document.getElementById("matnr").focus();}
+    var matSelectIdx;
     $(document).on('click','#selectBtn', function () {
-        var matSelectIdx = parent.layer.open({
+        matSelectIdx = layer.open({
             type: 2,
-            title: '閫夋嫨鍟嗗搧',
+            title: false,
             area: ['100%', '100%'],
             content: 'selectMat.html',
             success: function(layero, index){
-                // $('.layui-layer-title').css('font-size', '16px').css('background-color', '#fff');
+                $('.layui-layer-setwin .layui-layer-close2').hide();
             }
         });
-        parent.layer.full(matSelectIdx);
     })
 
     // $('body').keydown(function () {

--
Gitblit v1.9.1