页面 打印(访问该页面直接打印)

<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title></title>
<style>
{padding: 0px;margin: 0px;font-style: normal;list-style-type: none;text-decoration: none;font-family:"Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif,SimSun;border:0 none;outline: 0px;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box; }
div,p{word-break:break-all;}
a{cursor: pointer;transition:all .3s; -webkit-transition:all .3s;-moz-transition:all .3s;}
h2,h3,h4,h5,h6{font-weight: normal;font-size: 14px;}
body{clear: both;min-width: 1200px!important;color: #333;line-height: 22px;font-size: 14px; }
input,textarea,button,select{outline: none;resize:none;border:1px solid #ccc;transition:all .5s; -webkit-transition:all .5s;-moz-transition:all .5s;font-size: 14px; }
button,select,input{height: 34px;}
input,textarea{padding: 3px 5px;color: #666;background: #fff;}
button{background: none;cursor: pointer;border:0 none;}
label{line-height: 22px;}
label th,label td{word-break: break-all; word-wrap:break-word;}
table{border-collapse:collapse;border-spacing:0;width: 100%;}
input:-webkit-autofill {-webkit-box-shadow: 0 0 0px 1000px white inset;}/
google浏览器黄色背景/
input::-ms-clear,input::-ms-reveal{display:none;}/
ie浏览器的眼睛跟叉叉*/
input[type='checkbox'],input[type='radio']{vertical-align: middle;margin-top: -3px;height: 14px;}

    .nv-application{padding: 20px;margin:0 auto;}
    #nvkorbin .head{text-align: center;margin-bottom:20px; }
    #nvkorbin .head h1{line-height: 60px;font-size: 20px;}
    #nvkorbin .head h2{padding: 0px 0;font-size: 16px;}
    .app_date{text-align: right;font-size: 16px;line-height: 40px;}
    .nv-barof{border:1px solid #333;border-right:none;}
    .nv-barof td{border-top: 1px solid #333;border-right: 1px solid #333;}
    .nv-barof caption{text-align: left;font-size: 16px;line-height: 40px;border-bottom: 1px solid #333;padding: 0 10px;border-right: 1px solid #333;}
    .nv-barof th{border-right: 1px solid #333;}
    .nv-barof th,.nv-barof td{padding: 10px;text-align: center;}
    .nv-signature{padding: 20px 0;}
    .nv-signature ul{display: flex;}
    .nv-signature li{flex:1;}
</style>
<script type="text/javascript">
   function doPrint() {
        bdhtml=window.document.body.innerHTML;
        sprnstr="<!--startprint-->";
        eprnstr="<!--endprint-->";
        prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
        prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
        window.document.body.innerHTML=prnhtml;
        window.print();
    };
</script>

</head>
<body onload="doPrint()">
<div>
<span onclick="doPrint()">dy</span>
<h1>这块内容不需要打印</h1>

<div class="content">
<div class="nv-application" id="nvkorbin">
<div class="head">
<h1>福 州 轻 工 进 出 口 有 限 公 司</h1>
<h2>电 商 部 门 资 金 借 用 申 请 表</h2>
</div>
<div class="app_date">{{date('Y/m/d')}}</div>
<div class="nv-barof">
<table>
<caption>申请部门:{{finance_info->CustomerInfo->company_name}}</caption> <thead> <tr> <th>合同号</th> <th>关单金额</th> <th>借款金额(关单金额*0.8)</th> <th>单据提交日期</th> <th>借款日期</th> <th>汇率</th> <th>折合人民币</th> <th>到期还款日(90天)</th> <th>利率(月息)</th> </tr> </thead> <tbody> @foreach(finance_info->customInfo as key=>value)
@if(key==0) <tr> <td>{{value->contract_code }}</td>
<td>{{ array_sum(array_column(json_decode(json_encode(finance_info->customInfo) ,true) ,'amount')) }}</td> <td>(){{ number_format(value->amount*0.8 ,2) }}</td> <td>{{ substr(finance_info->create_time ,0,10) }}</td>
<td>{{ substr(finance_info->start_date ,0,10) }}</td> <td>{{ number_format(finance_info->exchange_rate ,2) }}</td>
<td>(&yen){{ number_format(value->amount*finance_info->exchange_rate ,2) }}</td>
<td>{{ substr(finance_info->end_date ,0,10) }}</td> <td>{{ number_format(finance_info->monthly_interest ,2) }}</td>
</tr>
@else
<tr>
<td></td>
<td></td>
<td>(){{ number_format(value->amount*0.8 ,2) }}</td>
<td></td>
<td></td>
<td></td>
<td>(&yen){{ number_format(value->amount*finance_info->exchange_rate ,2) }}</td>
<td></td>
<td></td>
</tr>
@endif
@endforeach

                </tbody>
            </table>
        </div>
        <div class="nv-signature">
            <ul>
                <li>总经理:</li><li>分管领导:</li><li>财务经理:</li><li>财务:</li><li>经办:</li><li>业务员:</li>
            </ul>
        </div>
    </div>
</div>
<!--endprint-->
<h1>这块内容不需要打印</h1>

</div>
</body>
</html>

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。