From 4b39ba4b5bcd7fce3f167fc6014985dd72fc7d13 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 09 七月 2020 14:39:41 +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