From fcd8089a36829c200face755080be10ee66a1969 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 07 十二月 2021 09:54:16 +0800
Subject: [PATCH] #
---
src/main/webapp/views/pda/matQuery.html | 48 ++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 40 insertions(+), 8 deletions(-)
diff --git a/src/main/webapp/views/pda/matQuery.html b/src/main/webapp/views/pda/matQuery.html
index 18638fc..7b67459 100644
--- a/src/main/webapp/views/pda/matQuery.html
+++ b/src/main/webapp/views/pda/matQuery.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script>
<style>
.form-box {
- padding: 15px 5px 5px 5px;
+ padding: 15px 5px 5px 0px;
font-size: 16px;
text-align: center;
}
@@ -26,6 +26,7 @@
display: inline-block;
text-align: right;
width: 70px;
+ vertical-align: middle;
}
.form-box input {
width: 120px;
@@ -36,14 +37,23 @@
overflow:hidden;
white-space:nowrap;
text-overflow:ellipsis;
+ vertical-align: middle;
}
.form-box textarea {
+ height: 60px;
width: 120px;
margin-left: 10px;
padding-left: 5px;
- height: 30px;
border: 1px solid #777777;
+ display: inline-block;
+ vertical-align: middle;
}
+ #selectBtn {
+ vertical-align: middle;
+ padding: 3px 5px;
+ height: 32px;
+ }
+
#confirm {
margin-top: 10px;
padding: 5px 20px;
@@ -82,13 +92,14 @@
<body>
<div class="form-box">
- <div class="form-item">
+ <div class="form-item" style="padding-left: 33px;">
<span>鍟嗗搧缂栫爜</span>
<input id="matnr" type="text" placeholder="鎵爜 / 杈撳叆" onkeyup="find(this)" autocomplete="off">
+ <button id="selectBtn">閫�</button>
</div>
<div class="form-item">
- <span style="float: left;margin-left: 38px">鍟嗗搧鍚嶇О</span>
- <textarea id="maktx" type="text" disabled="disabled" style="height: 60px;float: left;"></textarea>
+ <span>鍟嗗搧鍚嶇О</span>
+ <textarea id="maktx" type="text" disabled="disabled"></textarea>
<div style="clear: both"></div>
</div>
<div class="form-item">
@@ -106,6 +117,10 @@
</body>
<script>
+ var layer;
+ layui.use(['layer'], function() {
+ layer = layui.layer;
+ })
var countDom = $('#count');
var initMatCount = 1;
var pageCurr;
@@ -131,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";
@@ -140,6 +155,13 @@
}
}
})
+ }
+
+ function findBySelect(el) {
+ $("#matnr").val(el.value);
+ find(el);
+ layer.close(matSelectIdx);
+
}
/**
@@ -156,7 +178,17 @@
}
window.onload = function(){document.getElementById("matnr").focus();}
- $(document).on('click','#confirm', function () {
+ var matSelectIdx;
+ $(document).on('click','#selectBtn', function () {
+ matSelectIdx = layer.open({
+ type: 2,
+ title: false,
+ area: ['100%', '100%'],
+ content: 'selectMat.html',
+ success: function(layero, index){
+ $('.layui-layer-setwin .layui-layer-close2').hide();
+ }
+ });
})
// $('body').keydown(function () {
@@ -186,4 +218,4 @@
}
</script>
-</html>
\ No newline at end of file
+</html>
--
Gitblit v1.9.1