From d0764c7facff9abf00af6f3ff06a26260d1d8770 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 12 五月 2025 16:34:25 +0800
Subject: [PATCH] Merge branch 'develop'

---
 src/menu/datasource/verifycard/settingform/index.jsx |   34 ++++++++++++++++++++++++++--------
 1 files changed, 26 insertions(+), 8 deletions(-)

diff --git a/src/menu/datasource/verifycard/settingform/index.jsx b/src/menu/datasource/verifycard/settingform/index.jsx
index 7e5f409..cfb2a37 100644
--- a/src/menu/datasource/verifycard/settingform/index.jsx
+++ b/src/menu/datasource/verifycard/settingform/index.jsx
@@ -38,11 +38,24 @@
     const { config, setting } = this.props
 
     let menu = window.GLOB.customMenu
-    let modules = MenuUtils.getSupModules(menu.components, config.uuid, menu.interfaces)
+    let modules = []
     let ismain = false
 
     if (menu.Template === 'BaseTable') {
       ismain = config.name === '涓昏〃'
+    }
+
+    if (config.type === 'interface') {
+      menu.components.forEach(item => {
+        if (item.type === 'module' && item.subtype === 'account') {
+          modules.push({
+            value: item.uuid,
+            label: item.name
+          })
+        }
+      })
+    } else {
+      modules = MenuUtils.getSupModules(menu.components, config.uuid, menu.interfaces)
     }
 
     modules.unshift({
@@ -148,10 +161,10 @@
     let tableName = this.props.form.getFieldValue('tableName') || '琛ㄥ悕'
 
     if (type === 'flowstart') {
-      _sql = _sql + `\n/* select a.*, w.remark as remark_w, w.statusname  as statusname_w,w.status as status_w,w.works_flow_param,w.modifydate as modifydate_w  from (select * from ${tableName} where status=0 and deleted=0 $@ and createuserid=@userid@ @$) a
+      _sql = _sql + `\n/* select a.*, w.remark as remark_w, w.statusname  as statusname_w,w.status as status_w,w.works_flow_param,w.works_flow_detail_id,w.modifydate as modifydate_w  from (select * from ${tableName} where status=0 and deleted=0 $@ and createuserid=@userid@ @$) a
     inner join (select * from  s_my_works_flow  where works_flow_code=@works_flow_code@ and status=0 and deleted=0) w on a.id=w.works_flow_id */`
     } else if (type === 'flowcheck') {
-      _sql = _sql + `\n/* select a.*, w.remark as remark_w, w.statusname  as statusname_w,w.status as status_w,w.works_flow_param,w.modifydate as modifydate_w  
+      _sql = _sql + `\n/* select a.*, w.remark as remark_w, w.statusname  as statusname_w,w.status as status_w,w.works_flow_param,w.works_flow_detail_id,w.modifydate as modifydate_w  
     from (select * from ${tableName} where status=0 and deleted=0 ) a
     inner join (select * from  s_my_works_flow  where works_flow_code=@works_flow_code@ and status>0 and status<888 and deleted=0) w 
     on a.id=w.works_flow_id 
@@ -192,7 +205,7 @@
   }
 
   render() {
-    const { columns, config } = this.props
+    const { columns, config, hasMainSearch } = this.props
     const { getFieldDecorator } = this.props.form
     const { setting, modules, innerRules, innertip, MenuType, visible } = this.state
 
@@ -562,7 +575,7 @@
                   initialValue: setting.useMSearch || 'true'
                 })(
                   <Radio.Group onChange={(e) => {this.onOptionChange(e.target.value, 'useMSearch')}}>
-                    <Radio value="true">浣跨敤</Radio>
+                    <Radio value="true">浣跨敤{!hasMainSearch ? <Tooltip placement="top" title="鏃犲彲浣跨敤鐨勫閮ㄦ悳绱㈡潯浠�"><span className="mk-dot"></span></Tooltip> : null}</Radio>
                     <Radio value="false">涓嶄娇鐢�</Radio>
                   </Radio.Group>
                 )}
@@ -597,8 +610,13 @@
                 )}
               </Form.Item>
             </Col> : null}
-            {window.backend && setting.interType === 'system' ? <Col span={8}>
-              <Form.Item label="浜嬪姟">
+            {setting.interType === 'system' ? <Col span={8}>
+              <Form.Item label={
+                <Tooltip placement="topLeft" title="浣跨敤鍚庣sql鑴氭湰鏃舵湁鏁堛��">
+                  <QuestionCircleOutlined className="mk-form-tip" />
+                  浜嬪姟
+                </Tooltip>
+              }>
                 {getFieldDecorator('transact', {
                   initialValue: setting.transact || 'false'
                 })(
@@ -661,7 +679,7 @@
             </Col> : null}
             {config.subtype === 'dualdatacard' ? <Col span={8}>
               <Form.Item label={
-                <Tooltip placement="topLeft" title="瀛愯〃鍦ㄤ富琛ㄤ腑鐨勬暟鎹泦鍚嶇О銆�">
+                <Tooltip placement="topLeft" title="瀛愯〃鍦ㄤ富琛ㄤ腑鐨勬暟鎹泦鍚嶇О锛屼娇鐢� sub_data_string 鏃舵暟鎹互 JSON 瀛楃涓插舰寮忚繑鍥烇紙瀛楁闆嗕腑闇�娣诲姞 sub_data_string 瀛楁锛夛紱褰撲富琛ㄥ瓧娈靛瓨鍦� sub_data_string 涓斿�间笉涓虹┖鏃讹紝浼樺厛浣跨敤涓昏〃鐨� sub_data_string銆�">
                   <QuestionCircleOutlined className="mk-form-tip" />
                   瀛愯〃瀛楁
                 </Tooltip>

--
Gitblit v1.8.0