@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.cjs.js
CHANGED
|
@@ -1601,8 +1601,24 @@ var frontend_app_launcher_dialog_new_app_name_label$1 = "Label";
|
|
|
1601
1601
|
var frontend_app_launcher_dialog_new_app_icon_label$1 = "Icon";
|
|
1602
1602
|
var frontend_crud_toolbar_quick_search_placeholder$1 = "Quick Search";
|
|
1603
1603
|
var frontend_crud_toolbar_quick_search_tooltip_prefix$1 = "Searchable fields:";
|
|
1604
|
+
var frontend_lookup_left_tree_search_organizations$1 = "Search for organizations";
|
|
1604
1605
|
var frontend_workflow_instances_applicant_name_prefix$1 = "Applicant name:";
|
|
1605
1606
|
var frontend_workflow_instance_submit_date_prefix$1 = "Submission date:";
|
|
1607
|
+
var frontend_workflow_approval_judge_returned$1 = "Returned";
|
|
1608
|
+
var frontend_workflow_approval_judge_terminated$1 = "Cancelled";
|
|
1609
|
+
var frontend_workflow_approval_judge_pending$1 = "In Progress";
|
|
1610
|
+
var frontend_workflow_approval_judge_approved$1 = "Approved";
|
|
1611
|
+
var frontend_workflow_approval_judge_rejected$1 = "Rejected";
|
|
1612
|
+
var frontend_workflow_approval_judge_finished$1 = "Completed";
|
|
1613
|
+
var frontend_workflow_approval_judge_reassigned$1 = "Reassigned";
|
|
1614
|
+
var frontend_workflow_approval_judge_inhand$1 = "In Progress";
|
|
1615
|
+
var frontend_workflow_approval_judge_relocated$1 = "Relocate";
|
|
1616
|
+
var frontend_workflow_approval_judge_readed$1 = "Read";
|
|
1617
|
+
var frontend_workflow_approval_suggestion_readed$1 = "Read";
|
|
1618
|
+
var frontend_workflow_approval_suggestion_completed$1 = "Done";
|
|
1619
|
+
var frontend_workflow_approval_suggestion_agree$1 = "Agree";
|
|
1620
|
+
var frontend_workflow_approval_suggestion_other$1 = "Select opinions";
|
|
1621
|
+
var frontend_workflow_suggestion_placeholder$1 = "Please fill in your comments.";
|
|
1606
1622
|
var frontend_workflow_instance_button_sign$1 = "Sign";
|
|
1607
1623
|
var frontend_workflow_approval_history$1 = "Approval History";
|
|
1608
1624
|
var frontend_workflow_approval_history_read$1 = "Read";
|
|
@@ -1614,6 +1630,10 @@ var frontend_workflow_judge_option_approved$1 = "Approved";
|
|
|
1614
1630
|
var frontend_workflow_judge_option_rejected$1 = "Rejected";
|
|
1615
1631
|
var frontend_workflow_judge_option_readed$1 = "Readed";
|
|
1616
1632
|
var frontend_workflow_next_step$1 = "Next Step";
|
|
1633
|
+
var frontend_workflow_next_users$1 = "To";
|
|
1634
|
+
var frontend_workflow_submit_validate_error_title$1 = "Submission failed";
|
|
1635
|
+
var frontend_workflow_submit_validate_error_msg$1 = "Please fill in the required fields";
|
|
1636
|
+
var frontend_workflow_related_records_link_title$1 = "Related Records";
|
|
1617
1637
|
var en_us$1 = {
|
|
1618
1638
|
frontend_field_group_generalization: frontend_field_group_generalization$1,
|
|
1619
1639
|
frontend_download: frontend_download$1,
|
|
@@ -1733,8 +1753,24 @@ var en_us$1 = {
|
|
|
1733
1753
|
frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label$1,
|
|
1734
1754
|
frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder$1,
|
|
1735
1755
|
frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix$1,
|
|
1756
|
+
frontend_lookup_left_tree_search_organizations: frontend_lookup_left_tree_search_organizations$1,
|
|
1736
1757
|
frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix$1,
|
|
1737
1758
|
frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix$1,
|
|
1759
|
+
frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned$1,
|
|
1760
|
+
frontend_workflow_approval_judge_terminated: frontend_workflow_approval_judge_terminated$1,
|
|
1761
|
+
frontend_workflow_approval_judge_pending: frontend_workflow_approval_judge_pending$1,
|
|
1762
|
+
frontend_workflow_approval_judge_approved: frontend_workflow_approval_judge_approved$1,
|
|
1763
|
+
frontend_workflow_approval_judge_rejected: frontend_workflow_approval_judge_rejected$1,
|
|
1764
|
+
frontend_workflow_approval_judge_finished: frontend_workflow_approval_judge_finished$1,
|
|
1765
|
+
frontend_workflow_approval_judge_reassigned: frontend_workflow_approval_judge_reassigned$1,
|
|
1766
|
+
frontend_workflow_approval_judge_inhand: frontend_workflow_approval_judge_inhand$1,
|
|
1767
|
+
frontend_workflow_approval_judge_relocated: frontend_workflow_approval_judge_relocated$1,
|
|
1768
|
+
frontend_workflow_approval_judge_readed: frontend_workflow_approval_judge_readed$1,
|
|
1769
|
+
frontend_workflow_approval_suggestion_readed: frontend_workflow_approval_suggestion_readed$1,
|
|
1770
|
+
frontend_workflow_approval_suggestion_completed: frontend_workflow_approval_suggestion_completed$1,
|
|
1771
|
+
frontend_workflow_approval_suggestion_agree: frontend_workflow_approval_suggestion_agree$1,
|
|
1772
|
+
frontend_workflow_approval_suggestion_other: frontend_workflow_approval_suggestion_other$1,
|
|
1773
|
+
frontend_workflow_suggestion_placeholder: frontend_workflow_suggestion_placeholder$1,
|
|
1738
1774
|
frontend_workflow_instance_button_sign: frontend_workflow_instance_button_sign$1,
|
|
1739
1775
|
frontend_workflow_approval_history: frontend_workflow_approval_history$1,
|
|
1740
1776
|
frontend_workflow_approval_history_read: frontend_workflow_approval_history_read$1,
|
|
@@ -1745,7 +1781,11 @@ var en_us$1 = {
|
|
|
1745
1781
|
frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved$1,
|
|
1746
1782
|
frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected$1,
|
|
1747
1783
|
frontend_workflow_judge_option_readed: frontend_workflow_judge_option_readed$1,
|
|
1748
|
-
frontend_workflow_next_step: frontend_workflow_next_step$1
|
|
1784
|
+
frontend_workflow_next_step: frontend_workflow_next_step$1,
|
|
1785
|
+
frontend_workflow_next_users: frontend_workflow_next_users$1,
|
|
1786
|
+
frontend_workflow_submit_validate_error_title: frontend_workflow_submit_validate_error_title$1,
|
|
1787
|
+
frontend_workflow_submit_validate_error_msg: frontend_workflow_submit_validate_error_msg$1,
|
|
1788
|
+
frontend_workflow_related_records_link_title: frontend_workflow_related_records_link_title$1
|
|
1749
1789
|
};
|
|
1750
1790
|
|
|
1751
1791
|
var frontend_field_group_generalization = "通用";
|
|
@@ -1867,6 +1907,7 @@ var frontend_app_launcher_dialog_new_app_name_label = "显示名称";
|
|
|
1867
1907
|
var frontend_app_launcher_dialog_new_app_icon_label = "图标";
|
|
1868
1908
|
var frontend_crud_toolbar_quick_search_placeholder = "快捷搜索";
|
|
1869
1909
|
var frontend_crud_toolbar_quick_search_tooltip_prefix = "可搜索字段:";
|
|
1910
|
+
var frontend_lookup_left_tree_search_organizations = "查找部门";
|
|
1870
1911
|
var frontend_workflow_instances_applicant_name_prefix = "提交人:";
|
|
1871
1912
|
var frontend_workflow_instance_submit_date_prefix = "提交日期:";
|
|
1872
1913
|
var frontend_workflow_approval_judge_returned = "已退回";
|
|
@@ -1879,6 +1920,11 @@ var frontend_workflow_approval_judge_reassigned = "转签核";
|
|
|
1879
1920
|
var frontend_workflow_approval_judge_inhand = "处理中";
|
|
1880
1921
|
var frontend_workflow_approval_judge_relocated = "重定位";
|
|
1881
1922
|
var frontend_workflow_approval_judge_readed = "已阅";
|
|
1923
|
+
var frontend_workflow_approval_suggestion_readed = "已阅";
|
|
1924
|
+
var frontend_workflow_approval_suggestion_completed = "已办";
|
|
1925
|
+
var frontend_workflow_approval_suggestion_agree = "同意";
|
|
1926
|
+
var frontend_workflow_approval_suggestion_other = "其他常用意见";
|
|
1927
|
+
var frontend_workflow_suggestion_placeholder = "请填写意见";
|
|
1882
1928
|
var frontend_workflow_instance_button_sign = "签批";
|
|
1883
1929
|
var frontend_workflow_approval_history = "签批历程";
|
|
1884
1930
|
var frontend_workflow_approval_history_read = "已读";
|
|
@@ -1890,6 +1936,10 @@ var frontend_workflow_judge_option_approved = "核准";
|
|
|
1890
1936
|
var frontend_workflow_judge_option_rejected = "驳回";
|
|
1891
1937
|
var frontend_workflow_judge_option_readed = "已阅";
|
|
1892
1938
|
var frontend_workflow_next_step = "下一步";
|
|
1939
|
+
var frontend_workflow_next_users = "处理人";
|
|
1940
|
+
var frontend_workflow_submit_validate_error_title = "提交失败";
|
|
1941
|
+
var frontend_workflow_submit_validate_error_msg = "请填写必填字段";
|
|
1942
|
+
var frontend_workflow_related_records_link_title = "相关台账信息";
|
|
1893
1943
|
var zh_cn$1 = {
|
|
1894
1944
|
frontend_field_group_generalization: frontend_field_group_generalization,
|
|
1895
1945
|
frontend_download: frontend_download,
|
|
@@ -2010,6 +2060,7 @@ var zh_cn$1 = {
|
|
|
2010
2060
|
frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label,
|
|
2011
2061
|
frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder,
|
|
2012
2062
|
frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix,
|
|
2063
|
+
frontend_lookup_left_tree_search_organizations: frontend_lookup_left_tree_search_organizations,
|
|
2013
2064
|
frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix,
|
|
2014
2065
|
frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix,
|
|
2015
2066
|
frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned,
|
|
@@ -2022,6 +2073,11 @@ var zh_cn$1 = {
|
|
|
2022
2073
|
frontend_workflow_approval_judge_inhand: frontend_workflow_approval_judge_inhand,
|
|
2023
2074
|
frontend_workflow_approval_judge_relocated: frontend_workflow_approval_judge_relocated,
|
|
2024
2075
|
frontend_workflow_approval_judge_readed: frontend_workflow_approval_judge_readed,
|
|
2076
|
+
frontend_workflow_approval_suggestion_readed: frontend_workflow_approval_suggestion_readed,
|
|
2077
|
+
frontend_workflow_approval_suggestion_completed: frontend_workflow_approval_suggestion_completed,
|
|
2078
|
+
frontend_workflow_approval_suggestion_agree: frontend_workflow_approval_suggestion_agree,
|
|
2079
|
+
frontend_workflow_approval_suggestion_other: frontend_workflow_approval_suggestion_other,
|
|
2080
|
+
frontend_workflow_suggestion_placeholder: frontend_workflow_suggestion_placeholder,
|
|
2025
2081
|
frontend_workflow_instance_button_sign: frontend_workflow_instance_button_sign,
|
|
2026
2082
|
frontend_workflow_approval_history: frontend_workflow_approval_history,
|
|
2027
2083
|
frontend_workflow_approval_history_read: frontend_workflow_approval_history_read,
|
|
@@ -2032,7 +2088,11 @@ var zh_cn$1 = {
|
|
|
2032
2088
|
frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved,
|
|
2033
2089
|
frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected,
|
|
2034
2090
|
frontend_workflow_judge_option_readed: frontend_workflow_judge_option_readed,
|
|
2035
|
-
frontend_workflow_next_step: frontend_workflow_next_step
|
|
2091
|
+
frontend_workflow_next_step: frontend_workflow_next_step,
|
|
2092
|
+
frontend_workflow_next_users: frontend_workflow_next_users,
|
|
2093
|
+
frontend_workflow_submit_validate_error_title: frontend_workflow_submit_validate_error_title,
|
|
2094
|
+
frontend_workflow_submit_validate_error_msg: frontend_workflow_submit_validate_error_msg,
|
|
2095
|
+
frontend_workflow_related_records_link_title: frontend_workflow_related_records_link_title
|
|
2036
2096
|
};
|
|
2037
2097
|
|
|
2038
2098
|
/*
|
|
@@ -12283,7 +12343,7 @@ function getLookupSapceUserTreeSchema(isMobile){
|
|
|
12283
12343
|
"searchable": true,
|
|
12284
12344
|
"searchConfig": {
|
|
12285
12345
|
"sticky": true,
|
|
12286
|
-
"placeholder": "
|
|
12346
|
+
"placeholder": i18next__default["default"].t('frontend_lookup_left_tree_search_organizations')
|
|
12287
12347
|
},
|
|
12288
12348
|
"unfoldedLevel": 2,
|
|
12289
12349
|
"originPosition": "left-top"
|
|
@@ -17210,7 +17270,7 @@ const getNextStepUsersInput = async (instance) => {
|
|
|
17210
17270
|
body: [
|
|
17211
17271
|
{
|
|
17212
17272
|
type: "tpl",
|
|
17213
|
-
tpl: "处理人",
|
|
17273
|
+
tpl: amisLib.i18next.t('frontend_workflow_next_users'),//"处理人",
|
|
17214
17274
|
inline: true,
|
|
17215
17275
|
wrapperComponent: "",
|
|
17216
17276
|
id: "u:3203cc281b3c",
|
|
@@ -17418,10 +17478,22 @@ const getSubmitActions = async (instance) => {
|
|
|
17418
17478
|
"args": {},
|
|
17419
17479
|
"actionType": "custom",
|
|
17420
17480
|
"script": `
|
|
17481
|
+
const wizard = event.context.scoped.getComponentById("instance_wizard");
|
|
17421
17482
|
const form = event.context.scoped.getComponentById("instance_form");
|
|
17422
|
-
|
|
17423
|
-
|
|
17424
|
-
|
|
17483
|
+
|
|
17484
|
+
// 1. 校验外层 form(直接表单项)
|
|
17485
|
+
let formValidatePromise = form.validate();
|
|
17486
|
+
|
|
17487
|
+
// 2. 校验 wizard(所有步骤数据)
|
|
17488
|
+
let wizardValidatePromise = wizard?.form?.validate
|
|
17489
|
+
? wizard.form.validate()
|
|
17490
|
+
: Promise.resolve(true);
|
|
17491
|
+
|
|
17492
|
+
return Promise.all([formValidatePromise, wizardValidatePromise]).then(([formValid, wizardValid]) => {
|
|
17493
|
+
const allValid = formValid && wizardValid;
|
|
17494
|
+
event.setData({...event.data, instanceFormValidate: allValid});
|
|
17495
|
+
return allValid;
|
|
17496
|
+
});
|
|
17425
17497
|
`
|
|
17426
17498
|
},
|
|
17427
17499
|
// 校验审批表单
|
|
@@ -17513,7 +17585,7 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
17513
17585
|
id: "u:cd344f708ddc",
|
|
17514
17586
|
minRows: 3,
|
|
17515
17587
|
maxRows: 20,
|
|
17516
|
-
placeholder: "请填写意见",
|
|
17588
|
+
placeholder: amisLib.i18next.t('frontend_workflow_suggestion_placeholder'),//"请填写意见",
|
|
17517
17589
|
requiredOn: "${judge === 'rejected'}"
|
|
17518
17590
|
},
|
|
17519
17591
|
await getNextStepInput(instance),
|
|
@@ -17550,8 +17622,8 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
17550
17622
|
"position": "top-right",
|
|
17551
17623
|
"closeButton": true,
|
|
17552
17624
|
"showIcon": true,
|
|
17553
|
-
"title": "提交失败",
|
|
17554
|
-
"msg": "请填写必填字段"
|
|
17625
|
+
"title": amisLib.i18next.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
|
|
17626
|
+
"msg": amisLib.i18next.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
|
|
17555
17627
|
},
|
|
17556
17628
|
"actionType": "toast"
|
|
17557
17629
|
}
|
|
@@ -17837,7 +17909,7 @@ const getInstanceApprovalHistory = async ()=>{
|
|
|
17837
17909
|
* @Author: baozhoutao@steedos.com
|
|
17838
17910
|
* @Date: 2022-09-07 16:20:45
|
|
17839
17911
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
17840
|
-
* @LastEditTime: 2025-08-
|
|
17912
|
+
* @LastEditTime: 2025-08-29 21:01:29
|
|
17841
17913
|
* @Description:
|
|
17842
17914
|
*/
|
|
17843
17915
|
|
|
@@ -17884,7 +17956,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17884
17956
|
},
|
|
17885
17957
|
{
|
|
17886
17958
|
"type": "button",
|
|
17887
|
-
"label": "签批",
|
|
17959
|
+
"label": amisLib.i18next.t('frontend_workflow_instance_button_sign'),//"签批",
|
|
17888
17960
|
"level": "link",
|
|
17889
17961
|
"id": "u:2592111d236d",
|
|
17890
17962
|
"block": false,
|
|
@@ -17909,7 +17981,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17909
17981
|
"minRows": 6,
|
|
17910
17982
|
"maxRows": 20,
|
|
17911
17983
|
"mode": "normal",
|
|
17912
|
-
"placeholder": "请填写意见"
|
|
17984
|
+
"placeholder": amisLib.i18next.t('frontend_workflow_suggestion_placeholder'),//"请填写意见"
|
|
17913
17985
|
},
|
|
17914
17986
|
{
|
|
17915
17987
|
"type": "grid",
|
|
@@ -17918,15 +17990,15 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17918
17990
|
"body": [
|
|
17919
17991
|
{
|
|
17920
17992
|
"type": "button",
|
|
17921
|
-
"label": "已阅",
|
|
17993
|
+
"label": amisLib.i18next.t('frontend_workflow_approval_judge_readed'),//"已阅",
|
|
17922
17994
|
"onEvent": {
|
|
17923
17995
|
"click": {
|
|
17924
17996
|
"actions": [
|
|
17925
17997
|
{
|
|
17926
17998
|
"componentId": "u:1d5a60623000",
|
|
17927
17999
|
"args": {
|
|
17928
|
-
"valueInput": "已阅",
|
|
17929
|
-
"value": "已阅"
|
|
18000
|
+
"valueInput": amisLib.i18next.t('frontend_workflow_approval_judge_readed'),//"已阅",
|
|
18001
|
+
"value": amisLib.i18next.t('frontend_workflow_approval_judge_readed')//"已阅"
|
|
17930
18002
|
},
|
|
17931
18003
|
"actionType": "setValue"
|
|
17932
18004
|
}
|
|
@@ -17939,15 +18011,15 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17939
18011
|
},
|
|
17940
18012
|
{
|
|
17941
18013
|
"type": "button",
|
|
17942
|
-
"label": "已办",
|
|
18014
|
+
"label": amisLib.i18next.t('frontend_workflow_approval_suggestion_completed'),//"已办",
|
|
17943
18015
|
"onEvent": {
|
|
17944
18016
|
"click": {
|
|
17945
18017
|
"actions": [
|
|
17946
18018
|
{
|
|
17947
18019
|
"componentId": "u:1d5a60623000",
|
|
17948
18020
|
"args": {
|
|
17949
|
-
"valueInput": "已办",
|
|
17950
|
-
"value": "已办"
|
|
18021
|
+
"valueInput": amisLib.i18next.t('frontend_workflow_approval_suggestion_completed'),//"已办",
|
|
18022
|
+
"value": amisLib.i18next.t('frontend_workflow_approval_suggestion_completed')//"已办",
|
|
17951
18023
|
},
|
|
17952
18024
|
"actionType": "setValue"
|
|
17953
18025
|
}
|
|
@@ -17960,15 +18032,15 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17960
18032
|
},
|
|
17961
18033
|
{
|
|
17962
18034
|
"type": "button",
|
|
17963
|
-
"label": "同意",
|
|
18035
|
+
"label": amisLib.i18next.t('frontend_workflow_approval_suggestion_agree'),//"同意",
|
|
17964
18036
|
"onEvent": {
|
|
17965
18037
|
"click": {
|
|
17966
18038
|
"actions": [
|
|
17967
18039
|
{
|
|
17968
18040
|
"componentId": "u:1d5a60623000",
|
|
17969
18041
|
"args": {
|
|
17970
|
-
"valueInput": "同意"
|
|
17971
|
-
"value": "同意"
|
|
18042
|
+
"valueInput": amisLib.i18next.t('frontend_workflow_approval_suggestion_agree'),//"同意"
|
|
18043
|
+
"value": amisLib.i18next.t('frontend_workflow_approval_suggestion_agree')//"同意"
|
|
17972
18044
|
},
|
|
17973
18045
|
"actionType": "setValue"
|
|
17974
18046
|
}
|
|
@@ -17981,7 +18053,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
17981
18053
|
},
|
|
17982
18054
|
{
|
|
17983
18055
|
"type": "button",
|
|
17984
|
-
"label": "
|
|
18056
|
+
"label": amisLib.i18next.t('frontend_workflow_approval_suggestion_other'),//"同意"
|
|
17985
18057
|
"onEvent": {
|
|
17986
18058
|
"click": {
|
|
17987
18059
|
"actions": []
|
|
@@ -18008,7 +18080,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
18008
18080
|
"actions": [
|
|
18009
18081
|
{
|
|
18010
18082
|
"type": "button",
|
|
18011
|
-
"label": "
|
|
18083
|
+
"label": "${'OK' | t}",
|
|
18012
18084
|
"onEvent": {
|
|
18013
18085
|
"click": {
|
|
18014
18086
|
"actions": [
|
|
@@ -18033,7 +18105,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
18033
18105
|
},
|
|
18034
18106
|
{
|
|
18035
18107
|
"type": "button",
|
|
18036
|
-
"label": "
|
|
18108
|
+
"label": "${'Cancel' | t}",
|
|
18037
18109
|
"onEvent": {
|
|
18038
18110
|
"click": {
|
|
18039
18111
|
"actions": [
|
|
@@ -18443,6 +18515,7 @@ const getFormTableView = async (instance) => {
|
|
|
18443
18515
|
};
|
|
18444
18516
|
|
|
18445
18517
|
const getFormSteps = async (instance) => {
|
|
18518
|
+
const formMode = instance.form.current.mode || "normal";//normal,horizontal,inline
|
|
18446
18519
|
const stepsSchema = [];
|
|
18447
18520
|
let stepFields = [];
|
|
18448
18521
|
let fields = [];
|
|
@@ -18470,11 +18543,16 @@ const getFormSteps = async (instance) => {
|
|
|
18470
18543
|
let fieldSchema;
|
|
18471
18544
|
for (const childField of field.fields) {
|
|
18472
18545
|
fieldSchema = await getTdInputTpl(childField, true);
|
|
18546
|
+
if (fieldSchema.type === "steedos-field"){
|
|
18547
|
+
fieldSchema.config.amis.mode = formMode;
|
|
18548
|
+
}
|
|
18549
|
+
else {
|
|
18550
|
+
fieldSchema.mode = formMode;
|
|
18551
|
+
}
|
|
18473
18552
|
stepFields.push(fieldSchema);
|
|
18474
18553
|
}
|
|
18475
18554
|
stepsSchema.push({
|
|
18476
18555
|
"title": field.name,
|
|
18477
|
-
"mode": "horizontal",
|
|
18478
18556
|
"body": stepFields
|
|
18479
18557
|
});
|
|
18480
18558
|
}
|
|
@@ -18504,7 +18582,7 @@ const getFormWizardView = async (instance) => {
|
|
|
18504
18582
|
className: "instance-form-view-wizard pt-4",
|
|
18505
18583
|
steps: await getFormSteps(instance),
|
|
18506
18584
|
actionFinishLabel: "${'CustomAction.instances.instance_save' | t}",//"保存",
|
|
18507
|
-
id: "
|
|
18585
|
+
id: "instance_wizard",
|
|
18508
18586
|
target: "instance_form",
|
|
18509
18587
|
"onEvent": {
|
|
18510
18588
|
"change": {
|
|
@@ -18671,7 +18749,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
18671
18749
|
return {
|
|
18672
18750
|
type: "page",
|
|
18673
18751
|
name: "instancePage",
|
|
18674
|
-
className: "steedos-amis-instance-view",
|
|
18752
|
+
className: "steedos-amis-instance-view " + "steedos-instance-style-" + formStyle,
|
|
18675
18753
|
bodyClassName: "overflow-y-auto h-full steedos-amis-instance-view-body",
|
|
18676
18754
|
headerClassName: "p-0",
|
|
18677
18755
|
"title": {
|
|
@@ -18702,7 +18780,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
18702
18780
|
".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
|
|
18703
18781
|
"padding": "0px !important"
|
|
18704
18782
|
},
|
|
18705
|
-
".steedos-amis-instance-view .antd-Page-body": {
|
|
18783
|
+
".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
|
|
18706
18784
|
"width": "1024px"
|
|
18707
18785
|
},
|
|
18708
18786
|
".antd-List-placeholder": {
|
|
@@ -18760,8 +18838,8 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
18760
18838
|
"position": "top-right",
|
|
18761
18839
|
"closeButton": true,
|
|
18762
18840
|
"showIcon": true,
|
|
18763
|
-
"title": "提交失败",
|
|
18764
|
-
"msg": "请填写必填字段"
|
|
18841
|
+
"title": amisLib.i18next.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
|
|
18842
|
+
"msg": amisLib.i18next.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
|
|
18765
18843
|
},
|
|
18766
18844
|
"actionType": "toast"
|
|
18767
18845
|
}
|
|
@@ -18938,7 +19016,7 @@ const getOpinionFieldStepsName = (field, top_keywords) => {
|
|
|
18938
19016
|
* @Author: baozhoutao@steedos.com
|
|
18939
19017
|
* @Date: 2022-09-09 17:47:37
|
|
18940
19018
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
18941
|
-
* @LastEditTime: 2025-08-
|
|
19019
|
+
* @LastEditTime: 2025-08-29 20:51:53
|
|
18942
19020
|
* @Description:
|
|
18943
19021
|
*/
|
|
18944
19022
|
|
|
@@ -19115,6 +19193,7 @@ const getInstanceInfo = async (props) => {
|
|
|
19115
19193
|
_id,
|
|
19116
19194
|
name,
|
|
19117
19195
|
style,
|
|
19196
|
+
mode,
|
|
19118
19197
|
current,
|
|
19119
19198
|
historys
|
|
19120
19199
|
},
|