From 4b701f4a765b41f6767823724b3233157ca309c2 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 09 六月 2020 08:40:54 +0800
Subject: [PATCH] #
---
src/main/webapp/views/matCode/matCode.html | 41 +++++++++++++++++++++++++++++++++++------
1 files changed, 35 insertions(+), 6 deletions(-)
diff --git a/src/main/webapp/views/matCode/matCode.html b/src/main/webapp/views/matCode/matCode.html
index c4e986a..9ed2667 100644
--- a/src/main/webapp/views/matCode/matCode.html
+++ b/src/main/webapp/views/matCode/matCode.html
@@ -133,7 +133,7 @@
<div id="template-container" style="margin: 20px;text-align: center">
<!-- 棰勮鍥� 1 -->
- <div id="template-preview-1" class="template-preview" style="display: none">
+ <div id="template-preview-1" class="template-preview" style="display: inline-block">
<table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small">
<tr>
<td colspan="1" align="center" scope="col">鏉$爜</td>
@@ -190,7 +190,7 @@
</div>
<!-- 棰勮鍥� 3 -->
- <div id="template-preview-3" class="template-preview" style="display: inline-block">
+ <div id="template-preview-3" class="template-preview" style="display: none">
<table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small">
<tr>
<td align="center" scope="col" width="50%" colspan="3">鐗╂枡缂栫爜</td>
@@ -238,7 +238,7 @@
<!-- 妯℃澘寮曟搸 -->
<!-- 妯℃澘1 -->
-<script type="text/template" id="templatePreview1">
+<script type="text/template" id="templatePreview1" class="template-barcode">
{{#each data}}
<table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small">
<tr>
@@ -266,7 +266,7 @@
{{/each}}
</script>
<!-- 妯℃澘2 -->
-<script type="text/template" id="templatePreview2">
+<script type="text/template" id="templatePreview2" class="template-barcode">
{{#each data}}
<table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small">
<tr>
@@ -297,8 +297,37 @@
{{/each}}
</script>
<!-- 妯℃澘3 -->
-<script type="text/template" id="templatePreview3">
-
+<script type="text/template" id="templatePreview3" class="template-qrcode">
+ {{#each data}}
+ <table class="contain" height="217" width="317" style="overflow: hidden;font-size: xx-small">
+ <tr>
+ <td align="center" scope="col" width="50%" colspan="3">鐗╂枡缂栫爜</td>
+ <td align="center" scope="col" width="50%" colspan="3">{{this.matNo}}</td>
+ </tr>
+ <tr>
+ <td align="center" colspan="3">鐗╂枡鍚嶇О</td>
+ <td align="center" colspan="3">{{this.matName}}</td>
+ </tr>
+ <tr>
+ <td align="center" width="50%" rowspan="1" colspan="3">鐗╂枡鍗曚綅</td>
+ <td align="center" width="50%" colspan="3" rowspan="4">
+ <img class="template-code template-qrcode" src="{{this.barcodeUrl}}" width="80%">
+ <div style="letter-spacing: 2px;margin-top: 3px; text-align: center">
+ <span>{{this.matNo}}</span>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td align="center" colspan="3" rowspan="1">{{this.str1}}</td>
+ </tr>
+ <tr>
+ <td align="center" colspan="3" rowspan="1">鐗╂枡瑙勬牸</td>
+ </tr>
+ <tr>
+ <td align="center" colspan="3" rowspan="1">{{this.str2}}</td>
+ </tr>
+ </table>
+ {{/each}}
</script>
</body>
--
Gitblit v1.9.1