@steedos-widgets/amis-object 6.10.1-beta.50 → 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.
@@ -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
- return form.validate().then((instanceFormValidate)=>{
20573
- event.setData({...event.data, instanceFormValidate})
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-28 02:36:59
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": [
@@ -21654,7 +21726,7 @@ const getFormWizardView = async (instance) => {
21654
21726
  className: "instance-form-view-wizard pt-4",
21655
21727
  steps: await getFormSteps(instance),
21656
21728
  actionFinishLabel: "${'CustomAction.instances.instance_save' | t}",//"保存",
21657
- id: "u:instance_wizard",
21729
+ id: "instance_wizard",
21658
21730
  target: "instance_form",
21659
21731
  "onEvent": {
21660
21732
  "change": {
@@ -21809,14 +21881,14 @@ const getApproveButton = async (instance$1)=>{
21809
21881
  }
21810
21882
  };
21811
21883
 
21812
- const getFlowFormSchema = async (instance, box) => {
21813
- const formStyle = instance.form.current.style || "table";
21884
+ const getFlowFormSchema = async (instance$1, box) => {
21885
+ const formStyle = instance$1.form.current.style || "table";
21814
21886
  let formContentSchema;
21815
21887
  if (formStyle === "wizard") {
21816
- formContentSchema = await getFormWizardView(instance);
21888
+ formContentSchema = await getFormWizardView(instance$1);
21817
21889
  }
21818
21890
  else {
21819
- formContentSchema = await getFormTableView(instance);
21891
+ formContentSchema = await getFormTableView(instance$1);
21820
21892
  }
21821
21893
  return {
21822
21894
  type: "page",
@@ -21828,7 +21900,7 @@ const getFlowFormSchema = async (instance, box) => {
21828
21900
  "type": "steedos-record-detail-header",
21829
21901
  "label": "标题面板",
21830
21902
  "objectApiName": "instances",
21831
- "recordId": instance._id,
21903
+ "recordId": instance$1._id,
21832
21904
  "id": "u:e6b2adbe0e21",
21833
21905
  "showRecordTitle": false,
21834
21906
  "className": "p-0 m-0 p0 m0 bg-gray-50"
@@ -21873,9 +21945,9 @@ const getFlowFormSchema = async (instance, box) => {
21873
21945
  }
21874
21946
  },
21875
21947
  body: [
21876
- await getAttachments(instance),
21948
+ await getAttachments(instance$1),
21877
21949
  await getRelatedInstances(),
21878
- await getRelatedRecords(instance),
21950
+ await getRelatedRecords(instance$1),
21879
21951
  {
21880
21952
  type: "form",
21881
21953
  debug: false,
@@ -21885,7 +21957,7 @@ const getFlowFormSchema = async (instance, box) => {
21885
21957
  {
21886
21958
  type: "tpl",
21887
21959
  id: "u:f5bb0ad602a6",
21888
- tpl: `<div class="instance-name">${instance.title}</div>`,
21960
+ tpl: `<div class="instance-name">${instance$1.title}</div>`,
21889
21961
  inline: true,
21890
21962
  wrapperComponent: "",
21891
21963
  style: {
@@ -21895,7 +21967,7 @@ const getFlowFormSchema = async (instance, box) => {
21895
21967
  },
21896
21968
  },
21897
21969
  formContentSchema,
21898
- await getApplicantTableView(instance),
21970
+ await getApplicantTableView(instance$1),
21899
21971
 
21900
21972
  ],
21901
21973
  id: "instance_form",
@@ -21910,8 +21982,8 @@ const getFlowFormSchema = async (instance, box) => {
21910
21982
  "position": "top-right",
21911
21983
  "closeButton": true,
21912
21984
  "showIcon": true,
21913
- "title": "提交失败",
21914
- "msg": "请填写必填字段"
21985
+ "title": instance.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
21986
+ "msg": instance.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
21915
21987
  },
21916
21988
  "actionType": "toast"
21917
21989
  }
@@ -21931,7 +22003,7 @@ const getFlowFormSchema = async (instance, box) => {
21931
22003
  }
21932
22004
  },
21933
22005
  await getInstanceApprovalHistory(),
21934
- await getApproveButton(instance)
22006
+ await getApproveButton(instance$1)
21935
22007
  ],
21936
22008
  id: "u:63849ea39e12",
21937
22009
  messages: {},
@@ -21988,7 +22060,7 @@ const getFlowFormSchema = async (instance, box) => {
21988
22060
  api.data = {
21989
22061
  query: \`
21990
22062
  {
21991
- instance: instances__findOne(id:"${instance._id}"){
22063
+ instance: instances__findOne(id:"${instance$1._id}"){
21992
22064
  related_instances: related_instances__expand{
21993
22065
  _id,
21994
22066
  name