Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
b4a8f8b4
Commit
b4a8f8b4
authored
May 26, 2023
by
guantiantian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改快递单字段显示
parent
2687b40f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
87 deletions
+40
-87
searchCardMsg.html
...n/resources/static/views/searchCardMsg/searchCardMsg.html
+23
-17
searchCardMsg.js
...ain/resources/static/views/searchCardMsg/searchCardMsg.js
+17
-70
No files found.
src/main/resources/static/views/searchCardMsg/searchCardMsg.html
View file @
b4a8f8b4
...
...
@@ -118,9 +118,12 @@
<td>
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border-collapse:collapse;height:24mm"
>
<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 solid #000;width:72mm;height:2
4
mm"
>
<td
style=
"border:0px solid #000;width:72mm;height:2
0
mm"
>
</td>
</tr>
</table>
...
...
@@ -131,7 +134,9 @@
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border-top:1px solid #000;border-collapse:collapse;height:17mm"
>
<tr>
<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>
</tr>
</table>
...
...
@@ -141,17 +146,18 @@
<td>
<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;"
>
<div
style=
"position:absolute;top:42mm;left:1.5mm;width:49mm;word-break: break-all;"
>
收:{{postMsgDetail[idx].
sender
Name}}
<div
style=
"position:absolute;top:42mm;left:1.5mm;width:49mm;word-break: break-all;"
>
收:{{postMsgDetail[idx].
recipient
Name}}
</div>
<div
style=
"position:absolute;top:47mm;left:1.5mm;width:49mm;word-break: break-all;"
>
{{postMsgDetail[idx].
sender
Phone}}
<div
style=
"position:absolute;top:47mm;left:1.5mm;width:49mm;word-break: break-all;"
>
{{postMsgDetail[idx].
recipient
Phone}}
</div>
<div
style=
"position:absolute;top:52mm;left:1.5mm;width:48mm;"
>
{{postMsgDetail[idx].
sender
Address}}
</div>
<div
style=
"position:absolute;top:52mm;left:1.5mm;width:48mm;"
>
{{postMsgDetail[idx].
recipient
Address}}
</div>
</td>
<td
style=
"width:22mm;font-size: 2mm;"
>
<div
style=
"font-size: 2mm;height:3mm;position:absolute;top:42mm;left: 51mm;"
>
计费重量(KG):0.07kg
</div>
<div
style=
"font-size: 6mm;height:32mm;position:absolute;top:45mm;left: 51mm;text-align: justify;writing-mode:vertical-lr;"
>
{{postMsgDetail[idx].applicantName}}
</div>
</td>
</table>
...
...
@@ -161,8 +167,8 @@
<td>
<table
cellspacing=
"0"
cellpadding=
"0"
style=
"border-top:1px solid #000;border-collapse:collapse;height:10mm"
>
<td
style=
"width:72mm;font-size: 3mm;"
>
<div
style=
"position:absolute;top:78mm;left:1.5mm;width:72mm;"
>
寄:{{postMsgDetail[idx].
recipientName}}
{{postMsgDetail[idx].recipient
Phone}}
</div>
<div
style=
"position:absolute;top:82mm;left:1.5mm;width:72mm;"
>
{{postMsgDetail[idx].
recipient
Address}}
</div>
<div
style=
"position:absolute;top:78mm;left:1.5mm;width:72mm;"
>
寄:{{postMsgDetail[idx].
senderName}}
{{postMsgDetail[idx].sender
Phone}}
</div>
<div
style=
"position:absolute;top:82mm;left:1.5mm;width:72mm;"
>
{{postMsgDetail[idx].
sender
Address}}
</div>
</td>
</table>
</td>
...
...
@@ -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"
>
<tr>
<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:18.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>
</td>
<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>
</tr>
</table>
...
...
@@ -275,7 +281,7 @@
<table cellspacing="0" cellpadding="0" style="border-top:1px dashed #000;border-collapse:collapse;height:5mm">
<td style="width:72mm;font-size: 2mm;">
<div style="position:absolute;top:71mm;left:1.5mm;width:72mm;">寄:{{postMsgDetail[idx].senderName}} {{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>
</td>
</table>
...
...
@@ -289,7 +295,7 @@
<div style="position:absolute;top:76mm;left:1.5mm;width:40mm;">公司名称:</div>
</td>
<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>
</td>
</tr>
...
...
@@ -305,7 +311,7 @@
<div style="font-size:8mm;position:absolute;top:88mm;left:5mm;width:40mm;">实物返单</div>
</td>
<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:90mm;left:43mm;width:29mm;">日期:</div>
<div style="position:absolute;top:79mm;left:55mm;width: 20mm;text-align: center">
...
...
@@ -371,7 +377,7 @@
<tr>
<td style="width:72mm;font-size: 3.5mm;">
<div style="position:absolute;top:123mm;left:1.5mm;width:72mm;">收:{{postMsgDetail[idx].recipientName}} {{postMsgDetail[idx].recipientPhone}}
<!-- <div style="position:absolute;width:72mm;">{{postMsgDetail[idx].recipientAddress}}</div> -->
</div>
</td>
</tr>
...
...
@@ -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">
<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 网址:www.ems.com.cn</div>
<!-- <div style="margin-left: 1mm;">客服电话:11183</div> -->
</td>
<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>
</td>
</tr>
...
...
src/main/resources/static/views/searchCardMsg/searchCardMsg.js
View file @
b4a8f8b4
...
...
@@ -225,83 +225,30 @@ angular.module('AvatarCheck.searchCardMsg', ['ngRoute', 'AvatarCheck.http'])
$scope.PreviewMytableRotate = function(){
$scope.currentTime = getNowFormatDate();
var LODOP1 = getLodop();
// LODOP1.SET_LICENSES("", "
15
F0BE661E7F32F37491843CB2510905
", "
C94CEE276DB2187AE6B65D56B3FC2848
", "");
// LODOP1.PRINT_INIT("
实物返单
");
// LODOP1.SET_PRINT_PAGESIZE(1, "
76
mm
", "
150
mm
", "");
// LODOP1 = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM1'));
//分辨率2880*1620
// LODOP1.ADD_PRINT_BARCODE(20, 185, 236, 56, "
128
A
", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(363, 13, 236, 40, "
128
A
", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(270, 50, 70, 20, "
128
A
", "
11
");
//分辨率1440*900
// LODOP1.ADD_PRINT_BARCODE(16, 90, 95, 32, "
128
A
", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(186, 10, 100, 24, "
128
A
", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(141, 28, 70, 13, "
128
A
", "
11
");
//秦皇岛
// LODOP1.ADD_PRINT_BARCODE(15, 76, 95, 30, "
128
A
", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(165, 8, 100, 23, "
128
A
", $scope.postMsgDetail[$scope.idx].yjh);
// LODOP1.ADD_PRINT_BARCODE(125, 25, 70, 12, "
128
A
", "
11
");
//北京
// LODOP1.ADD_PRINT_BARCODE(20, 185, 242, 60, "
128
A
", $scope.postMsgDetail[$scope.idx].yjh );
// LODOP1.ADD_PRINT_BARCODE(375, 15, 236, 40, "
128
A
", $scope.postMsgDetail[$scope.idx].yjh );
// LODOP1.ADD_PRINT_BARCODE(290, 48, 70, 20, "
128
A
", $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', "
128
A
",$scope.postMsgDetail[$scope.idx].waybillNumber);
// LODOP1.ADD_PRINT_BARCODE('112mm','4.5mm', '46mm','10mm', "
128
A
",$scope.postMsgDetail[$scope.idx].fileId);
// LODOP1.ADD_PRINT_BARCODE('112mm','4.5mm', '46mm','10mm', "
128
A
",$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();
LODOP1.SET_LICENSES("", "
15
F0BE661E7F32F37491843CB2510905
", "
C94CEE276DB2187AE6B65D56B3FC2848
", "");
LODOP1.PRINT_INIT("
标准快递
");
LODOP1.SET_PRINT_PAGESIZE(1, "
76
mm
", "
130
mm
", "");
LODOP1 = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM1'));
// //分辨率2880*1620
// //(2019-07-01 改)
LODOP1.ADD_PRINT_BARCODE('7mm', '4.5mm','72mm','18mm', "
128
A
",$scope.postMsgDetail[$scope.idx].backWaybillNumber);
LODOP1.ADD_PRINT_TABLE('1.5mm', '1.5mm', '74mm', '148mm', document.getElementById("
div1
").innerHTML);
LODOP1.SET_PRINT_MODE("
PRINT_PAGE_PERCENT
", "
Width
:
100
%
;
Height
:
100
%
");
LODOP1.SET_PRINT_STYLEA(1, "
FontSize
", 10);
LODOP1.SET_PRINT_STYLEA(0, "
TableHeightScope
", iRadioValue);
LODOP1.SET_PRINT_STYLEA(0, "
AngleOfPageInside
", 0);
if(!LODOP1.PRINT()){
$scope.printResult ="
打印时出现错误,请检查打印机的状态
";
}else{
var LODOP = getLodop();
LODOP.SET_LICENSES("", "
15
F0BE661E7F32F37491843CB2510905
", "
C94CEE276DB2187AE6B65D56B3FC2848
", "");
LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
LODOP.PRINT_INIT("
标准快递
");
LODOP.SET_PRINT_PAGESIZE(1, "
76
mm
", "
130
mm
", "");
LODOP = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM1'));
LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
//分辨率2880*1620
// LODOP.ADD_PRINT_BARCODE(20, 185, 236, 56, "
128
A
", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_BARCODE(363, 13, 236, 40, "
128
A
", $scope.postMsgDetail[$scope.idx].fxyjh);
//分辨率1440*900
// LODOP.ADD_PRINT_BARCODE(16, 90, 95, 32, "
128
A
", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_BARCODE(186, 10, 100, 24, "
128
A
", $scope.postMsgDetail[$scope.idx].fxyjh);
//秦皇岛
// LODOP.ADD_PRINT_BARCODE(14, 78, 95, 30, "
128
A
", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_BARCODE(164, 10, 100, 23, "
128
A
", $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, "
128
A
", $scope.postMsgDetail[$scope.idx].fxyjh);
// LODOP.ADD_PRINT_BARCODE(380, 13, 236, 40, "
128
A
", $scope.postMsgDetail[$scope.idx].fxyjh);
//(2019-07-01 改)
LODOP.ADD_PRINT_BARCODE('4mm', '4.5mm','72mm','18mm', "
128
A
",$scope.postMsgDetail[$scope.idx].backWaybillNumber);
// LODOP.ADD_PRINT_BARCODE('112mm','4.5mm', '46mm','10mm', "
128
A
",$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()){
// if(LODOP1.PRINT()){
var id = document.getElementsByClassName("
minimal
")[$scope.idx].value;
HttpService.setPrintTime(id, $scope.currentTime, function (data) {
$scope.printResult = $scope.postMsgDetail[$scope.idx].applicantName+"
打印完成
";
})
}else {
MessageService.showAlert("
打印状态更新失败,请重新打印面单!
")
}
//
}else {
//
MessageService.showAlert("
打印状态更新失败,请重新打印面单!
")
//
}
}
};
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment