记得上下班打卡 | git大法好,push需谨慎

Commit 6690db6a authored by jiangxiulong's avatar jiangxiulong

打印

parent 0d351c23
......@@ -228,4 +228,21 @@ public class PerformancesExpressController extends BaseController {
}
}
/**
* 打印快递单
*/
@RequiresPermissions("kylin:performancesExpress:print")
@PostMapping("/print")
@ResponseBody
// public AjaxResult print(@RequestParam("ids") String performanceId) {
public AjaxResult print() {
try {
// performancesExpressServiceImpl.batchCancelOrder(performanceId);
performancesExpressServiceImpl.print();
return success();
} catch (Exception e) {
return error(e.getMessage());
}
}
}
......@@ -39,6 +39,7 @@
var performanceOrderListFlag = [[${@permission.hasPermi('kylin:performancesExpress:performanceOrderList')}]];
var batchPlaceOrderFlag = [[${@permission.hasPermi('kylin:performancesExpress:batchPlaceOrder')}]];
var batchCancelOrderFlag = [[${@permission.hasPermi('kylin:performancesExpress:batchCancelOrder')}]];
var printFlag = [[${@permission.hasPermi('kylin:performancesExpress:print')}]];
var prefix = ctx + "kylin/performancesExpress";
$(function () {
......@@ -47,6 +48,7 @@
detailUrl: prefix + "/performanceOrderList/{id}",
batchPlaceOrderUrl: prefix + "/batchPlaceOrder",
batchCancelOrderUrl: prefix + "/batchCancelOrder",
printUrl: prefix + "/print",
modalName: "演出快递",
columns: [
{
......@@ -85,6 +87,7 @@
actions.push('<a class="btn btn-success btn-xs ' + performanceOrderListFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.performancesId + '\')"><i class="fa fa-edit"></i>查看</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + batchPlaceOrderFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.performancesId + '\', \'确定批量下单吗?\', table.options.batchPlaceOrderUrl)"></i>下单</a> ');
actions.push('<a class="btn btn-warning btn-xs ' + batchCancelOrderFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.performancesId + '\', \'确定批量取消吗?\', table.options.batchCancelOrderUrl)"></i>取消</a> ');
actions.push('<a class="btn btn-warning btn-xs ' + printFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.performancesId + '\', \'确定批量打印吗?\', table.options.printUrl)"></i>打印</a> ');
return actions.join('');
}
}]
......
......@@ -70,6 +70,31 @@
<artifactId>json</artifactId>
<version>20090211</version>
</dependency>
<dependency>
<groupId>gui.ava</groupId>
<artifactId>html2image</artifactId>
<version>2.0.1</version>
<exclusions>
<exclusion>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</exclusion>
<exclusion>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.syncthemall</groupId>
<artifactId>boilerpipe</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.4.01</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Access-Control-Allow-Origin" content="*" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=yes" /><!-- 点击链接打电话 -->
<meta name="format-detection" content="address=no" />
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="icon" type="image/png" sizes="12x12" href="https://img.zhengzai.tv/static/img/logo_small.png">
</head>
<body>
<!-- 顺丰快递面单打印,尺寸:100mm*150mm模版 -->
<div
id="shunfeng-express"
style="width: 96mm;
height: 150mm;
padding-top: 5mm;
border: 1px solid #000;
text-align: center;"
>
<!-- 1. 运单打印系统来源及时间等 -->
<div
class="sourceAndPrintTime"
style="width: 100%;
font-family: 宋体;
font-size: 4pt;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-end;"
>
<!-- 1.1 打印系统来源(太长放不下了,所以去掉了) -->
<!-- <div class="source">
SCP顺丰云打印
</div> -->
<!-- 1.2 打印次数/时间 -->
<div
class="printTime"
style="width: 80%;
font-family: 宋体;
font-size: 4pt;
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-end;"
>
第一次打印 2020-05-05 12:00 第8/10个
</div>
<!-- 3 时效类型 -->
<div
class="timeOfDeliveryType"
style="font-family: 黑体;
font-size: 18pt;
font-weight: bolder;
margin-right: 2mm;"
>
<!-- 3.1 特快即日、特快A、特快、标快、标快陆运、特惠、电商标快 -->
特快
</div>
</div>
<!-- 2. 条码区 -->
<div class="barCodeArea">
<!-- 2.1 条码 -->
<div class="barCode">
<img src="/usr/local/var/www/liquidnet-bus-v1/liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/tmphtml/qrcode/out1.png" style="width: 90%; height: 13mm; margin: 0 5mm;">
</div>
<!-- 2.2 子母件单号、汉字、件数标识、 -->
<div
class="childAndParentParts"
style="font-family: 黑体;
font-size: 10pt;
display: flex;
flex-direction: column;"
>
<div>
子单号:SF1 010 874 393 776
</div>
<div>
母单号:SF1 010 874 393 776
</div>
</div>
</div>
<!-- 4 目的地 -->
<!-- 4.1 路由信息 暂无-->
<div
class="destinationArea"
style="margin: 0 auto;
border: 1px solid #000;
border-bottom: none;
width: 92mm;"
>
<!-- 2.3 运单号 -->
<div
class="expressNumber"
style="font-size: 22pt; font-weight: bold;"
>
755W-BA-0123456789
</div>
<!-- 5 收方信息 -->
<div class="destinationInfo" style="text-align: left;">
<!-- 5.1 收 -->
<div class="imgShou" style="display: inline-block; width: 9mm; text-align: center;">
<img src="images/iconShou.png" style="width:7mm; height:7mm">
</div>
<!-- 5.2 收件人姓名/电话/地址 -->
<div
class="recipientInfo"
style="display: inline-block; width: 62mm; font-family: 宋体; font-size: 9pt; text-align: left;"
>
<div>
<span>收货姓名</span>
<span>18510980989</span>
</div>
<div>
<span>收货地址北京市朝阳区摩登天空测试地址</span>
</div>
</div>
<!-- 5.3 单元区域编码 暂无-->
<!-- 6 代收货款 -->
<div class="iconCOD" style="display: inline-block;">
<!-- 6.1 COD -->
<img src="images/COD.jpg" style="width: 17mm; height:9mm">
</div>
</div>
</div>
<table
class="QrCodeArea"
border="1"
style="margin: 0 auto; border: 1px solid #000; width: 92.5mm; border-collapse:collapse;"
>
<tr>
<td class="daofuInfo" style="font-family: 宋体; font-size: 9pt;">
到付22元
</td>
<td rowspan="3" class="QrCode">
<img src="/usr/local/var/www/liquidnet-bus-v1/liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/admin/service/impl/utils/tmphtml/qrcode/out.png" style="width: 25mm; height: 25mm">
</td>
<!-- 13 已验视 -->
<td
rowspan="3"
class="yiyanshiInfo"
style="font-family: 黑体; font-size: 22pt; font-weight: bold; color: #272727b3; writing-mode: vertical-lr;"
>
已验视
</td>
<!-- 产品名称 限时限时KC24字段 -->
<td
rowspan="2"
class="limitTime"
style="font-family: 宋体; font-size: 12pt; width: 20mm;"
>
限时
KC24
</td>
</tr>
<tr>
<td rowspan="2" class="jigangInfo" style="font-family: 黑体; font-size: 22pt; font-weight: bold;">
A22
</td>
</tr>
<tr>
<td class="">
1A
</td>
</tr>
</table>
<!-- 14 寄方信息 -->
<div
class="jiInfo"
style="border-left: 1px solid #000;
border-right: 1px solid #000;
width: 92mm;
margin: 0 auto;
text-align: left;"
>
<div
class="imgShou"
style="display: inline-block; width: 9mm; text-align: center;"
>
<img src="images/iconJi.png" style="width:7mm; height:7mm">
</div>
<!-- 14.1 寄件人人姓名/电话/地址 -->
<div
class="recipientInfo"
style="display: inline-block; width: 62mm; font-family: 宋体; font-size: 9pt; text-align: left;"
>
<div>
<span>寄件人姓名</span>
<span>18510980989</span>
</div>
<div>
<span>寄件地址北京市朝阳区摩登天空测试地址</span>
</div>
</div>
</div>
<table
class="otherInfo"
border="1"
style="
margin: 0 auto;
border: 1px solid #000;
width: 92.5mm;
font-family: 宋体;
font-size: 9pt;
text-align: left;
border-collapse:collapse;"
>
<tr>
<!-- 15 托寄物 -->
<td rowspan="2">
托寄物:
</td>
<!-- 16 增值服务 -->
<td>
增值服务:
</td>
</tr>
<!-- 17 其他信息 -->
<tr>
<!-- 17. 1重量 -->
<!-- 17.2 付款方式、费用等 -->
<td>
<div>计费重量:1kg</div>
<div>实际重量: 1kg</div>
<div>费用合计:22元</div>
<div>付款方式:寄付现结</div>
</td>
</tr>
<tr>
<!-- 18 客户自定义区 -->
<td>
客户自定义区
备注
转寄协议客户
订单等信息
</td>
<!-- 19 图标区域 -->
<td>
图标区域
贴纸信息
</td>
</tr>
</table>
</div>
</body>
</html>
\ No newline at end of file
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