| | |
| | | width: 70px; |
| | | } |
| | | |
| | | /* layer */ |
| | | .layui-layer-title { |
| | | font-size: 11px; |
| | | height: 20px; |
| | | line-height: 20px; |
| | | } |
| | | |
| | | /* 主体 */ |
| | | .layui-table, .layui-table-view { |
| | | margin: 0; |
| | |
| | | |
| | | }); |
| | | |
| | | window.onload = function(){document.getElementById("code").focus();} |
| | | |
| | | function getMat() { |
| | | matCodeLayerIdx = layer.open({ |
| | | type: 2, |
| | | title: '提取物料', |
| | | maxmin: true, |
| | | area: [top.detailWidth, top.detailHeight], |
| | | shadeClose: true, |
| | | content: '../pakStore/matQuery.html', |
| | | title: '物料', |
| | | shade: [0.3,'#000'], |
| | | area: ['90%', '90%'], |
| | | content: 'matQuery.html', |
| | | success: function(layero, index){ |
| | | $('.layui-layer-title').css('height', '20px').css('line-height', '20px').css('font-size', '12px').css('padding-left', '10px') |
| | | $('.layui-layer-setwin').css("top", '2px').css('right', '3px') |
| | | } |
| | | }); |
| | | } |
| | |
| | | height: 100%; |
| | | overflow: hidden; |
| | | } |
| | | body.login-bg { |
| | | color: #777; |
| | | height: 100%; |
| | | background-image: linear-gradient(to right, #ff9569 0%, #e92758 100%); |
| | | /*background-image: linear-gradient(-90deg, #29bdd9 0%, #276ace 100%);*/ |
| | | /*background: -webkit-linear-gradient(red, blue); !* Safari 5.1 - 6.0 *!;*/ |
| | | /*background-image: url("../static/image/login_bg.jpg");*/ |
| | | /*background-repeat: no-repeat;*/ |
| | | /*background-size: cover;*/ |
| | | /*background-position: top center;*/ |
| | | } |
| | | |
| | | #login-wrapper { |
| | | box-sizing:border-box; |
| | | background: #fff; |
| | |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <body class="login-bg"> |
| | | |
| | | <div id="login-wrapper"> |
| | | <header> |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="en"> |
| | | <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> |
| | | <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all"> |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script> |
| | | <style> |
| | | |
| | | .form-box { |
| | | padding: 15px 5px 5px 5px; |
| | | font-size: 12px; |
| | | text-align: center; |
| | | } |
| | | |
| | | .form-item { |
| | | margin-bottom: 10px; |
| | | } |
| | | |
| | | .form-box span { |
| | | font-size: 12px; |
| | | display: inline-block; |
| | | text-align: right; |
| | | width: 50px; |
| | | } |
| | | .form-box input { |
| | | width: 120px; |
| | | margin-left: 10px; |
| | | padding-left: 5px; |
| | | height: 20px; |
| | | } |
| | | .form-box button { |
| | | padding: 5px 20px; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | |
| | | <div class="form-box"> |
| | | <div class="form-item"> |
| | | <span>物料编码</span> |
| | | <input id="matNo" type="text" placeholder="扫码/输入"> |
| | | </div> |
| | | <div class="form-item"> |
| | | <span>物料名称</span> |
| | | <input type="text" disabled="disabled"> |
| | | </div> |
| | | <div class="form-item"> |
| | | <span>物料描述</span> |
| | | <input type="text" disabled="disabled"> |
| | | </div> |
| | | <div class="form-item"> |
| | | <span>单位</span> |
| | | <input type="text" disabled="disabled"> |
| | | </div> |
| | | <div class="form-item"> |
| | | <span>数量</span> |
| | | <input type="number" > |
| | | </div> |
| | | <button id="confirm">提取</button> |
| | | </div> |
| | | |
| | | </body> |
| | | <script> |
| | | var pageCurr; |
| | | layui.use(['table','laydate', 'form'], function() { |
| | | var table = layui.table; |
| | | var $ = layui.jquery; |
| | | var layer = layui.layer; |
| | | var layDate = layui.laydate; |
| | | var form = layui.form; |
| | | |
| | | }); |
| | | |
| | | window.onload = function(){document.getElementById("matNo").focus();} |
| | | $(document).on('click','#confirm', function () { |
| | | }) |
| | | |
| | | $('body').keydown(function () { |
| | | if (event.keyCode === 13) { |
| | | $("#confirm").click(); |
| | | } |
| | | }); |
| | | |
| | | </script> |
| | | </html> |