From b51eadaa66a5c0ee6da0e418a3ba193dfc878fca Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期四, 03 七月 2025 13:21:56 +0800
Subject: [PATCH] 1

---
 src/main/webapp/static/js/mat/mat.js |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/main/webapp/static/js/mat/mat.js b/src/main/webapp/static/js/mat/mat.js
index 2805440..ebef356 100644
--- a/src/main/webapp/static/js/mat/mat.js
+++ b/src/main/webapp/static/js/mat/mat.js
@@ -5,9 +5,9 @@
     var cols = [
         {type: 'checkbox'}
         ,{field: 'tagId$', align: 'center',title: '褰掔被', templet: '#tagTpl'}
-        ,{field: 'store_max', align: 'center',title: '搴撳瓨涓婇檺'}
-        ,{field: 'store_min', align: 'center',title: '搴撳瓨涓嬮檺'}
-        ,{field: 'store_max_date', align: 'center',title: '搴撻緞涓婇檺(澶�)'}
+        // ,{field: 'store_max', align: 'center',title: '搴撳瓨涓婇檺'}
+        // ,{field: 'store_min', align: 'center',title: '搴撳瓨涓嬮檺'}
+        // ,{field: 'store_max_date', align: 'center',title: '搴撻緞涓婇檺(澶�)'}
     ];
     cols.push.apply(cols, matCols);
     cols.push(
@@ -333,10 +333,13 @@
                     for (let i=0;i<res.data.length;i++){
                         var templateDom = $("#templatePreview"+templateNo);
                         var className = templateDom.attr("class");
+                        var param = res.data[i].matnr;
+                        //var param = "缂栫爜:"+res.data[i].matnr+";鍚嶇О:"+res.data[i].maktx+";瑙勬牸:"+res.data[i].specs;
+                        var encodeUrl = encodeURIComponent(param);
                         if (className === 'template-barcode') {
-                            res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=1&param="+res.data[i].matnr;
+                            res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=1&param="+encodeUrl;
                         } else {
-                            res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=2&param="+res.data[i].matnr;
+                            res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=2&param="+encodeUrl;
                         }
                     }
                     var tpl = templateDom.html();

--
Gitblit v1.9.1