From c8804ceb1fe2dea76f9949c5ea04423876ee2c81 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 28 六月 2024 14:02:47 +0800 Subject: [PATCH] 2024-06-28 --- src/menu/components/share/actioncomponent/formconfig.jsx | 151 ++++++++++++++++++++++++++++++++++---------------- 1 files changed, 103 insertions(+), 48 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index 8a2e8ce..e9d1a30 100644 --- a/src/menu/components/share/actioncomponent/formconfig.jsx +++ b/src/menu/components/share/actioncomponent/formconfig.jsx @@ -222,6 +222,7 @@ opentypes = opentypes.filter(item => item.value !== 'tab') funTypes = [ { value: 'print', text: '鏍囩鎵撳嵃' }, + { value: 'refund', text: '閫�娆�' }, ] pageTemps = [ { value: 'linkpage', text: '鍏宠仈鑿滃崟' }, @@ -421,20 +422,20 @@ required: true, options: [] }, - { - type: 'checkbox', - key: 'payType', - label: '鏀粯鏂瑰紡', - initVal: card.payType || [], - required: true, - options: [{ - value: 'wxpay', - text: '寰俊' - // }, { - // value: 'alipay', - // text: '鏀粯瀹�' - }] - }, + // { + // type: 'checkbox', + // key: 'payType', + // label: '鏀粯鏂瑰紡', + // initVal: card.payType || [], + // required: true, + // options: [{ + // value: 'wxpay', + // text: '寰俊' + // // }, { + // // value: 'alipay', + // // text: '鏀粯瀹�' + // }] + // }, { type: 'radio', key: 'procMode', @@ -470,15 +471,6 @@ }, { type: 'text', - key: 'innerFunc', - label: '鍐呴儴鍑芥暟', - initVal: card.innerFunc || '', - tooltip: functip, - fields: usefulFields, - required: false, - }, - { - type: 'text', key: 'urlkey', label: '鍦板潃瀛楁', initVal: card.urlkey || '', @@ -493,6 +485,43 @@ initVal: card.pageTemplate || '', required: true, options: pageTemps + }, + { + type: 'radio', + key: 'payMode', + label: '鍙傛暟澶勭悊', + initVal: card.payMode || 'none', + tooltip: '鏀粯锛堟垨閫�娆撅級鍗曞彿鐨勯澶勭悊鏂瑰紡銆�', + required: true, + options: [{ + value: 'system', + text: '绯荤粺鍑芥暟' + }, { + value: 'inner', + text: '鍐呴儴鍑芥暟' + }, { + value: 'none', + text: '鏃�' + }] + }, + { + type: 'select', + key: 'wxApp', + label: '鍏宠仈搴旂敤', + initVal: card.wxApp || '', + tooltip: '璇峰叧鑱旀敮浠橈紙鎴栭��娆撅級鐨勫叕浼楀彿鎴栧皬绋嬪簭銆�', + required: true, + forbid: !!appType || !window.GLOB.WXApps, + options: window.GLOB.WXApps ? window.GLOB.WXApps.map(item => ({value: item.appId, text: item.appName})) : [] + }, + { + type: 'text', + key: 'innerFunc', + label: '鍐呴儴鍑芥暟', + initVal: card.innerFunc || '', + tooltip: functip, + fields: usefulFields, + required: false, }, { type: 'printTemps', @@ -1374,7 +1403,6 @@ key: 'database', label: '鏁版嵁搴�', initVal: card.database || 'local', - tooltip: '娴嬭瘯绯荤粺鏁版嵁搴撳潎鎸囧悜鏈湴锛屾寮忕郴缁熷彲浣跨敤鍗曠偣鏁版嵁搴撱��', options: [{ value: 'local', text: '鏈湴' @@ -1796,20 +1824,20 @@ required: true, options: [] }, - { - type: 'checkbox', - key: 'payType', - label: '鏀粯鏂瑰紡', - initVal: card.payType || [], - required: true, - options: [{ - value: 'wxpay', - text: '寰俊' - // }, { - // value: 'alipay', - // text: '鏀粯瀹�' - }] - }, + // { + // type: 'checkbox', + // key: 'payType', + // label: '鏀粯鏂瑰紡', + // initVal: card.payType || [], + // required: true, + // options: [{ + // value: 'wxpay', + // text: '寰俊' + // // }, { + // // value: 'alipay', + // // text: '鏀粯瀹�' + // }] + // }, { type: 'radio', key: 'procMode', @@ -1845,15 +1873,6 @@ }, { type: 'text', - key: 'innerFunc', - label: '鍐呴儴鍑芥暟', - initVal: card.innerFunc || '', - tooltip: functip, - fields: usefulFields, - required: false, - }, - { - type: 'text', key: 'urlkey', label: '鍦板潃瀛楁', initVal: card.urlkey || '', @@ -1868,6 +1887,43 @@ initVal: card.pageTemplate || '', required: true, options: pageTemps + }, + { + type: 'radio', + key: 'payMode', + label: '鍙傛暟澶勭悊', + initVal: card.payMode || 'none', + tooltip: '鏀粯锛堟垨閫�娆撅級鍗曞彿鐨勯澶勭悊鏂瑰紡銆�', + required: true, + options: [{ + value: 'system', + text: '绯荤粺鍑芥暟' + }, { + value: 'inner', + text: '鍐呴儴鍑芥暟' + }, { + value: 'none', + text: '鏃�' + }] + }, + { + type: 'select', + key: 'wxApp', + label: '鍏宠仈搴旂敤', + initVal: card.wxApp || '', + tooltip: '璇峰叧鑱旀敮浠橈紙鎴栭��娆撅級鐨勫叕浼楀彿鎴栧皬绋嬪簭銆�', + required: true, + forbid: !window.GLOB.WXApps, + options: window.GLOB.WXApps ? window.GLOB.WXApps.map(item => ({value: item.appId, text: item.appName})) : [] + }, + { + type: 'text', + key: 'innerFunc', + label: '鍐呴儴鍑芥暟', + initVal: card.innerFunc || '', + tooltip: functip, + fields: usefulFields, + required: false, }, { type: 'printTemps', @@ -2579,7 +2635,6 @@ key: 'database', label: '鏁版嵁搴�', initVal: card.database || 'local', - tooltip: '娴嬭瘯绯荤粺鏁版嵁搴撳潎鎸囧悜鏈湴锛屾寮忕郴缁熷彲浣跨敤鍗曠偣鏁版嵁搴撱��', options: [{ value: 'local', text: '鏈湴' -- Gitblit v1.8.0