123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>打印申请单</title>
- <style type="text/css">
- body {
- left: 0px;
- top: 0px;
- right: 0px;
- bottom: 0px;
- margin: 0px;
- font-family: Arial, Helvetica, sans-serif;
- font-size: 12px;
- overflow: hidden;
- white-space: nowrap;
- }
- </style>
- <script src="../../static/print/jquery-2.0.3.js" type="text/javascript"></script>
- <script src="../../static/print/jquery.jPrintArea.js" type="text/javascript"></script>
- <script src="../../static/sa.js"></script>
- </head>
- <body>
- <div>
- <input type="button" style="height: 30;" id="print_button" value="打印"/>
- <fieldset align="">
- <legend>打印区</legend>
- <div id="myPrintArea" style="height: 1500;">
- <div align="center">
- <SPAN style="TEXT-DECORATION: underline;font-size:25px">进口食品冷链申报信息表</SPAN>
- <br/><br/>
- </div>
- <div style="text-align:center; font-size:15px;he">
- <table width="100%" style="border-collapse:collapse;border:none;">
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;hei">产品学名</td>
- <td style="border:solid #000 1px;">
- <div id="goodsName"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">毛重</td>
- <td style="border:solid #000 1px;">
- <div id="grossWeight"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">件数</td>
- <td style="border:solid #000 1px;">
- <div id="num"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">生产日期</td>
- <td style="border:solid #000 1px;">
- <div id="productionDate"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">保质期</td>
- <td style="border:solid #000 1px;">
- <div id="expirationDate"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">储存条件</td>
- <td style="border:solid #000 1px;">
- <div id="storageMode"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">生产方式</td>
- <td style="border:solid #000 1px;">
- <div id="productionMode"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">原产国</td>
- <td style="border:solid #000 1px;">
- <div id="origin"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">货主单位</td>
- <td style="border:solid #000 1px;">
- <div id="sendUnit"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">进口冷链食品生产商注册号</td>
- <td style="border:solid #000 1px;">
- <div id="producerCode"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">收货单位</td>
- <td style="border:solid #000 1px;">
- <div id="receiveUnit"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">物流流向</td>
- <td style="border:solid #000 1px;">
- <div id="route"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">运输车辆(车头牌、车尾牌)</td>
- <td style="border:solid #000 1px;">
- <div id="chinaCarNo"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">司机名称</td>
- <td style="border:solid #000 1px;">
- <div id="driverName"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">联系电话(司机)</td>
- <td style="border:solid #000 1px;">
- <div id="driverPhone"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">联系电话(商家代理人)</td>
- <td style="border:solid #000 1px;">
- <div id="agentPhone"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">海关报关单据</td>
- <td style="border:solid #000 1px;">
- <div id="customProof"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">进出口检验检疫证书</td>
- <td style="border:solid #000 1px;">
- <div id="quarantineProof"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">商铺(互助组)</td>
- <td style="border:solid #000 1px;">
- <div id="shop"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">生产批号</td>
- <td style="border:solid #000 1px;">
- <div id="productionCode"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">柜号</td>
- <td style="border:solid #000 1px;">
- <div id="containerCode"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;">越南车牌</td>
- <td style="border:solid #000 1px;">
- <div id="carNo"></div>
- </td>
- </tr>
- </table>
- </div>
- <div align="right">
- <br/><br/>
- <SPAN style=";font-size:15px">      年      月      日</SPAN>
- </div>
- </div>
- </fieldset>
- </div>
- <script type="text/javascript">
- $(function () {
- $("#print_button").click(function () {
- $("#myPrintArea").printArea();
- });
- function getUrlParam(name) {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
- var r = window.location.search.substr(1).match(reg); //匹配目标参数
- if (r != null) return unescape(r[2]);
- return null; //返回参数值
- }
- var id = getUrlParam('id');
- $.ajax({
- url: sa.cfg.api_url + '/TbDeclare/getById?id=' + id,
- type: 'post', // 请求类型,常用的有 GET 和 POST
- success: function (data) { // 接口调用成功回调函数
- $("#goodsName").html(data.data.goodsName);
- $("#grossWeight").html(data.data.grossWeight + "kg");
- $("#num").html(data.data.num + "件");
- $("#productionDate").html(data.data.productionDate);
- $("#expirationDate").html(data.data.expirationDate + "天");
- $("#storageMode").html(data.data.storageMode);
- $("#productionMode").html(data.data.productionMode);
- $("#origin").html(data.data.origin);
- $("#producerCode").html(data.data.producerCode);
- $("#sendUnit").html(data.data.sendUnit);
- $("#receiveUnit").html(data.data.receiveUnit);
- $("#route").html(data.data.route);
- $("#chinaCarNo").html(data.data.chinaCarNo);
- $("#driverName").html(data.data.driverName);
- $("#driverPhone").html(data.data.driverPhone);
- $("#agentPhone").html(data.data.agentPhone);
- $("#customProof").html(data.data.customProof);
- $("#quarantineProof").html(data.data.quarantineProof);
- $("#shop").html(data.data.shop);
- $("#productionCode").html(data.data.productionCode);
- $("#containerCode").html(data.data.containerCode);
- $("#carNo").html(data.data.carNo);
- $("#myPrintArea").printArea();
- }
- });
- });
- </script>
- </body>
- </html>
|