京东html面单

qiuxiaoliang 2020-06-11 原文

京东html面单

<html moznomarginboxes mozdisallowselectionprint>

<head>
<style>
@media print {
@page {
size: auto;
margin: 1cm;
}

#printBtnWrapper {
display: none;
}

.printTitleHide {
display: none;
}
}

.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: ” “;
clear: both;
height: 0;
}

.clearfix {
display: inline-table;
}

* {
box-sizing: border-box;
}

body {
font-family: ‘思源宋体’;
font-size: 18px;
}

/*css reset*/
body,
h2,
p {
margin: 0;
padding: 0;
}

h2,
b {
font-weight: normal;
}

ul,
ol,
li {
margin: 0;
padding: 0;
list-style: none;
}

.printBtn {
width: 150px;
height: 30px;
background-color: #35aa47;
color: #ffffff;
font-size: 14px;
border: none;
}

.wrapper {
position: relative;
width: 9cm;
height: 8.5cm;
margin: 0 auto;
}

.logo {
text-align: center;
margin-bottom: 30px;
}

.user-info {
width: 500px;
}

.user-info .title {
padding-bottom: 10px;
border-bottom: 1px solid #000;
}

.user-info .name {
margin-top: 10px;
}

.inof-rig-ma {
position: absolute;
top: 95px;
right: 50px;
text-align: center;
}

.drug {
padding: 10px 0;
}

.drug h2 {
font-size: 18px;
}
.drug-list{
color:#616262;
margin-left:-20px;
}
.drug-list li{
float:left;
margin-bottom:10px;
margin-left:20px;
padding: 2px;
border:1px solid #000;
color: #000;
}
.drug-product-list {
width: 100%;
color: #616262;
margin-left: -20px;
}

.drug-product-list li {
width: 100%;
margin-bottom: 10px;
margin-left: 20px;
padding: 2px;
color: #000;
}
.drug-product-list li .drug-product-ingredients {
/*font-weight: bold;*/
}

.drug-product-list li .drug-product-name {
margin-top: 6px;
color: #777878;
font-size: 14px;
}

.drug-product-list li .drug-product-other {
width: 100%;
text-align: right;
margin-top: 6px;
margin-right: 20px;
font-size: 16px;
}

.herb-list {
width: 100%;
border-collapse: collapse;
font-size: 22px;
}

.herb-list tr {
display: flex;
flex-flow: row wrap;
flex-direction: row;
}

.herb-list td {
display: flex;
align-items: center;
justify-content: center;
flex: none;
width: 33.33%;
padding: 10px;
border: 1px solid #000;
}

.delay-drug label {
color: #777878;
margin-left: 30px;
}

.delay-drug label:first-of-type {
margin-left: 0;
}

.delay-drug label input {
display: none;
}

.delay-drug label a {
display: inline-block;
width: 10px;
height: 10px;
border: solid 1px #0b0306;
position: relative;
margin-right: 5px;
}

.delay-drug label input:checked+a:after {
/*display: block;
content: ”;
width:30px;
height:30px;
position:absolute;
left:0;
top:-10px;
background:url(“./images/checked.png”) no-repeat;
background-size:30px 30px;*/
}

.total {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #000;
}

.seal {
position: absolute;
bottom: 40px;
right: 60px;
}

td>div {
text-align: right;
}

.special_manufacture {
font-size: 18px;
}

.watermark {
position: absolute;
width: 240px;
height: 240px;
z-index: 999;
}

