From 80deba0c2dcffd9e6b6f07815c7c52199309ce42 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 23 六月 2025 17:36:03 +0800
Subject: [PATCH] 2025-06-23

---
 src/tabviews/custom/components/table/edit-table/index.jsx |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/components/table/edit-table/index.jsx b/src/tabviews/custom/components/table/edit-table/index.jsx
index c3cdecd..001ecdf 100644
--- a/src/tabviews/custom/components/table/edit-table/index.jsx
+++ b/src/tabviews/custom/components/table/edit-table/index.jsx
@@ -61,6 +61,14 @@
       BID = BData.$BID || ''
     }
 
+    if (setting.controlField) {
+      if (setting.controlVal) {
+        setting.controlVal = setting.controlVal.split(',')
+      } else {
+        setting.controlVal = ['']
+      }
+    }
+
     _config.submit.style = _config.submit.style || {}
     _config.submit.wrapStyle = {}
     setting.hasAction = _config.action.length > 0
@@ -209,6 +217,10 @@
       }
     } else {
       _config.colsCtrls = null
+    }
+
+    if (_config.setting.supModule && !BID) {
+      _config.setting.onload = 'false'
     }
 
     this.setState({
@@ -433,6 +445,7 @@
         total: 0
       })
       reset && MKEmitter.emit('resetTable', config.uuid, 'true') // 鍒楄〃閲嶇疆
+      MKEmitter.emit('transferData' + setting.tableId, [])
 
       this.requestId = ''
       return
@@ -487,6 +500,12 @@
               item[f] = Math.abs(item[f])
             }
           })
+        }
+
+        if (setting.controlField) {
+          if (setting.controlVal.includes(item[setting.controlField] + '')) {
+            item.$disabled = true
+          }
         }
 
         return item
@@ -589,6 +608,12 @@
         })
       }
 
+      if (setting.controlField) {
+        if (setting.controlVal.includes(_data[setting.controlField] + '')) {
+          _data.$disabled = true
+        }
+      }
+
       data = data.map(item => {
         if (item.$$uuid === _data.$$uuid) {
           _data.key = item.key
@@ -632,7 +657,7 @@
     if (setting.supModule && !BID) {
       notification.warning({
         top: 92,
-        message: window.GLOB.dict['sup_key_req'] || '闇�瑕佷笂绾т富閿�硷紒',
+        message: setting.supModTip || window.GLOB.dict['sup_key_req'] || '闇�瑕佷笂绾т富閿�硷紒',
         duration: 5
       })
       this.setState({

--
Gitblit v1.8.0