Commit 2687b40f authored by guantiantian's avatar guantiantian

修改快递单为密码投递

parent 5e79dfe9
...@@ -113,30 +113,25 @@ ...@@ -113,30 +113,25 @@
<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="install_lodop32.exe"></embed> <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="install_lodop32.exe"></embed>
</object> </object>
<div id="div1"> <div id="div1">
<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:0px dashed #000;width:74mm;font-family:'黑体';"> <table cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:0px solid #000;width:74mm;font-family:'黑体';">
<tr> <tr>
<td> <td>
<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;height:24mm"> <table cellspacing="0" cellpadding="0" style="border-collapse:collapse;height:24mm">
<tr> <tr>
<td style="width:72mm;height:4mm">
<span style="font-size:4mm; position: absolute;top:1mm;left:55mm;font-family:'黑体';">特快专递</span>
</td>
</tr>
<tr>
<td style="border:0px dashed #000;width:72mm;height:20mm">
</td>
</tr> </tr>
</table> <tr>
</td> <td style="border:0px solid #000;width:72mm;height:24mm">
</td>
</tr> </tr>
</table>
</td>
</tr>
<tr> <tr>
<td> <td>
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-collapse:collapse;height:17mm"> <table cellspacing="0" cellpadding="0" style="border-top:1px solid #000;border-collapse:collapse;height:17mm">
<tr> <tr>
<td style="width:72mm;"> <td style="width:72mm;">
<span style="font-size:8mm; position:absolute;top:25mm;left:2mm;width:72mm;font-weight: bold;"></span> <span style="font-size:9mm; position:absolute;top:28mm;left:2mm;width:72mm;font-weight: bold;"></span>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -144,43 +139,44 @@ ...@@ -144,43 +139,44 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-collapse:collapse;height:29mm"> <table cellspacing="0" cellpadding="0" style="border-top:1px solid #000;border-collapse:collapse;height:35mm">
<td style="border-right:1px dashed #000;width:55mm;font-size: 4.5mm;"> <td style="border-right:1px solid #000;width:50mm;font-size: 4.5mm;">
<div style="position:absolute;top:42mm;left:1.5mm;width:54mm;">收:{{postMsgDetail[idx].senderName}} <div style="position:absolute;top:42mm;left:1.5mm;width:49mm;word-break: break-all;">收:{{postMsgDetail[idx].senderName}}
</div> </div>
<div style="position:absolute;top:47mm;left:1.5mm;width:54mm;">{{postMsgDetail[idx].senderPhone}} <div style="position:absolute;top:47mm;left:1.5mm;width:49mm;word-break: break-all;">{{postMsgDetail[idx].senderPhone}}
</div> </div>
<div style="position:absolute;top:52mm;left:1.5mm;width:54mm;">{{postMsgDetail[idx].senderAddress}}</div> <div style="position:absolute;top:52mm;left:1.5mm;width:48mm;">{{postMsgDetail[idx].senderAddress}}</div>
</td> </td>
<td style="width:17mm;font-size: 2mm;"> <td style="width:22mm;font-size: 2mm;">
<p style="font-size: 8mm;width:10mm;position:absolute;top:33mm;left: 59mm;writing-mode: vertical-lr;text-align: justify;"> <div style="font-size: 2mm;height:3mm;position:absolute;top:42mm;left: 51mm;">
计费重量(KG):0.07kg
</p> </div>
<div style="font-size: 6mm;height:32mm;position:absolute;top:45mm;left: 51mm;text-align: justify;writing-mode:vertical-lr;">
</div>
</td> </td>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-collapse:collapse;height:5mm"> <table cellspacing="0" cellpadding="0" style="border-top:1px solid #000;border-collapse:collapse;height:10mm">
<td style="width:72mm;font-size: 2mm;"> <td style="width:72mm;font-size: 3mm;">
<div style="position:absolute;top:71mm;left:1.5mm;width:72mm;">寄:{{postMsgDetail[idx].recipientName}}&nbsp;{{postMsgDetail[idx].recipientPhone}}</div> <div style="position:absolute;top:78mm;left:1.5mm;width:72mm;">寄:{{postMsgDetail[idx].recipientName}}&nbsp;{{postMsgDetail[idx].recipientPhone}}</div>
<!-- <p style="position:absolute;top:44mm;left:10mm;"></p> --> <div style="position:absolute;top:82mm;left:1.5mm;width:72mm;">{{postMsgDetail[idx].recipientAddress}}</div>
<div style="position:absolute;top:73mm;left:1.5mm;width:72mm;">{{postMsgDetail[idx].recipientAddress}}</div>
</td> </td>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-collapse:collapse;height:3mm"> <table cellspacing="0" cellpadding="0" style="border-top:1px solid #000;border-collapse:collapse;height:6mm">
<tr> <tr>
<td style="width:41.5mm;font-size: 2mm;"> <td style="width:41.5mm;font-size: 3mm;">
<div style="position:absolute;top:76mm;left:1.5mm;width:40mm;">公司名称:</div> <div style="position:absolute;top:88mm;left:1.5mm;width:40mm;">公司名称:</div>
</td> </td>
<td style="width:30.5mm;font-size: 2mm;"> <td style="width:30.5mm;font-size: 3mm;">
<!-- <p style="position:absolute;top:44mm;left:10mm;"></p> --> <!-- <p style="position:absolute;top:44mm;left:10mm;"></p> -->
<div style="position:absolute;top:76mm;left:43mm;width:29mm;">内件品名:文</div> <div style="position:absolute;top:88mm;left:43mm;width:29mm;">内件品名:证</div>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -188,129 +184,45 @@ ...@@ -188,129 +184,45 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-collapse:collapse;height:24mm"> <table cellspacing="0" cellpadding="0" style="border-top:1px solid #000;border-collapse:collapse;height:30mm">
<tr> <tr>
<td style="width:41.5mm;font-size: 2mm;border-right:1px dashed #000;"> <td style="width:38.5mm;font-size: 2mm;border-right:1px solid #000;">
<div style="position:absolute;top:80mm;left:1.5mm;width:40mm;">备注:</div> <div style="font-size:8mm;position:absolute;top:102mm;left:3mm;width:36mm;">密码投递</div>
<div style="font-size:8mm;position:absolute;top:88mm;left:5mm;width:40mm;">标准快递</div>
</td> </td>
<td style="width:30.5mm;font-size: 2mm;"> <td style="width:33.5mm;font-size: 2mm;">
<!-- <p style="position:absolute;top:44mm;left:10mm;"></p> --> <div style="position:absolute;top:94mm;left:40mm;width:29mm;">签收人:</div>
<div style="position:absolute;top:80mm;left:43mm;width:29mm;">签收人:</div> <div style="position:absolute;top:104mm;left:40mm;width:29mm;">日期:</div>
<div style="position:absolute;top:90mm;left:43mm;width:29mm;">日期:</div> <div style="position:absolute;top:96mm;left:52mm;width: 20mm;text-align: center">
<div style="position:absolute;top:79mm;left:55mm;width: 20mm;text-align: center"> <img style="margin-left:1mm;width: 18mm;display: block;" src="css/image/QRCode.jpg" alt="" srcset="">
<img style="margin-left:1mm;width: 18mm;display: block;" src="../../css/image/QRCode.jpg" alt="" srcset="">
<div style="width:20mm;">客服电话:11183</div> <div style="width:20mm;">客服电话:11183</div>
<div style="width:20mm;">www.ems.com.cn</div> <div style="width:20mm;">www.ems.com.cn</div>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-collapse:collapse;height:3mm"> <table cellspacing="0" cellpadding="0" style="border-top:1px solid #000;border-bottom:1px solid #000;border-collapse:collapse;height:4mm">
<tr> <tr>
<td style="width:72mm;font-size: 2mm;"> <td style="width:41.5mm;font-size: 2mm;">
<div style="position:absolute;top:103mm;left:1.5mm;width:20mm;">验视人:</div> <div style="position:absolute;top:123.5mm;left:1.5mm;width:20mm;">验视人:张三</div>
<div style="position:absolute;top:103mm;left:18.5mm;width:20mm;">验视机构:</div> <div style="position:absolute;top:123.5mm;left:18.5mm;width:20mm;">验视机构:北京永安路</div>
<div style="position:absolute;top:103mm;left:45.5mm;width:20mm;">来源:</div>
<div style="position:absolute;top:103mm;left:61.5mm;width:12mm;"></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td >
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-collapse:collapse;height:2mm">
<tr>
<td style="width:72mm;">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td >
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-collapse:collapse;height:2mm">
<tr>
<td style="width:72mm;">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-collapse:collapse;height:13mm">
<tr>
<td style="width:45mm;font-size: 2mm;">
</td>
<td style="width:27mm;font-size: 2mm;">
</td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-collapse:collapse;height:14mm">
<tr>
<td style="width:72mm;font-size: 3.5mm;">
<div style="position:absolute;top:123mm;left:1.5mm;width:72mm;">收:{{postMsgDetail[idx].senderName}}&nbsp;{{postMsgDetail[idx].senderPhone}}
</td>
</tr>
<tr >
<td style="width:72mm;font-size: 3.5mm;">
<div style="position:absolute;top:127mm;left:1.5mm;width:72mm;">
{{postMsgDetail[idx].senderAddress}}</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-collapse:collapse;height:8mm">
<tr>
<td style="width:72mm;font-size: 2mm;">
<div style="position:absolute;top:137mm;left:1.5mm;width:72mm;">寄:{{postMsgDetail[idx].recipientName}}&nbsp;{{postMsgDetail[idx].recipientPhone}}</div>
</td>
</tr>
<tr>
<td style="width:72mm;font-size: 2mm;">
<div style="position:absolute;top:140mm;left:1.5mm;width:72mm;">{{postMsgDetail[idx].recipientAddress}}</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-bottom:1px dashed #000;border-collapse:collapse;height:3mm">
<tr>
<td style="width:41.5mm;font-size: 2mm;">
<!-- <div style="position:absolute;top:141mm;left:1.5mm;width:40mm;">公司名称11:</div> -->
<div style="position:absolute;top:145mm;left:1.5mm;width:41mm;">客服电话:11183&nbsp;网址:www.ems.com.cn</div>
<!-- <div style="margin-left: 1mm;">客服电话:11183</div> -->
</td>
<td style="font-size: 2mm;;width:30.5mm;"> <td style="font-size: 2mm;;width:30.5mm;">
<!-- <p style="position:absolute;top:44mm;left:10mm;"></p> --> <div style="position:absolute;top:123.5mm;left:43mm;width:29mm;">时间:201-3-15 14:20 X</div>
<div style="position:absolute;top:145mm;left:43mm;width:29mm;">打印时间:{{currentTime}}</div>
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<div id="div3"> <!-- <div id="div3">
<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:0px dashed #000;width:74mm;font-family:'黑体';"> <table cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:0px dashed #000;width:74mm;font-family:'黑体';">
<tr> <tr>
<td> <td>
...@@ -508,7 +420,7 @@ ...@@ -508,7 +420,7 @@
</td> </td>
</tr> </tr>
</table> </table>
</div> </div> -->
</div> </div>
\ No newline at end of file
...@@ -225,10 +225,10 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http']) ...@@ -225,10 +225,10 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http'])
$scope.PreviewMytableRotate = function(){ $scope.PreviewMytableRotate = function(){
$scope.currentTime = getNowFormatDate(); $scope.currentTime = getNowFormatDate();
var LODOP1 = getLodop(); var LODOP1 = getLodop();
LODOP1.SET_LICENSES("", "15F0BE661E7F32F37491843CB2510905", "C94CEE276DB2187AE6B65D56B3FC2848", ""); // LODOP1.SET_LICENSES("", "15F0BE661E7F32F37491843CB2510905", "C94CEE276DB2187AE6B65D56B3FC2848", "");
LODOP1.PRINT_INIT("实物返单"); // LODOP1.PRINT_INIT("实物返单");
LODOP1.SET_PRINT_PAGESIZE(1, "76mm", "150mm", ""); // LODOP1.SET_PRINT_PAGESIZE(1, "76mm", "150mm", "");
LODOP1 = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM1')); // LODOP1 = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM1'));
//分辨率2880*1620 //分辨率2880*1620
// LODOP1.ADD_PRINT_BARCODE(20, 185, 236, 56, "128A", $scope.postMsgDetail[$scope.idx].yjh); // LODOP1.ADD_PRINT_BARCODE(20, 185, 236, 56, "128A", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(363, 13, 236, 40, "128A", $scope.postMsgDetail[$scope.idx].yjh); // LODOP1.ADD_PRINT_BARCODE(363, 13, 236, 40, "128A", $scope.postMsgDetail[$scope.idx].yjh);
...@@ -247,17 +247,17 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http']) ...@@ -247,17 +247,17 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http'])
// LODOP1.ADD_PRINT_BARCODE(290, 48, 70, 20, "128A", $scope.postMsgDetail[$scope.idx].sequence); // LODOP1.ADD_PRINT_BARCODE(290, 48, 70, 20, "128A", $scope.postMsgDetail[$scope.idx].sequence);
// LODOP1.ADD_PRINT_TABLE(13, 2, 960, 1400, document.getElementById("div3").innerHTML); // LODOP1.ADD_PRINT_TABLE(13, 2, 960, 1400, document.getElementById("div3").innerHTML);
//(2019-07-01 改) //(2019-07-01 改)
LODOP1.ADD_PRINT_BARCODE('7mm', '4.5mm','72mm','18mm', "128A",$scope.postMsgDetail[$scope.idx].waybillNumber); // LODOP1.ADD_PRINT_BARCODE('7mm', '4.5mm','72mm','18mm', "128A",$scope.postMsgDetail[$scope.idx].waybillNumber);
// LODOP1.ADD_PRINT_BARCODE('112mm','4.5mm', '46mm','10mm', "128A",$scope.postMsgDetail[$scope.idx].fileId); // LODOP1.ADD_PRINT_BARCODE('112mm','4.5mm', '46mm','10mm', "128A",$scope.postMsgDetail[$scope.idx].fileId);
LODOP1.ADD_PRINT_BARCODE('112mm','4.5mm', '46mm','10mm', "128A",$scope.postMsgDetail[$scope.idx].waybillNumber); // LODOP1.ADD_PRINT_BARCODE('112mm','4.5mm', '46mm','10mm', "128A",$scope.postMsgDetail[$scope.idx].waybillNumber);
// LODOP1.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Full-Page"); // LODOP1.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Full-Page");
LODOP1.ADD_PRINT_TABLE('1.5mm', '1.5mm', '74mm', '148mm', document.getElementById("div3").innerHTML); // LODOP1.ADD_PRINT_TABLE('1.5mm', '1.5mm', '74mm', '148mm', document.getElementById("div3").innerHTML);
LODOP1.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Width:100%;Height:100%"); // LODOP1.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Width:100%;Height:100%");
LODOP1.SET_PRINT_STYLEA(1, "FontSize", 10); // LODOP1.SET_PRINT_STYLEA(1, "FontSize", 10);
LODOP1.SET_PRINT_STYLEA(2, "FontSize", 5); // LODOP1.SET_PRINT_STYLEA(2, "FontSize", 5);
// LODOP1.SET_PRINT_STYLEA(3, "FontSize", 10); // LODOP1.SET_PRINT_STYLEA(3, "FontSize", 10);
LODOP1.SET_PRINT_STYLEA(0, "TableHeightScope", iRadioValue); // LODOP1.SET_PRINT_STYLEA(0, "TableHeightScope", iRadioValue);
LODOP1.SET_PRINT_STYLEA(0, "AngleOfPageInside", 0); // LODOP1.SET_PRINT_STYLEA(0, "AngleOfPageInside", 0);
// LODOP1.PREVIEW(); // LODOP1.PREVIEW();
if(!LODOP1.PRINT()){ if(!LODOP1.PRINT()){
$scope.printResult ="打印时出现错误,请检查打印机的状态"; $scope.printResult ="打印时出现错误,请检查打印机的状态";
...@@ -266,7 +266,7 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http']) ...@@ -266,7 +266,7 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http'])
LODOP.SET_LICENSES("", "15F0BE661E7F32F37491843CB2510905", "C94CEE276DB2187AE6B65D56B3FC2848", ""); LODOP.SET_LICENSES("", "15F0BE661E7F32F37491843CB2510905", "C94CEE276DB2187AE6B65D56B3FC2848", "");
LODOP.SET_PRINT_STYLE("FontName", "黑体"); LODOP.SET_PRINT_STYLE("FontName", "黑体");
LODOP.PRINT_INIT("标准快递"); LODOP.PRINT_INIT("标准快递");
LODOP.SET_PRINT_PAGESIZE(1, "76mm", "150mm", ""); LODOP.SET_PRINT_PAGESIZE(1, "76mm", "130mm", "");
LODOP = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM1')); LODOP = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM1'));
LODOP.SET_PRINT_STYLE("FontName", "黑体"); LODOP.SET_PRINT_STYLE("FontName", "黑体");
//分辨率2880*1620 //分辨率2880*1620
...@@ -283,13 +283,13 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http']) ...@@ -283,13 +283,13 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http'])
// LODOP.ADD_PRINT_BARCODE(20, 185, 242, 60, "128A", $scope.postMsgDetail[$scope.idx].fxyjh); // LODOP.ADD_PRINT_BARCODE(20, 185, 242, 60, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_BARCODE(380, 13, 236, 40, "128A", $scope.postMsgDetail[$scope.idx].fxyjh); // LODOP.ADD_PRINT_BARCODE(380, 13, 236, 40, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
//(2019-07-01 改) //(2019-07-01 改)
LODOP.ADD_PRINT_BARCODE('7mm', '4.5mm','72mm','18mm', "128A",$scope.postMsgDetail[$scope.idx].backWaybillNumber); LODOP.ADD_PRINT_BARCODE('4mm', '4.5mm','72mm','18mm', "128A",$scope.postMsgDetail[$scope.idx].backWaybillNumber);
LODOP.ADD_PRINT_BARCODE('112mm','4.5mm', '46mm','10mm', "128A",$scope.postMsgDetail[$scope.idx].backWaybillNumber); // LODOP.ADD_PRINT_BARCODE('112mm','4.5mm', '46mm','10mm', "128A",$scope.postMsgDetail[$scope.idx].backWaybillNumber);
LODOP.ADD_PRINT_TABLE('1.5mm', '1.5mm', '74mm', '148mm', document.getElementById("div1").innerHTML); LODOP.ADD_PRINT_TABLE('1.5mm', '1.5mm', '74mm', '148mm', document.getElementById("div1").innerHTML);
// LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Full-Page"); // LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Full-Page");
LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Width:100%;Height:100%"); LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Width:100%;Height:100%");
LODOP.SET_PRINT_STYLEA(1, "FontSize", 10); LODOP.SET_PRINT_STYLEA(1, "FontSize", 10);
LODOP.SET_PRINT_STYLEA(2, "FontSize", 5); // LODOP.SET_PRINT_STYLEA(2, "FontSize", 5);
LODOP.SET_PRINT_STYLEA(0, "TableHeightScope", iRadioValue); LODOP.SET_PRINT_STYLEA(0, "TableHeightScope", iRadioValue);
LODOP.SET_PRINT_STYLEA(0, "AngleOfPageInside", 0); LODOP.SET_PRINT_STYLEA(0, "AngleOfPageInside", 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment