From b4a8d50e3d97fc9e893b554a60134e4eceb012eb Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 05 一月 2026 08:58:08 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/pda/matQuery.html |   82 ++++++++++++++++++++++++++++++++++------
 1 files changed, 69 insertions(+), 13 deletions(-)

diff --git a/src/main/webapp/views/pda/matQuery.html b/src/main/webapp/views/pda/matQuery.html
index 445781e..b25f613 100644
--- a/src/main/webapp/views/pda/matQuery.html
+++ b/src/main/webapp/views/pda/matQuery.html
@@ -26,11 +26,9 @@
             font-size: 16px;
             display: inline-block;
             text-align: right;
-            width: 70px;
         }
         .form-box input {
-            width: 120px;
-            margin-left: 10px;
+            width: 160px;
             padding-left: 5px;
             height: 30px;
             border: 1px solid #777777;
@@ -77,25 +75,61 @@
 
 <div class="form-box">
     <div class="form-item">
-        <span>鐗╂枡缂栫爜</span>
-        <input id="matNo" type="text" placeholder="鎵爜 / 杈撳叆" onkeyup="find(this)" autocomplete="off">
+        <table style="display: inline">
+            <tr>
+                <td>
+                    <span style="width: 35px; margin-right: 5px">缂栫爜</span>
+                </td>
+                <td style="text-align: left">
+                    <input id="matNo" type="text" placeholder="鎵爜 / 杈撳叆" onkeyup="find(this)" autocomplete="off">
+                </td>
+            </tr>
+        </table>
     </div>
     <div class="form-item">
-        <span>鐗╂枡鍚嶇О</span>
-        <input id="matName" type="text" disabled="disabled">
+        <table style="display: inline">
+            <tr>
+                <td style="vertical-align: top">
+                    <span style="width: 35px; margin-right: 5px">鍚嶇О</span>
+                </td>
+                <td style="text-align: left">
+                    <textarea rows="4" style="width: 165px; resize: none" id="matName" type="text" disabled="disabled" readonly="readonly"></textarea>
+                </td>
+            </tr>
+        </table>
     </div>
     <div class="form-item">
-        <span>鐗╂枡瑙勬牸</span>
-        <input id="str2" type="text" disabled="disabled">
+        <table style="display: inline">
+            <tr>
+                <td>
+                    <span style="width: 35px; margin-right: 5px">瑙勬牸</span>
+                </td>
+                <td style="text-align: left">
+                    <input id="str2" type="text" disabled="disabled">
+                </td>
+            </tr>
+        </table>
     </div>
     <div class="form-item">
-        <span>鍗曚綅</span>
-        <input id="str1" type="text" disabled="disabled">
+        <table style="display: inline">
+            <tr>
+                <td>
+                    <span style="width: 35px; margin-right: 5px">鍗曞彿</span>
+                </td>
+                <td style="text-align: left">
+                    <input id="mnemonic" type="text" autocomplete="off">
+                </td>
+            </tr>
+        </table>
     </div>
+    <!--<div class="form-item">-->
+        <!--<span>鍗曚綅</span>-->
+        <!--<input id="str1" type="text" disabled="disabled">-->
+    <!--</div>-->
     <div class="form-item">
         <span style="vertical-align: middle">鏁伴噺</span>
         <div class="number-tool" style="vertical-align: middle">
-            <button onclick="reduce()">-</button><input id="count" type="number"><button onclick="add()">+</button>
+            <button onclick="reduce()">-</button><input id="count" type="number" min="1" onblur="checkCount()"><button onclick="add()">+</button>
         </div>
     </div>
     <button id="confirm" onclick="confirm()">鎻愬彇</button>
@@ -103,6 +137,11 @@
 
 </body>
 <script>
+    var layer;
+    layui.use(['table', 'laydate', 'form'], function () {
+        var layer = layui.layer;
+    });
+
     var countDom = $('#count');
     var initMatCount = 1;
     var pageCurr;
@@ -146,8 +185,17 @@
         var data = {
             matNo: $('#matNo').val(),
             matName: $('#matName').val(),
-            count: countDom.val()
+            count: countDom.val(),
+            mnemonic: $("#mnemonic").val()
         };
+        var pdaUrl = window.document.referrer;
+        if (pdaUrl.indexOf("areaType") == -1) {
+            if (isEmpty(data.mnemonic)) {
+                layer.msg("璇疯緭鍏ョ敓浜у崟鍙�");
+                return;
+            }
+        }
+
         parent.addTableData(data);
         parent.layer.close(parent.matCodeLayerIdx);
     }
@@ -182,5 +230,13 @@
         }
     }
 
+    // 鏍℃鏈�灏忔暟閲�
+    function checkCount() {
+        var countValue = $("#count").val();
+        if (countValue <= 0) {
+            $("#count").val(1);
+        }
+    }
+
 </script>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1