Commit b4a8f8b4 authored by guantiantian's avatar guantiantian

更改快递单字段显示

parent 2687b40f
...@@ -118,9 +118,12 @@ ...@@ -118,9 +118,12 @@
<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>
<tr> <tr>
<td style="border:0px solid #000;width:72mm;height:24mm"> <td style="border:0px solid #000;width:72mm;height:20mm">
</td> </td>
</tr> </tr>
</table> </table>
...@@ -131,7 +134,9 @@ ...@@ -131,7 +134,9 @@
<table cellspacing="0" cellpadding="0" style="border-top:1px solid #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:9mm; position:absolute;top:28mm;left:2mm;width:72mm;font-weight: bold;"></span> <span style="font-size:9mm; position:absolute;top:28mm;left:2mm;width:72mm;font-weight: bold;">
{{postMsgDetail[idx].latticeMouthInformation}}
</span>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -141,17 +146,18 @@ ...@@ -141,17 +146,18 @@
<td> <td>
<table cellspacing="0" cellpadding="0" style="border-top:1px solid #000;border-collapse:collapse;height:35mm"> <table cellspacing="0" cellpadding="0" style="border-top:1px solid #000;border-collapse:collapse;height:35mm">
<td style="border-right:1px solid #000;width:50mm;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:49mm;word-break: break-all;">收:{{postMsgDetail[idx].senderName}} <div style="position:absolute;top:42mm;left:1.5mm;width:49mm;word-break: break-all;">收:{{postMsgDetail[idx].recipientName}}
</div> </div>
<div style="position:absolute;top:47mm;left:1.5mm;width:49mm;word-break: break-all;">{{postMsgDetail[idx].senderPhone}} <div style="position:absolute;top:47mm;left:1.5mm;width:49mm;word-break: break-all;">{{postMsgDetail[idx].recipientPhone}}
</div> </div>
<div style="position:absolute;top:52mm;left:1.5mm;width:48mm;">{{postMsgDetail[idx].senderAddress}}</div> <div style="position:absolute;top:52mm;left:1.5mm;width:48mm;">{{postMsgDetail[idx].recipientAddress}}</div>
</td> </td>
<td style="width:22mm;font-size: 2mm;"> <td style="width:22mm;font-size: 2mm;">
<div style="font-size: 2mm;height:3mm;position:absolute;top:42mm;left: 51mm;"> <div style="font-size: 2mm;height:3mm;position:absolute;top:42mm;left: 51mm;">
计费重量(KG):0.07kg 计费重量(KG):0.07kg
</div> </div>
<div style="font-size: 6mm;height:32mm;position:absolute;top:45mm;left: 51mm;text-align: justify;writing-mode:vertical-lr;"> <div style="font-size: 6mm;height:32mm;position:absolute;top:45mm;left: 51mm;text-align: justify;writing-mode:vertical-lr;">
{{postMsgDetail[idx].applicantName}}
</div> </div>
</td> </td>
</table> </table>
...@@ -161,8 +167,8 @@ ...@@ -161,8 +167,8 @@
<td> <td>
<table cellspacing="0" cellpadding="0" style="border-top:1px solid #000;border-collapse:collapse;height:10mm"> <table cellspacing="0" cellpadding="0" style="border-top:1px solid #000;border-collapse:collapse;height:10mm">
<td style="width:72mm;font-size: 3mm;"> <td style="width:72mm;font-size: 3mm;">
<div style="position:absolute;top:78mm;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].senderName}}&nbsp;{{postMsgDetail[idx].senderPhone}}</div>
<div style="position:absolute;top:82mm;left:1.5mm;width:72mm;">{{postMsgDetail[idx].recipientAddress}}</div> <div style="position:absolute;top:82mm;left:1.5mm;width:72mm;">{{postMsgDetail[idx].senderAddress}}</div>
</td> </td>
</table> </table>
</td> </td>
...@@ -209,12 +215,12 @@ ...@@ -209,12 +215,12 @@
<table cellspacing="0" cellpadding="0" style="border-top:1px solid #000;border-bottom:1px solid #000;border-collapse:collapse;height:4mm"> <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:41.5mm;font-size: 2mm;"> <td style="width:41.5mm;font-size: 2mm;">
<div style="position:absolute;top:123.5mm;left:1.5mm;width:20mm;">验视人:张三</div> <div style="position:absolute;top:123.5mm;left:1.5mm;width:20mm;">验视人:</div>
<div style="position:absolute;top:123.5mm;left:18.5mm;width:20mm;">验视机构:北京永安路</div> <div style="position:absolute;top:123.5mm;left:18.5mm;width:20mm;">验视机构:</div>
</td> </td>
<td style="font-size: 2mm;;width:30.5mm;"> <td style="font-size: 2mm;;width:30.5mm;">
<div style="position:absolute;top:123.5mm;left:43mm;width:29mm;">时间:201-3-15 14:20 X</div> <div style="position:absolute;top:123.5mm;left:43mm;width:29mm;">时间:{{currentTime}}</div>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -275,7 +281,7 @@ ...@@ -275,7 +281,7 @@
<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 dashed #000;border-collapse:collapse;height:5mm">
<td style="width:72mm;font-size: 2mm;"> <td style="width:72mm;font-size: 2mm;">
<div style="position:absolute;top:71mm;left:1.5mm;width:72mm;">寄:{{postMsgDetail[idx].senderName}}&nbsp;{{postMsgDetail[idx].senderPhone}}</div> <div style="position:absolute;top:71mm;left:1.5mm;width:72mm;">寄:{{postMsgDetail[idx].senderName}}&nbsp;{{postMsgDetail[idx].senderPhone}}</div>
<!-- <p style="position:absolute;top:44mm;left:10mm;"></p> -->
<div style="position:absolute;top:73mm;left:1.5mm;width:72mm;">{{postMsgDetail[idx].senderAddress}}</div> <div style="position:absolute;top:73mm;left:1.5mm;width:72mm;">{{postMsgDetail[idx].senderAddress}}</div>
</td> </td>
</table> </table>
...@@ -289,7 +295,7 @@ ...@@ -289,7 +295,7 @@
<div style="position:absolute;top:76mm;left:1.5mm;width:40mm;">公司名称:</div> <div style="position:absolute;top:76mm;left:1.5mm;width:40mm;">公司名称:</div>
</td> </td>
<td style="width:30.5mm;font-size: 2mm;"> <td style="width:30.5mm;font-size: 2mm;">
<!-- <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:76mm;left:43mm;width:29mm;">内件品名:证件</div>
</td> </td>
</tr> </tr>
...@@ -305,7 +311,7 @@ ...@@ -305,7 +311,7 @@
<div style="font-size:8mm;position:absolute;top:88mm;left:5mm;width:40mm;">实物返单</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:30.5mm;font-size: 2mm;">
<!-- <p style="position:absolute;top:44mm;left:10mm;"></p> -->
<div style="position:absolute;top:80mm;left:43mm;width:29mm;">签收人:</div> <div style="position:absolute;top:80mm;left:43mm;width:29mm;">签收人:</div>
<div style="position:absolute;top:90mm;left:43mm;width:29mm;">日期:</div> <div style="position:absolute;top:90mm;left:43mm;width:29mm;">日期:</div>
<div style="position:absolute;top:79mm;left:55mm;width: 20mm;text-align: center"> <div style="position:absolute;top:79mm;left:55mm;width: 20mm;text-align: center">
...@@ -371,7 +377,7 @@ ...@@ -371,7 +377,7 @@
<tr> <tr>
<td style="width:72mm;font-size: 3.5mm;"> <td style="width:72mm;font-size: 3.5mm;">
<div style="position:absolute;top:123mm;left:1.5mm;width:72mm;">收:{{postMsgDetail[idx].recipientName}}&nbsp;{{postMsgDetail[idx].recipientPhone}} <div style="position:absolute;top:123mm;left:1.5mm;width:72mm;">收:{{postMsgDetail[idx].recipientName}}&nbsp;{{postMsgDetail[idx].recipientPhone}}
<!-- <div style="position:absolute;width:72mm;">{{postMsgDetail[idx].recipientAddress}}</div> -->
</div> </div>
</td> </td>
</tr> </tr>
...@@ -405,14 +411,14 @@ ...@@ -405,14 +411,14 @@
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-bottom:1px dashed #000;border-collapse:collapse;height:3mm"> <table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-bottom:1px dashed #000;border-collapse:collapse;height:3mm">
<tr> <tr>
<td style="width:41.5mm;font-size: 2mm;"> <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="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>
<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:145mm;left:43mm;width:29mm;">打印时间:{{currentTime}}</div> <div style="position:absolute;top:145mm;left:43mm;width:29mm;">打印时间:{{currentTime}}</div>
</td> </td>
</tr> </tr>
......
...@@ -225,83 +225,30 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http']) ...@@ -225,83 +225,30 @@ 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", "130mm", "");
// 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); // //(2019-07-01 改)
// LODOP1.ADD_PRINT_BARCODE(363, 13, 236, 40, "128A", $scope.postMsgDetail[$scope.idx].yjh); LODOP1.ADD_PRINT_BARCODE('7mm', '4.5mm','72mm','18mm', "128A",$scope.postMsgDetail[$scope.idx].backWaybillNumber);
// LODOP1.ADD_PRINT_BARCODE(270, 50, 70, 20, "128A", "11"); LODOP1.ADD_PRINT_TABLE('1.5mm', '1.5mm', '74mm', '148mm', document.getElementById("div1").innerHTML);
//分辨率1440*900 LODOP1.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Width:100%;Height:100%");
// LODOP1.ADD_PRINT_BARCODE(16, 90, 95, 32, "128A", $scope.postMsgDetail[$scope.idx].yjh); LODOP1.SET_PRINT_STYLEA(1, "FontSize", 10);
// LODOP1.ADD_PRINT_BARCODE(186, 10, 100, 24, "128A", $scope.postMsgDetail[$scope.idx].yjh); LODOP1.SET_PRINT_STYLEA(0, "TableHeightScope", iRadioValue);
// LODOP1.ADD_PRINT_BARCODE(141, 28, 70, 13, "128A", "11"); LODOP1.SET_PRINT_STYLEA(0, "AngleOfPageInside", 0);
//秦皇岛
// LODOP1.ADD_PRINT_BARCODE(15, 76, 95, 30, "128A", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(165, 8, 100, 23, "128A", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(125, 25, 70, 12, "128A", "11");
//北京
// LODOP1.ADD_PRINT_BARCODE(20, 185, 242, 60, "128A", $scope.postMsgDetail[$scope.idx].yjh );
// LODOP1.ADD_PRINT_BARCODE(375, 15, 236, 40, "128A", $scope.postMsgDetail[$scope.idx].yjh );
// 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);
//(2019-07-01 改)
// 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].waybillNumber);
// LODOP1.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "Full-Page");
// 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_STYLEA(1, "FontSize", 10);
// LODOP1.SET_PRINT_STYLEA(2, "FontSize", 5);
// LODOP1.SET_PRINT_STYLEA(3, "FontSize", 10);
// LODOP1.SET_PRINT_STYLEA(0, "TableHeightScope", iRadioValue);
// LODOP1.SET_PRINT_STYLEA(0, "AngleOfPageInside", 0);
// LODOP1.PREVIEW();
if(!LODOP1.PRINT()){ if(!LODOP1.PRINT()){
$scope.printResult ="打印时出现错误,请检查打印机的状态"; $scope.printResult ="打印时出现错误,请检查打印机的状态";
}else{ }else{
var LODOP = getLodop(); // if(LODOP1.PRINT()){
LODOP.SET_LICENSES("", "15F0BE661E7F32F37491843CB2510905", "C94CEE276DB2187AE6B65D56B3FC2848", "");
LODOP.SET_PRINT_STYLE("FontName", "黑体");
LODOP.PRINT_INIT("标准快递");
LODOP.SET_PRINT_PAGESIZE(1, "76mm", "130mm", "");
LODOP = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM1'));
LODOP.SET_PRINT_STYLE("FontName", "黑体");
//分辨率2880*1620
// LODOP.ADD_PRINT_BARCODE(20, 185, 236, 56, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_BARCODE(363, 13, 236, 40, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
//分辨率1440*900
// LODOP.ADD_PRINT_BARCODE(16, 90, 95, 32, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_BARCODE(186, 10, 100, 24, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
//秦皇岛
// LODOP.ADD_PRINT_BARCODE(14, 78, 95, 30, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_BARCODE(164, 10, 100, 23, "128A", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_TABLE(12, 5, 960, 1400, document.getElementById("div1").innerHTML);
//北京
// 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);
//(2019-07-01 改)
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_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", "Width:100%;Height:100%");
LODOP.SET_PRINT_STYLEA(1, "FontSize", 10);
// LODOP.SET_PRINT_STYLEA(2, "FontSize", 5);
LODOP.SET_PRINT_STYLEA(0, "TableHeightScope", iRadioValue);
LODOP.SET_PRINT_STYLEA(0, "AngleOfPageInside", 0);
// LODOP.PREVIEW();
if(LODOP.PRINT()){
var id = document.getElementsByClassName("minimal")[$scope.idx].value; var id = document.getElementsByClassName("minimal")[$scope.idx].value;
HttpService.setPrintTime(id, $scope.currentTime, function (data) { HttpService.setPrintTime(id, $scope.currentTime, function (data) {
$scope.printResult = $scope.postMsgDetail[$scope.idx].applicantName+" 打印完成"; $scope.printResult = $scope.postMsgDetail[$scope.idx].applicantName+" 打印完成";
}) })
}else { // }else {
MessageService.showAlert("打印状态更新失败,请重新打印面单!") // MessageService.showAlert("打印状态更新失败,请重新打印面单!")
} // }
} }
}; };
}); });
......
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