*{margin:0;padding:0}
table{margin-top:-1px;font:11px “黑体”,Verdana,arial,sans-serif;border-collapse:collapse}
table.container{width: 9cm;}
table td{border:1px solid #000}
table.nob{width:100%}
table.nob td{border:0}
table td.center{text-align:center}
table td.right{text-align:right}
table td.pl{padding-left:5px}
table td{padding-left:5px}
.font_s{font-size:10px;-webkit-transform:scale(0.84,0.84);*font-size:10px}
.font_m{font-size:14px;font-weight:bold}
.font_l{font-size:16px;font-weight:bold}
.font_xl{font-size:18px;font-weight:bold}
.font_xxl{font-size:32px;font-weight:bold}
table td img{margin-left: 5px; margin-right: 5px;}

</style>
</head>

<body id=”printPage” onafterprint=”afterPrintFunc()”>
<div id=”printBtnWrapper” style=”margin: 20px 0 0 20px;”>
<button class=”printBtn printBtn-single”>打印</button>
</div>
<div class=”wrapper”>
<table class=”container”>
<tr>
<td height=”62″ class=”center”>
<table class=”nob”>
<tr>
<td class=”center”>
<img width=”300″ height=”40″ src=”data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbwAAAAeAQMAAABt3TnNAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAEtJREFUOI3ty7EJQDEIBcBAWsFVBFvB1QXbQFYRbC3+nyLV66651bRtqMQ1Itr9iInUsN6+yTozmuzkLF1Z/TPM+NRCRERERER8FT8JyTq0mEMNZQAAAABJRU5ErkJggg==”/>
</td>
</tr>
<tr>
<td class=”center”>
JDVC04055990269-1-1-
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class=”container”>
<tr>
<td height=”40″ style=”width: 13%”>
始发地
</td>
<td colspan=”3″ rowspan=”2″>
<table class=”nob”>
<tr>
<td colspan=”2″>
<strong>
广州太和分拣中心
</strong>
</td>
</tr>
<tr>
<td>
<strong>
302-A09博-5
</strong>
</td>
</tr>
<tr>
<td class=”right font_s” colspan=”2″>
</td>
</tr>
</table>
</td>
<td height=”40″ style=”width: 13%”>
目的地
</td>
<td colspan=”3″ rowspan=”2″>
<table class=”nob”>
<tr>
<td colspan=”2″>
<strong>
广州博展分拣中心
</strong>
</td>
</tr>
<tr>
<td>
<strong>
10-26-5
</strong>
</td>
</tr>
<tr>
<td class=”right font_s” colspan=”2″>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class=”container”>
<tr>
<td style=”width: 6%”></td>
<td>G广州猎德营业部</td>
<td>23</td>
<td>1/1</td>
</tr>
</table>
<table class=”container”>
<tr>
<td style=”width: 10%”>收件信息</td>
<td colspan=”2″ style=”width: 61%”>
广东省广州市天河区珠江新城天河路
<p>未知 13692714849</p>
</td>
<td style=”padding: 0px !important;”>
<table style=”border: 0; width: 100%;”>
<tr>
<td>客户签字</td>
<td width=”70%”></td>
</tr>
<tr>
<td>运费</td>
<td></td>
</tr>
<tr>
<td>货款</td>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
<div style=”text-align: center; font-size: 9px; margin-left: 15px;”>2020-06-10</div>

<table class=”container”>
<tr>
<td class=”center” height=”10″>
运单号:JDVC04055990269
</td>
</tr>
</table>
<table class=”container”>
<tr>
<td width=”229″ height=”55″>
<table class=”nob”>
<tr>
<td class=”font_s”>
收件人信息:未知 13692714849
</td>
</tr>
<tr>
<td class=”center”>
<img width=”250″ height=”30″ src=”data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAU4AAAAeAQMAAAB5ZGVpAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAEBJREFUOI3tyrEJADAIBMCAbcBVBFvB1YW0AVcRbL/IHsGrb/Umwy5xjYh2v2IiBdbsPKwA9CCT2tbUqVOn/lkfeUGmSbn3mZYAAAAASUVORK5CYII=”/>
</td>
</tr>
<tr>
<td class=”center”>
JDVC04055990269
</td>
</tr>
</table>
</td>
<td>
<table class=”nob”>
<tr>
<td>
备注:
</td>
</tr>
<tr>
<td>
<p>商家订单号:833373</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class=”container”>
<tr>
<td>次日达</td>
<td>特惠送</td>
<td>保价</td>
<td>&nbsp;&nbsp;</td>
</tr>
</table>
<table class=”container”>
<tr>
<td>
寄方信息:
广东省广州市番禺区番禺区
<p style=”margin-top: 3px;”>39237997</p>
</td>
<td width=”30%”>
<p>商家ID:020K888</p>
</td>
</tr>
</table>
</div>

<script src=”http://www.kwmzy.com:8005/admin/assets/global/plugins/jquery.min.js” type=”text/javascript”></script>
<script type=”text/javascript”>
$(function() {

var printSingleFunc = function(target) {
var $this = $(target);
$this.attr(‘disabled’, ‘disabled’);
$this.css(‘background-color’, ‘#cccccc’);
$this.text(‘处理中’);
window.print();
$.ajax({
type: “GET”,
url: ‘http://www.kwmzy.com:8005/tdadmin/pharmacy/single/print/number?ids=833373’,
success: function(res) {
if (res.success) {
window.print();
} else {
alert(res.msg);
}
$this.removeAttr(‘disabled’);
$this.css(‘background-color’, ‘#35aa47’);

$(‘#title’).text(”);
},
dataType: ‘json’
});
};

$(‘.printBtn-single’).on(‘click’, function() {
printSingleFunc(this);
});

});

function afterPrintFunc() {
$(‘.herb-weight’).show();
$(‘.herb-dose’).show();
$(“.herb-list .herb-weight .total-weight”).hide();
$(“.herb-list .herb-weight .weight”).show();
}
</script>
</body>

</html>

posted on
2020-06-11 16:33 
裘小凉 
阅读(
评论(
编辑 
收藏

 

版权声明:本文为qiuxiaoliang原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/qiuxiaoliang/p/13094090.html

京东html面单的更多相关文章

随机推荐

  1. 最简单的数据库入门教程—00—数据库导论

    数据库 数据库过程 数据 – 信息 – 知识 – 决策 都有业务逻辑,权限 […]...

  2. 软件测试管理知识总结

    1 软件测试管理概述1.1软件测试管理基础1,软件测试管理目标:软件测试管理的目标是通过系统的、高效的、适用的 […]...

  3. JDBC连接MySQL中数据库的端口号

    JDBC连接数据库时我是使用的纯java驱动方式(驱动可从MySQL官网上下载,网址为http://dev.m […]...

  4. oracle创建数据库和用户 – 癫狂编程

    oracle创建数据库和用户   以前开发的时候用得比较多的是mysql和sql server,oracle用 […]...

  5. 少儿编程Scratch第一讲:Scratch完美的初体验

      链接:https://pan.baidu.com/s/1EqG6IrFafoH4MFxBoFjB_A 提取 […]...

  6. 电信猫拨号再加路由器

    电信猫拨号,设备连接猫LAN口或者无线,但是电信猫对连接数有限制,解决限制可以在猫下面加一个路由,tplink […]...

  7. 网络卫星地图 – 郭胜群

    网络卫星地图 不知道有朋友用过一些网络卫星地图没有,静态的大多免费,动态的外国有版本,但使用都要money,不 […]...

  8. asp.net core C#设计一个实用的线程池

    菜菜呀,我最近研究技术呢,发现线上一个任务程序线程数有点多呀 CEO,CTO,CFO于一身的CXO x总,你学 […]...

展开目录

目录导航