From fe7247af6af58cbc8ea2526e8aa4eedaf545de6c Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期五, 01 三月 2024 13:48:16 +0800
Subject: [PATCH] 增加单据页面单位

---
 src/main/webapp/views/pla/plaDetl.html |  166 +++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 111 insertions(+), 55 deletions(-)

diff --git a/src/main/webapp/views/pla/plaDetl.html b/src/main/webapp/views/pla/plaDetl.html
index 3080fc7..1ece2c6 100644
--- a/src/main/webapp/views/pla/plaDetl.html
+++ b/src/main/webapp/views/pla/plaDetl.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html lang="en">
+<html lang="en" xmlns="http://www.w3.org/1999/html">
 <head>
     <meta charset="utf-8">
     <title></title>
@@ -108,14 +108,15 @@
         }
         /* ------------------------- 鎵撳嵃琛ㄦ牸 -----------------------  */
         .template-preview {
-            height: 200px;
+            height: 400px;
             display: inline-block;
         }
         .contain td {
-            border: 1px solid #000;
+            border: 0px solid #000;
+            white-space:nowrap;
             /*font-family: 榛戜綋;*/
             /*font-weight: bold;*/
-            /*color: #000000;*/
+            color: #000000;
         }
     </style>
 </head>
@@ -147,8 +148,19 @@
             </div>
         </div>
         <div class="layui-inline">
+            <div class="layui-input-inline cool-auto-complete">
+                <input id="maktx" class="layui-input" type="text" style="display: none">
+                <input id="maktxV" name="brand" class="layui-input cool-auto-complete-div" onclick="autoShow(this.id)" placeholder="鐗屽彿" type="text" onfocus=this.blur()>
+                <div class="cool-auto-complete-window">
+                    <input class="cool-auto-complete-window-input" data-key="matMaktxQueryByMaktx" onkeyup="autoLoad(this.getAttribute('data-key'))">
+                    <select class="cool-auto-complete-window-select" data-key="matMaktxQueryByMaktxSelect" onchange="confirmed(this.getAttribute('data-key'))" multiple="multiple">
+                    </select>
+                </div>
+            </div>
+        </div>
+        <div class="layui-inline">
             <div class="layui-input-inline">
-                <input class="layui-input" type="text" name="brand" placeholder="鐗屽彿" autocomplete="off">
+                <input class="layui-input" type="text" name="type" placeholder="鐗╄祫绫诲埆" autocomplete="off">
             </div>
         </div>
         <div class="layui-inline">
@@ -159,17 +171,20 @@
                     <option value="鏆傚叆搴�">鏆傚叆搴�</option>
                     <option value="寰呭叆搴�">寰呭叆搴�</option>
                     <option value="宸插叆搴�">宸插叆搴�</option>
+                    <option value="寰呭嚭搴�">寰呭嚭搴�</option>
                     <option value="閮ㄥ垎鍑哄簱">閮ㄥ垎鍑哄簱</option>
                     <option value="鍏ㄩ儴鍑哄簱">鍏ㄩ儴鍑哄簱</option>
                 </select>
             </div>
         </div>
-
-        <!--    <div class="layui-inline">-->
-        <!--        <div class="layui-input-inline">-->
-        <!--            <input class="layui-input" type="text" name="row" placeholder="鎺掓暟" autocomplete="off">-->
-        <!--        </div>-->
-        <!--    </div>-->
+        <div class="layui-inline" style="width: 300px">
+<!--            <div class="layui-input-inline">-->
+<!--                <input class="layui-input layui-laydate-range" name="create_time" type="text" placeholder="璧峰鏃堕棿 - 缁堟鏃堕棿" autocomplete="off" style="width: 300px">-->
+<!--            </div>-->
+            <div class="layui-input-inline" style="width: 300px">
+                <input type="text" class="layui-input" name="create_time" id="ID-laydate-range-datetime" placeholder="璧峰鏃堕棿 - 缁堟鏃堕棿">
+            </div>
+        </div>
         <div class="layui-inline">
             <div class="layui-input-inline">
                 <input class="layui-input" type="text" name="condition" placeholder="璇疯緭鍏�" autocomplete="off">
@@ -236,7 +251,10 @@
         <button class="layui-btn layui-btn-sm layui-btn-checked " id="btn-disfreeze" lay-event="disFreezeData" style="display: none">瑙e喕</button>
         <button class="layui-btn layui-btn-sm layui-btn-checked " id="btn-printBatch" lay-event="btnPrintBatch" >鎵归噺鎵撳嵃</button>
         <!-- 鍟嗗搧/鐗╂枡 鏁版嵁涓績 -->
