From 605be0c8702fc7bfe4f7fcdd397c9f0d40722b69 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期四, 09 四月 2026 15:19:43 +0800
Subject: [PATCH] 1.商品档案新增最大限制和最小限制 2.mes空桶/余料回库修复

---
 src/main/webapp/static/js/locDetlGroup/locDetlGroup.js |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/static/js/locDetlGroup/locDetlGroup.js b/src/main/webapp/static/js/locDetlGroup/locDetlGroup.js
index 8998f94..8334ef2 100644
--- a/src/main/webapp/static/js/locDetlGroup/locDetlGroup.js
+++ b/src/main/webapp/static/js/locDetlGroup/locDetlGroup.js
@@ -4,10 +4,21 @@
     var cols = [
         {field: 'matnr', align: 'center', title: '鐗╂枡鍙�', sort: true}
         , {field: 'maktx', align: 'center', title: '鐗╂枡鍚嶇О', sort: true}
-        , {field: 'specs', align: 'center', title: '瑙勬牸'}
-        , {field: 'batch', align: 'center', title: '鎵瑰彿', width: 300, sort: true}
         , {field: 'storeMax', align: 'center', title: '鏁伴噺涓婇檺', sort: true}
         , {field: 'storeMin', align: 'center', title: '鏁伴噺涓嬮檺', sort: true}
+        , {
+            field: 'warnStatus', align: 'center', title: '鐘舵��', sort: true, templet: function (d) {
+                var colorMap = {
+                    '鏈缃�': '#999999',
+                    '姝e父': '#5cb85c',
+                    '瓒呬笂闄�': '#d9534f',
+                    '瓒呬笅闄�': '#337ab7'
+                };
+                var text = d.warnStatus || '';
+                var color = colorMap[text] || '#333333';
+                return '<span style="color:' + color + ';">' + text + '</span>';
+            }
+        }
         // , {field: 'storeMaxDate', align: 'center', title: '搴撻緞涓婇檺', sort: true}
         , {field: 'anfme', align: 'center', title: '瀹為檯鏁伴噺'}
         // , {field: 'nowTime', align: 'center', title: '瀹為檯搴撻緞'}
@@ -431,6 +442,7 @@
     form.on('submit(reset)', function (data) {
         pageCurr = 1;
         clearFormVal($('#search-box'));
+        form.render('select');
         tableReload(false);
     });
 
@@ -467,6 +479,7 @@
         type: 'datetime'
     });
 
+    form.render('select');
 
 });
 

--
Gitblit v1.9.1