From ce6b5be6c0e1544bcc66f9fce9efec3ced724d95 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 11 七月 2020 15:46:29 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/pda/locDetlIframe.html |   28 ++++++++++++++++++++++++++--
 1 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/views/pda/locDetlIframe.html b/src/main/webapp/views/pda/locDetlIframe.html
index 7d11731..62ad122 100644
--- a/src/main/webapp/views/pda/locDetlIframe.html
+++ b/src/main/webapp/views/pda/locDetlIframe.html
@@ -68,8 +68,8 @@
         }
 
         .form-button {
-            margin-top: 10px;
-            padding: 5px 20px;
+            margin: 5px 10px 0 10px;
+            padding: 5px 15px;
         }
     </style>
 </head>
@@ -94,10 +94,34 @@
         </div>
     </div>
     <button class="form-button" id="save" onclick="save()">淇濆瓨</button>
+    <button class="form-button" id="remove" onclick="remove()">绉婚櫎</button>
 </div>
 </body>
 <script>
     var countDom = $('#count');
+
+    function save() {
+        if (countDom.val() <= 1) {
+            alert("鏁伴噺蹇呴』澶т簬0")
+            return;
+        }
+        parent.updateTableData({
+            locNo: $('#locNo').val(),
+            matnr: $('#matnr').val(),
+            maktx: $('#maktx').val(),
+            count: countDom.val()
+        })
+        parent.layer.closeAll();
+    }
+
+    function remove() {
+        parent.removeTableData({
+            locNo: $('#locNo').val(),
+            matnr: $('#matnr').val(),
+        })
+        parent.layer.closeAll();
+    }
+
     function add() {
         countDom.val(Number(countDom.val()) + 1);
     }

--
Gitblit v1.9.1