From c73b0e2f40e0a143b5f815793de24b060816c664 Mon Sep 17 00:00:00 2001
From: zc <zc@123>
Date: 星期三, 02 七月 2025 10:24:36 +0800
Subject: [PATCH] 完善erp对接
---
src/main/webapp/static/js/mat/mat.js | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/main/webapp/static/js/mat/mat.js b/src/main/webapp/static/js/mat/mat.js
index 3adcdaa..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,11 +333,13 @@
for (let i=0;i<res.data.length;i++){
var templateDom = $("#templatePreview"+templateNo);
var className = templateDom.attr("class");
- console.log(templateDom)
+ 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