|  |  | 
 |  |  |             position: relative; | 
 |  |  |             overflow: visible !important; | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         #mat-query { | 
 |  |  |             display: none; | 
 |  |  |         } | 
 |  |  |         #btn-comb { | 
 |  |  |             display: none; | 
 |  |  |         } | 
 |  |  |     </style> | 
 |  |  | </head> | 
 |  |  | <body> | 
 |  |  | <!-- 功能区 --> | 
 |  |  | <div class="function-area"> | 
 |  |  |     <button id="mat-query" class="function-btn" onclick="getMat()">新增</button> | 
 |  |  |  | 
 |  |  |     <!-- 站点选择框 group by -- 空库位 --> | 
 |  |  |  | 
 |  |  | <!--    <button id="mat-put" class="function-btn" onclick="putMat()">启动入库</button>--> | 
 |  |  | </div> | 
 |  |  |  | 
 |  |  | <hr> | 
 |  |  |  | 
 |  |  | <!-- 表格 --> | 
 |  |  | <div style="padding-bottom: 5px"> | 
 |  |  | <div style="padding-bottom: 5px; margin-bottom: 45px"> | 
 |  |  |  | 
 |  |  |     <!-- 头部 --> | 
 |  |  |     <script type="text/html" id="toolbar"> | 
 |  |  | 
 |  |  |  | 
 |  |  |     <!-- 行 --> | 
 |  |  |     <script type="text/html" id="operate"> | 
 |  |  |         <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="remove">移除</a> | 
 |  |  |         <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="remove">移除</a> | 
 |  |  |     </script> | 
 |  |  |  | 
 |  |  |     <table class="layui-table" id="chooseData" lay-filter="chooseData"></table> | 
 |  |  | 
 |  |  |     {{#each data}} | 
 |  |  |         <option value="{{this}}">{{this}}</option> | 
 |  |  |     {{/each}} | 
 |  |  | </script> | 
 |  |  | <script> | 
 |  |  |     $(function(){ | 
 |  |  |         $.ajax({ | 
 |  |  |             url: baseUrl+"/available/put/site", | 
 |  |  |             headers: {'token': localStorage.getItem('token')}, | 
 |  |  |             method: 'POST', | 
 |  |  |             success: function (res) { | 
 |  |  |                 if (res.code === 200){ | 
 |  |  |                     var tpl = $("#putSiteSelectTemplate").html(); | 
 |  |  |                     var template = Handlebars.compile(tpl); | 
 |  |  |                     var html = template(res); | 
 |  |  |                     $('#putSiteSelect').append(html); | 
 |  |  |                 } else if (res.code === 403){ | 
 |  |  |                     top.location.href = baseUrl+"/"; | 
 |  |  |                 }else { | 
 |  |  |                     layer.msg(res.msg) | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         }) | 
 |  |  |     }) | 
 |  |  | </script> | 
 |  |  | </body> | 
 |  |  | </html> |