-        <div class="dropdown-menu" style="float: right">
+        <button style="float: right" class="layui-btn layui-btn-sm layui-btn-checked " id="btn-exportMoudle" onclick="excelMouldDownload()" >妯℃澘涓嬭浇</button>
+        <button style="float: right" class="layui-btn layui-btn-sm layui-btn-checked " id="btn-import" onclick="importExcel()" >瀵煎叆excel</button>
+
+        <div class="dropdown-menu" style="float: right; display: none">
             <button id="syncData" style="display: none;" class="layui-btn layui-btn-primary layui-border-black icon-btn layui-btn-sm">&nbsp;鏁版嵁鍚屾 <i class="layui-icon layui-icon-drop"></i></button>
             <ul class="dropdown-menu-nav dark">
                 <div class="dropdown-anchor"></div>
@@ -268,7 +286,7 @@
 <script type="text/html" id="tbLook">
     <span class="layui-text">
         <a href="javascript:;" lay-event="look">
-            <i class="layui-icon" style="font-size: 12px;">&#xe61a;</i> 鏌ョ湅鏄庣粏
+            <i class="layui-icon" style="font-size: 12px;">&#xe61a;</i> 鏌ョ湅
         </a>
     </span>
 </script>
@@ -294,28 +312,45 @@
             <div id="template-container" style="margin: 20px;text-align: center">
                 <!-- 棰勮鍥� 3 -->
                 <div id="template-preview-1" class="template-preview" style="display: block">
-                    <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">鐗屽彿</td>
-                            <td align="center" scope="col" colspan="1" style="">xxxxxx-xx/xx</td>
-                            <td align="center" scope="col" colspan="2" rowspan="2">
-                                <img class="template-code template-qrcode" src="" width="80%">
-                                <div style="letter-spacing: 1px;margin-top: 1px; text-align: center">
-                                    <span>xxxxxx</span>
-                                </div>
-                            </td>
-                        </tr>
-                        <tr style="height: 74px">
-                            <td align="center" colspan="1">閲嶉噺</td>
-                            <td align="center" colspan="1" style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">xxxxxxx</td>
-                        </tr>
-                        <tr style="height: 74px">
-                            <td align="center" colspan="1">鎵瑰彿</td>
-                            <td align="center" colspan="1" style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">xxxxxxx</td>
-                            <td align="center" colspan="1">鍖呭彿</td>
-                            <td align="center" colspan="1" style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">xxxxxxx</td>
-                        </tr>
-                    </table>
+                    <div class="layui-row">
+                        <div class="layui-col-xs4" style="height: auto">
+                            <img src="../../static/image/hneLogo.jpg" style="display: inline-block; width: 40%;height: 30%">
+                        </div>
+                        <div class="layui-col-xs8" style="margin-left: -40px; margin-top: 20px; text-align: left">
+                            娴欐睙鐪佸彴宸炲競鍙板窞婀炬柊鍖哄彴宸炴咕澶ч亾188鍙�</br>
+                            Address锛歂o. 188, Taizhou Bay Avenue, Taizhou Bay New Area, Taizhou City, Zhejiang Province
+                        </div>
+                    </div>
+<!--                    <div class="layui-row" style="font-size: xx-large; text-align: left; margin-left: 40px;">-->
+<!--                        </n>鑱氫钩閰� Polylactic Acid-->
+<!--                    </div>-->
+                    <div class="layui-row" style="alignment: center; margin-left: 65px;">
+                        <table class="contain" width="400" style="overflow: hidden;font-size: xx-small;table-layout: fixed;">
+                            <tr style="height: 74px" >
+                                <td align="center" scope="col" colspan="4" style="font-size: x-large; font-weight: bold;"><strong style="font-weight: bold;color: black;">鑱氫钩閰� Polylactic Acid</strong></td>
+                            </tr>
+                            <tr style="height: 74px">
+                                <td align="center" scope="col" colspan="1">鐗屽彿</td>
+                                <td align="center" scope="col" colspan="1" style="">xxxxxx-xx/xx</td>
+                                <td align="center" scope="col" colspan="2" rowspan="2">
+                                    <img class="template-code template-qrcode" src="" width="80%">
+                                    <div style="letter-spacing: 1px;margin-top: 1px; text-align: center">
+                                        <span>xxxxxx</span>
+                                    </div>
+                                </td>
+                            </tr>
+                            <tr style="height: 74px">
+                                <td align="center" colspan="1" style="text-align: left; padding-left: 20px" >閲嶉噺</td>
+                                <td align="center" colspan="1" style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">xxxxxxx</td>
+                            </tr>
+                            <tr style="height: 74px">
+                                <td align="center" colspan="1">鎵瑰彿</td>
+                                <td align="center" colspan="1" style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">xxxxxxx</td>
+                                <td align="center" colspan="1">鍖呭彿</td>
+                                <td align="center" colspan="1" style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">xxxxxxx</td>
+                            </tr>
+                        </table>
+                    </div>
                 </div>
             </div>
         </fieldset>
