report.html
7.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg" style="padding:5px 0;" id="ddd">
<div class="container" style="color: #333;">
<div class="row">
<div>
<span class="noprint" style="padding-left:92%;"><button type="button" onClick="a()"><i class="fa fa-print"></i> 打印</button></span>
</div>
<table id="reportTable" width="100%" border="1" cellspacing="0" cellpadding="0" style="margin-top: 3px;" class="dy-report">
<thead style="display:table-header-group;">
<tr>
<td colspan="2">
<h2 align="center">武汉动力电池再生技术有限公司<span th:text="${vehicleShipment['vehicleDocumentType']}"></span></h2>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<span >过磅单号:<span th:text="${vehicleShipment['poundNumber']}"></span></span>
</td>
</tr>
<tr style="">
<td colspan="1">
<span>创建时间</span>
</td>
<td colspan="1" style="width: 60%">
<span th:text="${#dates.format(vehicleShipment.created,'yyyy-MM-dd HH:mm:ss')}"></span>
</td>
</tr>
<tr style="">
<td colspan="1">
<span>车牌号</span>
</td>
<td colspan="1" style="width: 60%">
<span th:text="${vehicleShipment['carNumber']}"></span>
</td>
</tr>
<tr style="">
<td colspan="1">
<span>物料编码</span>
</td>
<td colspan="1">
<span th:text="${vehicleShipment['materialCode']}"></span>
</td>
</tr>
<tr style="">
<td colspan="1">
<span>物料名称</span>
</td>
<td colspan="1">
<span th:text="${vehicleShipment['materialName']}"></span>
</td>
</tr>
<tr style="">
<td colspan="1">
<span>规格型号</span>
</td>
<td colspan="1">
<span th:text="${vehicleShipment['materialSpec']}"></span>
</td>
</tr>
<tr style="">
<td colspan="1">
<span>备注</span>
</td>
<td colspan="1">
<span th:text="${vehicleShipment['remark']}"></span>
</td>
</tr>
<tr style="">
<td colspan="1">
<span>客户</span>
</td>
<td colspan="1">
<span th:text="${vehicleShipment['customerCode']}"></span>
</td>
</tr>
<tr style="">
<td colspan="1">
<span>毛重</span>
</td>
<td colspan="1">
<span th:text="${vehicleShipment['grossWeight']}"></span>KG
</td>
</tr>
<tr style="">
<td colspan="1">
<span>皮重</span>
</td>
<td colspan="1">
<span th:text="${vehicleShipment['tareWeight']}"></span>KG
</td>
</tr>
<!--<tr style="">
<td colspan="1">
<span>扣杂</span>
</td>
<td colspan="1">
<span th:text="${vehicleShipment['grossWeight']}"></span>KG
</td>
</tr>-->
<tr style="">
<td colspan="1">
<span>净重</span>
</td>
<td colspan="1">
<span th:text="${vehicleShipment['netWeight']}"></span>KG
</td>
</tr>
<tr style="">
<td colspan="1">
<span>结算重量</span>
</td>
<td colspan="1">
<span ></span>KG
</td>
</tr>
<tr style="">
<td colspan="1">
<span> 司磅员</span>
</td>
<td colspan="1">
<span th:text="${vehicleShipment['createdBy']}"></span>
</td>
</tr>
<tr style="">
<td colspan="1">
<span> 监磅员</span>
</td>
<td colspan="1">
<span ></span>
</td>
</tr>
<!--<tr style="">
<td colspan="1">
<span>创建人</span>
</td>
<td colspan="1">
<span th:text="${vehicleShipment['createdBy']}"></span>
</td>
</tr>
<tr style="">
<td colspan="1">
<span>创建时间</span>
</td>
<td colspan="1">
<span th:text="${#dates.format(vehicleShipment.created,'yyyy-MM-dd HH:mm:ss')}"></span>
</td>
</tr>-->
<tr style="">
<td colspan="1">
<span>送/收货员</span>
</td>
<td colspan="1">
<span></span>
</td>
</tr>
</table>
</div>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="../../../js/barcode/JsBarcode.all.js"></script>
<script type="text/javascript" src="//static.runoob.com/assets/qrcode/qrcode.min.js"></script>
<script th:inline="javascript">
var barcodeStyle = {
format: "CODE128",//选择要使用的条形码类型
width:1,//设置条之间的宽度
height:40,//高度
displayValue:true,//是否在条形码下方显示文字
// text:"456",//覆盖显示的文本
// fontOptions:"bold italic",//使文字加粗体或变斜体
font:"monospace",//设置文本的字体fantasy
textAlign:"center",//设置文本的水平对齐方式
textPosition:"bottom",//设置文本的垂直位置
textMargin:1,//设置条形码和文本之间的间距
fontSize:12,//设置文本的大小
background:"#ffffff",//设置条形码的背景
lineColor:"#000000",//设置条和文本的颜色。
margin:1//设置条形码周围的空白边距
};
// $("#receiptCode").JsBarcode($("#receiptCode").attr("data"), barcodeStyle);
// for (var i=0; i<$('#reportTable tbody tr').length; i++){
// var barcodeText = $("#reportTable tbody tr:eq("+ i +") td:eq(0)").innerText;
// $("#reportTable tbody tr:eq("+ i +") td:eq(6) canvas").JsBarcode("6666", barcodeStyle);
// }
// $('#reportTable tbody tr').each(function(i) {
// var barcodeText = $(this).children()[0].innerText;
// JsBarcode($(this).children()[6].querySelector("img"), barcodeText, barcodeStyle);
// });
//
</script>
<style type="text/css">
@media print {
.noprint{display:none;}
}
</style>
<script type="text/javascript" src="../../../js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../../../js/jquery.jqprint-0.3.js"></script>
<script type="text/javascript">
function a(){
$("#ddd").jqprint();
}
</script>
</body>
</html>