@steedos-widgets/amis-object 6.10.1-beta.49 → 6.10.1-beta.51
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/amis/AmisInstanceDetail.d.ts +6 -6
- package/dist/amis-object.cjs.js +122 -48
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.js +122 -48
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.js +32 -13
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +19 -19
- package/dist/meta.js +142 -110
- package/package.json +3 -3
package/dist/amis-object.esm.js
CHANGED
|
@@ -4751,8 +4751,24 @@ var frontend_app_launcher_dialog_new_app_name_label$1 = "Label";
|
|
|
4751
4751
|
var frontend_app_launcher_dialog_new_app_icon_label$1 = "Icon";
|
|
4752
4752
|
var frontend_crud_toolbar_quick_search_placeholder$1 = "Quick Search";
|
|
4753
4753
|
var frontend_crud_toolbar_quick_search_tooltip_prefix$1 = "Searchable fields:";
|
|
4754
|
+
var frontend_lookup_left_tree_search_organizations$1 = "Search for organizations";
|
|
4754
4755
|
var frontend_workflow_instances_applicant_name_prefix$1 = "Applicant name:";
|
|
4755
4756
|
var frontend_workflow_instance_submit_date_prefix$1 = "Submission date:";
|
|
4757
|
+
var frontend_workflow_approval_judge_returned$1 = "Returned";
|
|
4758
|
+
var frontend_workflow_approval_judge_terminated$1 = "Cancelled";
|
|
4759
|
+
var frontend_workflow_approval_judge_pending$1 = "In Progress";
|
|
4760
|
+
var frontend_workflow_approval_judge_approved$1 = "Approved";
|
|
4761
|
+
var frontend_workflow_approval_judge_rejected$1 = "Rejected";
|
|
4762
|
+
var frontend_workflow_approval_judge_finished$1 = "Completed";
|
|
4763
|
+
var frontend_workflow_approval_judge_reassigned$1 = "Reassigned";
|
|
4764
|
+
var frontend_workflow_approval_judge_inhand$1 = "In Progress";
|
|
4765
|
+
var frontend_workflow_approval_judge_relocated$1 = "Relocate";
|
|
4766
|
+
var frontend_workflow_approval_judge_readed$1 = "Read";
|
|
4767
|
+
var frontend_workflow_approval_suggestion_readed$1 = "Read";
|
|
4768
|
+
var frontend_workflow_approval_suggestion_completed$1 = "Done";
|
|
4769
|
+
var frontend_workflow_approval_suggestion_agree$1 = "Agree";
|
|
4770
|
+
var frontend_workflow_approval_suggestion_other$1 = "Select opinions";
|
|
4771
|
+
var frontend_workflow_suggestion_placeholder$1 = "Please fill in your comments.";
|
|
4756
4772
|
var frontend_workflow_instance_button_sign$1 = "Sign";
|
|
4757
4773
|
var frontend_workflow_approval_history$1 = "Approval History";
|
|
4758
4774
|
var frontend_workflow_approval_history_read$1 = "Read";
|
|
@@ -4764,6 +4780,10 @@ var frontend_workflow_judge_option_approved$1 = "Approved";
|
|
|
4764
4780
|
var frontend_workflow_judge_option_rejected$1 = "Rejected";
|
|
4765
4781
|
var frontend_workflow_judge_option_readed$1 = "Readed";
|
|
4766
4782
|
var frontend_workflow_next_step$1 = "Next Step";
|
|
4783
|
+
var frontend_workflow_next_users$1 = "To";
|
|
4784
|
+
var frontend_workflow_submit_validate_error_title$1 = "Submission failed";
|
|
4785
|
+
var frontend_workflow_submit_validate_error_msg$1 = "Please fill in the required fields";
|
|
4786
|
+
var frontend_workflow_related_records_link_title$1 = "Related Records";
|
|
4767
4787
|
var en_us$1 = {
|
|
4768
4788
|
frontend_field_group_generalization: frontend_field_group_generalization$1,
|
|
4769
4789
|
frontend_download: frontend_download$1,
|
|
@@ -4883,8 +4903,24 @@ var en_us$1 = {
|
|
|
4883
4903
|
frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label$1,
|
|
4884
4904
|
frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder$1,
|
|
4885
4905
|
frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix$1,
|
|
4906
|
+
frontend_lookup_left_tree_search_organizations: frontend_lookup_left_tree_search_organizations$1,
|
|
4886
4907
|
frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix$1,
|
|
4887
4908
|
frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix$1,
|
|
4909
|
+
frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned$1,
|
|
4910
|
+
frontend_workflow_approval_judge_terminated: frontend_workflow_approval_judge_terminated$1,
|
|
4911
|
+
frontend_workflow_approval_judge_pending: frontend_workflow_approval_judge_pending$1,
|
|
4912
|
+
frontend_workflow_approval_judge_approved: frontend_workflow_approval_judge_approved$1,
|
|
4913
|
+
frontend_workflow_approval_judge_rejected: frontend_workflow_approval_judge_rejected$1,
|
|
4914
|
+
frontend_workflow_approval_judge_finished: frontend_workflow_approval_judge_finished$1,
|
|
4915
|
+
frontend_workflow_approval_judge_reassigned: frontend_workflow_approval_judge_reassigned$1,
|
|
4916
|
+
frontend_workflow_approval_judge_inhand: frontend_workflow_approval_judge_inhand$1,
|
|
4917
|
+
frontend_workflow_approval_judge_relocated: frontend_workflow_approval_judge_relocated$1,
|
|
4918
|
+
frontend_workflow_approval_judge_readed: frontend_workflow_approval_judge_readed$1,
|
|
4919
|
+
frontend_workflow_approval_suggestion_readed: frontend_workflow_approval_suggestion_readed$1,
|
|
4920
|
+
frontend_workflow_approval_suggestion_completed: frontend_workflow_approval_suggestion_completed$1,
|
|
4921
|
+
frontend_workflow_approval_suggestion_agree: frontend_workflow_approval_suggestion_agree$1,
|
|
4922
|
+
frontend_workflow_approval_suggestion_other: frontend_workflow_approval_suggestion_other$1,
|
|
4923
|
+
frontend_workflow_suggestion_placeholder: frontend_workflow_suggestion_placeholder$1,
|
|
4888
4924
|
frontend_workflow_instance_button_sign: frontend_workflow_instance_button_sign$1,
|
|
4889
4925
|
frontend_workflow_approval_history: frontend_workflow_approval_history$1,
|
|
4890
4926
|
frontend_workflow_approval_history_read: frontend_workflow_approval_history_read$1,
|
|
@@ -4895,7 +4931,11 @@ var en_us$1 = {
|
|
|
4895
4931
|
frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved$1,
|
|
4896
4932
|
frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected$1,
|
|
4897
4933
|
frontend_workflow_judge_option_readed: frontend_workflow_judge_option_readed$1,
|
|
4898
|
-
frontend_workflow_next_step: frontend_workflow_next_step$1
|
|
4934
|
+
frontend_workflow_next_step: frontend_workflow_next_step$1,
|
|
4935
|
+
frontend_workflow_next_users: frontend_workflow_next_users$1,
|
|
4936
|
+
frontend_workflow_submit_validate_error_title: frontend_workflow_submit_validate_error_title$1,
|
|
4937
|
+
frontend_workflow_submit_validate_error_msg: frontend_workflow_submit_validate_error_msg$1,
|
|
4938
|
+
frontend_workflow_related_records_link_title: frontend_workflow_related_records_link_title$1
|
|
4899
4939
|
};
|
|
4900
4940
|
|
|
4901
4941
|
var frontend_field_group_generalization = "通用";
|
|
@@ -5017,6 +5057,7 @@ var frontend_app_launcher_dialog_new_app_name_label = "显示名称";
|
|
|
5017
5057
|
var frontend_app_launcher_dialog_new_app_icon_label = "图标";
|
|
5018
5058
|
var frontend_crud_toolbar_quick_search_placeholder = "快捷搜索";
|
|
5019
5059
|
var frontend_crud_toolbar_quick_search_tooltip_prefix = "可搜索字段:";
|
|
5060
|
+
var frontend_lookup_left_tree_search_organizations = "查找部门";
|
|
5020
5061
|
var frontend_workflow_instances_applicant_name_prefix = "提交人:";
|
|
5021
5062
|
var frontend_workflow_instance_submit_date_prefix = "提交日期:";
|
|
5022
5063
|
var frontend_workflow_approval_judge_returned = "已退回";
|
|
@@ -5029,6 +5070,11 @@ var frontend_workflow_approval_judge_reassigned = "转签核";
|
|
|
5029
5070
|
var frontend_workflow_approval_judge_inhand = "处理中";
|
|
5030
5071
|
var frontend_workflow_approval_judge_relocated = "重定位";
|
|
5031
5072
|
var frontend_workflow_approval_judge_readed = "已阅";
|
|
5073
|
+
var frontend_workflow_approval_suggestion_readed = "已阅";
|
|
5074
|
+
var frontend_workflow_approval_suggestion_completed = "已办";
|
|
5075
|
+
var frontend_workflow_approval_suggestion_agree = "同意";
|
|
5076
|
+
var frontend_workflow_approval_suggestion_other = "其他常用意见";
|
|
5077
|
+
var frontend_workflow_suggestion_placeholder = "请填写意见";
|
|
5032
5078
|
var frontend_workflow_instance_button_sign = "签批";
|
|
5033
5079
|
var frontend_workflow_approval_history = "签批历程";
|
|
5034
5080
|
var frontend_workflow_approval_history_read = "已读";
|
|
@@ -5040,6 +5086,10 @@ var frontend_workflow_judge_option_approved = "核准";
|
|
|
5040
5086
|
var frontend_workflow_judge_option_rejected = "驳回";
|
|
5041
5087
|
var frontend_workflow_judge_option_readed = "已阅";
|
|
5042
5088
|
var frontend_workflow_next_step = "下一步";
|
|
5089
|
+
var frontend_workflow_next_users = "处理人";
|
|
5090
|
+
var frontend_workflow_submit_validate_error_title = "提交失败";
|
|
5091
|
+
var frontend_workflow_submit_validate_error_msg = "请填写必填字段";
|
|
5092
|
+
var frontend_workflow_related_records_link_title = "相关台账信息";
|
|
5043
5093
|
var zh_cn$1 = {
|
|
5044
5094
|
frontend_field_group_generalization: frontend_field_group_generalization,
|
|
5045
5095
|
frontend_download: frontend_download,
|
|
@@ -5160,6 +5210,7 @@ var zh_cn$1 = {
|
|
|
5160
5210
|
frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label,
|
|
5161
5211
|
frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder,
|
|
5162
5212
|
frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix,
|
|
5213
|
+
frontend_lookup_left_tree_search_organizations: frontend_lookup_left_tree_search_organizations,
|
|
5163
5214
|
frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix,
|
|
5164
5215
|
frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix,
|
|
5165
5216
|
frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned,
|
|
@@ -5172,6 +5223,11 @@ var zh_cn$1 = {
|
|
|
5172
5223
|
frontend_workflow_approval_judge_inhand: frontend_workflow_approval_judge_inhand,
|
|
5173
5224
|
frontend_workflow_approval_judge_relocated: frontend_workflow_approval_judge_relocated,
|
|
5174
5225
|
frontend_workflow_approval_judge_readed: frontend_workflow_approval_judge_readed,
|
|
5226
|
+
frontend_workflow_approval_suggestion_readed: frontend_workflow_approval_suggestion_readed,
|
|
5227
|
+
frontend_workflow_approval_suggestion_completed: frontend_workflow_approval_suggestion_completed,
|
|
5228
|
+
frontend_workflow_approval_suggestion_agree: frontend_workflow_approval_suggestion_agree,
|
|
5229
|
+
frontend_workflow_approval_suggestion_other: frontend_workflow_approval_suggestion_other,
|
|
5230
|
+
frontend_workflow_suggestion_placeholder: frontend_workflow_suggestion_placeholder,
|
|
5175
5231
|
frontend_workflow_instance_button_sign: frontend_workflow_instance_button_sign,
|
|
5176
5232
|
frontend_workflow_approval_history: frontend_workflow_approval_history,
|
|
5177
5233
|
frontend_workflow_approval_history_read: frontend_workflow_approval_history_read,
|
|
@@ -5182,7 +5238,11 @@ var zh_cn$1 = {
|
|
|
5182
5238
|
frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved,
|
|
5183
5239
|
frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected,
|
|
5184
5240
|
frontend_workflow_judge_option_readed: frontend_workflow_judge_option_readed,
|
|
5185
|
-
frontend_workflow_next_step: frontend_workflow_next_step
|
|
5241
|
+
frontend_workflow_next_step: frontend_workflow_next_step,
|
|
5242
|
+
frontend_workflow_next_users: frontend_workflow_next_users,
|
|
5243
|
+
frontend_workflow_submit_validate_error_title: frontend_workflow_submit_validate_error_title,
|
|
5244
|
+
frontend_workflow_submit_validate_error_msg: frontend_workflow_submit_validate_error_msg,
|
|
5245
|
+
frontend_workflow_related_records_link_title: frontend_workflow_related_records_link_title
|
|
5186
5246
|
};
|
|
5187
5247
|
|
|
5188
5248
|
/*
|
|
@@ -15433,7 +15493,7 @@ function getLookupSapceUserTreeSchema(isMobile){
|
|
|
15433
15493
|
"searchable": true,
|
|
15434
15494
|
"searchConfig": {
|
|
15435
15495
|
"sticky": true,
|
|
15436
|
-
"placeholder":
|
|
15496
|
+
"placeholder": instance.t('frontend_lookup_left_tree_search_organizations')
|
|
15437
15497
|
},
|
|
15438
15498
|
"unfoldedLevel": 2,
|
|
15439
15499
|
"originPosition": "left-top"
|
|
@@ -20349,8 +20409,8 @@ const getNextStepInput = async (instance$1) => {
|
|
|
20349
20409
|
};
|
|
20350
20410
|
|
|
20351
20411
|
//TODO 只有一个处理人时,默认选中,禁止修改. 部分情况不需要显示下一步处理人
|
|
20352
|
-
const getNextStepUsersInput = async (instance) => {
|
|
20353
|
-
if(instance.approve?.type == 'cc'){
|
|
20412
|
+
const getNextStepUsersInput = async (instance$1) => {
|
|
20413
|
+
if(instance$1.approve?.type == 'cc'){
|
|
20354
20414
|
return ;
|
|
20355
20415
|
}
|
|
20356
20416
|
return {
|
|
@@ -20360,7 +20420,7 @@ const getNextStepUsersInput = async (instance) => {
|
|
|
20360
20420
|
body: [
|
|
20361
20421
|
{
|
|
20362
20422
|
type: "tpl",
|
|
20363
|
-
tpl: "处理人",
|
|
20423
|
+
tpl: instance.t('frontend_workflow_next_users'),//"处理人",
|
|
20364
20424
|
inline: true,
|
|
20365
20425
|
wrapperComponent: "",
|
|
20366
20426
|
id: "u:3203cc281b3c",
|
|
@@ -20568,10 +20628,22 @@ const getSubmitActions = async (instance) => {
|
|
|
20568
20628
|
"args": {},
|
|
20569
20629
|
"actionType": "custom",
|
|
20570
20630
|
"script": `
|
|
20631
|
+
const wizard = event.context.scoped.getComponentById("instance_wizard");
|
|
20571
20632
|
const form = event.context.scoped.getComponentById("instance_form");
|
|
20572
|
-
|
|
20573
|
-
|
|
20574
|
-
|
|
20633
|
+
|
|
20634
|
+
// 1. 校验外层 form(直接表单项)
|
|
20635
|
+
let formValidatePromise = form.validate();
|
|
20636
|
+
|
|
20637
|
+
// 2. 校验 wizard(所有步骤数据)
|
|
20638
|
+
let wizardValidatePromise = wizard?.form?.validate
|
|
20639
|
+
? wizard.form.validate()
|
|
20640
|
+
: Promise.resolve(true);
|
|
20641
|
+
|
|
20642
|
+
return Promise.all([formValidatePromise, wizardValidatePromise]).then(([formValid, wizardValid]) => {
|
|
20643
|
+
const allValid = formValid && wizardValid;
|
|
20644
|
+
event.setData({...event.data, instanceFormValidate: allValid});
|
|
20645
|
+
return allValid;
|
|
20646
|
+
});
|
|
20575
20647
|
`
|
|
20576
20648
|
},
|
|
20577
20649
|
// 校验审批表单
|
|
@@ -20626,7 +20698,7 @@ const getSubmitActions = async (instance) => {
|
|
|
20626
20698
|
];
|
|
20627
20699
|
};
|
|
20628
20700
|
|
|
20629
|
-
const getApprovalDrawerSchema = async (instance) => {
|
|
20701
|
+
const getApprovalDrawerSchema = async (instance$1) => {
|
|
20630
20702
|
return {
|
|
20631
20703
|
type: "drawer",
|
|
20632
20704
|
overlay: false,
|
|
@@ -20634,7 +20706,7 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
20634
20706
|
closeOnEsc: true,
|
|
20635
20707
|
closeOnOutside: false,
|
|
20636
20708
|
size: "sm",
|
|
20637
|
-
title: `${instance.step.name}`,
|
|
20709
|
+
title: `${instance$1.step.name}`,
|
|
20638
20710
|
className: "approval-drawer absolute",
|
|
20639
20711
|
headerClassName: 'p-2',
|
|
20640
20712
|
bodyClassName: 'p-2',
|
|
@@ -20649,13 +20721,13 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
20649
20721
|
id: "instance_approval",
|
|
20650
20722
|
resetAfterSubmit: true,
|
|
20651
20723
|
clearPersistDataAfterSubmit: true,
|
|
20652
|
-
persistData: `workflow_approve_form_${instance.approve._id}`,
|
|
20724
|
+
persistData: `workflow_approve_form_${instance$1.approve._id}`,
|
|
20653
20725
|
body: [
|
|
20654
20726
|
{
|
|
20655
20727
|
type: 'hidden',
|
|
20656
20728
|
name: 'new_next_step'
|
|
20657
20729
|
},
|
|
20658
|
-
await getJudgeInput(instance),
|
|
20730
|
+
await getJudgeInput(instance$1),
|
|
20659
20731
|
{
|
|
20660
20732
|
type: "textarea",
|
|
20661
20733
|
label: false,
|
|
@@ -20663,11 +20735,11 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
20663
20735
|
id: "u:cd344f708ddc",
|
|
20664
20736
|
minRows: 3,
|
|
20665
20737
|
maxRows: 20,
|
|
20666
|
-
placeholder: "请填写意见",
|
|
20738
|
+
placeholder: instance.t('frontend_workflow_suggestion_placeholder'),//"请填写意见",
|
|
20667
20739
|
requiredOn: "${judge === 'rejected'}"
|
|
20668
20740
|
},
|
|
20669
|
-
await getNextStepInput(instance),
|
|
20670
|
-
await getNextStepUsersInput(instance),
|
|
20741
|
+
await getNextStepInput(instance$1),
|
|
20742
|
+
await getNextStepUsersInput(instance$1),
|
|
20671
20743
|
],
|
|
20672
20744
|
onEvent: {
|
|
20673
20745
|
"approve_judge_change": {
|
|
@@ -20700,8 +20772,8 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
20700
20772
|
"position": "top-right",
|
|
20701
20773
|
"closeButton": true,
|
|
20702
20774
|
"showIcon": true,
|
|
20703
|
-
"title": "提交失败",
|
|
20704
|
-
"msg": "请填写必填字段"
|
|
20775
|
+
"title": instance.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
|
|
20776
|
+
"msg": instance.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
|
|
20705
20777
|
},
|
|
20706
20778
|
"actionType": "toast"
|
|
20707
20779
|
}
|
|
@@ -20719,7 +20791,7 @@ const getApprovalDrawerSchema = async (instance) => {
|
|
|
20719
20791
|
label: "${'Submit' | t}",
|
|
20720
20792
|
onEvent: {
|
|
20721
20793
|
click: {
|
|
20722
|
-
actions: await getSubmitActions(instance),
|
|
20794
|
+
actions: await getSubmitActions(instance$1),
|
|
20723
20795
|
},
|
|
20724
20796
|
},
|
|
20725
20797
|
id: "u:f6f8c3933f6c",
|
|
@@ -20987,7 +21059,7 @@ const getInstanceApprovalHistory = async ()=>{
|
|
|
20987
21059
|
* @Author: baozhoutao@steedos.com
|
|
20988
21060
|
* @Date: 2022-09-07 16:20:45
|
|
20989
21061
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
20990
|
-
* @LastEditTime: 2025-08-
|
|
21062
|
+
* @LastEditTime: 2025-08-29 01:56:00
|
|
20991
21063
|
* @Description:
|
|
20992
21064
|
*/
|
|
20993
21065
|
|
|
@@ -21034,7 +21106,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
21034
21106
|
},
|
|
21035
21107
|
{
|
|
21036
21108
|
"type": "button",
|
|
21037
|
-
"label": "签批",
|
|
21109
|
+
"label": instance.t('frontend_workflow_instance_button_sign'),//"签批",
|
|
21038
21110
|
"level": "link",
|
|
21039
21111
|
"id": "u:2592111d236d",
|
|
21040
21112
|
"block": false,
|
|
@@ -21059,7 +21131,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
21059
21131
|
"minRows": 6,
|
|
21060
21132
|
"maxRows": 20,
|
|
21061
21133
|
"mode": "normal",
|
|
21062
|
-
"placeholder": "请填写意见"
|
|
21134
|
+
"placeholder": instance.t('frontend_workflow_suggestion_placeholder'),//"请填写意见"
|
|
21063
21135
|
},
|
|
21064
21136
|
{
|
|
21065
21137
|
"type": "grid",
|
|
@@ -21068,15 +21140,15 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
21068
21140
|
"body": [
|
|
21069
21141
|
{
|
|
21070
21142
|
"type": "button",
|
|
21071
|
-
"label": "已阅",
|
|
21143
|
+
"label": instance.t('frontend_workflow_approval_judge_readed'),//"已阅",
|
|
21072
21144
|
"onEvent": {
|
|
21073
21145
|
"click": {
|
|
21074
21146
|
"actions": [
|
|
21075
21147
|
{
|
|
21076
21148
|
"componentId": "u:1d5a60623000",
|
|
21077
21149
|
"args": {
|
|
21078
|
-
"valueInput": "已阅",
|
|
21079
|
-
"value": "已阅"
|
|
21150
|
+
"valueInput": instance.t('frontend_workflow_approval_judge_readed'),//"已阅",
|
|
21151
|
+
"value": instance.t('frontend_workflow_approval_judge_readed')//"已阅"
|
|
21080
21152
|
},
|
|
21081
21153
|
"actionType": "setValue"
|
|
21082
21154
|
}
|
|
@@ -21089,15 +21161,15 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
21089
21161
|
},
|
|
21090
21162
|
{
|
|
21091
21163
|
"type": "button",
|
|
21092
|
-
"label": "已办",
|
|
21164
|
+
"label": instance.t('frontend_workflow_approval_suggestion_completed'),//"已办",
|
|
21093
21165
|
"onEvent": {
|
|
21094
21166
|
"click": {
|
|
21095
21167
|
"actions": [
|
|
21096
21168
|
{
|
|
21097
21169
|
"componentId": "u:1d5a60623000",
|
|
21098
21170
|
"args": {
|
|
21099
|
-
"valueInput": "已办",
|
|
21100
|
-
"value": "已办"
|
|
21171
|
+
"valueInput": instance.t('frontend_workflow_approval_suggestion_completed'),//"已办",
|
|
21172
|
+
"value": instance.t('frontend_workflow_approval_suggestion_completed')//"已办",
|
|
21101
21173
|
},
|
|
21102
21174
|
"actionType": "setValue"
|
|
21103
21175
|
}
|
|
@@ -21110,15 +21182,15 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
21110
21182
|
},
|
|
21111
21183
|
{
|
|
21112
21184
|
"type": "button",
|
|
21113
|
-
"label": "同意",
|
|
21185
|
+
"label": instance.t('frontend_workflow_approval_suggestion_agree'),//"同意",
|
|
21114
21186
|
"onEvent": {
|
|
21115
21187
|
"click": {
|
|
21116
21188
|
"actions": [
|
|
21117
21189
|
{
|
|
21118
21190
|
"componentId": "u:1d5a60623000",
|
|
21119
21191
|
"args": {
|
|
21120
|
-
"valueInput": "同意"
|
|
21121
|
-
"value": "同意"
|
|
21192
|
+
"valueInput": instance.t('frontend_workflow_approval_suggestion_agree'),//"同意"
|
|
21193
|
+
"value": instance.t('frontend_workflow_approval_suggestion_agree')//"同意"
|
|
21122
21194
|
},
|
|
21123
21195
|
"actionType": "setValue"
|
|
21124
21196
|
}
|
|
@@ -21131,7 +21203,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
21131
21203
|
},
|
|
21132
21204
|
{
|
|
21133
21205
|
"type": "button",
|
|
21134
|
-
"label": "
|
|
21206
|
+
"label": instance.t('frontend_workflow_approval_suggestion_other'),//"同意"
|
|
21135
21207
|
"onEvent": {
|
|
21136
21208
|
"click": {
|
|
21137
21209
|
"actions": []
|
|
@@ -21158,7 +21230,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
21158
21230
|
"actions": [
|
|
21159
21231
|
{
|
|
21160
21232
|
"type": "button",
|
|
21161
|
-
"label": "
|
|
21233
|
+
"label": "${'OK' | t}",
|
|
21162
21234
|
"onEvent": {
|
|
21163
21235
|
"click": {
|
|
21164
21236
|
"actions": [
|
|
@@ -21183,7 +21255,7 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
21183
21255
|
},
|
|
21184
21256
|
{
|
|
21185
21257
|
"type": "button",
|
|
21186
|
-
"label": "
|
|
21258
|
+
"label": "${'Cancel' | t}",
|
|
21187
21259
|
"onEvent": {
|
|
21188
21260
|
"click": {
|
|
21189
21261
|
"actions": [
|
|
@@ -21349,6 +21421,8 @@ const getFieldEditTpl = async (field, label)=>{
|
|
|
21349
21421
|
tpl.editable = tpl.addable;
|
|
21350
21422
|
tpl.copyable = tpl.addable;
|
|
21351
21423
|
tpl.removable = tpl.addable;
|
|
21424
|
+
// tpl.fieldPrefix = field.name + "_";
|
|
21425
|
+
tpl.autoGeneratePrimaryKeyValue = true;
|
|
21352
21426
|
tpl.fields = [];
|
|
21353
21427
|
if(tpl.editable){
|
|
21354
21428
|
tpl.className = `${tpl.className || ''} steedos-input-table-editable`;
|
|
@@ -21652,7 +21726,7 @@ const getFormWizardView = async (instance) => {
|
|
|
21652
21726
|
className: "instance-form-view-wizard pt-4",
|
|
21653
21727
|
steps: await getFormSteps(instance),
|
|
21654
21728
|
actionFinishLabel: "${'CustomAction.instances.instance_save' | t}",//"保存",
|
|
21655
|
-
id: "
|
|
21729
|
+
id: "instance_wizard",
|
|
21656
21730
|
target: "instance_form",
|
|
21657
21731
|
"onEvent": {
|
|
21658
21732
|
"change": {
|
|
@@ -21807,14 +21881,14 @@ const getApproveButton = async (instance$1)=>{
|
|
|
21807
21881
|
}
|
|
21808
21882
|
};
|
|
21809
21883
|
|
|
21810
|
-
const getFlowFormSchema = async (instance, box) => {
|
|
21811
|
-
const formStyle = instance.form.current.style || "table";
|
|
21884
|
+
const getFlowFormSchema = async (instance$1, box) => {
|
|
21885
|
+
const formStyle = instance$1.form.current.style || "table";
|
|
21812
21886
|
let formContentSchema;
|
|
21813
21887
|
if (formStyle === "wizard") {
|
|
21814
|
-
formContentSchema = await getFormWizardView(instance);
|
|
21888
|
+
formContentSchema = await getFormWizardView(instance$1);
|
|
21815
21889
|
}
|
|
21816
21890
|
else {
|
|
21817
|
-
formContentSchema = await getFormTableView(instance);
|
|
21891
|
+
formContentSchema = await getFormTableView(instance$1);
|
|
21818
21892
|
}
|
|
21819
21893
|
return {
|
|
21820
21894
|
type: "page",
|
|
@@ -21826,7 +21900,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21826
21900
|
"type": "steedos-record-detail-header",
|
|
21827
21901
|
"label": "标题面板",
|
|
21828
21902
|
"objectApiName": "instances",
|
|
21829
|
-
"recordId": instance._id,
|
|
21903
|
+
"recordId": instance$1._id,
|
|
21830
21904
|
"id": "u:e6b2adbe0e21",
|
|
21831
21905
|
"showRecordTitle": false,
|
|
21832
21906
|
"className": "p-0 m-0 p0 m0 bg-gray-50"
|
|
@@ -21871,9 +21945,9 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21871
21945
|
}
|
|
21872
21946
|
},
|
|
21873
21947
|
body: [
|
|
21874
|
-
await getAttachments(instance),
|
|
21948
|
+
await getAttachments(instance$1),
|
|
21875
21949
|
await getRelatedInstances(),
|
|
21876
|
-
await getRelatedRecords(instance),
|
|
21950
|
+
await getRelatedRecords(instance$1),
|
|
21877
21951
|
{
|
|
21878
21952
|
type: "form",
|
|
21879
21953
|
debug: false,
|
|
@@ -21883,7 +21957,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21883
21957
|
{
|
|
21884
21958
|
type: "tpl",
|
|
21885
21959
|
id: "u:f5bb0ad602a6",
|
|
21886
|
-
tpl: `<div class="instance-name">${instance.title}</div>`,
|
|
21960
|
+
tpl: `<div class="instance-name">${instance$1.title}</div>`,
|
|
21887
21961
|
inline: true,
|
|
21888
21962
|
wrapperComponent: "",
|
|
21889
21963
|
style: {
|
|
@@ -21893,7 +21967,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21893
21967
|
},
|
|
21894
21968
|
},
|
|
21895
21969
|
formContentSchema,
|
|
21896
|
-
await getApplicantTableView(instance),
|
|
21970
|
+
await getApplicantTableView(instance$1),
|
|
21897
21971
|
|
|
21898
21972
|
],
|
|
21899
21973
|
id: "instance_form",
|
|
@@ -21908,8 +21982,8 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21908
21982
|
"position": "top-right",
|
|
21909
21983
|
"closeButton": true,
|
|
21910
21984
|
"showIcon": true,
|
|
21911
|
-
"title": "提交失败",
|
|
21912
|
-
"msg": "请填写必填字段"
|
|
21985
|
+
"title": instance.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
|
|
21986
|
+
"msg": instance.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
|
|
21913
21987
|
},
|
|
21914
21988
|
"actionType": "toast"
|
|
21915
21989
|
}
|
|
@@ -21929,7 +22003,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21929
22003
|
}
|
|
21930
22004
|
},
|
|
21931
22005
|
await getInstanceApprovalHistory(),
|
|
21932
|
-
await getApproveButton(instance)
|
|
22006
|
+
await getApproveButton(instance$1)
|
|
21933
22007
|
],
|
|
21934
22008
|
id: "u:63849ea39e12",
|
|
21935
22009
|
messages: {},
|
|
@@ -21986,7 +22060,7 @@ const getFlowFormSchema = async (instance, box) => {
|
|
|
21986
22060
|
api.data = {
|
|
21987
22061
|
query: \`
|
|
21988
22062
|
{
|
|
21989
|
-
instance: instances__findOne(id:"${instance._id}"){
|
|
22063
|
+
instance: instances__findOne(id:"${instance$1._id}"){
|
|
21990
22064
|
related_instances: related_instances__expand{
|
|
21991
22065
|
_id,
|
|
21992
22066
|
name
|