@steedos-widgets/amis-lib 6.10.1-beta.52 → 6.10.1-beta.54
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 +105 -38
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +105 -38
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +25 -20
- package/dist/index.umd.js.map +1 -1
- package/dist/types/workflow/attachment.d.ts +4 -4
- package/dist/types/workflow/flow.d.ts +9 -2
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1497,7 +1497,7 @@ var frontend_form_please_select$1 = "Please select";
|
|
|
1497
1497
|
var frontend_form_confirm$1 = "Confirm";
|
|
1498
1498
|
var frontend_form_delete$1 = "Delete";
|
|
1499
1499
|
var frontend_form_view$1 = "view";
|
|
1500
|
-
var frontend_form_details$1 = "
|
|
1500
|
+
var frontend_form_details$1 = "Details";
|
|
1501
1501
|
var frontend_form_validation_failed_url$1 = "The URL format is incorrect";
|
|
1502
1502
|
var frontend_delete_confirm_text$1 = "Are you sure you want to delete this item?";
|
|
1503
1503
|
var frontend_delete_many_selected_required$1 = "Please select the item to be deleted";
|
|
@@ -1594,6 +1594,7 @@ var frontend_menu_tabs_group_name_label$1 = "Name";
|
|
|
1594
1594
|
var frontend_menu_tabs_group_name_placeholder$1 = "Group Name";
|
|
1595
1595
|
var frontend_menu_tabs_group_default_open_label$1 = "Whether to expand by default";
|
|
1596
1596
|
var frontend_button_delete_confirm_text$1 = "Are you sure you want to delete it?";
|
|
1597
|
+
var frontend_app_launcher_button_more$1 = "More";
|
|
1597
1598
|
var frontend_app_launcher_button_new_app$1 = "+ New App";
|
|
1598
1599
|
var frontend_app_launcher_dialog_new_app_title$1 = "New App";
|
|
1599
1600
|
var frontend_app_launcher_dialog_new_app_code_label$1 = "App ID";
|
|
@@ -1602,6 +1603,13 @@ var frontend_app_launcher_dialog_new_app_icon_label$1 = "Icon";
|
|
|
1602
1603
|
var frontend_crud_toolbar_quick_search_placeholder$1 = "Quick Search";
|
|
1603
1604
|
var frontend_crud_toolbar_quick_search_tooltip_prefix$1 = "Searchable fields:";
|
|
1604
1605
|
var frontend_lookup_left_tree_search_organizations$1 = "Search for organizations";
|
|
1606
|
+
var frontend_input_table_button_new$1 = "New";
|
|
1607
|
+
var frontend_input_table_button_new_tooltip$1 = "Save and add a new line, that is, save the current line data and add a new blank line";
|
|
1608
|
+
var frontend_input_table_button_copy$1 = "Copy";
|
|
1609
|
+
var frontend_input_table_button_copy_tooltip$1 = "Copy and add a new row, that is, save the current row data and copy the current row data to the new row";
|
|
1610
|
+
var frontend_input_table_button_delete$1 = "Delete";
|
|
1611
|
+
var frontend_input_table_button_confirm$1 = "Done";
|
|
1612
|
+
var frontend_input_table_dialog_title_suffix$1 = "Details";
|
|
1605
1613
|
var frontend_workflow_instances_applicant_name_prefix$1 = "Applicant name:";
|
|
1606
1614
|
var frontend_workflow_instance_submit_date_prefix$1 = "Submission date:";
|
|
1607
1615
|
var frontend_workflow_approval_judge_returned$1 = "Returned";
|
|
@@ -1625,6 +1633,7 @@ var frontend_workflow_approval_history_read$1 = "Read";
|
|
|
1625
1633
|
var frontend_workflow_approval_history_unprocessed$1 = "Unprocessed";
|
|
1626
1634
|
var frontend_workflow_attachment$1 = "Attachment";
|
|
1627
1635
|
var frontend_workflow_attachment_upload$1 = "Upload";
|
|
1636
|
+
var frontend_workflow_attachment_upload_success$1 = "Uploaded successfully";
|
|
1628
1637
|
var frontend_workflow_related_file$1 = "Related File";
|
|
1629
1638
|
var frontend_workflow_judge_option_approved$1 = "Approved";
|
|
1630
1639
|
var frontend_workflow_judge_option_rejected$1 = "Rejected";
|
|
@@ -1746,6 +1755,7 @@ var en_us$1 = {
|
|
|
1746
1755
|
frontend_menu_tabs_group_name_placeholder: frontend_menu_tabs_group_name_placeholder$1,
|
|
1747
1756
|
frontend_menu_tabs_group_default_open_label: frontend_menu_tabs_group_default_open_label$1,
|
|
1748
1757
|
frontend_button_delete_confirm_text: frontend_button_delete_confirm_text$1,
|
|
1758
|
+
frontend_app_launcher_button_more: frontend_app_launcher_button_more$1,
|
|
1749
1759
|
frontend_app_launcher_button_new_app: frontend_app_launcher_button_new_app$1,
|
|
1750
1760
|
frontend_app_launcher_dialog_new_app_title: frontend_app_launcher_dialog_new_app_title$1,
|
|
1751
1761
|
frontend_app_launcher_dialog_new_app_code_label: frontend_app_launcher_dialog_new_app_code_label$1,
|
|
@@ -1754,6 +1764,13 @@ var en_us$1 = {
|
|
|
1754
1764
|
frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder$1,
|
|
1755
1765
|
frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix$1,
|
|
1756
1766
|
frontend_lookup_left_tree_search_organizations: frontend_lookup_left_tree_search_organizations$1,
|
|
1767
|
+
frontend_input_table_button_new: frontend_input_table_button_new$1,
|
|
1768
|
+
frontend_input_table_button_new_tooltip: frontend_input_table_button_new_tooltip$1,
|
|
1769
|
+
frontend_input_table_button_copy: frontend_input_table_button_copy$1,
|
|
1770
|
+
frontend_input_table_button_copy_tooltip: frontend_input_table_button_copy_tooltip$1,
|
|
1771
|
+
frontend_input_table_button_delete: frontend_input_table_button_delete$1,
|
|
1772
|
+
frontend_input_table_button_confirm: frontend_input_table_button_confirm$1,
|
|
1773
|
+
frontend_input_table_dialog_title_suffix: frontend_input_table_dialog_title_suffix$1,
|
|
1757
1774
|
frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix$1,
|
|
1758
1775
|
frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix$1,
|
|
1759
1776
|
frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned$1,
|
|
@@ -1777,6 +1794,7 @@ var en_us$1 = {
|
|
|
1777
1794
|
frontend_workflow_approval_history_unprocessed: frontend_workflow_approval_history_unprocessed$1,
|
|
1778
1795
|
frontend_workflow_attachment: frontend_workflow_attachment$1,
|
|
1779
1796
|
frontend_workflow_attachment_upload: frontend_workflow_attachment_upload$1,
|
|
1797
|
+
frontend_workflow_attachment_upload_success: frontend_workflow_attachment_upload_success$1,
|
|
1780
1798
|
frontend_workflow_related_file: frontend_workflow_related_file$1,
|
|
1781
1799
|
frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved$1,
|
|
1782
1800
|
frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected$1,
|
|
@@ -1900,6 +1918,7 @@ var frontend_menu_tabs_group_name_label = "名称";
|
|
|
1900
1918
|
var frontend_menu_tabs_group_name_placeholder = "分组名称";
|
|
1901
1919
|
var frontend_menu_tabs_group_default_open_label = "是否默认展开";
|
|
1902
1920
|
var frontend_button_delete_confirm_text = "确定要删除吗?";
|
|
1921
|
+
var frontend_app_launcher_button_more = "更多";
|
|
1903
1922
|
var frontend_app_launcher_button_new_app = "+ 新建应用";
|
|
1904
1923
|
var frontend_app_launcher_dialog_new_app_title = "新建应用";
|
|
1905
1924
|
var frontend_app_launcher_dialog_new_app_code_label = "应用唯一标识";
|
|
@@ -1908,6 +1927,13 @@ var frontend_app_launcher_dialog_new_app_icon_label = "图标";
|
|
|
1908
1927
|
var frontend_crud_toolbar_quick_search_placeholder = "快捷搜索";
|
|
1909
1928
|
var frontend_crud_toolbar_quick_search_tooltip_prefix = "可搜索字段:";
|
|
1910
1929
|
var frontend_lookup_left_tree_search_organizations = "查找部门";
|
|
1930
|
+
var frontend_input_table_button_new = "新增";
|
|
1931
|
+
var frontend_input_table_button_new_tooltip = "保存并新增一行,即保存当前行数据并新增一条空白行";
|
|
1932
|
+
var frontend_input_table_button_copy = "复制";
|
|
1933
|
+
var frontend_input_table_button_copy_tooltip = "复制并新增一行,即保存当前行数据并复制当前行数据到新增行";
|
|
1934
|
+
var frontend_input_table_button_delete = "删除";
|
|
1935
|
+
var frontend_input_table_button_confirm = "完成";
|
|
1936
|
+
var frontend_input_table_dialog_title_suffix = "明细";
|
|
1911
1937
|
var frontend_workflow_instances_applicant_name_prefix = "提交人:";
|
|
1912
1938
|
var frontend_workflow_instance_submit_date_prefix = "提交日期:";
|
|
1913
1939
|
var frontend_workflow_approval_judge_returned = "已退回";
|
|
@@ -1931,6 +1957,7 @@ var frontend_workflow_approval_history_read = "已读";
|
|
|
1931
1957
|
var frontend_workflow_approval_history_unprocessed = "未处理";
|
|
1932
1958
|
var frontend_workflow_attachment = "附件";
|
|
1933
1959
|
var frontend_workflow_attachment_upload = "上传";
|
|
1960
|
+
var frontend_workflow_attachment_upload_success = "上传成功";
|
|
1934
1961
|
var frontend_workflow_related_file = "相关文件";
|
|
1935
1962
|
var frontend_workflow_judge_option_approved = "核准";
|
|
1936
1963
|
var frontend_workflow_judge_option_rejected = "驳回";
|
|
@@ -2053,6 +2080,7 @@ var zh_cn$1 = {
|
|
|
2053
2080
|
frontend_menu_tabs_group_name_placeholder: frontend_menu_tabs_group_name_placeholder,
|
|
2054
2081
|
frontend_menu_tabs_group_default_open_label: frontend_menu_tabs_group_default_open_label,
|
|
2055
2082
|
frontend_button_delete_confirm_text: frontend_button_delete_confirm_text,
|
|
2083
|
+
frontend_app_launcher_button_more: frontend_app_launcher_button_more,
|
|
2056
2084
|
frontend_app_launcher_button_new_app: frontend_app_launcher_button_new_app,
|
|
2057
2085
|
frontend_app_launcher_dialog_new_app_title: frontend_app_launcher_dialog_new_app_title,
|
|
2058
2086
|
frontend_app_launcher_dialog_new_app_code_label: frontend_app_launcher_dialog_new_app_code_label,
|
|
@@ -2061,6 +2089,13 @@ var zh_cn$1 = {
|
|
|
2061
2089
|
frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder,
|
|
2062
2090
|
frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix,
|
|
2063
2091
|
frontend_lookup_left_tree_search_organizations: frontend_lookup_left_tree_search_organizations,
|
|
2092
|
+
frontend_input_table_button_new: frontend_input_table_button_new,
|
|
2093
|
+
frontend_input_table_button_new_tooltip: frontend_input_table_button_new_tooltip,
|
|
2094
|
+
frontend_input_table_button_copy: frontend_input_table_button_copy,
|
|
2095
|
+
frontend_input_table_button_copy_tooltip: frontend_input_table_button_copy_tooltip,
|
|
2096
|
+
frontend_input_table_button_delete: frontend_input_table_button_delete,
|
|
2097
|
+
frontend_input_table_button_confirm: frontend_input_table_button_confirm,
|
|
2098
|
+
frontend_input_table_dialog_title_suffix: frontend_input_table_dialog_title_suffix,
|
|
2064
2099
|
frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix,
|
|
2065
2100
|
frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix,
|
|
2066
2101
|
frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned,
|
|
@@ -2084,6 +2119,7 @@ var zh_cn$1 = {
|
|
|
2084
2119
|
frontend_workflow_approval_history_unprocessed: frontend_workflow_approval_history_unprocessed,
|
|
2085
2120
|
frontend_workflow_attachment: frontend_workflow_attachment,
|
|
2086
2121
|
frontend_workflow_attachment_upload: frontend_workflow_attachment_upload,
|
|
2122
|
+
frontend_workflow_attachment_upload_success: frontend_workflow_attachment_upload_success,
|
|
2087
2123
|
frontend_workflow_related_file: frontend_workflow_related_file,
|
|
2088
2124
|
frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved,
|
|
2089
2125
|
frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected,
|
|
@@ -2101,7 +2137,6 @@ var zh_cn$1 = {
|
|
|
2101
2137
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
2102
2138
|
* @LastEditTime: 2025-08-26 10:17:05
|
|
2103
2139
|
*/
|
|
2104
|
-
|
|
2105
2140
|
const resources = {
|
|
2106
2141
|
"en": {
|
|
2107
2142
|
translation: en_us$1
|
|
@@ -2112,7 +2147,7 @@ const resources = {
|
|
|
2112
2147
|
};
|
|
2113
2148
|
|
|
2114
2149
|
const getUserLanguage$1 = () => {
|
|
2115
|
-
var lan = Builder.settings.context?.user?.language || window.navigator.language;
|
|
2150
|
+
var lan = Builder.settings.context?.user?.language || Builder.settings.locale || window.navigator.language;
|
|
2116
2151
|
if(lan === 'en' || lan.startsWith('en-')){
|
|
2117
2152
|
lan = 'en';
|
|
2118
2153
|
}
|
|
@@ -14883,7 +14918,7 @@ function uuidv4() {
|
|
|
14883
14918
|
* @Author: 殷亮辉 yinlianghui@hotoa.com
|
|
14884
14919
|
* @Date: 2023-11-15 09:50:22
|
|
14885
14920
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
14886
|
-
* @LastEditTime: 2025-
|
|
14921
|
+
* @LastEditTime: 2025-09-01 15:40:28
|
|
14887
14922
|
*/
|
|
14888
14923
|
|
|
14889
14924
|
/**
|
|
@@ -15877,7 +15912,7 @@ async function getButtonActions(props, mode) {
|
|
|
15877
15912
|
let dialogButtons = [
|
|
15878
15913
|
{
|
|
15879
15914
|
"type": "button",
|
|
15880
|
-
"label": "完成",
|
|
15915
|
+
"label": i18next__default["default"].t('frontend_input_table_button_confirm'),//"完成",
|
|
15881
15916
|
"actionType": "confirm",
|
|
15882
15917
|
"level": "primary"
|
|
15883
15918
|
}
|
|
@@ -15887,8 +15922,8 @@ async function getButtonActions(props, mode) {
|
|
|
15887
15922
|
dialogButtons = [
|
|
15888
15923
|
{
|
|
15889
15924
|
"type": "button",
|
|
15890
|
-
"label": "新增",
|
|
15891
|
-
"tooltip": "
|
|
15925
|
+
"label": i18next__default["default"].t('frontend_input_table_button_new'),//"新增",
|
|
15926
|
+
"tooltip": i18next__default["default"].t('frontend_input_table_button_new_tooltip'),
|
|
15892
15927
|
"onEvent": {
|
|
15893
15928
|
"click": {
|
|
15894
15929
|
"actions": [
|
|
@@ -15907,8 +15942,8 @@ async function getButtonActions(props, mode) {
|
|
|
15907
15942
|
},
|
|
15908
15943
|
{
|
|
15909
15944
|
"type": "button",
|
|
15910
|
-
"label": "复制",
|
|
15911
|
-
"tooltip": "
|
|
15945
|
+
"label": i18next__default["default"].t('frontend_input_table_button_copy'),//"复制",
|
|
15946
|
+
"tooltip": i18next__default["default"].t('frontend_input_table_button_copy_tooltip'),
|
|
15912
15947
|
"onEvent": {
|
|
15913
15948
|
"click": {
|
|
15914
15949
|
"actions": [
|
|
@@ -15933,7 +15968,7 @@ async function getButtonActions(props, mode) {
|
|
|
15933
15968
|
"dialog": {
|
|
15934
15969
|
"type": "dialog",
|
|
15935
15970
|
"id": dialogId,
|
|
15936
|
-
"title": `\${uiSchema.fields.${props.name}.label}
|
|
15971
|
+
"title": `\${uiSchema.fields.${props.name}.label} ` + i18next__default["default"].t('frontend_input_table_dialog_title_suffix'),
|
|
15937
15972
|
"body": [
|
|
15938
15973
|
await getForm(props, mode, formId)
|
|
15939
15974
|
],
|
|
@@ -16058,7 +16093,7 @@ async function getButtonActions(props, mode) {
|
|
|
16058
16093
|
"actionType": "dialog",
|
|
16059
16094
|
"dialog": {
|
|
16060
16095
|
"type": "dialog",
|
|
16061
|
-
"title": `\${uiSchema.fields.${props.name}.label}
|
|
16096
|
+
"title": `\${uiSchema.fields.${props.name}.label} ` + i18next__default["default"].t('frontend_input_table_dialog_title_suffix'),
|
|
16062
16097
|
"body": [
|
|
16063
16098
|
await getForm(props, "readonly")
|
|
16064
16099
|
],
|
|
@@ -16168,7 +16203,7 @@ async function getButtonActions(props, mode) {
|
|
|
16168
16203
|
|
|
16169
16204
|
async function getButtonNew(props) {
|
|
16170
16205
|
return {
|
|
16171
|
-
"label": "新增",
|
|
16206
|
+
"label": i18next__default["default"].t('frontend_input_table_button_new'),//"新增",
|
|
16172
16207
|
"type": "button",
|
|
16173
16208
|
"icon": "fa fa-plus",
|
|
16174
16209
|
"onEvent": {
|
|
@@ -16220,16 +16255,16 @@ async function getButtonDelete(props) {
|
|
|
16220
16255
|
"icon": "fa fa-trash-alt",
|
|
16221
16256
|
"actionType": "dialog",
|
|
16222
16257
|
"dialog": {
|
|
16223
|
-
"title": "
|
|
16258
|
+
"title": "${'CustomLabels.alert_info' | t}",
|
|
16224
16259
|
"actions": [
|
|
16225
16260
|
{
|
|
16226
16261
|
"type": "button",
|
|
16227
|
-
"label": "
|
|
16262
|
+
"label": "${'Cancel' | t}",
|
|
16228
16263
|
"close": true
|
|
16229
16264
|
},
|
|
16230
16265
|
{
|
|
16231
16266
|
"type": "button",
|
|
16232
|
-
"label": "
|
|
16267
|
+
"label": i18next__default["default"].t('frontend_input_table_button_delete'),
|
|
16233
16268
|
"level": "danger",
|
|
16234
16269
|
"onEvent": {
|
|
16235
16270
|
"click": {
|
|
@@ -16241,7 +16276,7 @@ async function getButtonDelete(props) {
|
|
|
16241
16276
|
],
|
|
16242
16277
|
"body": [
|
|
16243
16278
|
{
|
|
16244
|
-
"tpl": "
|
|
16279
|
+
"tpl": i18next__default["default"].t('frontend_delete_many_confirm_text'),
|
|
16245
16280
|
"type": "tpl"
|
|
16246
16281
|
}
|
|
16247
16282
|
]
|
|
@@ -17478,21 +17513,45 @@ const getSubmitActions = async (instance) => {
|
|
|
17478
17513
|
"args": {},
|
|
17479
17514
|
"actionType": "custom",
|
|
17480
17515
|
"script": `
|
|
17481
|
-
|
|
17482
|
-
|
|
17516
|
+
var wizard = event.context.scoped.getComponentById('instance_wizard');
|
|
17517
|
+
var form = event.context.scoped.getComponentById('instance_form');
|
|
17483
17518
|
|
|
17484
|
-
|
|
17485
|
-
|
|
17519
|
+
if (!wizard) {
|
|
17520
|
+
return form.validate().then(function(formValid) {
|
|
17521
|
+
event.setData(Object.assign({}, event.data, {instanceFormValidate: formValid}));
|
|
17522
|
+
return formValid;
|
|
17523
|
+
});
|
|
17524
|
+
}
|
|
17486
17525
|
|
|
17487
|
-
|
|
17488
|
-
|
|
17489
|
-
|
|
17490
|
-
|
|
17526
|
+
var stepsCount = wizard.state.rawSteps.length;
|
|
17527
|
+
var originStep = wizard.state.currentStep; // 索引从1开始
|
|
17528
|
+
|
|
17529
|
+
function validateStepsUntilFail(i) {
|
|
17530
|
+
if (i > stepsCount) {
|
|
17531
|
+
// 所有校验都通过,回到原来的页面
|
|
17532
|
+
return wizard.gotoStep(originStep).then(function(){
|
|
17533
|
+
return true;
|
|
17534
|
+
});
|
|
17535
|
+
}
|
|
17536
|
+
return wizard.gotoStep(i).then(function() {
|
|
17537
|
+
return wizard.form.validate();
|
|
17538
|
+
}).then(function(valid) {
|
|
17539
|
+
if (!valid) {
|
|
17540
|
+
// 校验失败,停在本步骤,返回 false
|
|
17541
|
+
return false;
|
|
17542
|
+
}
|
|
17543
|
+
// 校验通过,递归下一个
|
|
17544
|
+
return validateStepsUntilFail(i + 1);
|
|
17545
|
+
});
|
|
17546
|
+
}
|
|
17491
17547
|
|
|
17492
|
-
return
|
|
17493
|
-
|
|
17494
|
-
|
|
17495
|
-
|
|
17548
|
+
return form.validate().then(function(formValid){
|
|
17549
|
+
return validateStepsUntilFail(1).then(function(wizardValid){
|
|
17550
|
+
// wizardValid为false时,当前wizard已停在第一个未通过步骤,并且未通过表单项高亮
|
|
17551
|
+
var allValid = formValid && wizardValid;
|
|
17552
|
+
event.setData(Object.assign({}, event.data, {instanceFormValidate: allValid}));
|
|
17553
|
+
return allValid;
|
|
17554
|
+
});
|
|
17496
17555
|
});
|
|
17497
17556
|
`
|
|
17498
17557
|
},
|
|
@@ -17671,7 +17730,7 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
17671
17730
|
* @Author: baozhoutao@steedos.com
|
|
17672
17731
|
* @Date: 2022-09-16 17:27:24
|
|
17673
17732
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
17674
|
-
* @LastEditTime: 2025-08-
|
|
17733
|
+
* @LastEditTime: 2025-08-31 09:53:48
|
|
17675
17734
|
* @Description:
|
|
17676
17735
|
*/
|
|
17677
17736
|
// TODO attachments
|
|
@@ -17731,7 +17790,7 @@ const getAttachmentUploadInput = async (instance)=>{
|
|
|
17731
17790
|
if(!instance.approve){
|
|
17732
17791
|
return {
|
|
17733
17792
|
type: 'tpl',
|
|
17734
|
-
tpl:
|
|
17793
|
+
tpl: amisLib.i18next.t('frontend_workflow_attachment')
|
|
17735
17794
|
}
|
|
17736
17795
|
}
|
|
17737
17796
|
const auth = amisLib.getSteedosAuth();
|
|
@@ -17793,7 +17852,7 @@ const getAttachmentUploadInput = async (instance)=>{
|
|
|
17793
17852
|
"position": "top-right",
|
|
17794
17853
|
"closeButton": true,
|
|
17795
17854
|
"showIcon": true,
|
|
17796
|
-
"msg": "上传成功"
|
|
17855
|
+
"msg": amisLib.i18next.t('frontend_workflow_attachment_upload_success'),//"上传成功"
|
|
17797
17856
|
},
|
|
17798
17857
|
"actionType": "toast"
|
|
17799
17858
|
},
|
|
@@ -17816,7 +17875,7 @@ const getAttachmentUploadInput = async (instance)=>{
|
|
|
17816
17875
|
* @Author: baozhoutao@steedos.com
|
|
17817
17876
|
* @Date: 2022-09-16 17:26:12
|
|
17818
17877
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
17819
|
-
* @LastEditTime: 2025-08-
|
|
17878
|
+
* @LastEditTime: 2025-08-31 09:46:58
|
|
17820
17879
|
* @Description:
|
|
17821
17880
|
*/
|
|
17822
17881
|
const getRelatedRecords = async (instance)=>{
|
|
@@ -17826,7 +17885,7 @@ const getRelatedRecords = async (instance)=>{
|
|
|
17826
17885
|
return _$1.map(instance.record_ids, (item)=>{
|
|
17827
17886
|
return {
|
|
17828
17887
|
type: 'tpl',
|
|
17829
|
-
tpl: `<a href='/app/-/${item.o}/view/${item.ids[0]}' target='_blank'
|
|
17888
|
+
tpl: `<a href='/app/-/${item.o}/view/${item.ids[0]}' target='_blank'>${amisLib.i18next.t('frontend_workflow_related_records_link_title')}</a>`
|
|
17830
17889
|
}
|
|
17831
17890
|
})
|
|
17832
17891
|
};
|
|
@@ -17909,7 +17968,7 @@ const getInstanceApprovalHistory = async ()=>{
|
|
|
17909
17968
|
* @Author: baozhoutao@steedos.com
|
|
17910
17969
|
* @Date: 2022-09-07 16:20:45
|
|
17911
17970
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
17912
|
-
* @LastEditTime: 2025-
|
|
17971
|
+
* @LastEditTime: 2025-09-01 23:58:44
|
|
17913
17972
|
* @Description:
|
|
17914
17973
|
*/
|
|
17915
17974
|
|
|
@@ -18543,8 +18602,13 @@ const getFormSteps = async (instance) => {
|
|
|
18543
18602
|
let fieldSchema;
|
|
18544
18603
|
for (const childField of field.fields) {
|
|
18545
18604
|
fieldSchema = await getTdInputTpl(childField, true);
|
|
18546
|
-
if (fieldSchema.type === "steedos-field"){
|
|
18547
|
-
fieldSchema.config.amis
|
|
18605
|
+
if (fieldSchema.type === "steedos-field" && fieldSchema.config) {
|
|
18606
|
+
if (fieldSchema.config.amis) {
|
|
18607
|
+
fieldSchema.config.amis.mode = formMode;
|
|
18608
|
+
}
|
|
18609
|
+
else {
|
|
18610
|
+
fieldSchema.config.amis = { mode: formMode };
|
|
18611
|
+
}
|
|
18548
18612
|
}
|
|
18549
18613
|
else {
|
|
18550
18614
|
fieldSchema.mode = formMode;
|
|
@@ -18577,9 +18641,11 @@ const getFormSteps = async (instance) => {
|
|
|
18577
18641
|
};
|
|
18578
18642
|
|
|
18579
18643
|
const getFormWizardView = async (instance) => {
|
|
18644
|
+
const wizardMode = instance.form.current.wizard_mode || "vertical";//vertical,horizontal
|
|
18580
18645
|
const formSchema = {
|
|
18581
18646
|
type: "wizard",
|
|
18582
|
-
className:
|
|
18647
|
+
className: `instance-form-view-wizard ${wizardMode === "horizontal" ? "pt-4" : "pt-1"} mt-3`,
|
|
18648
|
+
mode: wizardMode,
|
|
18583
18649
|
steps: await getFormSteps(instance),
|
|
18584
18650
|
actionFinishLabel: "${'CustomAction.instances.instance_save' | t}",//"保存",
|
|
18585
18651
|
id: "instance_wizard",
|
|
@@ -19016,7 +19082,7 @@ const getOpinionFieldStepsName = (field, top_keywords) => {
|
|
|
19016
19082
|
* @Author: baozhoutao@steedos.com
|
|
19017
19083
|
* @Date: 2022-09-09 17:47:37
|
|
19018
19084
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
19019
|
-
* @LastEditTime: 2025-
|
|
19085
|
+
* @LastEditTime: 2025-09-01 23:33:14
|
|
19020
19086
|
* @Description:
|
|
19021
19087
|
*/
|
|
19022
19088
|
|
|
@@ -19194,6 +19260,7 @@ const getInstanceInfo = async (props) => {
|
|
|
19194
19260
|
name,
|
|
19195
19261
|
style,
|
|
19196
19262
|
mode,
|
|
19263
|
+
wizard_mode,
|
|
19197
19264
|
current,
|
|
19198
19265
|
historys
|
|
19199
19266
|
},
|