| <!DOCTYPE html> | 
| <html lang="en"> | 
| <head> | 
|     <meta charset="utf-8"> | 
|     <title></title> | 
|     <meta name="renderer" content="webkit"> | 
|     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | 
|     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | 
|     <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all"> | 
|     <link rel="stylesheet" href="../../static/css/admin.css?v=318" media="all"> | 
|     <link rel="stylesheet" href="../../static/css/cool.css" media="all"> | 
|   | 
|     <style> | 
|         html { | 
|             height: 100%; | 
|             padding: 10px; | 
|             background-color: #f1f1f1; | 
|             box-sizing: border-box; | 
|         } | 
|         body { | 
|             background-color: #fff; | 
|             border-radius: 5px; | 
|             box-shadow: 0 0 3px rgba(0,0,0,.3); | 
|         } | 
|   | 
|         /* search */ | 
|         .layui-card-header { | 
|             border-bottom: none; | 
|         } | 
|         .search-box { | 
|             padding: 30px 0 10px 0; | 
|         } | 
|         #search-box .layui-inline:first-child { | 
|             margin-left: 30px; | 
|         } | 
|         #search-box .layui-inline { | 
|             margin-right: 5px; | 
|         } | 
|   | 
|         #data-search-btn { | 
|             margin-left: 10px; | 
|             display: inline-block; | 
|         } | 
|         #data-search-btn.layui-btn-container .layui-btn { | 
|             margin-right: 20px; | 
|         } | 
|   | 
|         /* add */ | 
|         .function-area { | 
|             padding: 15px 0 20px 40px; | 
|         } | 
|         .function-btn { | 
|             font-size: 16px; | 
|             padding: 1px 1px 1px 1px; | 
|             width: 120px; | 
|             height: 40px; | 
|             border-color: #2b425b; | 
|             border-radius: 4px; | 
|             border-width: 1px; | 
|             background: none; | 
|             border-style: solid; | 
|             transition: 0.4s; | 
|             cursor: pointer; | 
|         } | 
|         .function-btn1 { | 
|             font-size: 16px; | 
|             padding: 1px 1px 1px 1px; | 
|             width: 150px; | 
|             height: 40px; | 
|             border-color: #2b425b; | 
|             border-radius: 4px; | 
|             border-width: 1px; | 
|             background: none; | 
|             border-style: solid; | 
|             transition: 0.4s; | 
|             cursor: pointer; | 
|         } | 
|         .function-btn:hover { | 
|             background-color: #2b425b; | 
|             color: #fff; | 
|         } | 
|         .function-btn1:hover { | 
|             background-color: #2b425b; | 
|             color: #fff; | 
|         } | 
|   | 
|         #mat-query { | 
|             /*display: none;*/ | 
|         } | 
|         #btn-adjust { | 
|             /*display: none;*/ | 
|         } | 
|   | 
|         .layui-table-cell { | 
|             text-align: center; | 
|             line-height: 20px !important; | 
|             vertical-align: middle; | 
|             height: auto; | 
|             overflow: visible; | 
|             text-overflow: inherit; | 
|             white-space: normal; | 
|   | 
|         } | 
|         .table-header-fixed { | 
|             top: 0; | 
|             position: fixed; | 
|             z-index: 999; | 
|         } | 
|         /* ------------------------- 打印表格 -----------------------  */ | 
|         .template-preview { | 
|             height: 200px; | 
|             display: inline-block; | 
|         } | 
|         .contain td { | 
|             border: 1px solid #000; | 
|             /*font-family: 黑体;*/ | 
|             /*font-weight: bold;*/ | 
|             /*color: #000000;*/ | 
|         } | 
|     </style> | 
| </head> | 
| <body style="padding-bottom: 30px"> | 
|   | 
| <hr> | 
|   | 
| <!-- 功能区 --> | 
| <div class="function-area"> | 
| <!--    <button id="rework" style="alignment: right" class="function-btn">重做</button>--> | 
|     <button id="updateZpallet" style="alignment: right; display: none" class="function-btn1">换包装/托盘/缠膜</button>  | | 
|     <button id="sellout" style="alignment: right; display: none" class="function-btn">出库</button> | 
| <!--    <button id="pickup" style="alignment: right" class="function-btn">取货</button>  |--> | 
|     <button id="returned" style="alignment: right; display: none" class="function-btn">退回</button> | 
|     <button id="updateOwner" style="alignment: right; display: none" class="function-btn">变更主体</button> | 
| </div> | 
|   | 
| <!-- 搜索栏 --> | 
| <div id="search-box" > | 
|     <div class="layui-form layui-card-header"> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
|                 <input class="layui-input" type="text" name="batch" placeholder="批号" autocomplete="off"> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
|                 <input class="layui-input" type="text" name="package_no" placeholder="包号" autocomplete="off"> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline cool-auto-complete"> | 
|                 <input id="maktx" class="layui-input" type="text" style="display: none"> | 
|                 <input id="maktxV" name="brand" class="layui-input cool-auto-complete-div" onclick="autoShow(this.id)" placeholder="牌号" type="text" onfocus=this.blur()> | 
|                 <div class="cool-auto-complete-window"> | 
|                     <input class="cool-auto-complete-window-input" data-key="matMaktxQueryByMaktx" onkeyup="autoLoad(this.getAttribute('data-key'))"> | 
|                     <select class="cool-auto-complete-window-select" data-key="matMaktxQueryByMaktxSelect" onchange="confirmed(this.getAttribute('data-key'))" multiple="multiple"> | 
|                     </select> | 
|                 </div> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
|                 <input class="layui-input" type="text" name="type" placeholder="物资类别" autocomplete="off"> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
| <!--                <input class="layui-input" type="text" name="status" placeholder="状态" autocomplete="off">--> | 
|                 <select name="status"> | 
|                     <option value="">选择状态</option> | 
|                     <option value="暂入库">暂入库</option> | 
|                     <option value="待入库">待入库</option> | 
|                     <option value="已入库">已入库</option> | 
|                     <option value="部分出库">部分出库</option> | 
|                     <option value="全部出库">全部出库</option> | 
|                 </select> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline" style="width: 300px"> | 
| <!--            <div class="layui-input-inline">--> | 
| <!--                <input class="layui-input layui-laydate-range" name="create_time" type="text" placeholder="起始时间 - 终止时间" autocomplete="off" style="width: 300px">--> | 
| <!--            </div>--> | 
|             <div class="layui-input-inline" style="width: 300px"> | 
|                 <input type="text" class="layui-input" name="create_time" id="ID-laydate-range-datetime" placeholder="起始时间 - 终止时间"> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
|                 <input class="layui-input" type="text" name="condition" placeholder="请输入" autocomplete="off"> | 
|             </div> | 
|         </div> | 
|   | 
|         <!-- 待添加 --> | 
|         <div id="data-search-btn" class="layui-btn-container layui-form-item" style="display: inline-block"> | 
|             <button id="search" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="search">搜索</button> | 
|             <button id="reset" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="reset">重置</button> | 
|             <!--        <button id="unreason" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="unreason">查看异常数据</button>--> | 
|         </div> | 
|     </div> | 
|     <div class="layui-form layui-card-header"> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
|                 <input class="layui-input" type="text" name="finger_meltingMin" placeholder="最小熔指" autocomplete="off"> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
|                 <input class="layui-input" type="text" name="finger_meltingMax" placeholder="最大熔指" autocomplete="off"> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
|                 <input class="layui-input" type="text" name="fusing_pointMin" placeholder="最小熔点" autocomplete="off"> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
|                 <input class="layui-input" type="text" name="fusing_pointMax" placeholder="最大熔点" autocomplete="off"> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
|                 <input class="layui-input" type="text" name="yellownessMin" placeholder="最小黄度" autocomplete="off"> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
|                 <input class="layui-input" type="text" name="yellownessMax" placeholder="最大黄度" autocomplete="off"> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
|                 <input class="layui-input" type="text" name="opacityMin" placeholder="最小不透明度" autocomplete="off"> | 
|             </div> | 
|         </div> | 
|         <div class="layui-inline"> | 
|             <div class="layui-input-inline"> | 
|                 <input class="layui-input" type="text" name="opacityMax" placeholder="最大不透明度" autocomplete="off"> | 
|             </div> | 
|         </div> | 
|     </div> | 
|   | 
| </div> | 
| <script type="text/html" id="toolbar"> | 
|     <div class="layui-btn-container"> | 
|         <button class="layui-btn layui-btn-sm layui-btn-danger" id="btn-delete" lay-event="deleteData" style="display: none">删除</button> | 
|         <button class="layui-btn layui-btn-sm layui-btn-danger" id="btn-update" lay-event="updateData" style="display: none">修改</button> | 
|         <button class="layui-btn layui-btn-sm layui-btn-danger" id="btn-viladate" lay-event="viladate" style="display: none">校验</button> | 
|         <button class="layui-btn layui-btn-sm layui-btn-danger " id="btn-freeze" lay-event="freezeData" style="display: none">冻结</button> | 
|         <button class="layui-btn layui-btn-sm layui-btn-checked " id="btn-disfreeze" lay-event="disFreezeData" style="display: none">解冻</button> | 
|         <button class="layui-btn layui-btn-sm layui-btn-checked " id="btn-printBatch" lay-event="btnPrintBatch" >批量打印</button> | 
|         <!-- 商品/物料 数据中心 --> | 
|         <button style="float: right" class="layui-btn layui-btn-sm layui-btn-checked " id="btn-exportMoudle" onclick="excelMouldDownload()" >模板下载</button> | 
|         <button style="float: right" class="layui-btn layui-btn-sm layui-btn-checked " id="btn-import" onclick="importExcel()" >导入excel</button> | 
|   | 
|         <div class="dropdown-menu" style="float: right; display: none"> | 
|             <button id="syncData" style="display: none;" class="layui-btn layui-btn-primary layui-border-black icon-btn layui-btn-sm"> 数据同步 <i class="layui-icon layui-icon-drop"></i></button> | 
|             <ul class="dropdown-menu-nav dark"> | 
|                 <div class="dropdown-anchor"></div> | 
|                 <li class="title">1st menu</li> | 
|                 <li><a onclick="excelMouldDownload()" style="font-size: 12px"><i class="layui-icon layui-icon-template-1"></i>模板下载</a></li> | 
|                 <li><a onclick="importExcel()" style="font-size: 12px"><i class="layui-icon layui-icon-upload"></i>导入 Excel</a></li> | 
|                 <li style="display: none"><input id="importExcel" type="file" onchange="upload(this)" ></li> | 
|                 <hr> | 
| <!--                <li class="title">2nd menu</li>--> | 
| <!--                <li><a onclick="exportExcel()" style="font-size: 12px"><i class="layui-icon layui-icon-export"></i>导出 Excel</a></li>--> | 
|             </ul> | 
|         </div> | 
|         <!--        <button class="layui-btn layui-btn-primary layui-btn-sm" id="btn-export" lay-event="exportData" style="float: right;margin-right: -10px">导出</button>--> | 
|     </div> | 
| </script> | 
|   | 
| <script type="text/html" id="stockFreezeTpl"> | 
|     <input type="checkbox" disabled name="stockFreeze" value="{{d.stockFreeze}}" lay-skin="switch" lay-text="正常|冻结" lay-filter="stockFreezeSwitch" {{ d.stockFreeze === 1 ? 'checked' : '' }}> | 
| </script> | 
|   | 
| <!-- 行 --> | 
| <script type="text/html" id="operate"> | 
|     <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="remove">移除</a> | 
| </script> | 
|   | 
| <!-- 表格 --> | 
| <table class="layui-table"  id="plaDetl" lay-filter="plaDetl"></table> | 
|   | 
| <script type="text/html" id="tbLook"> | 
|     <span class="layui-text"> | 
|         <a href="javascript:;" lay-event="look"> | 
|             <i class="layui-icon" style="font-size: 12px;"></i> 查看明细 | 
|         </a> | 
|     </span> | 
| </script> | 
|   | 
| <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> | 
| <script type="text/javascript" src="../../static/js/pla/plaDetl.js" charset="utf-8"></script> | 
| <script type="text/javascript" src="../../static/js/jquery/jQuery.print.js"></script> | 
|   | 
| <!-- 打印操作弹窗 --> | 
| <div id="printDataDiv" style="display: none;padding: 20px"> | 
|     <div class="layui-form" style="text-align: center"> | 
|         <hr> | 
|         <!--单选框--> | 
|         <div class="layui-form-item" style="display: inline-block; margin-bottom: 10px"> | 
|             <input type="radio" name="selectTemplate" value="1" title="模板一"  lay-filter="selectTemplateRadio" checked=""> | 
|         </div> | 
|         <fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;text-align: center;"> | 
|             <legend>打印预览</legend> | 
|             <div id="template-container" style="margin: 20px;text-align: center"> | 
|                 <!-- 预览图 3 --> | 
|                 <div id="template-preview-1" class="template-preview" style="display: block"> | 
|                     <table class="contain" width="280" style="overflow: hidden;font-size: xx-small;table-layout: fixed;"> | 
|                         <tr style="height: 74px"> | 
|                             <td align="center" scope="col" colspan="1">牌号</td> | 
|                             <td align="center" scope="col" colspan="1" style="">xxxxxx-xx/xx</td> | 
|                             <td align="center" scope="col" colspan="2" rowspan="2"> | 
|                                 <img class="template-code template-qrcode" src="" width="80%"> | 
|                                 <div style="letter-spacing: 1px;margin-top: 1px; text-align: center"> | 
|                                     <span>xxxxxx</span> | 
|                                 </div> | 
|                             </td> | 
|                         </tr> | 
|                         <tr style="height: 74px"> | 
|                             <td align="center" colspan="1">重量</td> | 
|                             <td align="center" colspan="1" style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">xxxxxxx</td> | 
|                         </tr> | 
|                         <tr style="height: 74px"> | 
|                             <td align="center" colspan="1">批号</td> | 
|                             <td align="center" colspan="1" style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">xxxxxxx</td> | 
|                             <td align="center" colspan="1">包号</td> | 
|                             <td align="center" colspan="1" style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">xxxxxxx</td> | 
|                         </tr> | 
|                     </table> | 
|                 </div> | 
|             </div> | 
|         </fieldset> | 
|   | 
|         <button class="layui-btn" id="doPrint" lay-submit lay-filter="doPrint" style="margin-top: 20px">确定</button> | 
|     </div> | 
| </div> | 
|   | 
| <div id="box" style="display: block"></div> | 
|   | 
| <!-- 初始化打印模板的条形码 --> | 
| <script type="text/javascript"> | 
|     $('.template-barcode').attr("src", baseUrl+"/mac/code/auth?type=1¶m=123"); | 
|     $('.template-qrcode').attr("src", baseUrl+"/mac/code/auth?type=2¶m=123"); | 
| </script> | 
|   | 
| <!-- 模板引擎 --> | 
| <!-- 模板3 --> | 
| <script type="text/template" id="templatePreview1" class="template-qrcode"> | 
|     <div class="template-preview"> | 
|     {{#each data}} | 
|     <table class="contain" width="280" style="overflow: hidden;font-size: xx-small;table-layout: fixed;"> | 
|         <tr style="height: 74px" > | 
|             <td align="center" scope="col" colspan="1" style="font-weight: bold;"><strong style="font-weight: bold;color: black;">牌号</strong></td> | 
|             <td align="center" colspan="1" style="font-weight: bold;color: black;overflow:hidden; white-space:normal; "><strong style="font-weight: bold;color: black;">{{this.brand}}</strong></td> | 
|             <td align="center" scope="col" colspan="2" rowspan="2"> | 
|                 <img class="template-code template-qrcode" src="{{this.barcodeUrl}}" width="80%"> | 
|             </td> | 
|         </tr> | 
|         <tr style="height: 74px"> | 
|             <td align="center" colspan="1" style="font-weight: bold;color: black;"><strong style="font-weight: bold;color: black;">重量</strong></td> | 
|             <td align="center" colspan="1" style="font-weight: bold;color: black;overflow:hidden; white-space:nowrap; text-overflow:ellipsis;"><strong style="font-weight: bold;color: black;">{{this.weightAnfme}}</strong></td> | 
|         </tr> | 
|         <tr style="height: 74px"> | 
|             <td align="center" colspan="1" style="font-weight: bold;color: black;"><strong style="font-weight: bold;color: black;">批号</strong></td> | 
|             <td align="center" colspan="1" style="font-weight: bold;color: black;overflow:hidden; white-space:nowrap; text-overflow:ellipsis;"><strong style="font-weight: bold;color: black;">{{this.batch}}</strong></td> | 
|             <td align="center" colspan="1" style="font-weight: bold;color: black;"><strong style="font-weight: bold;color: black;">包号</strong></td> | 
|             <td align="center" colspan="1" style="font-weight: bold;color: black;overflow:hidden; white-space:nowrap; text-overflow:ellipsis;"><strong style="font-weight: bold;color: black;">{{this.packageNo}}</strong></td> | 
|         </tr> | 
|     </table> | 
|     </br> | 
|     {{/each}} | 
|     </div>> | 
| </script> | 
|   | 
| </body> | 
| </html> |