From d9cd01b4a8ff8f02d155a02d832a7ea407f180e6 Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期二, 16 三月 2021 15:29:29 +0800
Subject: [PATCH] 1.0.3 pda-优化库区输入提示
---
src/main/webapp/views/pda/locNormalOut.html | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/main/webapp/views/pda/locNormalOut.html b/src/main/webapp/views/pda/locNormalOut.html
index 31cce18..9a1e3ff 100644
--- a/src/main/webapp/views/pda/locNormalOut.html
+++ b/src/main/webapp/views/pda/locNormalOut.html
@@ -47,7 +47,7 @@
<div>
<div class="layui-input-inline">
<label class="layui-form-label" style="margin-left: 32px">搴撳尯</label>
- <input class="layui-input" type="number" id="warehouse" onkeyup="findCode(this, 'warehouse')" placeholder="鎵爜 / 杈撳叆"
+ <input class="layui-input" id="uuid" onkeyup="findCode(this, 'uuid')" placeholder="鎵爜 / 杈撳叆"
autocomplete="off">
</div>
<div class="layui-input-inline">
@@ -105,7 +105,7 @@
// 琛ㄦ牸鏁版嵁
var normalOutList = [];
window.onload = function () {
- document.getElementById("warehouse").focus();
+ document.getElementById("uuid").focus();
}
/**
@@ -176,8 +176,9 @@
/* 鎵爜銆佽緭鍏ュ簱鍖哄拰鐗╂枡缂栫爜 */
function findCode(el, type) {
switch (type) {
- case 'warehouse':
+ case 'uuid':
warehouseBar = el.value;
+ exist('uuid', 'locArea');
break;
case 'matnr':
matnrBar = el.value;
@@ -279,7 +280,7 @@
return;
}
// 搴撳尯璧嬪��
- var warehouse = $('#warehouse').val();
+ var warehouse = $('#uuid').val();
data.map(function (item) {
item.warehouse = warehouse;
});
@@ -297,7 +298,7 @@
if (res.code === 200) {
layer.msg("鍑哄簱鎴愬姛");
$("#matnr").val(null);
- $("#warehouse").val(null);
+ $("#uuid").val(null);
warehouseBar = null;
matnrBar = null;
normalOutList = [];
@@ -314,10 +315,11 @@
}
function reset() {
- $("#warehouse").val(null);
+ $("#uuid").val(null);
$("#matnr").val(null);
normalOutList = [];
tableIns.reload({data: normalOutList});
+ layer.closeAll();
}
</script>
</html>
\ No newline at end of file
--
Gitblit v1.9.1