From c8d0e05c547a849da6d7eab25ce1478f304455e9 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期五, 30 一月 2026 13:48:35 +0800
Subject: [PATCH] 注释掉多余的

---
 src/main/webapp/views/pakStore/locDetlCheckQuery.html |   63 +++++++++++++++++++++++++++++++
 1 files changed, 63 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/views/pakStore/locDetlCheckQuery.html b/src/main/webapp/views/pakStore/locDetlCheckQuery.html
index e2eab23..f0e1ecf 100644
--- a/src/main/webapp/views/pakStore/locDetlCheckQuery.html
+++ b/src/main/webapp/views/pakStore/locDetlCheckQuery.html
@@ -100,6 +100,15 @@
                 </select>
             </div>
         </div>
+        <div class="layui-inline">
+            <div class="layui-input-inline">
+                <select name="mk" class="layui-input" type="text" autocomplete="off">
+                    <option value="">鐩樼偣鐘舵��</option>
+                    <option value="Y">宸茬洏鐐�</option>
+                    <option value="N">鏈洏鐐�</option>
+                </select>
+            </div>
+        </div>
         <!-- 鏃ユ湡鑼冨洿 -->
         <div class="layui-inline" style="width: 300px">
             <div class="layui-input-inline">
@@ -117,6 +126,7 @@
 <script type="text/html" id="toolbar">
     <div class="layui-btn-container">
         <button class="layui-btn" id="btn-confirm" lay-event="confirm" style="">鎻愬彇</button>
+        <button class="layui-btn layui-btn-normal" id="btn-clear-mk" lay-event="clearMk" style="">娓呴櫎鐩樼偣鐘舵��</button>
     </div>
 </script>
 
@@ -139,6 +149,21 @@
             ,{field: 'locNo', align: 'center',title: '搴撲綅鍙�', merge: true, style: 'font-weight: bold'}
         ];
         cols.push.apply(cols, detlCols);
+        let cstateidIndex = cols.findIndex(col => col.field === 'cstateid$');
+        // if (cstateidIndex !== -1) {
+        //     cols.splice(cstateidIndex + 1, 0, {
+        //         field: 'mk',
+        //         align: 'center',
+        //         title: '鏄惁鐩樼偣',
+        //         templet: function(row) {
+        //             if (row.mk === 'Y') {
+        //                 return '<span style="color: #5FB878;">宸茬洏鐐�</span>';
+        //             } else {
+        //                 return '<span style="color: #999;">鏈洏鐐�</span>';
+        //             }
+        //         }
+        //     });
+        // }
         cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true}
             ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
             ,{field: 'appeTime$', align: 'center',title: '鍏ュ簱鏃堕棿'})
@@ -228,6 +253,44 @@
                     })
                     parent.addTableData(data);
                     break;
+                case 'clearMk':
+                    if (data.length === 0){
+                        layer.msg("璇烽�夋嫨瑕佹竻闄ょ洏鐐圭姸鎬佺殑搴撲綅", {icon: 2});
+                        return;
+                    }
+                    // 鍘婚噸鑾峰彇搴撲綅鍙峰垪琛�
+                    let locNoSet = new Set();
+                    data.forEach(function(elem) {
+                        if (elem.locNo) {
+                            locNoSet.add(elem.locNo);
+                        }
+                    });
+                    let locNoList = Array.from(locNoSet);
+                    
+                    layer.confirm('纭畾瑕佹竻闄ゆ墍閫夊簱浣嶇殑鐩樼偣鐘舵�佸悧锛�', {icon: 3, title:'鎻愮ず'}, function(index){
+                        $.ajax({
+                            url: baseUrl+"/locMast/clearMk/auth",
+                            headers: {'token': localStorage.getItem('token')},
+                            contentType: 'application/json;charset=UTF-8',
+                            data: JSON.stringify({locNos: locNoList}),
+                            method: 'POST',
+                            success: function (res) {
+                                if (res.code === 200) {
+                                    layer.msg("娓呴櫎鐩樼偣鐘舵�佹垚鍔�", {icon: 1});
+                                    locDetlTableIns.reload();
+                                } else if (res.code === 403) {
+                                    top.location.href = baseUrl + "/";
+                                } else {
+                                    layer.msg(res.msg || "娓呴櫎鐩樼偣鐘舵�佸け璐�", {icon: 2});
+                                }
+                            },
+                            error: function() {
+                                layer.msg("璇锋眰澶辫触锛岃绋嶅悗閲嶈瘯", {icon: 2});
+                            }
+                        });
+                        layer.close(index);
+                    });
+                    break;
             }
         });
 

--
Gitblit v1.9.1