From 32a9a6ced39bdf9893efc7740a71e9ae400a2413 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期一, 29 九月 2025 16:46:19 +0800
Subject: [PATCH] 缓冲库区添加批量操作

---
 src/main/webapp/static/js/locCache/locCache.js |   28 ++++++++++++++++++++++++----
 1 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/static/js/locCache/locCache.js b/src/main/webapp/static/js/locCache/locCache.js
index 311e76b..938cf5c 100644
--- a/src/main/webapp/static/js/locCache/locCache.js
+++ b/src/main/webapp/static/js/locCache/locCache.js
@@ -23,12 +23,12 @@
         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: '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: 'locType', align: 'center', title: '搴撲綅绫诲瀷'}
             , {field: 'sort', align: 'center', title: '浼樺厛绾�'}
             , {field: 'modiUser$', align: 'center', title: '淇敼浜哄憳'}
             , {field: 'modiTime$', align: 'center', title: '淇敼鏃堕棿'}
@@ -78,6 +78,13 @@
             case 'addData':
                 showEditModel();
                 break;
+            case 'batchModifties':
+                if (checkStatus.length === 0) {
+                    layer.msg('璇烽�夋嫨闇�瑕佷慨鏀圭殑鏁版嵁淇℃伅', {icon: 2});
+                    return;
+                }
+                batchModifies();
+                break;
             case 'deleteData':
                 if (checkStatus.length === 0) {
                     layer.msg('璇烽�夋嫨瑕佸垹闄ょ殑鏁版嵁', {icon: 2});
@@ -112,10 +119,11 @@
         }
     });
 
+
+
     // 鐩戝惉琛屽伐鍏蜂簨浠�
     table.on('tool(locCache)', function (obj) {
         var data = obj.data;
-        console.log(data)
         switch (obj.event) {
             case 'showDetl':
                 locNo = data?.locNo;
@@ -163,6 +171,19 @@
         })
     });
 
+    function batchModifies() {
+        layer.open({
+            type: 1,
+            title: '鎵归噺淇敼',
+            maxmin: true,
+            area: ["400px"],
+            shadeClose: true,
+            content: $('#batchModify'),
+            success: function (layero, index) {
+
+            }
+        });
+    }
 
     /* 寮圭獥 - 鏂板銆佷慨鏀� */
     function showEditModel(mData) {
@@ -204,7 +225,6 @@
 
     /* 鍒犻櫎 */
     function del(ids) {
-        console.log(ids)
         layer.confirm('纭畾瑕佸垹闄ら�変腑鏁版嵁鍚楋紵', {
             skin: 'layui-layer-admin', shade: .1
         }, function (i) {

--
Gitblit v1.9.1