From 31b586dbc4dd87c88ac585f00071df32798e8d42 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 24 九月 2025 15:43:11 +0800
Subject: [PATCH] 缓冲库区修改

---
 src/main/webapp/static/js/locCache/locCache.js |   71 +++++++++++++++++------------------
 1 files changed, 34 insertions(+), 37 deletions(-)

diff --git a/src/main/webapp/static/js/locCache/locCache.js b/src/main/webapp/static/js/locCache/locCache.js
index eeebfef..311e76b 100644
--- a/src/main/webapp/static/js/locCache/locCache.js
+++ b/src/main/webapp/static/js/locCache/locCache.js
@@ -18,44 +18,26 @@
         limit: 15,
         limits: [15, 30, 50, 100, 200, 500],
         toolbar: '#toolbar',
-        cellMinWidth: 50,
+        cellMinWidth: 80,
         height: 'full-120',
-        cols: [[{type: 'checkbox'}, {field: 'locNo', align: 'center', title: '搴撲綅鍙�'}, {
-            field: 'barcode',
-            align: 'center',
-            title: '鎵樼洏鐮�'
-        }, {field: 'areaName', align: 'center', title: '搴撳尯鍚嶇О'}, {
-            field: 'whsType$',
-            align: 'center',
-            title: '搴撲綅绫诲瀷'
-        }, {field: 'locSts', align: 'center', title: '搴撲綅鐘舵��'}, {
-            field: 'row1',
-            align: 'center',
-            title: '鎺�'
-        }, {field: 'bay1', align: 'center', title: '鍒�'}, {
-            field: 'lev1',
-            align: 'center',
-            title: '灞�'
-        }, {field: 'locType', align: 'center', title: '搴撲綅绫诲瀷'}, {
-            field: 'modiUser$',
-            align: 'center',
-            title: '淇敼浜哄憳'
-        }, {field: 'modiTime$', align: 'center', title: '淇敼鏃堕棿'}, {
-            field: 'appeUser$',
-            align: 'center',
-            title: '鍒涘缓鑰�'
-        }, {field: 'appeTime$', align: 'center', title: '娣诲姞鏃堕棿'}, {
-            field: 'frozen',
-            align: 'center',
-            title: '鏄惁鍐荤粨,0.鏈喕缁擄紝1.宸插喕缁�',
-            hide: true
-        }, {field: 'frozenMemo', align: 'center', title: '鍐荤粨澶囨敞', hide: true}, {
-            fixed: 'right',
-            title: '鎿嶄綔',
-            align: 'center',
-            toolbar: '#operate',
-            width: 120
-        }]],
+        cols: [[{type: 'checkbox'}, {field: 'locNo', align: 'center', title: '搴撲綅鍙�', width: 120}
+            , {field: 'barcode', align: 'center', title: '鎵樼洏鐮�'}
+            , {field: 'areaName', align: 'center', title: '搴撳尯鍚嶇О'}
+            , {field: 'whsType$', align: 'center', title: '搴撲綅绫诲瀷'}
+            , {field: 'locSts', align: 'center', title: '搴撲綅鐘舵��'}
+            , {field: 'row1', align: 'center', title: '鎺�'}
+            , {field: 'bay1', align: 'center', title: '鍒�'}
+            , {field: 'lev1', align: 'center', title: '灞�'}
+            , {field: 'locType', align: 'center', title: '搴撲綅绫诲瀷'}
+            , {field: 'sort', align: 'center', title: '浼樺厛绾�'}
+            , {field: 'modiUser$', align: 'center', title: '淇敼浜哄憳'}
+            , {field: 'modiTime$', align: 'center', title: '淇敼鏃堕棿'}
+            , {field: 'appeUser$', align: 'center', title: '鍒涘缓鑰�'}
+            , {field: 'appeTime$', align: 'center', title: '娣诲姞鏃堕棿'}
+            , {field: 'frozen', align: 'center', title: '鏄惁鍐荤粨,0.鏈喕缁擄紝1.宸插喕缁�', hide: true}
+            , {field: 'frozenMemo', align: 'center', title: '鍐荤粨澶囨敞', hide: true}
+            , {fixed: 'right', title: '鎿嶄綔', align: 'center', toolbar: '#operate', width: 160}]
+        ],
         request: {
             pageName: 'curr', pageSize: 'limit'
         },
@@ -133,7 +115,22 @@
     // 鐩戝惉琛屽伐鍏蜂簨浠�
     table.on('tool(locCache)', function (obj) {
         var data = obj.data;
+        console.log(data)
         switch (obj.event) {
+            case 'showDetl':
+                locNo = data?.locNo;
+                // 寮瑰眰鏄剧ず
+                layer.open({
+                    type: 2,
+                    title: '搴撲綅鏄庣粏',
+                    maxmin: true,
+                    area: [top.detailWidth, top.detailHeight],
+                    shadeClose: true,
+                    content: 'locDetail.html',
+                    success: function (layero, index) {
+                    }
+                });
+                break;
             case 'edit':
                 showEditModel(data);
                 break;

--
Gitblit v1.9.1