From ce6b5be6c0e1544bcc66f9fce9efec3ced724d95 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期六, 11 七月 2020 15:46:29 +0800 Subject: [PATCH] # --- src/main/webapp/views/pdaCe/index.html | 38 +++++++++----------------------------- 1 files changed, 9 insertions(+), 29 deletions(-) diff --git a/src/main/webapp/views/pdaCe/index.html b/src/main/webapp/views/pdaCe/index.html index 1cfa243..ae2e4cb 100644 --- a/src/main/webapp/views/pdaCe/index.html +++ b/src/main/webapp/views/pdaCe/index.html @@ -3,7 +3,7 @@ <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, target-densitydpi=high-dpi, initial-scale=1.0, user-scalable=no"/> - <title>涓壃鐗╂祦</title> + <title>娴欐睙涓壃鍌ㄥ瓨璁惧鏈夐檺鍏徃</title> <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> <style> * { @@ -66,6 +66,7 @@ } #tips { font-size: 12px; + margin-top: 2px; margin-left: 10px; display: inline-block; vertical-align: middle; @@ -228,7 +229,12 @@ function comb() { var barcode = code.value; if (isEmpty(barcode)) { - tips("鎵樼洏鏉$爜涓虹┖", true); + tips("璇疯緭鍏ユ墭鐩樻潯鐮�", true); + // document.getElementById("code").focus(); + return; + } + if (barcode.length !== 8) { + tips("鏉$爜蹇呴』涓�8浣�", true); // document.getElementById("code").focus(); return; } @@ -259,7 +265,7 @@ }) } - initCrnMsgTable(); + // initCrnMsgTable(); function initCrnMsgTable(row) { var line; if (row === undefined){ @@ -468,14 +474,6 @@ } else if (key === 13) { confirmBtn.focus(); } - - // if (code1 === 13) { - // if (window.getComputedStyle(matDetail).display === 'block') { - // confirm() - // } else if (window.getComputedStyle(btnCon).display === 'block') { - // comb() - // } - // } } document.onkeydown = function (e) { @@ -485,26 +483,8 @@ if (key === 114) { comb() } - - // if (code1 === 13) { - // if (window.getComputedStyle(matDetail).display === 'block') { - // confirm() - // } else if (window.getComputedStyle(btnCon).display === 'block') { - // comb() - // } - // } } - // todo - // setTimeout(function () { - // code.value = "888" - // addTableData({ - // matNo: "1902980-11/14", - // matName: "閾濆甫|1100-O|0.33*475|", - // str1: "浠�", - // count: 1 - // }) - // }, 200) function help() { window.alert("鈶� 鎸塅1杈撳叆鏉$爜\n" + "鈶� 鎸塅2杈撳叆鐗╂枡鍙凤紝鎸塃NTER鏌ヨ锛岄�夋嫨鏁伴噺鍚庢彁鍙朶n" + -- Gitblit v1.9.1