From 423f56e76e47eaf8e39873a3056248841a313150 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 13 七月 2020 09:20:47 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/waitPakin/waitPakin.js |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/src/main/webapp/static/js/waitPakin/waitPakin.js b/src/main/webapp/static/js/waitPakin/waitPakin.js
index a04fec8..56bc909 100644
--- a/src/main/webapp/static/js/waitPakin/waitPakin.js
+++ b/src/main/webapp/static/js/waitPakin/waitPakin.js
@@ -18,16 +18,21 @@
         toolbar: '#toolbar',
         cellMinWidth: 50,
         cols: [[
-            {type: 'checkbox'}
+            // {type: 'checkbox'}
 //            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
-            ,{field: 'id', align: 'center',title: '缂栧彿'}
-            ,{field: 'barcode', align: 'center',title: '鎵樼洏鐮�'}
+//             ,{field: 'id', align: 'center',title: '缂栧彿', sort: true}
+            {field: 'barcode', align: 'center',title: '鎵樼洏鐮�'}
             ,{field: 'matnr', align: 'center',title: '鐗╂枡缂栫爜'}
             ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'}
             ,{field: 'anfme', align: 'center',title: '鏁伴噺'}
             ,{field: 'unit', align: 'center',title: '鍗曚綅'}
-            ,{field: 'status', align: 'center',title: '鐘舵��'}
-            ,{field: 'memo', align: 'center',title: '澶囨敞'}
+            ,{field: 'status', align: 'center',title: '鐘舵��', templet:function(row){
+                    var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='寰呭叆搴搢宸插惎鍔�' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'";
+                    if(row.status !== 'Y'){html += " checked ";}
+                    html += ">";
+                    return html;
+                }}
+            ,{field: 'memo', align: 'center',title: '澶囨敞',hide: true}
             ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿', hide: true}
             ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true}
 
@@ -379,7 +384,11 @@
         elem: '#appeTime\\$',
         type: 'datetime'
     });
-
+    layDate.render({
+        elem: '.layui-laydate-range'
+        ,type: 'datetime'
+        ,range: true
+    });
 
 });
 

--
Gitblit v1.9.1