123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <!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;" colspan="3">
- <div id="sendPeople"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;hei">收货人名称</td>
- <td style="border:solid #000 1px;" colspan="3">
- <div id="receivePeople"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;hei">品名</td>
- <td style="border:solid #000 1px;">
- <div id="goodsName"></div>
- </td>
- <td style="border:solid #000 1px; width: 25%;hei">产地</td>
- <td style="border:solid #000 1px;">
- <div id="origin"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;hei">数量/重量</td>
- <td style="border:solid #000 1px;">
- <div id="numAndWeight"></div>
- </td>
- <td style="border:solid #000 1px; width: 25%;hei">规格</td>
- <td style="border:solid #000 1px;">
- <div id="unit"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;hei">包装</td>
- <td style="border:solid #000 1px;">
- <div id="pack"></div>
- </td>
- <td style="border:solid #000 1px;" colspan="2">标记及号码</td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;hei">启动地</td>
- <td style="border:solid #000 1px;">
- <div id="sourceAddress"></div>
- </td>
- <td style="border:solid #000 1px;" colspan="2" rowspan="4">
- <div id="flagAndPhone"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;hei">到达口岸</td>
- <td style="border:solid #000 1px;">
- <div id="arrivePart"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;hei">运输工具及号码</td>
- <td style="border:solid #000 1px;">
- <div id="carNameAndNo"></div>
- </td>
- </tr>
- <tr height="40">
- <td style="border:solid #000 1px; width: 25%;hei">国内运输工具及号码</td>
- <td style="border:solid #000 1px;">
- <div id="chinaCarNameAndNo"></div>
- </td>
- </tr>
- <tr height="80">
- <td style="border:solid #000 1px; width: 25%;hei">预约处理地点及时间</td>
- <td style="border:solid #000 1px;" colspan="3">东兴A1地块进口冷链食品集中监管仓</td>
- </tr>
- <tr height="80">
- <td style="border:solid #000 1px; width: 25%;hei">其他要求及备注</td>
- <td style="border:solid #000 1px;" colspan="3">
- <div id="remark"></div>
- </td>
- </tr>
- </table>
- <table width="100%" style="border-collapse:collapse;border:none;">
- <tr height="80">
- <td style="border:solid #000 1px;">
- <div id="applyUnitAndPeople"></div>
- </td>
- <td style="border:solid #000 1px;">
- <div id="declarePhone"></div>
- </td>
- <td style="border:solid #000 1px;">
- <div id="applyTime"></div>
- </td>
- </tr>
- <tr height="80">
- <td style="border:solid #000 1px;">
- <div id="acceptPeople"></div>
- </td>
- <td style="border:solid #000 1px;">
- <div id="acceptTime"></div>
- </td>
- <td style="border:solid #000 1px;">计费:
- <div id="money"></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 + '/TbDisinfect/getById?id=' + id,
- type: 'post',
- success: function (data) {
- console.log(data);
- $("#sendPeople").html(data.data.sendPeople);
- $("#receivePeople").html(data.data.receivePeople);
- $("#goodsName").html(data.data.goodsName);
- $("#origin").html(data.data.origin);
- $("#numAndWeight").html(data.data.num + "件/" + data.data.grossWeight + "kg");
- $("#unit").html(data.data.unit);
- $("#pack").html(data.data.pack);
- $("#flagAndPhone").html(data.data.flag + ", " + data.data.phone);
- $("#sourceAddress").html(data.data.sourceAddress);
- $("#arrivePart").html(data.data.arrivePart);
- $("#carNameAndNo").html(data.data.carName + ", " + data.data.carNo);
- $("#chinaCarNameAndNo").html(data.data.chinaCarName + ", " + data.data.chinaCarNo);
- $("#remark").html(data.data.remark);
- $("#applyUnitAndPeople").html("申请人单位、姓名:" + data.data.applyUnit + ", " + data.data.declarePeople);
- $("#declarePhone").html("联系方式:" + data.data.declarePhone);
- $("#applyTime").html("申请时间:" + data.data.applyTime);
- $("#acceptPeople").html("受理人姓名:");
- $("#acceptTime").html("受理时间:");
- $("#myPrintArea").printArea();
- }
- });
- });
- </script>
- </body>
- </html>
|