From f0c7bcab060507ed23c2d82d3ebe5a9af0378ea3 Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期三, 17 三月 2021 09:19:21 +0800
Subject: [PATCH] 1.0.3 全局-生成单号改为生产单号
---
src/main/webapp/views/pda/locNormalOut.html | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/src/main/webapp/views/pda/locNormalOut.html b/src/main/webapp/views/pda/locNormalOut.html
index fe564c9..9a1e3ff 100644
--- a/src/main/webapp/views/pda/locNormalOut.html
+++ b/src/main/webapp/views/pda/locNormalOut.html
@@ -46,8 +46,8 @@
<header>
<div>
<div class="layui-input-inline">
- <label class="layui-form-label">搴� 鍖�</label>
- <input class="layui-input" type="number" id="warehouse" onkeyup="findCode(this, 'warehouse')" placeholder="鎵爜 / 杈撳叆"
+ <label class="layui-form-label" style="margin-left: 32px">搴撳尯</label>
+ <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 = [];
@@ -312,5 +313,13 @@
},
});
}
+
+ function reset() {
+ $("#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