From 1795b3d924b95da49cf22003f4a4f8ffaa2dbda3 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 31 八月 2023 22:34:42 +0800
Subject: [PATCH] Merge branch 'master' into positec

---
 src/templates/zshare/verifycard/customscript/index.jsx |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/templates/zshare/verifycard/customscript/index.jsx b/src/templates/zshare/verifycard/customscript/index.jsx
index cb530d4..5d49e8c 100644
--- a/src/templates/zshare/verifycard/customscript/index.jsx
+++ b/src/templates/zshare/verifycard/customscript/index.jsx
@@ -251,6 +251,8 @@
   }
 
   selectScript = (value, option) => {
+    // const { flowType } = this.props
+
     if (!value || !option) return
 
     let _sql = this.props.form.getFieldValue('sql')
@@ -261,6 +263,11 @@
       _sql = _sql + ` 
 
       `
+    }
+
+    if (value === 'flowSql') {
+      value = `insert into s_my_works_flow ( works_flow_id,works_flow_code,works_flow_param,work_group,works_flow_detail_id,work_grade,bid,createuserid,CreateUser,CreateStaff)
+      select @ID@,'娴佺▼缂栫爜','涓嬩竴姝ヨ鐢ㄥ埌鐨勫弬鏁颁覆','鑱屽憳鍒嗙粍','娴佺▼鑺傜偣id','鑱屽憳绛夌骇',@bid@,@UserID@,@UserName,@FullName`
     }
 
     _sql = _sql.replace(/\s{6}$/, '')
@@ -275,7 +282,7 @@
   }
 
   render() {
-    const { usefulfields, systemScripts, btn, type } = this.props
+    const { usefulfields, systemScripts, btn, type, workFlow } = this.props
     const { getFieldDecorator } = this.props.form
     const { editItem, skip } = this.state
     const formItemLayout = {
@@ -341,6 +348,7 @@
                 getPopupContainer={() => document.getElementById('verify-custom-scripts' + _type)}
               >
                 <Select.Option key="default" value={this.props.defaultsql}>榛樿sql</Select.Option>
+                {window.GLOB.process && workFlow === 'true' ? <Select.Option key="flow" value="flowSql">榛樿sql锛堝伐浣滄祦锛�</Select.Option> : null}
                 <Select.Option key="debugger" value={`z_debug: select @ErrorCode='E',@retmsg='娴嬭瘯鏂偣' goto aaa`}>
                   娴嬭瘯鏂偣
                 </Select.Option>

--
Gitblit v1.8.0