From 4fa476d234d8bd37e4518ca224e628580258be57 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 28 七月 2020 15:51:56 +0800
Subject: [PATCH] #当前本版十分完美、冻结
---
src/main/webapp/views/pda/stockIn.html | 4 ++--
src/main/webapp/views/pda/comb.html | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/views/pda/comb.html b/src/main/webapp/views/pda/comb.html
index 06dbc6c..c3931c3 100644
--- a/src/main/webapp/views/pda/comb.html
+++ b/src/main/webapp/views/pda/comb.html
@@ -20,7 +20,7 @@
<header>
<div class="layui-input-inline">
<label class="layui-form-label">鏉$爜</label>
- <input class="layui-input" type="number" id="code" onkeyup="findCode(this)" maxlength="8" placeholder="鎵爜 / 杈撳叆" autocomplete="off">
+ <input class="layui-input" type="number" id="code" onkeyup="findCode(this)" oninput="if(value.length>8)value=value.slice(0,8)" placeholder="鎵爜 / 杈撳叆" autocomplete="off">
</div>
<div style="margin: 5px 5px">
<button id="mat-btn" type="button" class="layui-btn layui-btn-normal" onclick="getMat()"><i class="layui-icon">+</i>鎻愬彇</button>
@@ -94,7 +94,7 @@
var matData = [];
function addTableData(data) {
if (isEmpty(data.matName)){
- tips("鎻愬彇澶辫触");
+ tips("鎻愬彇澶辫触", true);
return;
}
let toPush = true;
diff --git a/src/main/webapp/views/pda/stockIn.html b/src/main/webapp/views/pda/stockIn.html
index 524252a..a2b72d8 100644
--- a/src/main/webapp/views/pda/stockIn.html
+++ b/src/main/webapp/views/pda/stockIn.html
@@ -72,7 +72,7 @@
<header>
<div class="layui-input-inline">
<label class="layui-form-label">鏉$爜</label>
- <input class="layui-input" type="number" id="code" onkeyup="findCode(this)" maxlength="8" placeholder="鎵爜 / 杈撳叆" autocomplete="off">
+ <input class="layui-input" type="number" id="code" onkeyup="findCode(this)" oninput="if(value.length>8)value=value.slice(0,8)" placeholder="鎵爜 / 杈撳叆" autocomplete="off">
</div>
<div style="margin: 5px 5px" class="layui-form">
<button id="mat-btn" type="button" class="layui-btn layui-btn-normal" onclick="getMat()"><i class="layui-icon">+</i>鎻愬彇</button>
@@ -182,7 +182,7 @@
var matData = [];
function addTableData(data) {
if (isEmpty(data.matName)){
- tips("鎻愬彇澶辫触");
+ tips("鎻愬彇澶辫触", true);
return;
}
let toPush = true;
--
Gitblit v1.9.1