@@ -337,28 +372,49 @@
 <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" colspan="1" style="font-weight: bold;color: black;overflow:hidden; white-space:normal; "><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%">
-            </td>
-        </tr>
-        <tr style="height: 74px">
-            <td align="center" colspan="1" style="font-weight: bold;color: black;"><strong style="font-weight: bold;color: black;">閲嶉噺</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.weightAnfme}}</strong></td>
-        </tr>
-        <tr style="height: 74px">
-            <td align="center" colspan="1" style="font-weight: bold;color: black;"><strong style="font-weight: bold;color: black;">鎵瑰彿</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.batch}}</strong></td>
-            <td align="center" colspan="1" style="font-weight: bold;color: black;"><strong style="font-weight: bold;color: black;">鍖呭彿</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.packageNo}}</strong></td>
-        </tr>
-    </table>
+        <div class="layui-row" style="height: 230px;width: 750px; color:#000; margin-top: 40px">
+            <div class="layui-col-xs6" style="height: auto; margin-top: 25px; margin-left: -20px">
+                <img src="../../static/image/hneLogo.png" style="display: inline-block; width: 40%;height: 30%; margin-left: 30px; color:#000;">
+            </div>
+            <div class="layui-col-xs6" style="margin-left: -185px;margin-right: 30px; margin-top: 80px; text-align: left; font-size: 20px; font-weight:bold">
+                娴欐睙鐪佸彴宸炲競鍙板窞婀炬柊鍖哄彴宸炴咕澶ч亾188鍙�</br>
+                No.188 Taizhou Bay Avenue, Taizhou Bay New Area, Taizhou City, Zhejiang Province. P.R.China
+            </div>
+        </div>
+<!--        <div class="layui-row" style="font-size: xx-large; text-align: left; margin-left: 40px;">-->
+<!--            鑱氫钩閰� Polylactic Acid-->
+<!--        </div>-->
+        <div class="layui-row" style="alignment: center; margin-left: 35px; margin-top: -20px; margin-bottom: 3.7px;">
+            <table class="contain" width="500" style="overflow: hidden;table-layout: fixed; color:#000; font-size: 35px;text-align: left">
+                <tr style="height: 100px;" >
+                    <td align="center" scope="col" colspan="4" style="font-weight: bold; text-align: left; padding-left: 20px"><strong style="font-weight: bold;color: black;">鑱氫钩閰� Polylactic Acid</strong></td>
+                </tr>
+                <tr style="height: 100px; text-align: left" >
+                    <td align="center" scope="col" colspan="2" style="font-weight: bold;color: black; text-align: left; padding-left: 20px"><strong>鐗屽彿: REVODE {{this.brand}}</strong></td>
+<!--                    <td align="center" colspan="1" style="font-weight: bold;color: black;overflow:hidden; white-space:normal; "><strong style="font-weight: bold;color: black;">REVODE {{this.brand}}</strong></td>-->
+                </tr>
+                <tr style="height: 100px;text-align: left">
+                    <td align="center" colspan="2" style="font-weight: bold;color: black; text-align: left; padding-left: 20px"><strong>鎵瑰彿锛歿{this.batch}}</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.weightAnfme}} KG</strong></td>-->
+                </tr>
+                <tr style="height: 100px;text-align: left">
+                    <td align="center" colspan="2" style="font-weight: bold;color: black; text-align: left; padding-left: 20px"><strong>閲嶉噺锛歿{this.weight}} kg</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.weightAnfme}} KG</strong></td>-->
+                    <td align="center" scope="col" colspan="2" rowspan="2">
+                        <img class="template-code template-qrcode" src="{{this.barcodeUrl}}" width="80%">
+                    </td>
+                </tr>
+                <tr style="height: 100px;text-align: left">
+                    <td align="center" colspan="2" rowspan="1" style="font-weight: bold;color: black; text-align: left; padding-left: 20px"><strong>杩借釜鐮侊細{{this.line}} {{this.packageNo$}}</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.weightAnfme}} KG</strong></td>-->
+                </tr>
+                <tr style="height: 100px;text-align: left">
+                </tr>
+            </table>
+        </div>
     </br>
     {{/each}}
-    </div>>
+    </div>
 </script>
 
 </body>

--
Gitblit v1.9.1