From 035ecbe3a3540011f29a8f2287aead232749aaad Mon Sep 17 00:00:00 2001
From: zc <zc@123>
Date: 星期六, 19 四月 2025 10:38:25 +0800
Subject: [PATCH] qw
---
src/main/webapp/static/js/mat/mat.js | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/static/js/mat/mat.js b/src/main/webapp/static/js/mat/mat.js
index 0fa6ccc..ebef356 100644
--- a/src/main/webapp/static/js/mat/mat.js
+++ b/src/main/webapp/static/js/mat/mat.js
@@ -5,6 +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: '搴撻緞涓婇檺(澶�)'}
];
cols.push.apply(cols, matCols);
cols.push(
@@ -330,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¶m="+res.data[i].matnr;
+ res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=1¶m="+encodeUrl;
} else {
- res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=2¶m="+res.data[i].matnr;
+ res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=2¶m="+encodeUrl;
}
}
var tpl = templateDom.html();
--
Gitblit v1.9.1