From 3b8d5759a3e2aaa170b848cc6a85d34274bd4f72 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 08 六月 2020 10:57:00 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/matCode/matCode.html |   64 ++++++++++++++++++++++---------
 1 files changed, 45 insertions(+), 19 deletions(-)

diff --git a/src/main/webapp/views/matCode/matCode.html b/src/main/webapp/views/matCode/matCode.html
index bb9697b..5fe2f6e 100644
--- a/src/main/webapp/views/matCode/matCode.html
+++ b/src/main/webapp/views/matCode/matCode.html
@@ -22,15 +22,20 @@
         }
 
         /* ------------------------------------------------  */
+        .template-preview {
+            display: inline-block;
+        }
+
+
         .contain {
             border: 1px solid #000;
             /*width: 100%;*/
         }
-        /*.contain td {*/
-        /*    border: 1px solid #000;*/
-        /*    line-height: 46px;*/
-        /*    text-align: center;*/
-        /*}*/
+        .contain td {
+            border: 1px solid #000;
+            /*line-height: 46px;*/
+            text-align: center;
+        }
         /*.qrcode {*/
         /*    margin: 3px;*/
         /*}*/
@@ -75,6 +80,7 @@
 <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
 <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script>
 <script type="text/javascript" src="../../static/js/jquery/jQuery.print.js"></script>
+<script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script>
 <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
 <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script>
 <script type="text/javascript" src="../../static/js/matCode/matCode.js" charset="utf-8"></script>
@@ -122,12 +128,19 @@
 
 <!-- 鎵撳嵃鎿嶄綔寮圭獥 -->
 <div id="printDataDiv" style="display: none;padding: 20px">
-    <div id="template-container">
-        <!-- 棰勮鍥� 1 -->
-        <div id="template-preview-1" class="template-preview">
-            <table height="317" width="317" style="overflow: hidden">
-                <tr><td valign="middle">
-                    <table class="contain">
+    <div class="layui-form" style="text-align: center">
+        <!--鍗曢�夋-->
+        <div class="layui-form-item" style="display: inline-block; margin-bottom: 10px">
+            <input type="radio" name="sex" value="鐢�" title="妯℃澘涓�" checked="">
+            <input type="radio" name="sex" value="濂�" title="妯℃澘浜�">
+            <input type="radio" name="sex" value="绂�" title="妯℃澘涓�">
+        </div>
+        <fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;text-align: left">
+            <legend>鎵撳嵃棰勮</legend>
+            <div id="template-container" style="margin: 20px;text-align: center">
+                <!-- 棰勮鍥� 1 -->
+                <div id="template-preview-1" class="template-preview">
+                    <table class="contain" height="317" width="317" style="overflow: hidden">
                         <tr>
                             <td width="20%" align="right" scope="col">瀹㈡埛</td>
                             <td class="customer" width="30%" align="left" scope="col">{{this.customer}}</td>
@@ -147,7 +160,7 @@
                         <tr>
                             <td align="right">浜у搧鎵瑰彿</td>
                             <td class="seq" align="left">{{this.seq}}</td>
-                            <td colspan="2" rowspan="3" align="right"><img class="qrcode" src="{{this.qrCodeUrl}}" style="width: 80%"></td>
+                            <td colspan="2" rowspan="3" align="right"><img class="qrcode" src="" style="width: 80%"></td>
                         </tr>
                         <tr>
                             <td align="right">瑁呮楠屽彿</td>
@@ -158,16 +171,29 @@
                             <td class="boxNumber" align="left">{{this.boxNumber}}</td>
                         </tr>
                     </table>
-                </td></tr>
-            </table>
-        </div>
-        <!-- 棰勮鍥� 2 -->
-        <div class="template-preview"></div>
-        <!-- 棰勮鍥� 3 -->
-        <div class="template-preview"></div>
+                </div>
+                <!-- 棰勮鍥� 2 -->
+                <div class="template-preview"></div>
+                <!-- 棰勮鍥� 3 -->
+                <div class="template-preview"></div>
+            </div>
+        </fieldset>
+
+        <button class="layui-btn layui-btn-danger" id="doPrint" lay-submit lay-filter="doPrint" style="margin-top: 20px">纭畾</button>
     </div>
 </div>
 
+<!-- 妯℃澘寮曟搸 -->
+<!-- 妯℃澘1 -->
+<script type="text/template" id="templatePreview1">
+</script>
+<!-- 妯℃澘2 -->
+<script type="text/template" id="templatePreview2">
+</script>
+<!-- 妯℃澘3 -->
+<script type="text/template" id="templatePreview3">
+</script>
+
 </body>
 </html>
 

--
Gitblit v1.9.1