From 539d9ffc477d28a23a923b41fdeabc8c37c99ce6 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期一, 23 九月 2024 14:43:31 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/locDetlStatis/locDetlStatis.js |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/src/main/webapp/static/js/locDetlStatis/locDetlStatis.js b/src/main/webapp/static/js/locDetlStatis/locDetlStatis.js
index fd1da33..591f61c 100644
--- a/src/main/webapp/static/js/locDetlStatis/locDetlStatis.js
+++ b/src/main/webapp/static/js/locDetlStatis/locDetlStatis.js
@@ -1,11 +1,14 @@
 var pageCurr;
 function getCol() {
     var cols = [
-        {field: 'anfme', align: 'center',title: '搴撳瓨鏁伴噺', style: 'font-weight: bold'}
+        {field: 'brand', align: 'center',title: '鐗屽彿', style: 'font-weight: bold'},
+        {field: 'matnr', align: 'center',title: '鍟嗗搧缂栧彿', style: 'font-weight: bold'},
+        {field: 'workshop', align: 'center',title: '杞﹂棿', style: 'font-weight: bold'},
+        {field: 'weight', align: 'center',title: '搴撳瓨閲嶉噺锛圞G锛�', style: 'font-weight: bold'}
     ];
-    arrRemove(detlCols, "field", "anfme")
-    arrRemove(detlCols, "field", "zpallet")
-    cols.push.apply(cols, detlCols);
+    // arrRemove(detlCols, "field", "anfme")
+    // arrRemove(detlCols, "field", "zpallet")
+    // cols.push.apply(cols, detlCols);
     // cols.push({field: 'anfme', align: 'center',title: '鏁伴噺', style: 'font-weight: bold'}
     // )
     return cols;
@@ -17,17 +20,26 @@
     var layer = layui.layer;
     var layDate = layui.laydate;
     var form = layui.form;
-
+    layDate.render({
+        elem: '.layui-laydate-range'
+        ,type: 'datetime'
+        ,range: true
+    });
     // 鏁版嵁娓叉煋
     tableIns = table.render({
         elem: '#locDetlStatis',
         headers: {token: localStorage.getItem('token')},
-        url: baseUrl+'/locDetl/statis/auth',
+        url: baseUrl+'/pla/statis/auth',
         page: true,
         limit: 20,
         limits: [20, 30, 50, 100, 200, 500],
         even: true,
         toolbar: '#toolbar',
+        defaultToolbar: ['filter', 'exports', 'print', {
+            title: '鎻愮ず',
+            layEvent: 'LAYTABLE_TIPS',
+            icon: 'layui-icon-tips'
+        }],
         cellMinWidth: 50,
         cols: [getCol()],
         request: {

--
Gitblit v1.9.1