@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.esm.js
CHANGED
|
@@ -1470,7 +1470,7 @@ var frontend_form_please_select$1 = "Please select";
|
|
|
1470
1470
|
var frontend_form_confirm$1 = "Confirm";
|
|
1471
1471
|
var frontend_form_delete$1 = "Delete";
|
|
1472
1472
|
var frontend_form_view$1 = "view";
|
|
1473
|
-
var frontend_form_details$1 = "
|
|
1473
|
+
var frontend_form_details$1 = "Details";
|
|
1474
1474
|
var frontend_form_validation_failed_url$1 = "The URL format is incorrect";
|
|
1475
1475
|
var frontend_delete_confirm_text$1 = "Are you sure you want to delete this item?";
|
|
1476
1476
|
var frontend_delete_many_selected_required$1 = "Please select the item to be deleted";
|
|
@@ -1567,6 +1567,7 @@ var frontend_menu_tabs_group_name_label$1 = "Name";
|
|
|
1567
1567
|
var frontend_menu_tabs_group_name_placeholder$1 = "Group Name";
|
|
1568
1568
|
var frontend_menu_tabs_group_default_open_label$1 = "Whether to expand by default";
|
|
1569
1569
|
var frontend_button_delete_confirm_text$1 = "Are you sure you want to delete it?";
|
|
1570
|
+
var frontend_app_launcher_button_more$1 = "More";
|
|
1570
1571
|
var frontend_app_launcher_button_new_app$1 = "+ New App";
|
|
1571
1572
|
var frontend_app_launcher_dialog_new_app_title$1 = "New App";
|
|
1572
1573
|
var frontend_app_launcher_dialog_new_app_code_label$1 = "App ID";
|
|
@@ -1575,6 +1576,13 @@ var frontend_app_launcher_dialog_new_app_icon_label$1 = "Icon";
|
|
|
1575
1576
|
var frontend_crud_toolbar_quick_search_placeholder$1 = "Quick Search";
|
|
1576
1577
|
var frontend_crud_toolbar_quick_search_tooltip_prefix$1 = "Searchable fields:";
|
|
1577
1578
|
var frontend_lookup_left_tree_search_organizations$1 = "Search for organizations";
|
|
1579
|
+
var frontend_input_table_button_new$1 = "New";
|
|
1580
|
+
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";
|
|
1581
|
+
var frontend_input_table_button_copy$1 = "Copy";
|
|
1582
|
+
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";
|
|
1583
|
+
var frontend_input_table_button_delete$1 = "Delete";
|
|
1584
|
+
var frontend_input_table_button_confirm$1 = "Done";
|
|
1585
|
+
var frontend_input_table_dialog_title_suffix$1 = "Details";
|
|
1578
1586
|
var frontend_workflow_instances_applicant_name_prefix$1 = "Applicant name:";
|
|
1579
1587
|
var frontend_workflow_instance_submit_date_prefix$1 = "Submission date:";
|
|
1580
1588
|
var frontend_workflow_approval_judge_returned$1 = "Returned";
|
|
@@ -1598,6 +1606,7 @@ var frontend_workflow_approval_history_read$1 = "Read";
|
|
|
1598
1606
|
var frontend_workflow_approval_history_unprocessed$1 = "Unprocessed";
|
|
1599
1607
|
var frontend_workflow_attachment$1 = "Attachment";
|
|
1600
1608
|
var frontend_workflow_attachment_upload$1 = "Upload";
|
|
1609
|
+
var frontend_workflow_attachment_upload_success$1 = "Uploaded successfully";
|
|
1601
1610
|
var frontend_workflow_related_file$1 = "Related File";
|
|
1602
1611
|
var frontend_workflow_judge_option_approved$1 = "Approved";
|
|
1603
1612
|
var frontend_workflow_judge_option_rejected$1 = "Rejected";
|
|
@@ -1719,6 +1728,7 @@ var en_us$1 = {
|
|
|
1719
1728
|
frontend_menu_tabs_group_name_placeholder: frontend_menu_tabs_group_name_placeholder$1,
|
|
1720
1729
|
frontend_menu_tabs_group_default_open_label: frontend_menu_tabs_group_default_open_label$1,
|
|
1721
1730
|
frontend_button_delete_confirm_text: frontend_button_delete_confirm_text$1,
|
|
1731
|
+
frontend_app_launcher_button_more: frontend_app_launcher_button_more$1,
|
|
1722
1732
|
frontend_app_launcher_button_new_app: frontend_app_launcher_button_new_app$1,
|
|
1723
1733
|
frontend_app_launcher_dialog_new_app_title: frontend_app_launcher_dialog_new_app_title$1,
|
|
1724
1734
|
frontend_app_launcher_dialog_new_app_code_label: frontend_app_launcher_dialog_new_app_code_label$1,
|
|
@@ -1727,6 +1737,13 @@ var en_us$1 = {
|
|
|
1727
1737
|
frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder$1,
|
|
1728
1738
|
frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix$1,
|
|
1729
1739
|
frontend_lookup_left_tree_search_organizations: frontend_lookup_left_tree_search_organizations$1,
|
|
1740
|
+
frontend_input_table_button_new: frontend_input_table_button_new$1,
|
|
1741
|
+
frontend_input_table_button_new_tooltip: frontend_input_table_button_new_tooltip$1,
|
|
1742
|
+
frontend_input_table_button_copy: frontend_input_table_button_copy$1,
|
|
1743
|
+
frontend_input_table_button_copy_tooltip: frontend_input_table_button_copy_tooltip$1,
|
|
1744
|
+
frontend_input_table_button_delete: frontend_input_table_button_delete$1,
|
|
1745
|
+
frontend_input_table_button_confirm: frontend_input_table_button_confirm$1,
|
|
1746
|
+
frontend_input_table_dialog_title_suffix: frontend_input_table_dialog_title_suffix$1,
|
|
1730
1747
|
frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix$1,
|
|
1731
1748
|
frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix$1,
|
|
1732
1749
|
frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned$1,
|
|
@@ -1750,6 +1767,7 @@ var en_us$1 = {
|
|
|
1750
1767
|
frontend_workflow_approval_history_unprocessed: frontend_workflow_approval_history_unprocessed$1,
|
|
1751
1768
|
frontend_workflow_attachment: frontend_workflow_attachment$1,
|
|
1752
1769
|
frontend_workflow_attachment_upload: frontend_workflow_attachment_upload$1,
|
|
1770
|
+
frontend_workflow_attachment_upload_success: frontend_workflow_attachment_upload_success$1,
|
|
1753
1771
|
frontend_workflow_related_file: frontend_workflow_related_file$1,
|
|
1754
1772
|
frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved$1,
|
|
1755
1773
|
frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected$1,
|
|
@@ -1873,6 +1891,7 @@ var frontend_menu_tabs_group_name_label = "名称";
|
|
|
1873
1891
|
var frontend_menu_tabs_group_name_placeholder = "分组名称";
|
|
1874
1892
|
var frontend_menu_tabs_group_default_open_label = "是否默认展开";
|
|
1875
1893
|
var frontend_button_delete_confirm_text = "确定要删除吗?";
|
|
1894
|
+
var frontend_app_launcher_button_more = "更多";
|
|
1876
1895
|
var frontend_app_launcher_button_new_app = "+ 新建应用";
|
|
1877
1896
|
var frontend_app_launcher_dialog_new_app_title = "新建应用";
|
|
1878
1897
|
var frontend_app_launcher_dialog_new_app_code_label = "应用唯一标识";
|
|
@@ -1881,6 +1900,13 @@ var frontend_app_launcher_dialog_new_app_icon_label = "图标";
|
|
|
1881
1900
|
var frontend_crud_toolbar_quick_search_placeholder = "快捷搜索";
|
|
1882
1901
|
var frontend_crud_toolbar_quick_search_tooltip_prefix = "可搜索字段:";
|
|
1883
1902
|
var frontend_lookup_left_tree_search_organizations = "查找部门";
|
|
1903
|
+
var frontend_input_table_button_new = "新增";
|
|
1904
|
+
var frontend_input_table_button_new_tooltip = "保存并新增一行,即保存当前行数据并新增一条空白行";
|
|
1905
|
+
var frontend_input_table_button_copy = "复制";
|
|
1906
|
+
var frontend_input_table_button_copy_tooltip = "复制并新增一行,即保存当前行数据并复制当前行数据到新增行";
|
|
1907
|
+
var frontend_input_table_button_delete = "删除";
|
|
1908
|
+
var frontend_input_table_button_confirm = "完成";
|
|
1909
|
+
var frontend_input_table_dialog_title_suffix = "明细";
|
|
1884
1910
|
var frontend_workflow_instances_applicant_name_prefix = "提交人:";
|
|
1885
1911
|
var frontend_workflow_instance_submit_date_prefix = "提交日期:";
|
|
1886
1912
|
var frontend_workflow_approval_judge_returned = "已退回";
|
|
@@ -1904,6 +1930,7 @@ var frontend_workflow_approval_history_read = "已读";
|
|
|
1904
1930
|
var frontend_workflow_approval_history_unprocessed = "未处理";
|
|
1905
1931
|
var frontend_workflow_attachment = "附件";
|
|
1906
1932
|
var frontend_workflow_attachment_upload = "上传";
|
|
1933
|
+
var frontend_workflow_attachment_upload_success = "上传成功";
|
|
1907
1934
|
var frontend_workflow_related_file = "相关文件";
|
|
1908
1935
|
var frontend_workflow_judge_option_approved = "核准";
|
|
1909
1936
|
var frontend_workflow_judge_option_rejected = "驳回";
|
|
@@ -2026,6 +2053,7 @@ var zh_cn$1 = {
|
|
|
2026
2053
|
frontend_menu_tabs_group_name_placeholder: frontend_menu_tabs_group_name_placeholder,
|
|
2027
2054
|
frontend_menu_tabs_group_default_open_label: frontend_menu_tabs_group_default_open_label,
|
|
2028
2055
|
frontend_button_delete_confirm_text: frontend_button_delete_confirm_text,
|
|
2056
|
+
frontend_app_launcher_button_more: frontend_app_launcher_button_more,
|
|
2029
2057
|
frontend_app_launcher_button_new_app: frontend_app_launcher_button_new_app,
|
|
2030
2058
|
frontend_app_launcher_dialog_new_app_title: frontend_app_launcher_dialog_new_app_title,
|
|
2031
2059
|
frontend_app_launcher_dialog_new_app_code_label: frontend_app_launcher_dialog_new_app_code_label,
|
|
@@ -2034,6 +2062,13 @@ var zh_cn$1 = {
|
|
|
2034
2062
|
frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder,
|
|
2035
2063
|
frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix,
|
|
2036
2064
|
frontend_lookup_left_tree_search_organizations: frontend_lookup_left_tree_search_organizations,
|
|
2065
|
+
frontend_input_table_button_new: frontend_input_table_button_new,
|
|
2066
|
+
frontend_input_table_button_new_tooltip: frontend_input_table_button_new_tooltip,
|
|
2067
|
+
frontend_input_table_button_copy: frontend_input_table_button_copy,
|
|
2068
|
+
frontend_input_table_button_copy_tooltip: frontend_input_table_button_copy_tooltip,
|
|
2069
|
+
frontend_input_table_button_delete: frontend_input_table_button_delete,
|
|
2070
|
+
frontend_input_table_button_confirm: frontend_input_table_button_confirm,
|
|
2071
|
+
frontend_input_table_dialog_title_suffix: frontend_input_table_dialog_title_suffix,
|
|
2037
2072
|
frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix,
|
|
2038
2073
|
frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix,
|
|
2039
2074
|
frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned,
|
|
@@ -2057,6 +2092,7 @@ var zh_cn$1 = {
|
|
|
2057
2092
|
frontend_workflow_approval_history_unprocessed: frontend_workflow_approval_history_unprocessed,
|
|
2058
2093
|
frontend_workflow_attachment: frontend_workflow_attachment,
|
|
2059
2094
|
frontend_workflow_attachment_upload: frontend_workflow_attachment_upload,
|
|
2095
|
+
frontend_workflow_attachment_upload_success: frontend_workflow_attachment_upload_success,
|
|
2060
2096
|
frontend_workflow_related_file: frontend_workflow_related_file,
|
|
2061
2097
|
frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved,
|
|
2062
2098
|
frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected,
|
|
@@ -2074,7 +2110,6 @@ var zh_cn$1 = {
|
|
|
2074
2110
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
2075
2111
|
* @LastEditTime: 2025-08-26 10:17:05
|
|
2076
2112
|
*/
|
|
2077
|
-
|
|
2078
2113
|
const resources = {
|
|
2079
2114
|
"en": {
|
|
2080
2115
|
translation: en_us$1
|
|
@@ -2085,7 +2120,7 @@ const resources = {
|
|
|
2085
2120
|
};
|
|
2086
2121
|
|
|
2087
2122
|
const getUserLanguage$1 = () => {
|
|
2088
|
-
var lan = Builder.settings.context?.user?.language || window.navigator.language;
|
|
2123
|
+
var lan = Builder.settings.context?.user?.language || Builder.settings.locale || window.navigator.language;
|
|
2089
2124
|
if(lan === 'en' || lan.startsWith('en-')){
|
|
2090
2125
|
lan = 'en';
|
|
2091
2126
|
}
|
|
@@ -14856,7 +14891,7 @@ function uuidv4() {
|
|
|
14856
14891
|
* @Author: 殷亮辉 yinlianghui@hotoa.com
|
|
14857
14892
|
* @Date: 2023-11-15 09:50:22
|
|
14858
14893
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
14859
|
-
* @LastEditTime: 2025-
|
|
14894
|
+
* @LastEditTime: 2025-09-01 15:40:28
|
|
14860
14895
|
*/
|
|
14861
14896
|
|
|
14862
14897
|
/**
|
|
@@ -15850,7 +15885,7 @@ async function getButtonActions(props, mode) {
|
|
|
15850
15885
|
let dialogButtons = [
|
|
15851
15886
|
{
|
|
15852
15887
|
"type": "button",
|
|
15853
|
-
"label": "完成",
|
|
15888
|
+
"label": i18next.t('frontend_input_table_button_confirm'),//"完成",
|
|
15854
15889
|
"actionType": "confirm",
|
|
15855
15890
|
"level": "primary"
|
|
15856
15891
|
}
|
|
@@ -15860,8 +15895,8 @@ async function getButtonActions(props, mode) {
|
|
|
15860
15895
|
dialogButtons = [
|
|
15861
15896
|
{
|
|
15862
15897
|
"type": "button",
|
|
15863
|
-
"label": "新增",
|
|
15864
|
-
"tooltip":
|
|
15898
|
+
"label": i18next.t('frontend_input_table_button_new'),//"新增",
|
|
15899
|
+
"tooltip": i18next.t('frontend_input_table_button_new_tooltip'),
|
|
15865
15900
|
"onEvent": {
|
|
15866
15901
|
"click": {
|
|
15867
15902
|
"actions": [
|
|
@@ -15880,8 +15915,8 @@ async function getButtonActions(props, mode) {
|
|
|
15880
15915
|
},
|
|
15881
15916
|
{
|
|
15882
15917
|
"type": "button",
|
|
15883
|
-
"label": "复制",
|
|
15884
|
-
"tooltip":
|
|
15918
|
+
"label": i18next.t('frontend_input_table_button_copy'),//"复制",
|
|
15919
|
+
"tooltip": i18next.t('frontend_input_table_button_copy_tooltip'),
|
|
15885
15920
|
"onEvent": {
|
|
15886
15921
|
"click": {
|
|
15887
15922
|
"actions": [
|
|
@@ -15906,7 +15941,7 @@ async function getButtonActions(props, mode) {
|
|
|
15906
15941
|
"dialog": {
|
|
15907
15942
|
"type": "dialog",
|
|
15908
15943
|
"id": dialogId,
|
|
15909
|
-
"title": `\${uiSchema.fields.${props.name}.label}
|
|
15944
|
+
"title": `\${uiSchema.fields.${props.name}.label} ` + i18next.t('frontend_input_table_dialog_title_suffix'),
|
|
15910
15945
|
"body": [
|
|
15911
15946
|
await getForm(props, mode, formId)
|
|
15912
15947
|
],
|
|
@@ -16031,7 +16066,7 @@ async function getButtonActions(props, mode) {
|
|
|
16031
16066
|
"actionType": "dialog",
|
|
16032
16067
|
"dialog": {
|
|
16033
16068
|
"type": "dialog",
|
|
16034
|
-
"title": `\${uiSchema.fields.${props.name}.label}
|
|
16069
|
+
"title": `\${uiSchema.fields.${props.name}.label} ` + i18next.t('frontend_input_table_dialog_title_suffix'),
|
|
16035
16070
|
"body": [
|
|
16036
16071
|
await getForm(props, "readonly")
|
|
16037
16072
|
],
|
|
@@ -16141,7 +16176,7 @@ async function getButtonActions(props, mode) {
|
|
|
16141
16176
|
|
|
16142
16177
|
async function getButtonNew(props) {
|
|
16143
16178
|
return {
|
|
16144
|
-
"label": "新增",
|
|
16179
|
+
"label": i18next.t('frontend_input_table_button_new'),//"新增",
|
|
16145
16180
|
"type": "button",
|
|
16146
16181
|
"icon": "fa fa-plus",
|
|
16147
16182
|
"onEvent": {
|
|
@@ -16193,16 +16228,16 @@ async function getButtonDelete(props) {
|
|
|
16193
16228
|
"icon": "fa fa-trash-alt",
|
|
16194
16229
|
"actionType": "dialog",
|
|
16195
16230
|
"dialog": {
|
|
16196
|
-
"title": "
|
|
16231
|
+
"title": "${'CustomLabels.alert_info' | t}",
|
|
16197
16232
|
"actions": [
|
|
16198
16233
|
{
|
|
16199
16234
|
"type": "button",
|
|
16200
|
-
"label": "
|
|
16235
|
+
"label": "${'Cancel' | t}",
|
|
16201
16236
|
"close": true
|
|
16202
16237
|
},
|
|
16203
16238
|
{
|
|
16204
16239
|
"type": "button",
|
|
16205
|
-
"label":
|
|
16240
|
+
"label": i18next.t('frontend_input_table_button_delete'),
|
|
16206
16241
|
"level": "danger",
|
|
16207
16242
|
"onEvent": {
|
|
16208
16243
|
"click": {
|
|
@@ -16214,7 +16249,7 @@ async function getButtonDelete(props) {
|
|
|
16214
16249
|
],
|
|
16215
16250
|
"body": [
|
|
16216
16251
|
{
|
|
16217
|
-
"tpl":
|
|
16252
|
+
"tpl": i18next.t('frontend_delete_many_confirm_text'),
|
|
16218
16253
|
"type": "tpl"
|
|
16219
16254
|
}
|
|
16220
16255
|
]
|
|
@@ -17451,21 +17486,45 @@ const getSubmitActions = async (instance) => {
|
|
|
17451
17486
|
"args": {},
|
|
17452
17487
|
"actionType": "custom",
|
|
17453
17488
|
"script": `
|
|
17454
|
-
|
|
17455
|
-
|
|
17489
|
+
var wizard = event.context.scoped.getComponentById('instance_wizard');
|
|
17490
|
+
var form = event.context.scoped.getComponentById('instance_form');
|
|
17456
17491
|
|
|
17457
|
-
|
|
17458
|
-
|
|
17492
|
+
if (!wizard) {
|
|
17493
|
+
return form.validate().then(function(formValid) {
|
|
17494
|
+
event.setData(Object.assign({}, event.data, {instanceFormValidate: formValid}));
|
|
17495
|
+
return formValid;
|
|
17496
|
+
});
|
|
17497
|
+
}
|
|
17459
17498
|
|
|
17460
|
-
|
|
17461
|
-
|
|
17462
|
-
|
|
17463
|
-
|
|
17499
|
+
var stepsCount = wizard.state.rawSteps.length;
|
|
17500
|
+
var originStep = wizard.state.currentStep; // 索引从1开始
|
|
17501
|
+
|
|
17502
|
+
function validateStepsUntilFail(i) {
|
|
17503
|
+
if (i > stepsCount) {
|
|
17504
|
+
// 所有校验都通过,回到原来的页面
|
|
17505
|
+
return wizard.gotoStep(originStep).then(function(){
|
|
17506
|
+
return true;
|
|
17507
|
+
});
|
|
17508
|
+
}
|
|
17509
|
+
return wizard.gotoStep(i).then(function() {
|
|
17510
|
+
return wizard.form.validate();
|
|
17511
|
+
}).then(function(valid) {
|
|
17512
|
+
if (!valid) {
|
|
17513
|
+
// 校验失败,停在本步骤,返回 false
|
|
17514
|
+
return false;
|
|
17515
|
+
}
|
|
17516
|
+
// 校验通过,递归下一个
|
|
17517
|
+
return validateStepsUntilFail(i + 1);
|
|
17518
|
+
});
|
|
17519
|
+
}
|
|
17464
17520
|
|
|
17465
|
-
return
|
|
17466
|
-
|
|
17467
|
-
|
|
17468
|
-
|
|
17521
|
+
return form.validate().then(function(formValid){
|
|
17522
|
+
return validateStepsUntilFail(1).then(function(wizardValid){
|
|
17523
|
+
// wizardValid为false时,当前wizard已停在第一个未通过步骤,并且未通过表单项高亮
|
|
17524
|
+
var allValid = formValid && wizardValid;
|
|
17525
|
+
event.setData(Object.assign({}, event.data, {instanceFormValidate: allValid}));
|
|
17526
|
+
return allValid;
|
|
17527
|
+
});
|
|
17469
17528
|
});
|
|
17470
17529
|
`
|
|
17471
17530
|
},
|
|
@@ -17644,7 +17703,7 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
17644
17703
|
* @Author: baozhoutao@steedos.com
|
|
17645
17704
|
* @Date: 2022-09-16 17:27:24
|
|
17646
17705
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
17647
|
-
* @LastEditTime: 2025-08-
|
|
17706
|
+
* @LastEditTime: 2025-08-31 09:53:48
|
|
17648
17707
|
* @Description:
|
|
17649
17708
|
*/
|
|
17650
17709
|
// TODO attachments
|
|
@@ -17704,7 +17763,7 @@ const getAttachmentUploadInput = async (instance)=>{
|
|
|
17704
17763
|
if(!instance.approve){
|
|
17705
17764
|
return {
|
|
17706
17765
|
type: 'tpl',
|
|
17707
|
-
tpl:
|
|
17766
|
+
tpl: i18next$1.t('frontend_workflow_attachment')
|
|
17708
17767
|
}
|
|
17709
17768
|
}
|
|
17710
17769
|
const auth = getSteedosAuth$1();
|
|
@@ -17766,7 +17825,7 @@ const getAttachmentUploadInput = async (instance)=>{
|
|
|
17766
17825
|
"position": "top-right",
|
|
17767
17826
|
"closeButton": true,
|
|
17768
17827
|
"showIcon": true,
|
|
17769
|
-
"msg": "上传成功"
|
|
17828
|
+
"msg": i18next$1.t('frontend_workflow_attachment_upload_success'),//"上传成功"
|
|
17770
17829
|
},
|
|
17771
17830
|
"actionType": "toast"
|
|
17772
17831
|
},
|
|
@@ -17789,7 +17848,7 @@ const getAttachmentUploadInput = async (instance)=>{
|
|
|
17789
17848
|
* @Author: baozhoutao@steedos.com
|
|
17790
17849
|
* @Date: 2022-09-16 17:26:12
|
|
17791
17850
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
17792
|
-
* @LastEditTime: 2025-08-
|
|
17851
|
+
* @LastEditTime: 2025-08-31 09:46:58
|
|
17793
17852
|
* @Description:
|
|
17794
17853
|
*/
|
|
17795
17854
|
const getRelatedRecords = async (instance)=>{
|
|
@@ -17799,7 +17858,7 @@ const getRelatedRecords = async (instance)=>{
|
|
|
17799
17858
|
return map(instance.record_ids, (item)=>{
|
|
17800
17859
|
return {
|
|
17801
17860
|
type: 'tpl',
|
|
17802
|
-
tpl: `<a href='/app/-/${item.o}/view/${item.ids[0]}' target='_blank'
|
|
17861
|
+
tpl: `<a href='/app/-/${item.o}/view/${item.ids[0]}' target='_blank'>${i18next$1.t('frontend_workflow_related_records_link_title')}</a>`
|
|
17803
17862
|
}
|
|
17804
17863
|
})
|
|
17805
17864
|
};
|
|
@@ -17882,7 +17941,7 @@ const getInstanceApprovalHistory = async ()=>{
|
|
|
17882
17941
|
* @Author: baozhoutao@steedos.com
|
|
17883
17942
|
* @Date: 2022-09-07 16:20:45
|
|
17884
17943
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
17885
|
-
* @LastEditTime: 2025-
|
|
17944
|
+
* @LastEditTime: 2025-09-01 23:58:44
|
|
17886
17945
|
* @Description:
|
|
17887
17946
|
*/
|
|
17888
17947
|
|
|
@@ -18516,8 +18575,13 @@ const getFormSteps = async (instance) => {
|
|
|
18516
18575
|
let fieldSchema;
|
|
18517
18576
|
for (const childField of field.fields) {
|
|
18518
18577
|
fieldSchema = await getTdInputTpl(childField, true);
|
|
18519
|
-
if (fieldSchema.type === "steedos-field"){
|
|
18520
|
-
fieldSchema.config.amis
|
|
18578
|
+
if (fieldSchema.type === "steedos-field" && fieldSchema.config) {
|
|
18579
|
+
if (fieldSchema.config.amis) {
|
|
18580
|
+
fieldSchema.config.amis.mode = formMode;
|
|
18581
|
+
}
|
|
18582
|
+
else {
|
|
18583
|
+
fieldSchema.config.amis = { mode: formMode };
|
|
18584
|
+
}
|
|
18521
18585
|
}
|
|
18522
18586
|
else {
|
|
18523
18587
|
fieldSchema.mode = formMode;
|
|
@@ -18550,9 +18614,11 @@ const getFormSteps = async (instance) => {
|
|
|
18550
18614
|
};
|
|
18551
18615
|
|
|
18552
18616
|
const getFormWizardView = async (instance) => {
|
|
18617
|
+
const wizardMode = instance.form.current.wizard_mode || "vertical";//vertical,horizontal
|
|
18553
18618
|
const formSchema = {
|
|
18554
18619
|
type: "wizard",
|
|
18555
|
-
className:
|
|
18620
|
+
className: `instance-form-view-wizard ${wizardMode === "horizontal" ? "pt-4" : "pt-1"} mt-3`,
|
|
18621
|
+
mode: wizardMode,
|
|
18556
18622
|
steps: await getFormSteps(instance),
|
|
18557
18623
|
actionFinishLabel: "${'CustomAction.instances.instance_save' | t}",//"保存",
|
|
18558
18624
|
id: "instance_wizard",
|
|
@@ -18989,7 +19055,7 @@ const getOpinionFieldStepsName = (field, top_keywords) => {
|
|
|
18989
19055
|
* @Author: baozhoutao@steedos.com
|
|
18990
19056
|
* @Date: 2022-09-09 17:47:37
|
|
18991
19057
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
18992
|
-
* @LastEditTime: 2025-
|
|
19058
|
+
* @LastEditTime: 2025-09-01 23:33:14
|
|
18993
19059
|
* @Description:
|
|
18994
19060
|
*/
|
|
18995
19061
|
|
|
@@ -19167,6 +19233,7 @@ const getInstanceInfo = async (props) => {
|
|
|
19167
19233
|
name,
|
|
19168
19234
|
style,
|
|
19169
19235
|
mode,
|
|
19236
|
+
wizard_mode,
|
|
19170
19237
|
current,
|
|
19171
19238
|
historys
|
|
19172
19239
|
},
|