|  |  | 
 |  |  |         #selectBtn { | 
 |  |  |             vertical-align: middle; | 
 |  |  |             padding: 3px 5px; | 
 |  |  |             height: 32px; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #confirm { | 
 |  |  | 
 |  |  |  | 
 |  |  | </body> | 
 |  |  | <script> | 
 |  |  |     var layer; | 
 |  |  |     layui.use(['layer'], function() { | 
 |  |  |         layer = layui.layer; | 
 |  |  |     }) | 
 |  |  |     var countDom = $('#count'); | 
 |  |  |     var initMatCount = 1; | 
 |  |  |     var pageCurr; | 
 |  |  | 
 |  |  |                         $('#specs').val(res.data.specs); | 
 |  |  |                         $('#unit').val(res.data.unit); | 
 |  |  |                         countDom.val(initMatCount); | 
 |  |  |                         $('#count').focus().select(); | 
 |  |  |                         // $('#count').focus().select(); | 
 |  |  |                     } | 
 |  |  |                 } else if (res.code === 403) { | 
 |  |  |                     top.location.href = baseUrl + "/pda"; | 
 |  |  | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         }) | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     function findBySelect(el) { | 
 |  |  |         $("#matnr").val(el.value); | 
 |  |  |         find(el); | 
 |  |  |         layer.close(matSelectIdx); | 
 |  |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     window.onload = function(){document.getElementById("matnr").focus();} | 
 |  |  |     var matSelectIdx; | 
 |  |  |     $(document).on('click','#selectBtn', function () { | 
 |  |  |         var matSelectIdx = parent.layer.open({ | 
 |  |  |         matSelectIdx = layer.open({ | 
 |  |  |             type: 2, | 
 |  |  |             title: '选择商品', | 
 |  |  |             title: false, | 
 |  |  |             area: ['100%', '100%'], | 
 |  |  |             content: 'selectMat.html', | 
 |  |  |             success: function(layero, index){ | 
 |  |  |                 // $('.layui-layer-title').css('font-size', '16px').css('background-color', '#fff'); | 
 |  |  |                 $('.layui-layer-setwin .layui-layer-close2').hide(); | 
 |  |  |             } | 
 |  |  |         }); | 
 |  |  |         parent.layer.full(matSelectIdx); | 
 |  |  |     }) | 
 |  |  |  | 
 |  |  |     // $('body').keydown(function () { |