| | |
| | | <hr> |
| | | <!--单选框--> |
| | | <div class="layui-form-item" style="display: inline-block; margin-bottom: 10px"> |
| | | <input type="radio" name="sex" value="男" title="模板一" checked=""> |
| | | <input type="radio" name="sex" value="女" title="模板二"> |
| | | <input type="radio" name="sex" value="禁" title="模板三"> |
| | | <input type="radio" name="selectTemplate" value="1" title="模板一" checked=""> |
| | | <input type="radio" name="selectTemplate" value="2" title="模板二"> |
| | | <input type="radio" name="selectTemplate" value="3" title="模板三"> |
| | | </div> |
| | | <fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;text-align: left;"> |
| | | <legend>打印预览</legend> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div id="box" style="display: block"> |
| | | |
| | | <!-- 模板引擎 --> |
| | | <!-- 模板1 --> |
| | | <script type="text/template" id="templatePreview1"> |
| | | {{#each data}} |
| | | <table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small"> |
| | | <tr> |
| | | <td colspan="1" align="right" scope="col">条码</td> |
| | | <td class="barcode"colspan="3" align="left" scope="col"> |
| | | <img class="qrcode" src="/macCode/barcode/auth?param={{this.barcode}}" width="80%"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right" width="25%">物料编码</td> |
| | | <td align="right" width="25%">{{this.matNo}}</td> |
| | | <td align="right" width="25%">物料名称</td> |
| | | <td align="right" width="25%">{{this.matName}}</td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right" width="25%">物料单位</td> |
| | | <td align="right" width="25%">{{this.str1}}</td> |
| | | <td align="right" width="25%">物料规格</td> |
| | | <td align="right" width="25%">{{this.str2}}</td> |
| | | </tr> |
| | | </table> |
| | | {{/each}} |
| | | </script> |
| | | <!-- 模板2 --> |
| | | <script type="text/template" id="templatePreview2"> |