|  |  |  | 
|---|
|  |  |  | <link rel="stylesheet" href="../../static/css/cool.css" media="all"> | 
|---|
|  |  |  | <link rel="stylesheet" href="../../static/css/common.css" media="all"> | 
|---|
|  |  |  | <style> | 
|---|
|  |  |  | #search-box { | 
|---|
|  |  |  | padding: 30px 30px 10px 30px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | #search-box .layui-inline { | 
|---|
|  |  |  | margin-right: 5px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | #data-search-btn { | 
|---|
|  |  |  | margin-top: 10px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | #data-search-btn.layui-btn-container .layui-btn { | 
|---|
|  |  |  | margin-right: 20px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .btn-print { | 
|---|
|  |  |  | display: none; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | <!-- 搜索栏 --> | 
|---|
|  |  |  | <div id="search-box" class="layui-form layui-card-header"> | 
|---|
|  |  |  | <div class="layui-inline"> | 
|---|
|  |  |  | <label class="layui-form-label">物料编码:</label> | 
|---|
|  |  |  | <div class="layui-input-inline"> | 
|---|
|  |  |  | <input class="layui-input" type="text" name="mat_no" placeholder="请输入" autocomplete="off"> | 
|---|
|  |  |  | <input class="layui-input" type="text" name="mat_no" placeholder="物料编码" autocomplete="off"> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 日期范围 --> | 
|---|
|  |  |  | <div class="layui-inline" style="width: 300px"> | 
|---|
|  |  |  | <div class="layui-input-inline"> | 
|---|
|  |  |  | <input class="layui-input layui-laydate-range" name="modi_time" type="text" placeholder="起始时间 - 终止时间" autocomplete="off" style="width: 300px"> | 
|---|
|  |  |  | </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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <div id="template-container" style="margin: 20px;text-align: center"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 预览图 1 --> | 
|---|
|  |  |  | <div id="template-preview-1" class="template-preview" style="display: none"> | 
|---|
|  |  |  | <div id="template-preview-1" class="template-preview" style="display: inline-block"> | 
|---|
|  |  |  | <table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small"> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td colspan="1" align="center" scope="col">条码</td> | 
|---|
|  |  |  | <td class="barcode" colspan="3" align="center" scope="col"> | 
|---|
|  |  |  | <img class="template-code" src="" width="80%"> | 
|---|
|  |  |  | <img class="template-code template-barcode" src="" width="80%"> | 
|---|
|  |  |  | <div style="letter-spacing: 2px;margin-top: 3px; text-align: center"> | 
|---|
|  |  |  | <span>xxxxxx</span> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" colspan="6" style="border: none"> | 
|---|
|  |  |  | <img class="template-code" src="" width="80%"> | 
|---|
|  |  |  | <img class="template-code template-barcode" src="" width="80%"> | 
|---|
|  |  |  | <div style="letter-spacing: 2px;margin-top: 3px; text-align: center"> | 
|---|
|  |  |  | <span>xxxxxx</span> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 预览图 3 --> | 
|---|
|  |  |  | <div id="template-preview-3" class="template-preview" style="display: inline-block"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <div id="template-preview-3" class="template-preview" style="display: none"> | 
|---|
|  |  |  | <table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small"> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" scope="col" width="50%" colspan="3">物料编码</td> | 
|---|
|  |  |  | <td align="center" scope="col" width="50%" colspan="3">xxxxxx-xx/xx</td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" colspan="3">物料名称</td> | 
|---|
|  |  |  | <td align="center" colspan="3">xxxxxxx</td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" width="50%" rowspan="1" colspan="3">物料规格</td> | 
|---|
|  |  |  | <td align="center" width="50%" colspan="3" rowspan="4"> | 
|---|
|  |  |  | <img class="template-code template-qrcode" src=""> | 
|---|
|  |  |  | </td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" colspan="3" rowspan="1">xxxxxx</td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" colspan="3" rowspan="1">物料单位</td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" colspan="3" rowspan="1">xxxxxxxx</td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | </table> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 初始化打印模板的条形码 --> | 
|---|
|  |  |  | <script type="text/javascript"> | 
|---|
|  |  |  | $('.template-code').attr("src", baseUrl+"/macCode/code/auth?type=1¶m=123"); | 
|---|
|  |  |  | $('.template-barcode').attr("src", baseUrl+"/macCode/code/auth?type=1¶m=123"); | 
|---|
|  |  |  | $('.template-qrcode').attr("src", baseUrl+"/macCode/code/auth?type=2¶m=123"); | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 模板引擎 --> | 
|---|
|  |  |  | <!-- 模板1 --> | 
|---|
|  |  |  | <script type="text/template" id="templatePreview1"> | 
|---|
|  |  |  | <script type="text/template" id="templatePreview1" class="template-barcode"> | 
|---|
|  |  |  | {{#each data}} | 
|---|
|  |  |  | <table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small"> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" colspan="1" scope="col">条码</td> | 
|---|
|  |  |  | <td align="center" class="barcode" colspan="3" scope="col"> | 
|---|
|  |  |  | <img class="qrcode" src="{{this.barcodeUrl}}" width="80%"> | 
|---|
|  |  |  | <img class="template-code" src="{{this.barcodeUrl}}" width="80%"> | 
|---|
|  |  |  | <div style="letter-spacing: 2px;margin-top: 3px; text-align: center"> | 
|---|
|  |  |  | <span>{{this.barcode}}</span> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | {{/each}} | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  | <!-- 模板2 --> | 
|---|
|  |  |  | <script type="text/template" id="templatePreview2"> | 
|---|
|  |  |  | <script type="text/template" id="templatePreview2" class="template-barcode"> | 
|---|
|  |  |  | {{#each data}} | 
|---|
|  |  |  | <table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small"> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | 
|---|
|  |  |  | {{/each}} | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  | <!-- 模板3 --> | 
|---|
|  |  |  | <script type="text/template" id="templatePreview3"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <script type="text/template" id="templatePreview3" class="template-qrcode"> | 
|---|
|  |  |  | {{#each data}} | 
|---|
|  |  |  | <table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small"> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" scope="col" width="50%" colspan="3">物料编码</td> | 
|---|
|  |  |  | <td align="center" scope="col" width="50%" colspan="3">{{this.matNo}}</td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" colspan="3">物料名称</td> | 
|---|
|  |  |  | <td align="center" colspan="3">{{this.matName}}</td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" width="50%" rowspan="1" colspan="3">物料单位</td> | 
|---|
|  |  |  | <td align="center" width="50%" colspan="3" rowspan="4"> | 
|---|
|  |  |  | <img class="template-code template-qrcode" src="{{this.barcodeUrl}}"> | 
|---|
|  |  |  | </td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" colspan="3" rowspan="1">{{this.str1}}</td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" colspan="3" rowspan="1">物料规格</td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | <tr> | 
|---|
|  |  |  | <td align="center" colspan="3" rowspan="1">{{this.str2}}</td> | 
|---|
|  |  |  | </tr> | 
|---|
|  |  |  | </table> | 
|---|
|  |  |  | {{/each}} | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </body> | 
|---|