@steedos-widgets/amis-lib 6.10.1-beta.50 → 6.10.1-beta.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +111 -32
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +111 -32
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +34 -15
- package/dist/index.umd.js.map +1 -1
- package/dist/types/workflow/approve.d.ts +4 -4
- package/dist/types/workflow/flow.d.ts +7 -8
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1574,8 +1574,24 @@ var frontend_app_launcher_dialog_new_app_name_label$1 = "Label";
|
|
|
1574
1574
|
var frontend_app_launcher_dialog_new_app_icon_label$1 = "Icon";
|
|
1575
1575
|
var frontend_crud_toolbar_quick_search_placeholder$1 = "Quick Search";
|
|
1576
1576
|
var frontend_crud_toolbar_quick_search_tooltip_prefix$1 = "Searchable fields:";
|
|
1577
|
+
var frontend_lookup_left_tree_search_organizations$1 = "Search for organizations";
|
|
1577
1578
|
var frontend_workflow_instances_applicant_name_prefix$1 = "Applicant name:";
|
|
1578
1579
|
var frontend_workflow_instance_submit_date_prefix$1 = "Submission date:";
|
|
1580
|
+
var frontend_workflow_approval_judge_returned$1 = "Returned";
|
|
1581
|
+
var frontend_workflow_approval_judge_terminated$1 = "Cancelled";
|
|
1582
|
+
var frontend_workflow_approval_judge_pending$1 = "In Progress";
|
|
1583
|
+
var frontend_workflow_approval_judge_approved$1 = "Approved";
|
|
1584
|
+
var frontend_workflow_approval_judge_rejected$1 = "Rejected";
|
|
1585
|
+
var frontend_workflow_approval_judge_finished$1 = "Completed";
|
|
1586
|
+
var frontend_workflow_approval_judge_reassigned$1 = "Reassigned";
|
|
1587
|
+
var frontend_workflow_approval_judge_inhand$1 = "In Progress";
|
|
1588
|
+
var frontend_workflow_approval_judge_relocated$1 = "Relocate";
|
|
1589
|
+
var frontend_workflow_approval_judge_readed$1 = "Read";
|
|
1590
|
+
var frontend_workflow_approval_suggestion_readed$1 = "Read";
|
|
1591
|
+
var frontend_workflow_approval_suggestion_completed$1 = "Done";
|
|
1592
|
+
var frontend_workflow_approval_suggestion_agree$1 = "Agree";
|
|
1593
|
+
var frontend_workflow_approval_suggestion_other$1 = "Select opinions";
|
|
1594
|
+
var frontend_workflow_suggestion_placeholder$1 = "Please fill in your comments.";
|
|
1579
1595
|
var frontend_workflow_instance_button_sign$1 = "Sign";
|
|
1580
1596
|
var frontend_workflow_approval_history$1 = "Approval History";
|
|
1581
1597
|
var frontend_workflow_approval_history_read$1 = "Read";
|
|
@@ -1587,6 +1603,10 @@ var frontend_workflow_judge_option_approved$1 = "Approved";
|
|
|
1587
1603
|
var frontend_workflow_judge_option_rejected$1 = "Rejected";
|
|
1588
1604
|
var frontend_workflow_judge_option_readed$1 = "Readed";
|
|
1589
1605
|
var frontend_workflow_next_step$1 = "Next Step";
|
|
1606
|
+
var frontend_workflow_next_users$1 = "To";
|
|
1607
|
+
var frontend_workflow_submit_validate_error_title$1 = "Submission failed";
|
|
1608
|
+
var frontend_workflow_submit_validate_error_msg$1 = "Please fill in the required fields";
|
|
1609
|
+
var frontend_workflow_related_records_link_title$1 = "Related Records";
|
|
1590
1610
|
var en_us$1 = {
|
|
1591
1611
|
frontend_field_group_generalization: frontend_field_group_generalization$1,
|
|
1592
1612
|
frontend_download: frontend_download$1,
|
|
@@ -1706,8 +1726,24 @@ var en_us$1 = {
|
|
|
1706
1726
|
frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label$1,
|
|
1707
1727
|
frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder$1,
|
|
1708
1728
|
frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix$1,
|
|
1729
|
+
frontend_lookup_left_tree_search_organizations: frontend_lookup_left_tree_search_organizations$1,
|
|
1709
1730
|
frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix$1,
|
|
1710
1731
|
frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix$1,
|
|
1732
|
+
frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned$1,
|
|
1733
|
+
frontend_workflow_approval_judge_terminated: frontend_workflow_approval_judge_terminated$1,
|
|
1734
|
+
frontend_workflow_approval_judge_pending: frontend_workflow_approval_judge_pending$1,
|
|
1735
|
+
frontend_workflow_approval_judge_approved: frontend_workflow_approval_judge_approved$1,
|
|
1736
|
+
frontend_workflow_approval_judge_rejected: frontend_workflow_approval_judge_rejected$1,
|
|
1737
|
+
frontend_workflow_approval_judge_finished: frontend_workflow_approval_judge_finished$1,
|
|
1738
|
+
frontend_workflow_approval_judge_reassigned: frontend_workflow_approval_judge_reassigned$1,
|
|
1739
|
+
frontend_workflow_approval_judge_inhand: frontend_workflow_approval_judge_inhand$1,
|
|
1740
|
+
frontend_workflow_approval_judge_relocated: frontend_workflow_approval_judge_relocated$1,
|
|
1741
|
+
frontend_workflow_approval_judge_readed: frontend_workflow_approval_judge_readed$1,
|
|
1742
|
+
frontend_workflow_approval_suggestion_readed: frontend_workflow_approval_suggestion_readed$1,
|
|
1743
|
+
frontend_workflow_approval_suggestion_completed: frontend_workflow_approval_suggestion_completed$1,
|
|
1744
|
+
frontend_workflow_approval_suggestion_agree: frontend_workflow_approval_suggestion_agree$1,
|
|
1745
|
+
frontend_workflow_approval_suggestion_other: frontend_workflow_approval_suggestion_other$1,
|
|
1746
|
+
frontend_workflow_suggestion_placeholder: frontend_workflow_suggestion_placeholder$1,
|
|
1711
1747
|
frontend_workflow_instance_button_sign: frontend_workflow_instance_button_sign$1,
|
|
1712
1748
|
frontend_workflow_approval_history: frontend_workflow_approval_history$1,
|
|
1713
1749
|
frontend_workflow_approval_history_read: frontend_workflow_approval_history_read$1,
|
|
@@ -1718,7 +1754,11 @@ var en_us$1 = {
|
|
|
1718
1754
|
frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved$1,
|
|
1719
1755
|
frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected$1,
|
|
1720
1756
|
frontend_workflow_judge_option_readed: frontend_workflow_judge_option_readed$1,
|
|
1721
|
-
frontend_workflow_next_step: frontend_workflow_next_step$1
|
|
1757
|
+
frontend_workflow_next_step: frontend_workflow_next_step$1,
|
|
1758
|
+
frontend_workflow_next_users: frontend_workflow_next_users$1,
|
|
1759
|
+
frontend_workflow_submit_validate_error_title: frontend_workflow_submit_validate_error_title$1,
|
|
1760
|
+
frontend_workflow_submit_validate_error_msg: frontend_workflow_submit_validate_error_msg$1,
|
|
1761
|
+
frontend_workflow_related_records_link_title: frontend_workflow_related_records_link_title$1
|
|
1722
1762
|
};
|
|
1723
1763
|
|
|
1724
1764
|
var frontend_field_group_generalization = "通用";
|
|
@@ -1840,6 +1880,7 @@ var frontend_app_launcher_dialog_new_app_name_label = "显示名称";
|
|
|
1840
1880
|
var frontend_app_launcher_dialog_new_app_icon_label = "图标";
|
|
1841
1881
|
var frontend_crud_toolbar_quick_search_placeholder = "快捷搜索";
|
|
1842
1882
|
var frontend_crud_toolbar_quick_search_tooltip_prefix = "可搜索字段:";
|
|
1883
|
+
var frontend_lookup_left_tree_search_organizations = "查找部门";
|
|
1843
1884
|
var frontend_workflow_instances_applicant_name_prefix = "提交人:";
|
|
1844
1885
|
var frontend_workflow_instance_submit_date_prefix = "提交日期:";
|
|
1845
1886
|
var frontend_workflow_approval_judge_returned = "已退回";
|
|
@@ -1852,6 +1893,11 @@ var frontend_workflow_approval_judge_reassigned = "转签核";
|
|
|
1852
1893
|
var frontend_workflow_approval_judge_inhand = "处理中";
|
|
1853
1894
|
var frontend_workflow_approval_judge_relocated = "重定位";
|
|
1854
1895
|
var frontend_workflow_approval_judge_readed = "已阅";
|
|
1896
|
+
var frontend_workflow_approval_suggestion_readed = "已阅";
|
|
1897
|
+
var frontend_workflow_approval_suggestion_completed = "已办";
|
|
1898
|
+
var frontend_workflow_approval_suggestion_agree = "同意";
|
|
1899
|
+
var frontend_workflow_approval_suggestion_other = "其他常用意见";
|
|
1900
|
+
var frontend_workflow_suggestion_placeholder = "请填写意见";
|
|
1855
1901
|
var frontend_workflow_instance_button_sign = "签批";
|
|
1856
1902
|
var frontend_workflow_approval_history = "签批历程";
|
|
1857
1903
|
var frontend_workflow_approval_history_read = "已读";
|
|
@@ -1863,6 +1909,10 @@ var frontend_workflow_judge_option_approved = "核准";
|
|
|
1863
1909
|
var frontend_workflow_judge_option_rejected = "驳回";
|
|
1864
1910
|
var frontend_workflow_judge_option_readed = "已阅";
|
|
1865
1911
|
var frontend_workflow_next_step = "下一步";
|
|
1912
|
+
var frontend_workflow_next_users = "处理人";
|
|
1913
|
+
var frontend_workflow_submit_validate_error_title = "提交失败";
|
|
1914
|
+
var frontend_workflow_submit_validate_error_msg = "请填写必填字段";
|
|
1915
|
+
var frontend_workflow_related_records_link_title = "相关台账信息";
|
|
1866
1916
|
var zh_cn$1 = {
|
|
1867
1917
|
frontend_field_group_generalization: frontend_field_group_generalization,
|
|
1868
1918
|
frontend_download: frontend_download,
|
|
@@ -1983,6 +2033,7 @@ var zh_cn$1 = {
|
|
|
1983
2033
|
frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label,
|
|
1984
2034
|
frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder,
|
|
1985
2035
|
frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix,
|
|
2036
|
+
frontend_lookup_left_tree_search_organizations: frontend_lookup_left_tree_search_organizations,
|
|
1986
2037
|
frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix,
|
|
1987
2038
|
frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix,
|
|
1988
2039
|
frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned,
|
|
@@ -1995,6 +2046,11 @@ var zh_cn$1 = {
|
|
|
1995
2046
|
frontend_workflow_approval_judge_inhand: frontend_workflow_approval_judge_inhand,
|
|
1996
2047
|
frontend_workflow_approval_judge_relocated: frontend_workflow_approval_judge_relocated,
|
|
1997
2048
|
frontend_workflow_approval_judge_readed: frontend_workflow_approval_judge_readed,
|
|
2049
|
+
frontend_workflow_approval_suggestion_readed: frontend_workflow_approval_suggestion_readed,
|
|
2050
|
+
frontend_workflow_approval_suggestion_completed: frontend_workflow_approval_suggestion_completed,
|
|
2051
|
+
frontend_workflow_approval_suggestion_agree: frontend_workflow_approval_suggestion_agree,
|
|
2052
|
+
frontend_workflow_approval_suggestion_other: frontend_workflow_approval_suggestion_other,
|
|
2053
|
+
frontend_workflow_suggestion_placeholder: frontend_workflow_suggestion_placeholder,
|
|
1998
2054
|
frontend_workflow_instance_button_sign: frontend_workflow_instance_button_sign,
|
|
1999
2055
|
frontend_workflow_approval_history: frontend_workflow_approval_history,
|
|
2000
2056
|
frontend_workflow_approval_history_read: frontend_workflow_approval_history_read,
|
|
@@ -2005,7 +2061,11 @@ var zh_cn$1 = {
|
|
|
2005
2061
|
frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved,
|
|
2006
2062
|
frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected,
|
|
2007
2063
|
frontend_workflow_judge_option_readed: frontend_workflow_judge_option_readed,
|
|
2008
|
-
frontend_workflow_next_step: frontend_workflow_next_step
|
|
2064
|
+
frontend_workflow_next_step: frontend_workflow_next_step,
|
|
2065
|
+
frontend_workflow_next_users: frontend_workflow_next_users,
|
|
2066
|
+
frontend_workflow_submit_validate_error_title: frontend_workflow_submit_validate_error_title,
|
|
2067
|
+
frontend_workflow_submit_validate_error_msg: frontend_workflow_submit_validate_error_msg,
|
|
2068
|
+
frontend_workflow_related_records_link_title: frontend_workflow_related_records_link_title
|
|
2009
2069
|
};
|
|
2010
2070
|
|
|
2011
2071
|
/*
|
|
@@ -12256,7 +12316,7 @@ function getLookupSapceUserTreeSchema(isMobile){
|
|
|
12256
12316
|
"searchable": true,
|
|
12257
12317
|
"searchConfig": {
|
|
12258
12318
|
"sticky": true,
|
|
12259
|
-
"placeholder":
|
|
12319
|
+
"placeholder": i18next.t('frontend_lookup_left_tree_search_organizations')
|
|
12260
12320
|
},
|
|
12261
12321
|
"unfoldedLevel": 2,
|
|
12262
12322
|
"originPosition": "left-top"
|
|
@@ -17183,7 +17243,7 @@ const getNextStepUsersInput = async (instance) => {
|
|
|
17183
17243
|
body: [
|
|
17184
17244
|
{
|
|
17185
17245
|
type: "tpl",
|
|
17186
|
-
tpl: "处理人",
|
|
17246
|
+
tpl: i18next$1.t('frontend_workflow_next_users'),//"处理人",
|
|
17187
17247
|
inline: true,
|
|
17188
17248
|
wrapperComponent: "",
|
|
17189
17249
|
id: "u:3203cc281b3c",
|
|
@@ -17391,10 +17451,22 @@ const getSubmitActions = async (instance) => {
|
|
|
17391
17451
|
"args": {},
|
|
17392
17452
|
"actionType": "custom",
|
|
17393
17453
|
"script": `
|
|
17454
|
+
const wizard = event.context.scoped.getComponentById("instance_wizard");
|
|
17394
17455
|
const form = event.context.scoped.getComponentById("instance_form");
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
|
|
17456
|
+
|
|
17457
|
+
// 1. 校验外层 form(直接表单项)
|
|
17458
|
+
let formValidatePromise = form.validate();
|
|
17459
|
+
|
|
17460
|
+
// 2. 校验 wizard(所有步骤数据)
|
|
17461
|
+
let wizardValidatePromise = wizard?.form?.validate
|
|
17462
|
+
? wizard.form.validate()
|
|
17463
|
+
: Promise.resolve(true);
|
|
17464
|
+
|
|
17465
|
+
return Promise.all([formValidatePromise, wizardValidatePromise]).then(([formValid, wizardValid]) => {
|
|
17466
|
+
const allValid = formValid && wizardValid;
|
|
17467
|
+
event.setData({...event.data, instanceFormValidate: allValid});
|
|
17468
|
+
return allValid;
|
|
17469
|
+
});
|
|
17398
17470
|
`
|
|
17399
17471
|
},
|
|
17400
17472
|
// 校验审批表单
|
|
@@ -17486,7 +17558,7 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
17486
17558
|
id: "u:cd344f708ddc",
|
|
17487
17559
|
minRows: 3,
|
|
17488
17560
|
maxRows: 20,
|
|
17489
|
-
placeholder: "请填写意见",
|
|
17561
|
+
placeholder: i18next$1.t('frontend_workflow_suggestion_placeholder'),//"请填写意见",
|
|
17490
17562
|
requiredOn: "${judge === 'rejected'}"
|
|
17491
17563
|
},
|
|
17492
17564
|
await getNextStepInput(instance),
|
|
@@ -17523,8 +17595,8 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
17523
17595
|
"position": "top-right",
|
|
17524
17596
|
"closeButton": true,
|
|
17525
17597
|
"showIcon": true,
|
|
17526
|
-
"title": "提交失败",
|
|
17527
|
-
"msg": "请填写必填字段"
|
|
17598
|
+
"title": i18next$1.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
|
|
17599
|
+
"msg": i18next$1.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
|
|
17528
17600
|
},
|
|
17529
17601
|
"actionType": "toast"
|
|
17530
17602
|
}
|
|
@@ -17810,7 +17882,7 @@ const getInstanceApprovalHistory = async ()=>{
|
|
|
17810
17882
|
* @Author: baozhoutao@steedos.com
|
|
17811
17883
|
* @Date: 2022-09-07 16:20:45
|
|
17812
17884
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
17813
|
-
* @LastEditTime: 2025-08-
|
|
17885
|
+
* @LastEditTime: 2025-08-29 21:01:29
|
|
17814
17886
|
* @Description:
|
|
17815
17887
|
*/
|
|
17816
17888
|
|
|
@@ -17857,7 +17929,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17857
17929
|
},
|
|
17858
17930
|
{
|
|
17859
17931
|
"type": "button",
|
|
17860
|
-
"label": "签批",
|
|
17932
|
+
"label": i18next$1.t('frontend_workflow_instance_button_sign'),//"签批",
|
|
17861
17933
|
"level": "link",
|
|
17862
17934
|
"id": "u:2592111d236d",
|
|
17863
17935
|
"block": false,
|
|
@@ -17882,7 +17954,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17882
17954
|
"minRows": 6,
|
|
17883
17955
|
"maxRows": 20,
|
|
17884
17956
|
"mode": "normal",
|
|
17885
|
-
"placeholder": "请填写意见"
|
|
17957
|
+
"placeholder": i18next$1.t('frontend_workflow_suggestion_placeholder'),//"请填写意见"
|
|
17886
17958
|
},
|
|
17887
17959
|
{
|
|
17888
17960
|
"type": "grid",
|
|
@@ -17891,15 +17963,15 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17891
17963
|
"body": [
|
|
17892
17964
|
{
|
|
17893
17965
|
"type": "button",
|
|
17894
|
-
"label": "已阅",
|
|
17966
|
+
"label": i18next$1.t('frontend_workflow_approval_judge_readed'),//"已阅",
|
|
17895
17967
|
"onEvent": {
|
|
17896
17968
|
"click": {
|
|
17897
17969
|
"actions": [
|
|
17898
17970
|
{
|
|
17899
17971
|
"componentId": "u:1d5a60623000",
|
|
17900
17972
|
"args": {
|
|
17901
|
-
"valueInput": "已阅",
|
|
17902
|
-
"value": "已阅"
|
|
17973
|
+
"valueInput": i18next$1.t('frontend_workflow_approval_judge_readed'),//"已阅",
|
|
17974
|
+
"value": i18next$1.t('frontend_workflow_approval_judge_readed')//"已阅"
|
|
17903
17975
|
},
|
|
17904
17976
|
"actionType": "setValue"
|
|
17905
17977
|
}
|
|
@@ -17912,15 +17984,15 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17912
17984
|
},
|
|
17913
17985
|
{
|
|
17914
17986
|
"type": "button",
|
|
17915
|
-
"label": "已办",
|
|
17987
|
+
"label": i18next$1.t('frontend_workflow_approval_suggestion_completed'),//"已办",
|
|
17916
17988
|
"onEvent": {
|
|
17917
17989
|
"click": {
|
|
17918
17990
|
"actions": [
|
|
17919
17991
|
{
|
|
17920
17992
|
"componentId": "u:1d5a60623000",
|
|
17921
17993
|
"args": {
|
|
17922
|
-
"valueInput": "已办",
|
|
17923
|
-
"value": "已办"
|
|
17994
|
+
"valueInput": i18next$1.t('frontend_workflow_approval_suggestion_completed'),//"已办",
|
|
17995
|
+
"value": i18next$1.t('frontend_workflow_approval_suggestion_completed')//"已办",
|
|
17924
17996
|
},
|
|
17925
17997
|
"actionType": "setValue"
|
|
17926
17998
|
}
|
|
@@ -17933,15 +18005,15 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17933
18005
|
},
|
|
17934
18006
|
{
|
|
17935
18007
|
"type": "button",
|
|
17936
|
-
"label": "同意",
|
|
18008
|
+
"label": i18next$1.t('frontend_workflow_approval_suggestion_agree'),//"同意",
|
|
17937
18009
|
"onEvent": {
|
|
17938
18010
|
"click": {
|
|
17939
18011
|
"actions": [
|
|
17940
18012
|
{
|
|
17941
18013
|
"componentId": "u:1d5a60623000",
|
|
17942
18014
|
"args": {
|
|
17943
|
-
"valueInput": "同意"
|
|
17944
|
-
"value": "同意"
|
|
18015
|
+
"valueInput": i18next$1.t('frontend_workflow_approval_suggestion_agree'),//"同意"
|
|
18016
|
+
"value": i18next$1.t('frontend_workflow_approval_suggestion_agree')//"同意"
|
|
17945
18017
|
},
|
|
17946
18018
|
"actionType": "setValue"
|
|
17947
18019
|
}
|
|
@@ -17954,7 +18026,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17954
18026
|
},
|
|
17955
18027
|
{
|
|
17956
18028
|
"type": "button",
|
|
17957
|
-
"label": "
|
|
18029
|
+
"label": i18next$1.t('frontend_workflow_approval_suggestion_other'),//"同意"
|
|
17958
18030
|
"onEvent": {
|
|
17959
18031
|
"click": {
|
|
17960
18032
|
"actions": []
|
|
@@ -17981,7 +18053,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17981
18053
|
"actions": [
|
|
17982
18054
|
{
|
|
17983
18055
|
"type": "button",
|
|
17984
|
-
"label": "
|
|
18056
|
+
"label": "${'OK' | t}",
|
|
17985
18057
|
"onEvent": {
|
|
17986
18058
|
"click": {
|
|
17987
18059
|
"actions": [
|
|
@@ -18006,7 +18078,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
18006
18078
|
},
|
|
18007
18079
|
{
|
|
18008
18080
|
"type": "button",
|
|
18009
|
-
"label": "
|
|
18081
|
+
"label": "${'Cancel' | t}",
|
|
18010
18082
|
"onEvent": {
|
|
18011
18083
|
"click": {
|
|
18012
18084
|
"actions": [
|
|
@@ -18416,6 +18488,7 @@ const getFormTableView = async (instance) => {
|
|
|
18416
18488
|
};
|
|
18417
18489
|
|
|
18418
18490
|
const getFormSteps = async (instance) => {
|
|
18491
|
+
const formMode = instance.form.current.mode || "normal";//normal,horizontal,inline
|
|
18419
18492
|
const stepsSchema = [];
|
|
18420
18493
|
let stepFields = [];
|
|
18421
18494
|
let fields = [];
|
|
@@ -18443,11 +18516,16 @@ const getFormSteps = async (instance) => {
|
|
|
18443
18516
|
let fieldSchema;
|
|
18444
18517
|
for (const childField of field.fields) {
|
|
18445
18518
|
fieldSchema = await getTdInputTpl(childField, true);
|
|
18519
|
+
if (fieldSchema.type === "steedos-field"){
|
|
18520
|
+
fieldSchema.config.amis.mode = formMode;
|
|
18521
|
+
}
|
|
18522
|
+
else {
|
|
18523
|
+
fieldSchema.mode = formMode;
|
|
18524
|
+
}
|
|
18446
18525
|
stepFields.push(fieldSchema);
|
|
18447
18526
|
}
|
|
18448
18527
|
stepsSchema.push({
|
|
18449
18528
|
"title": field.name,
|
|
18450
|
-
"mode": "horizontal",
|
|
18451
18529
|
"body": stepFields
|
|
18452
18530
|
});
|
|
18453
18531
|
}
|
|
@@ -18477,7 +18555,7 @@ const getFormWizardView = async (instance) => {
|
|
|
18477
18555
|
className: "instance-form-view-wizard pt-4",
|
|
18478
18556
|
steps: await getFormSteps(instance),
|
|
18479
18557
|
actionFinishLabel: "${'CustomAction.instances.instance_save' | t}",//"保存",
|
|
18480
|
-
id: "
|
|
18558
|
+
id: "instance_wizard",
|
|
18481
18559
|
target: "instance_form",
|
|
18482
18560
|
"onEvent": {
|
|
18483
18561
|
"change": {
|
|
@@ -18644,7 +18722,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
18644
18722
|
return {
|
|
18645
18723
|
type: "page",
|
|
18646
18724
|
name: "instancePage",
|
|
18647
|
-
className: "steedos-amis-instance-view",
|
|
18725
|
+
className: "steedos-amis-instance-view " + "steedos-instance-style-" + formStyle,
|
|
18648
18726
|
bodyClassName: "overflow-y-auto h-full steedos-amis-instance-view-body",
|
|
18649
18727
|
headerClassName: "p-0",
|
|
18650
18728
|
"title": {
|
|
@@ -18675,7 +18753,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
18675
18753
|
".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
|
|
18676
18754
|
"padding": "0px !important"
|
|
18677
18755
|
},
|
|
18678
|
-
".steedos-amis-instance-view .antd-Page-body": {
|
|
18756
|
+
".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
|
|
18679
18757
|
"width": "1024px"
|
|
18680
18758
|
},
|
|
18681
18759
|
".antd-List-placeholder": {
|
|
@@ -18733,8 +18811,8 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
18733
18811
|
"position": "top-right",
|
|
18734
18812
|
"closeButton": true,
|
|
18735
18813
|
"showIcon": true,
|
|
18736
|
-
"title": "提交失败",
|
|
18737
|
-
"msg": "请填写必填字段"
|
|
18814
|
+
"title": i18next$1.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
|
|
18815
|
+
"msg": i18next$1.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
|
|
18738
18816
|
},
|
|
18739
18817
|
"actionType": "toast"
|
|
18740
18818
|
}
|
|
@@ -18911,7 +18989,7 @@ const getOpinionFieldStepsName = (field, top_keywords) => {
|
|
|
18911
18989
|
* @Author: baozhoutao@steedos.com
|
|
18912
18990
|
* @Date: 2022-09-09 17:47:37
|
|
18913
18991
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
18914
|
-
* @LastEditTime: 2025-08-
|
|
18992
|
+
* @LastEditTime: 2025-08-29 20:51:53
|
|
18915
18993
|
* @Description:
|
|
18916
18994
|
*/
|
|
18917
18995
|
|
|
@@ -19088,6 +19166,7 @@ const getInstanceInfo = async (props) => {
|
|
|
19088
19166
|
_id,
|
|
19089
19167
|
name,
|
|
19090
19168
|
style,
|
|
19169
|
+
mode,
|
|
19091
19170
|
current,
|
|
19092
19171
|
historys
|
|
19093
19172
|
},
|