소스 검색

xwh修改小票打印

zcb 4 년 전
부모
커밋
f5b4be0319

+ 37 - 7
kmall-admin/src/main/webapp/js/sale/sale.js

@@ -570,7 +570,6 @@ let vm = new Vue({
                             })
                             // 打印取货码小票
                             var content = getPrintContent(r.resultObj);
-                            console.log(content);
                             printArea2(content);
                             vm.goodsList = [];
                             vm.customname = '' ;
@@ -842,12 +841,12 @@ let vm = new Vue({
 
 function getPrintContent(ticket) {
     var content = "<div style=\"width: 250px;font-family: 微软雅黑;font-size: 15px;\">";
-    // 打印ogo
-    content += "<div style=\"text-align: center;width: 100%;height: 50px;\">";
-    // content += "<img src='./../../statics/img/cw_logo.png' />";
-    content += "2222222222";
-    content += "<img src='/statics/img/cw_logo.png' style='width: 100%;height: 100%;' />";
-    content += "</div>";
+    // // 打印ogo
+    // content += "<div style=\"text-align: center;width: 100%;height: 50px;\">";
+    // // content += "<img src='./../../statics/img/cw_logo.png' />";
+    // // content += "2222222222";
+    // content += "<img src='/statics/img/cw_logo.png' style='width: 100%;height: 100%;' />";
+    // content += "</div>";
     //小票头
     content += "<div style=\"text-align: center;width: 100%;font-weight:bold;font-size: 15px;\">";
     content += ticket.shopName
@@ -1042,6 +1041,10 @@ function parsedate(value){
 
 function getPrintContentOrder(ticket) {
     var content = "<div style=\"width: 250px;font-family: 微软雅黑;font-size: 8px;\">";
+    // 打印ogo
+    content += "<div style=\"text-align: center;width: 100%;height: 100px;\">";
+    content += "<img src='/statics/img/cw_logo2.png' style='width: 100%;height: 100%;' />";
+    content += "</div>";
     //小票头
     content += "<div style=\"text-align: center;width: 100%;font-weight:bold;font-size: 13px;\">";
     content += ticket.ticketHead.title;
@@ -1143,6 +1146,20 @@ function getPrintContentOrder(ticket) {
     content += "交货地:" + ticket.cusListing.deliveryAddress;
     content += "</div>";
     content += "<div style=\"width: 100%;overflow:hidden;white-space: nowrap;\">--------------------------------------------------</div>";
+    content += "<div style=\"width: 100%;text-align: center;\">";
+    content += "购买跨境商品须知:"
+    content += "</div>";
+    content += "<div style=\"width: 100%;\">";
+    content += "1、凡购买跨境商品均不提供发票;<br> 2、单笔限购5000元,年交易限额2.6万元; <br> 3、所有订单经海关放行后方可提货; <br> 4、凭小票领取您的订单商品。"
+    content += "</div>";
+    content += "<div style=\"width: 100%;overflow:hidden;white-space: nowrap;\">--------------------------------------------------</div>";
+    content += "<div style=\"width: 100%;text-align: center;\">";
+    content += "退换货须知:"
+    content += "</div>";
+    content += "<div style=\"width: 100%;\">";
+    content += "请您当面哦对小票,清点商品,在原包装完好,未拆封、无破损、原始小票等所有物件完全且不影响二次销售的情况下,支持七天无理由退货。食品(含保健品)为特殊商品,非质量原因不退换,希望您能谅解!"
+    content += "</div>";
+    content += "<div style=\"width: 100%;overflow:hidden;white-space: nowrap;\">--------------------------------------------------</div>";
     content += "<div style=\"width: 100%;\">";
     // content += ticket.ticketFoot.summary;
     content += "</div>";
@@ -1155,6 +1172,19 @@ function getPrintContentOrder(ticket) {
     content += "<div style=\"width: 100%;\">";
     content += ticket.ticketFoot.welcome;
     content += "</div>";
+    content += "<div style=\"width: 100%;\">";
+    content += "惠州市惠城区港惠新天地负一层";
+    content += "</div>";
+    content += "<div style=\"width: 100%;\">";
+    content += "请当面清点所购商品,并保管好收银小票以做退换货凭证。";
+    content += "</div>";
+    // 打印二维码
+    content += "<div style=\"text-align: center;width: 100%;height: 250px;\">";
+    content += "<img src='/statics/img/cw_qrcode.png' style='width: 100%;height: 100%;' />";
+    content += "</div>";
+    content += "<div style=\"width: 100%;text-align: center;\">";
+    content += "全球精选,品质生活"
+    content += "</div>";
     return content;
 }
 

BIN
kmall-admin/src/main/webapp/statics/img/cw_qrcode.png


+ 1 - 1
kmall-common/src/main/java/com/kmall/common/utils/print/ticket/item/TicketFoot.java

@@ -22,7 +22,7 @@ public class TicketFoot implements Serializable {
     // 网址3
     private String url3;
     //
-    private String welcome = "欢迎再次惠顾";
+    private String welcome = "欢迎再次惠顾--服务电话: 0371-55651210";
 
     public String getSummary() {
         return summary;