| | |
| | | <link rel="stylesheet" href="../../static/css/admin.css?v=318" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/cool.css" media="all"> |
| | | |
| | | <style> |
| | | /* ------------------------- 打印表格 ----------------------- */ |
| | | <!--<style> |
| | | /* ------------------------- 打印表格 ----------------------- */ |
| | | .contain { |
| | | border-collapse: collapse; |
| | | width: 280px; |
| | |
| | | padding: 8px; |
| | | } |
| | | |
| | | .template-preview { |
| | | height: 200px; |
| | | display: inline-block; |
| | | } |
| | | |
| | | /*----------------------------------*/ |
| | | .function-area { |
| | | padding: 20px 50px; |
| | | } |
| | | .function-btn:hover { |
| | | background-color: #2b425b; |
| | | color: #fff; |
| | | } |
| | | |
| | | #mat-query { |
| | | display: none; |
| | | } |
| | | #btn-outbound { |
| | | display: none; |
| | | } |
| | | </style>--> |
| | | <style> |
| | | body { |
| | | color: #595959; |
| | | background-color: #f5f7f9; |
| | | } |
| | | |
| | | .layui-fluid { |
| | | padding: 15px; |
| | | } |
| | | |
| | | .layui-form.layui-border-box.layui-table-view { |
| | | /*margin: 15px 0 35px 0;*/ |
| | | width: 100%; |
| | | border-width: 1px; |
| | | } |
| | | |
| | | .layui-form.layui-border-box.layui-table-view { |
| | | height: calc(100vh - 160px); |
| | | } |
| | | |
| | | .layui-form.layui-border-box.layui-table-view { |
| | | margin: 0; |
| | | } |
| | | |
| | | #search-box { |
| | | padding: 30px 30px 10px 0px; |
| | | margin-left: 0px; |
| | | } |
| | | |
| | | .layui-form.layui-border-box.layui-table-view { |
| | | height: 100%; |
| | | } |
| | | |
| | | .admin-form { |
| | | padding: 25px 30px 0 0 !important; |
| | | margin: 0 !important; |
| | | } |
| | | |
| | | /* ------------------------- 打印表格 ----------------------- */ |
| | | .template-preview { |
| | | height: 200px; |
| | | display: inline-block; |
| | | } |
| | | |
| | | .contain td { |
| | | border: 1px solid #000; |
| | | /*font-family: 黑体;*/ |
| | | /*font-weight: bold;*/ |
| | | /*color: #000000;*/ |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | |
| | | <button class="layui-btn icon-btn" lay-filter="reset" lay-submit> |
| | | <i class="layui-icon"></i>重置 |
| | | </button> |
| | | <!-- 功能区 --> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <button class="function-btn layui-btn icon-btn" style="width: auto;float:right;" onclick="excelMouldDownload()">导入待打印物料模板下载</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | <script type="text/html" id="toolbar"> |
| | | <div class="layui-btn-container"> |
| | | <button class="layui-btn layui-btn-sm" id="btn-add" lay-event="addData">新增</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-danger" id="btn-delete" lay-event="deleteData">删除</button> |
| | | <button class="layui-btn layui-btn-sm" id="btn-print-batch" lay-event="btnPrintBatch">批量打印</button> |
| | | |
| | | <button class="layui-btn layui-btn-lg" onclick="importExcel()" style="font-size: 12px;width: auto;">导入物料打印</button> |
| | | <span style="display: none"><input id="importExcel" type="file" onchange="upload(this)">导入物料信息</span> |
| | | <button class="layui-btn layui-btn-primary layui-btn-sm" id="btn-export" lay-event="exportData" style="float: right">导出</button> |
| | | </div> |
| | | </script> |
| | | |
| | | <script type="text/html" id="operate"> |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs btn-edit" lay-event="edit">修改</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs btn-edit" lay-event="del">删除</a> |
| | | <!-- <a class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs btn-complete" lay-event="btnPrint">打印</a>--> |
| | | <!-- 表格 --> |
| | | <div style="padding-bottom: 5px; margin-bottom: 45px"> |
| | | |
| | | </script> |
| | | <!-- 头部 --> |
| | | <script type="text/html" id="operate"> |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs btn-edit" lay-event="edit">修改</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs btn-edit" lay-event="del">删除</a> |
| | | <!-- 3.导入箱号出库 --> |
| | | <!-- <a class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs btn-complete" lay-event="btnPrint">打印</a>--> |
| | | |
| | | </script> |
| | | |
| | | <table class="layui-table" id="chooseData" lay-filter="chooseData"></table> |
| | | </div> |
| | | |
| | | <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> |
| | |
| | | {{#each data}} |
| | | <table class="contain" width="300" |
| | | style="overflow: hidden;font-size: xx-small;table-layout: fixed;margin-top: 20px;"> |
| | | <tr style="height: 20px"> |
| | | <tr style="height: 15px"> |
| | | <td align="center" scope="col" colspan="1" style="font-size: 10px;">名称</td> |
| | | <td align="center" scope="col" colspan="2" style="font-size: 10px;">{{this.maktx}}</td> |
| | | <td align="center" scope="col" colspan="3" rowspan="4"> |
| | |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | <tr style="height: 20px"> |
| | | <tr style="height: 15px"> |
| | | <td align="center" colspan="1" style="font-size: 10px;">制令</td> |
| | | <td align="center" colspan="2" |
| | | style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;font-size: 10px;">{{this.decrees}} |
| | | </td> |
| | | </tr> |
| | | <tr style="height: 20px"> |
| | | <tr style="height: 15px"> |
| | | <td align="center" colspan="1" style="font-size: 10px;">机型</td> |
| | | <td align="center" colspan="2" |
| | | style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;font-size: 10px;">{{this.model}} |
| | | </td> |
| | | </tr> |
| | | <tr style="height: 20px"> |
| | | <tr style="height: 15px"> |
| | | <td align="center" colspan="1" style="font-size: 10px;">图号</td> |
| | | <td align="center" colspan="2" |
| | | style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;font-size: 10px;">{{this.imgNum}} |
| | |
| | | style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;font-size: 10px;">{{this.material}} |
| | | </td> |
| | | </tr> |
| | | <tr style="height: 20px"> |
| | | <tr style="height: 10px"> |
| | | <td align="center" colspan="1" style="font-size: 10px;">重量</td> |
| | | <td align="center" colspan="2" |
| | | style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;font-size: 10px;">{{this.weight}} |