天天看點

京東html面單

京東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 

裘小涼 

閱讀(...) 

評論(...) 

編輯 

收藏

下一篇: vue官方資源

繼續閱讀