From e771ba19739b537526ddb9a6fb2499b58a45a8ab Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 07 七月 2020 11:47:56 +0800
Subject: [PATCH] 2020-07-07

---
 src/templates/zshare/formconfig.jsx |   41 ++++++++++++++++++++++-------------------
 1 files changed, 22 insertions(+), 19 deletions(-)

diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx
index b886073..7680c60 100644
--- a/src/templates/zshare/formconfig.jsx
+++ b/src/templates/zshare/formconfig.jsx
@@ -941,16 +941,7 @@
     }, {
       value: 'popview',
       text: Formdict['model.form.popview']
-    }
-  ]
-
-  if (type === 'subtable') {
-    opentypes.push({
-      value: 'funcbutton',
-      text: Formdict['model.form.funcbutton']
-    })
-  } else {
-    opentypes.push({
+    }, {
       value: 'tab',
       text: Formdict['model.form.tab']
     }, {
@@ -959,7 +950,16 @@
     }, {
       value: 'funcbutton',
       text: Formdict['model.form.funcbutton']
-    })
+    }
+  ]
+
+  // 鏍囩绫诲瀷锛屼富琛ㄦ墠浼氬瓨鍦ㄨ〃鍗曟爣绛鹃〉
+  let tabTems = [{
+    value: 'FormTab',
+    text: '琛ㄥ崟鏍囩椤�'
+  }]
+  if (type === 'subtable') {
+    tabTems = []
   }
 
   let refresh = []
@@ -1095,6 +1095,9 @@
         value: 'print',
         text: Formdict['header.menu.printTemplate']
       }, {
+        value: 'pay',
+        text: Formdict['model.pay']
+      }, {
         value: 'custom',
         text: Formdict['header.form.custom']
       }]
@@ -1170,15 +1173,15 @@
       type: 'select',
       key: 'tabTemplate',
       label: '鏍囩绫诲瀷',
-      initVal: card.tabTemplate || 'FormTab',
+      initVal: card.tabTemplate || '',
       required: true,
-      options: [{
-        value: 'FormTab',
-        text: '琛ㄥ崟鏍囩椤�'
-      }, {
-        value: 'ThdMenu',
-        text: Formdict['model.menu.level3']
-      }]
+      options: [
+        {
+          value: 'ThdMenu',
+          text: Formdict['model.menu.level3']
+        },
+        ...tabTems
+      ]
     },
     {
       type: 'cascader',

--
Gitblit v1.8.0