From 4de506cff27bde03615c669ab57100ba4d230438 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期六, 27 一月 2024 15:53:12 +0800
Subject: [PATCH] # 打印物料码

---
 src/main/webapp/views/pla/plaDetl.html |   25 ++++++-------------------
 1 files changed, 6 insertions(+), 19 deletions(-)

diff --git a/src/main/webapp/views/pla/plaDetl.html b/src/main/webapp/views/pla/plaDetl.html
index 33e2da4..7dc0f70 100644
--- a/src/main/webapp/views/pla/plaDetl.html
+++ b/src/main/webapp/views/pla/plaDetl.html
@@ -263,7 +263,7 @@
 </script>
 
 <!-- 琛ㄦ牸 -->
-<table class="layui-table" id="plaDetl" lay-filter="plaDetl"></table>
+<table class="layui-table"  id="plaDetl" lay-filter="plaDetl"></table>
 
 <script type="text/html" id="tbLook">
     <span class="layui-text">
@@ -279,6 +279,7 @@
 <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script>
 <script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script>
 <script type="text/javascript" src="../../static/js/pla/plaDetl.js" charset="utf-8"></script>
+<script type="text/javascript" src="../../static/js/jquery/jQuery.print.js"></script>
 
 <!-- 鎵撳嵃鎿嶄綔寮圭獥 -->
 <div id="printDataDiv" style="display: none;padding: 20px">
@@ -334,30 +335,14 @@
 <!-- 妯℃澘寮曟搸 -->
 <!-- 妯℃澘3 -->
 <script type="text/template" id="templatePreview1" class="template-qrcode">
+    <div class="template-preview">
     {{#each data}}
     <table class="contain" width="280" style="overflow: hidden;font-size: xx-small;table-layout: fixed;">
         <tr style="height: 74px" >
             <td align="center" scope="col" colspan="1" style="font-weight: bold;"><strong style="font-weight: bold;color: black;">鐗屽彿</strong></td>
-            <td align="center" scope="col" colspan="1" style="
-                font-weight: bold;
-                display: inline-block;
-                line-height: 20px;
-                vertical-align: middle;
-                border: none;
-                border-top: 1px solid #000;
-                overflow: hidden;
-                text-overflow: ellipsis;
-                display: -webkit-box;
-                -webkit-line-clamp: 3;
-                -webkit-box-orient: vertical;
-                    ">
-                <strong style="font-weight: bold;color: black;">{{this.brand}}</strong>
-            </td>
+            <td align="center" colspan="1" style="font-weight: bold;color: black;overflow:hidden; white-space:nowrap; text-overflow:ellipsis;"><strong style="font-weight: bold;color: black;">{{this.brand}}</strong></td>
             <td align="center" scope="col" colspan="2" rowspan="2">
                 <img class="template-code template-qrcode" src="{{this.barcodeUrl}}" width="80%">
-                <div style="letter-spacing: 1px;margin-top: 1px; text-align: center">
-                    <span style="font-weight: bold;color: black;"><strong style="font-weight: bold;color: black;">{{this.brand}}</strong></span>
-                </div>
             </td>
         </tr>
         <tr style="height: 74px">
@@ -371,7 +356,9 @@
             <td align="center" colspan="1" style="font-weight: bold;color: black;overflow:hidden; white-space:nowrap; text-overflow:ellipsis;"><strong style="font-weight: bold;color: black;">{{this.packageNo}}</strong></td>
         </tr>
     </table>
+    </br>
     {{/each}}
+    </div>>
 </script>
 
 </body>

--
Gitblit v1.9.1