From 036dcdcec6235d82b008f5c736d27a0d1f90d4a2 Mon Sep 17 00:00:00 2001
From: 懒羊羊 <15939171744@163.com>
Date: 星期二, 14 十一月 2023 14:58:42 +0800
Subject: [PATCH] 优化

---
 guns-vip-main/src/main/webapp/assets/modular/bs/materialInfo/materialInfo.js |   26 +++++++++++++++++++++-----
 1 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/guns-vip-main/src/main/webapp/assets/modular/bs/materialInfo/materialInfo.js b/guns-vip-main/src/main/webapp/assets/modular/bs/materialInfo/materialInfo.js
index 90e93ad..8894338 100644
--- a/guns-vip-main/src/main/webapp/assets/modular/bs/materialInfo/materialInfo.js
+++ b/guns-vip-main/src/main/webapp/assets/modular/bs/materialInfo/materialInfo.js
@@ -21,17 +21,33 @@
             {field: 'id', hide: true, title: '涓婚敭id'},
             {field: 'materialCode', sort: true, title: '鐗╂枡缂栧彿',width:130},
             {field: 'materialName', sort: true, title: '鐗╂枡鍚嶇О',width:180},
-            {field: 'materialView', sort: true, title: '瑙嗗浘'},
-            {field: 'typeZ', sort: true, title: '绉嶇被'},
-            {field: 'typeL', sort: true, title: '绫诲瀷'},
+            // {field: 'materialView', sort: true, title: '瑙嗗浘'},
+            // {field: 'typeZ', sort: true, title: '绉嶇被'},
+            {
+                field: 'typeL', align: "center", title: '绫诲瀷', templet: function (d) {
+                    console.log(d.typeL)
+                    switch(d.typeL){
+                        case "PRODUCE" :
+                            return "浜у搧";
+                            break;
+                        case "SEMIFINISHEDPRODUCTS" :
+                            return "鍗婃垚鍝�";
+                            break;
+                        case "COMPONENTSANDPARTS" :
+                            return "闆堕儴浠�";
+                            break;
+                        default :
+                    }
+                }
+            },
             {field: 'unit', sort: true, title: '鍗曚綅'},
-            {field: 'matterVersion', sort: true, title: '鐗堟湰'},
+            // {field: 'matterVersion', sort: true, title: '鐗堟湰'},
             {field: 'remarks', sort: true, title: '澶囨敞'},
             {field: 'createUser', sort: true, title: '鍒涘缓鐢ㄦ埛',width:120},
             {field: 'createTime', sort: true, title: '鍒涘缓鏃堕棿',width:160},
             {field: 'updateUser', sort: true, title: '鏇存敼鐢ㄦ埛',width:120},
             {field: 'updateTime', sort: true, title: '鏇存敼鏃堕棿',width:160},
-            {field: 'erpSpec', sort: true, title: ''},
+            // {field: 'erpSpec', sort: true, title: ''},
             {fixed: 'right',width: 125, minWidth: 125, align: 'center', toolbar: '#tableBar', title: '鎿嶄綔'}
         ]];
     };

--
Gitblit v1.9.3