| | |
| | | <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/cool.css" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/common.css" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/print.css" media="all"> |
| | | <style> |
| | | #search-box { |
| | | padding: 30px 30px 10px 30px; |
| | |
| | | |
| | | /* ------------------------- 打印表格 ----------------------- */ |
| | | .template-preview { |
| | | height: 200px; |
| | | display: inline-block; |
| | | } |
| | | .contain { |
| | |
| | | <!-- 预览图 1 --> |
| | | <div id="template-preview-1" class="template-preview" style="display: inline-block"> |
| | | <table class="contain" width="280" style="overflow: hidden;font-size: xx-small;table-layout: fixed;"> |
| | | <tr style="height: 55px"> |
| | | <td colspan="1" align="center" scope="col">物料编码</td> |
| | | <td class="barcode" colspan="3" align="center" scope="col"> |
| | | <img class="template-code template-barcode" src="" width="80%;"> |
| | | <tr style="height: 74px"> |
| | | <td colspan="3" align="center" scope="col">物料编码</td> |
| | | <td class="barcode" colspan="9" align="center" scope="col"> |
| | | <img class="template-code template-barcode" src="" width="90%;"> |
| | | <div style="letter-spacing: 2px;margin-top: 1px; text-align: center;"> |
| | | <span>xxxxxx</span> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | <tr style="height: 55px"> |
| | | <td align="center" width="25%">名称</td> |
| | | <td align="center" width="35%">xxxxxx-xx/xx</td> |
| | | <td align="center" width="20%">单位</td> |
| | | <td align="center" width="20%">xxxxxxx</td> |
| | | <tr style="height: 74px"> |
| | | <td align="center" colspan="3">物料名称</td> |
| | | <td align="center" colspan="5">xxxxxx-xx/xx</td> |
| | | <td align="center" colspan="2">单位</td> |
| | | <td align="center" colspan="2">xx</td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | |
| | | <!-- 预览图 2 --> |
| | | <div id="template-preview-2" class="template-preview" style="display: none"> |
| | | <table class="contain" width="280" style="overflow: hidden;font-size: xx-small;table-layout: fixed;"> |
| | | <tr style="height: 25px"> |
| | | <tr style="height: 30px"> |
| | | <td align="center" width="20%">物料名称</td> |
| | | <td align="center" width="80%" style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">xxxxxxx</td> |
| | | </tr> |
| | | <tr style="height: 25px"> |
| | | <tr style="height: 30px"> |
| | | <td align="center" width="20%">物料单位</td> |
| | | <td align="center" width="80%">xxxxxxxx</td> |
| | | </tr> |
| | | <tr style="height: 61px;"> |
| | | <tr style="height: 75px;"> |
| | | <td align="center" colspan="2" width="100%" style="border: none"> |
| | | <img class="template-code template-barcode" src="" width="80%"> |
| | | <div style="letter-spacing: 2px;margin-top: 1px; text-align: center"> |
| | |
| | | <!-- 模板1 --> |
| | | <script type="text/template" id="templatePreview1" class="template-barcode"> |
| | | {{#each data}} |
| | | <table class="contain" width="280" style="overflow: hidden;font-size: xx-small;table-layout: fixed;"> |
| | | <tr style="height: 55px"> |
| | | <td align="center" colspan="1" scope="col">物料编码</td> |
| | | <td align="center" class="barcode" colspan="3" scope="col"> |
| | | <img class="template-code" src="{{this.barcodeUrl}}" width="80%"> |
| | | <table class="contain" width="280" style="overflow: hidden;font-size: small;table-layout: fixed;"> |
| | | <tr style="height: 74px"> |
| | | <td align="center" colspan="3" scope="col">物料编码</td> |
| | | <td align="center" class="barcode" colspan="9" scope="col"> |
| | | <img class="template-code" src="{{this.barcodeUrl}}" width="90%"> |
| | | <div style="letter-spacing: 2px;margin-top: 1px; text-align: center"> |
| | | <span>{{this.matNo}}</span> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | <tr style="height: 55px"> |
| | | <td align="center" width="25%">名称</td> |
| | | <td align="center" width="35%" style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">{{this.matName}}</td> |
| | | <td align="center" width="20%">单位</td> |
| | | <td align="center" width="20%">{{this.str1}}</td> |
| | | <tr style="height: 74px"> |
| | | <td align="center" colspan="3">物料名称</td> |
| | | <td align="center" colspan="5" style="overflow: hidden; white-space: nowrap;text-overflow: ellipsis;">{{this.matName}}</td> |
| | | <td align="center" colspan="2">单位</td> |
| | | <td align="center" colspan="2">{{this.str1}}</td> |
| | | </tr> |
| | | </table> |
| | | {{/each}} |
| | |
| | | <script type="text/template" id="templatePreview2" class="template-barcode"> |
| | | {{#each data}} |
| | | <table class="contain" width="280" style="overflow: hidden;font-size: xx-small;table-layout: fixed;"> |
| | | <tr style="height: 25px"> |
| | | <tr style="height: 35px"> |
| | | <td align="center" width="20%">物料名称</td> |
| | | <td align="center" width="80%" style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">{{this.matName}}</td> |
| | | </tr> |
| | | <tr style="height: 25px"> |
| | | <tr style="height: 35px"> |
| | | <td align="center" width="20%">物料单位</td> |
| | | <td align="center" width="80%">{{this.str1}}</td> |
| | | </tr> |
| | | <tr style="height: 61px;"> |
| | | <tr style="height: 79px;"> |
| | | <td align="center" colspan="2" width="100%" style="border: none"> |
| | | <img class="template-code" src="{{this.barcodeUrl}}" width="80%"> |
| | | <div style="letter-spacing: 2px;margin-top: 1px; text-align: center"> |
| | |
| | | <!-- 模板3 --> |
| | | <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"> |
| | | <table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small;table-layout: fixed;"> |
| | | <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" 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}} |