From ccccec5181ad9ceef5f11fa8f708cf4cb7de6f89 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 04 八月 2025 22:24:06 +0800
Subject: [PATCH] 条码主档:批量作废、反作废

---
 WebTM/views/Baseset/SRM_OpenTmpList.html |   33 +++++++++++++++++++++------------
 1 files changed, 21 insertions(+), 12 deletions(-)

diff --git a/WebTM/views/Baseset/SRM_OpenTmpList.html b/WebTM/views/Baseset/SRM_OpenTmpList.html
index b02e4d3..f7fa5ab 100644
--- a/WebTM/views/Baseset/SRM_OpenTmpList.html
+++ b/WebTM/views/Baseset/SRM_OpenTmpList.html
@@ -35,7 +35,7 @@
                         <div class="layui-tab-content">
                             <div class="layui-tab-item layui-show">
 
-                                <table class="layui-hide" id="mainTable"></table>
+                                <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                             </div>
                         </div>
                     </div>
@@ -66,10 +66,10 @@
                 , loading: false
                 , cols: [[
                     { type: 'radio' }
-                    , { field: 'HItemID', width: 150, title: 'ID', hide: true }
-                    , { field: 'HNumber', width: 150, title: '妯″潡浠g爜' }
-                    , { field: 'HName', width: 150, title: '妯″潡鍚嶇О', hide: true }
-                    , { field: '妯℃澘鍚嶇О', width: 150, title: '妯℃澘鍚嶇О' }
+                    , { field: 'HItemID', title: 'ID', hide: true }
+                    , { field: 'HNumber', title: '妯″潡浠g爜' }
+                    , { field: 'HName', title: '妯″潡鍚嶇О', hide: true }
+                    , { field: '妯℃澘鍚嶇О', title: '妯℃澘鍚嶇О' }
                 ]]
                 , page: true
                 , limits: [50, 500, 5000, 50000]
@@ -78,12 +78,21 @@
 
             DisPlay_HideColumn();
 
-            table.on('row(mainTable)', function (obj) {////娉細test鏄痶able鍘熷瀹瑰櫒鐨勫睘鎬� lay-filter="瀵瑰簲鐨勫��"
-                obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click');//閫変腑琛屾牱寮�
-                obj.tr.find('input[lay-type="layTableRadio"]').prop("checked", true);
-                form.render('radio');
-            });
+            //table.on('row(mainTable)', function (obj) {////娉細test鏄痶able鍘熷瀹瑰櫒鐨勫睘鎬� lay-filter="瀵瑰簲鐨勫��"
+            //    obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click');//閫変腑琛屾牱寮�
+            //    obj.tr.find('input[lay-type="layTableRadio"]').prop("checked", true);
+            //    form.render('radio');
+            //});
 
+            //#region 鐐瑰嚮琛岄�変腑楂樹寒
+            table.on('row(mainTable)', function (obj) {
+                //閫変腑琛屾敼鍙橀鑹�
+                $(".layui-table-body tr ").attr({ "style": "background:" });    //鍏朵粬tr鎭㈠鍘熸牱
+                obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click');   //閫変腑琛屾牱寮�
+                obj.tr.find('i[class="layui-anim layui-icon"]').trigger("click");   //閫変腑radio鏍峰紡
+                $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" }); //鏀瑰彉褰撳墠tr鑳屾櫙棰滆壊鍜屽瓧浣撻鑹�
+            })
+            //#endregion
 
             function getUrlVars() {
                 var vars = [], hash;
@@ -104,8 +113,8 @@
             ///鍔犺浇鏄剧ず鏁版嵁
             function RoadList(Where) {
                 var Value = Where;
-                if (Value == null) {
-                    Value = '';
+                if (Value == null || Value == undefined) {
+                    Value = "";
                 }
                 $.ajax({
                     type: "get",

--
Gitblit v1.9.1