@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.
@@ -323,7 +323,7 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
323
323
  columns: ({
324
324
  body: {
325
325
  type: string;
326
- tpl: string;
326
+ tpl: any;
327
327
  inline: boolean;
328
328
  wrapperComponent: string;
329
329
  id: string;
@@ -401,7 +401,7 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
401
401
  id: string;
402
402
  minRows: number;
403
403
  maxRows: number;
404
- placeholder: string;
404
+ placeholder: any;
405
405
  requiredOn: string;
406
406
  })[];
407
407
  onEvent: {
@@ -421,8 +421,8 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
421
421
  position: string;
422
422
  closeButton: boolean;
423
423
  showIcon: boolean;
424
- title: string;
425
- msg: string;
424
+ title: any;
425
+ msg: any;
426
426
  };
427
427
  actionType: string;
428
428
  }[];
@@ -663,8 +663,8 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
663
663
  position: string;
664
664
  closeButton: boolean;
665
665
  showIcon: boolean;
666
- title: string;
667
- msg: string;
666
+ title: any;
667
+ msg: any;
668
668
  };
669
669
  actionType: string;
670
670
  }[];
@@ -4779,8 +4779,24 @@ var frontend_app_launcher_dialog_new_app_name_label$1 = "Label";
4779
4779
  var frontend_app_launcher_dialog_new_app_icon_label$1 = "Icon";
4780
4780
  var frontend_crud_toolbar_quick_search_placeholder$1 = "Quick Search";
4781
4781
  var frontend_crud_toolbar_quick_search_tooltip_prefix$1 = "Searchable fields:";
4782
+ var frontend_lookup_left_tree_search_organizations$1 = "Search for organizations";
4782
4783
  var frontend_workflow_instances_applicant_name_prefix$1 = "Applicant name:";
4783
4784
  var frontend_workflow_instance_submit_date_prefix$1 = "Submission date:";
4785
+ var frontend_workflow_approval_judge_returned$1 = "Returned";
4786
+ var frontend_workflow_approval_judge_terminated$1 = "Cancelled";
4787
+ var frontend_workflow_approval_judge_pending$1 = "In Progress";
4788
+ var frontend_workflow_approval_judge_approved$1 = "Approved";
4789
+ var frontend_workflow_approval_judge_rejected$1 = "Rejected";
4790
+ var frontend_workflow_approval_judge_finished$1 = "Completed";
4791
+ var frontend_workflow_approval_judge_reassigned$1 = "Reassigned";
4792
+ var frontend_workflow_approval_judge_inhand$1 = "In Progress";
4793
+ var frontend_workflow_approval_judge_relocated$1 = "Relocate";
4794
+ var frontend_workflow_approval_judge_readed$1 = "Read";
4795
+ var frontend_workflow_approval_suggestion_readed$1 = "Read";
4796
+ var frontend_workflow_approval_suggestion_completed$1 = "Done";
4797
+ var frontend_workflow_approval_suggestion_agree$1 = "Agree";
4798
+ var frontend_workflow_approval_suggestion_other$1 = "Select opinions";
4799
+ var frontend_workflow_suggestion_placeholder$1 = "Please fill in your comments.";
4784
4800
  var frontend_workflow_instance_button_sign$1 = "Sign";
4785
4801
  var frontend_workflow_approval_history$1 = "Approval History";
4786
4802
  var frontend_workflow_approval_history_read$1 = "Read";
@@ -4792,6 +4808,10 @@ var frontend_workflow_judge_option_approved$1 = "Approved";
4792
4808
  var frontend_workflow_judge_option_rejected$1 = "Rejected";
4793
4809
  var frontend_workflow_judge_option_readed$1 = "Readed";
4794
4810
  var frontend_workflow_next_step$1 = "Next Step";
4811
+ var frontend_workflow_next_users$1 = "To";
4812
+ var frontend_workflow_submit_validate_error_title$1 = "Submission failed";
4813
+ var frontend_workflow_submit_validate_error_msg$1 = "Please fill in the required fields";
4814
+ var frontend_workflow_related_records_link_title$1 = "Related Records";
4795
4815
  var en_us$1 = {
4796
4816
  frontend_field_group_generalization: frontend_field_group_generalization$1,
4797
4817
  frontend_download: frontend_download$1,
@@ -4911,8 +4931,24 @@ var en_us$1 = {
4911
4931
  frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label$1,
4912
4932
  frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder$1,
4913
4933
  frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix$1,
4934
+ frontend_lookup_left_tree_search_organizations: frontend_lookup_left_tree_search_organizations$1,
4914
4935
  frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix$1,
4915
4936
  frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix$1,
4937
+ frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned$1,
4938
+ frontend_workflow_approval_judge_terminated: frontend_workflow_approval_judge_terminated$1,
4939
+ frontend_workflow_approval_judge_pending: frontend_workflow_approval_judge_pending$1,
4940
+ frontend_workflow_approval_judge_approved: frontend_workflow_approval_judge_approved$1,
4941
+ frontend_workflow_approval_judge_rejected: frontend_workflow_approval_judge_rejected$1,
4942
+ frontend_workflow_approval_judge_finished: frontend_workflow_approval_judge_finished$1,
4943
+ frontend_workflow_approval_judge_reassigned: frontend_workflow_approval_judge_reassigned$1,
4944
+ frontend_workflow_approval_judge_inhand: frontend_workflow_approval_judge_inhand$1,
4945
+ frontend_workflow_approval_judge_relocated: frontend_workflow_approval_judge_relocated$1,
4946
+ frontend_workflow_approval_judge_readed: frontend_workflow_approval_judge_readed$1,
4947
+ frontend_workflow_approval_suggestion_readed: frontend_workflow_approval_suggestion_readed$1,
4948
+ frontend_workflow_approval_suggestion_completed: frontend_workflow_approval_suggestion_completed$1,
4949
+ frontend_workflow_approval_suggestion_agree: frontend_workflow_approval_suggestion_agree$1,
4950
+ frontend_workflow_approval_suggestion_other: frontend_workflow_approval_suggestion_other$1,
4951
+ frontend_workflow_suggestion_placeholder: frontend_workflow_suggestion_placeholder$1,
4916
4952
  frontend_workflow_instance_button_sign: frontend_workflow_instance_button_sign$1,
4917
4953
  frontend_workflow_approval_history: frontend_workflow_approval_history$1,
4918
4954
  frontend_workflow_approval_history_read: frontend_workflow_approval_history_read$1,
@@ -4923,7 +4959,11 @@ var en_us$1 = {
4923
4959
  frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved$1,
4924
4960
  frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected$1,
4925
4961
  frontend_workflow_judge_option_readed: frontend_workflow_judge_option_readed$1,
4926
- frontend_workflow_next_step: frontend_workflow_next_step$1
4962
+ frontend_workflow_next_step: frontend_workflow_next_step$1,
4963
+ frontend_workflow_next_users: frontend_workflow_next_users$1,
4964
+ frontend_workflow_submit_validate_error_title: frontend_workflow_submit_validate_error_title$1,
4965
+ frontend_workflow_submit_validate_error_msg: frontend_workflow_submit_validate_error_msg$1,
4966
+ frontend_workflow_related_records_link_title: frontend_workflow_related_records_link_title$1
4927
4967
  };
4928
4968
 
4929
4969
  var frontend_field_group_generalization = "通用";
@@ -5045,6 +5085,7 @@ var frontend_app_launcher_dialog_new_app_name_label = "显示名称";
5045
5085
  var frontend_app_launcher_dialog_new_app_icon_label = "图标";
5046
5086
  var frontend_crud_toolbar_quick_search_placeholder = "快捷搜索";
5047
5087
  var frontend_crud_toolbar_quick_search_tooltip_prefix = "可搜索字段:";
5088
+ var frontend_lookup_left_tree_search_organizations = "查找部门";
5048
5089
  var frontend_workflow_instances_applicant_name_prefix = "提交人:";
5049
5090
  var frontend_workflow_instance_submit_date_prefix = "提交日期:";
5050
5091
  var frontend_workflow_approval_judge_returned = "已退回";
@@ -5057,6 +5098,11 @@ var frontend_workflow_approval_judge_reassigned = "转签核";
5057
5098
  var frontend_workflow_approval_judge_inhand = "处理中";
5058
5099
  var frontend_workflow_approval_judge_relocated = "重定位";
5059
5100
  var frontend_workflow_approval_judge_readed = "已阅";
5101
+ var frontend_workflow_approval_suggestion_readed = "已阅";
5102
+ var frontend_workflow_approval_suggestion_completed = "已办";
5103
+ var frontend_workflow_approval_suggestion_agree = "同意";
5104
+ var frontend_workflow_approval_suggestion_other = "其他常用意见";
5105
+ var frontend_workflow_suggestion_placeholder = "请填写意见";
5060
5106
  var frontend_workflow_instance_button_sign = "签批";
5061
5107
  var frontend_workflow_approval_history = "签批历程";
5062
5108
  var frontend_workflow_approval_history_read = "已读";
@@ -5068,6 +5114,10 @@ var frontend_workflow_judge_option_approved = "核准";
5068
5114
  var frontend_workflow_judge_option_rejected = "驳回";
5069
5115
  var frontend_workflow_judge_option_readed = "已阅";
5070
5116
  var frontend_workflow_next_step = "下一步";
5117
+ var frontend_workflow_next_users = "处理人";
5118
+ var frontend_workflow_submit_validate_error_title = "提交失败";
5119
+ var frontend_workflow_submit_validate_error_msg = "请填写必填字段";
5120
+ var frontend_workflow_related_records_link_title = "相关台账信息";
5071
5121
  var zh_cn$1 = {
5072
5122
  frontend_field_group_generalization: frontend_field_group_generalization,
5073
5123
  frontend_download: frontend_download,
@@ -5188,6 +5238,7 @@ var zh_cn$1 = {
5188
5238
  frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label,
5189
5239
  frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder,
5190
5240
  frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix,
5241
+ frontend_lookup_left_tree_search_organizations: frontend_lookup_left_tree_search_organizations,
5191
5242
  frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix,
5192
5243
  frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix,
5193
5244
  frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned,
@@ -5200,6 +5251,11 @@ var zh_cn$1 = {
5200
5251
  frontend_workflow_approval_judge_inhand: frontend_workflow_approval_judge_inhand,
5201
5252
  frontend_workflow_approval_judge_relocated: frontend_workflow_approval_judge_relocated,
5202
5253
  frontend_workflow_approval_judge_readed: frontend_workflow_approval_judge_readed,
5254
+ frontend_workflow_approval_suggestion_readed: frontend_workflow_approval_suggestion_readed,
5255
+ frontend_workflow_approval_suggestion_completed: frontend_workflow_approval_suggestion_completed,
5256
+ frontend_workflow_approval_suggestion_agree: frontend_workflow_approval_suggestion_agree,
5257
+ frontend_workflow_approval_suggestion_other: frontend_workflow_approval_suggestion_other,
5258
+ frontend_workflow_suggestion_placeholder: frontend_workflow_suggestion_placeholder,
5203
5259
  frontend_workflow_instance_button_sign: frontend_workflow_instance_button_sign,
5204
5260
  frontend_workflow_approval_history: frontend_workflow_approval_history,
5205
5261
  frontend_workflow_approval_history_read: frontend_workflow_approval_history_read,
@@ -5210,7 +5266,11 @@ var zh_cn$1 = {
5210
5266
  frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved,
5211
5267
  frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected,
5212
5268
  frontend_workflow_judge_option_readed: frontend_workflow_judge_option_readed,
5213
- frontend_workflow_next_step: frontend_workflow_next_step
5269
+ frontend_workflow_next_step: frontend_workflow_next_step,
5270
+ frontend_workflow_next_users: frontend_workflow_next_users,
5271
+ frontend_workflow_submit_validate_error_title: frontend_workflow_submit_validate_error_title,
5272
+ frontend_workflow_submit_validate_error_msg: frontend_workflow_submit_validate_error_msg,
5273
+ frontend_workflow_related_records_link_title: frontend_workflow_related_records_link_title
5214
5274
  };
5215
5275
 
5216
5276
  /*
@@ -15461,7 +15521,7 @@ function getLookupSapceUserTreeSchema(isMobile){
15461
15521
  "searchable": true,
15462
15522
  "searchConfig": {
15463
15523
  "sticky": true,
15464
- "placeholder": "查找部门"
15524
+ "placeholder": instance.t('frontend_lookup_left_tree_search_organizations')
15465
15525
  },
15466
15526
  "unfoldedLevel": 2,
15467
15527
  "originPosition": "left-top"
@@ -20377,8 +20437,8 @@ const getNextStepInput = async (instance$1) => {
20377
20437
  };
20378
20438
 
20379
20439
  //TODO 只有一个处理人时,默认选中,禁止修改. 部分情况不需要显示下一步处理人
20380
- const getNextStepUsersInput = async (instance) => {
20381
- if(instance.approve?.type == 'cc'){
20440
+ const getNextStepUsersInput = async (instance$1) => {
20441
+ if(instance$1.approve?.type == 'cc'){
20382
20442
  return ;
20383
20443
  }
20384
20444
  return {
@@ -20388,7 +20448,7 @@ const getNextStepUsersInput = async (instance) => {
20388
20448
  body: [
20389
20449
  {
20390
20450
  type: "tpl",
20391
- tpl: "处理人",
20451
+ tpl: instance.t('frontend_workflow_next_users'),//"处理人",
20392
20452
  inline: true,
20393
20453
  wrapperComponent: "",
20394
20454
  id: "u:3203cc281b3c",
@@ -20596,10 +20656,22 @@ const getSubmitActions = async (instance) => {
20596
20656
  "args": {},
20597
20657
  "actionType": "custom",
20598
20658
  "script": `
20659
+ const wizard = event.context.scoped.getComponentById("instance_wizard");
20599
20660
  const form = event.context.scoped.getComponentById("instance_form");
20600
- return form.validate().then((instanceFormValidate)=>{
20601
- event.setData({...event.data, instanceFormValidate})
20602
- })
20661
+
20662
+ // 1. 校验外层 form(直接表单项)
20663
+ let formValidatePromise = form.validate();
20664
+
20665
+ // 2. 校验 wizard(所有步骤数据)
20666
+ let wizardValidatePromise = wizard?.form?.validate
20667
+ ? wizard.form.validate()
20668
+ : Promise.resolve(true);
20669
+
20670
+ return Promise.all([formValidatePromise, wizardValidatePromise]).then(([formValid, wizardValid]) => {
20671
+ const allValid = formValid && wizardValid;
20672
+ event.setData({...event.data, instanceFormValidate: allValid});
20673
+ return allValid;
20674
+ });
20603
20675
  `
20604
20676
  },
20605
20677
  // 校验审批表单
@@ -20654,7 +20726,7 @@ const getSubmitActions = async (instance) => {
20654
20726
  ];
20655
20727
  };
20656
20728
 
20657
- const getApprovalDrawerSchema = async (instance) => {
20729
+ const getApprovalDrawerSchema = async (instance$1) => {
20658
20730
  return {
20659
20731
  type: "drawer",
20660
20732
  overlay: false,
@@ -20662,7 +20734,7 @@ const getApprovalDrawerSchema = async (instance) => {
20662
20734
  closeOnEsc: true,
20663
20735
  closeOnOutside: false,
20664
20736
  size: "sm",
20665
- title: `${instance.step.name}`,
20737
+ title: `${instance$1.step.name}`,
20666
20738
  className: "approval-drawer absolute",
20667
20739
  headerClassName: 'p-2',
20668
20740
  bodyClassName: 'p-2',
@@ -20677,13 +20749,13 @@ const getApprovalDrawerSchema = async (instance) => {
20677
20749
  id: "instance_approval",
20678
20750
  resetAfterSubmit: true,
20679
20751
  clearPersistDataAfterSubmit: true,
20680
- persistData: `workflow_approve_form_${instance.approve._id}`,
20752
+ persistData: `workflow_approve_form_${instance$1.approve._id}`,
20681
20753
  body: [
20682
20754
  {
20683
20755
  type: 'hidden',
20684
20756
  name: 'new_next_step'
20685
20757
  },
20686
- await getJudgeInput(instance),
20758
+ await getJudgeInput(instance$1),
20687
20759
  {
20688
20760
  type: "textarea",
20689
20761
  label: false,
@@ -20691,11 +20763,11 @@ const getApprovalDrawerSchema = async (instance) => {
20691
20763
  id: "u:cd344f708ddc",
20692
20764
  minRows: 3,
20693
20765
  maxRows: 20,
20694
- placeholder: "请填写意见",
20766
+ placeholder: instance.t('frontend_workflow_suggestion_placeholder'),//"请填写意见",
20695
20767
  requiredOn: "${judge === 'rejected'}"
20696
20768
  },
20697
- await getNextStepInput(instance),
20698
- await getNextStepUsersInput(instance),
20769
+ await getNextStepInput(instance$1),
20770
+ await getNextStepUsersInput(instance$1),
20699
20771
  ],
20700
20772
  onEvent: {
20701
20773
  "approve_judge_change": {
@@ -20728,8 +20800,8 @@ const getApprovalDrawerSchema = async (instance) => {
20728
20800
  "position": "top-right",
20729
20801
  "closeButton": true,
20730
20802
  "showIcon": true,
20731
- "title": "提交失败",
20732
- "msg": "请填写必填字段"
20803
+ "title": instance.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
20804
+ "msg": instance.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
20733
20805
  },
20734
20806
  "actionType": "toast"
20735
20807
  }
@@ -20747,7 +20819,7 @@ const getApprovalDrawerSchema = async (instance) => {
20747
20819
  label: "${'Submit' | t}",
20748
20820
  onEvent: {
20749
20821
  click: {
20750
- actions: await getSubmitActions(instance),
20822
+ actions: await getSubmitActions(instance$1),
20751
20823
  },
20752
20824
  },
20753
20825
  id: "u:f6f8c3933f6c",
@@ -21015,7 +21087,7 @@ const getInstanceApprovalHistory = async ()=>{
21015
21087
  * @Author: baozhoutao@steedos.com
21016
21088
  * @Date: 2022-09-07 16:20:45
21017
21089
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
21018
- * @LastEditTime: 2025-08-28 02:36:59
21090
+ * @LastEditTime: 2025-08-29 01:56:00
21019
21091
  * @Description:
21020
21092
  */
21021
21093
 
@@ -21062,7 +21134,7 @@ const getFieldEditTpl = async (field, label)=>{
21062
21134
  },
21063
21135
  {
21064
21136
  "type": "button",
21065
- "label": "签批",
21137
+ "label": instance.t('frontend_workflow_instance_button_sign'),//"签批",
21066
21138
  "level": "link",
21067
21139
  "id": "u:2592111d236d",
21068
21140
  "block": false,
@@ -21087,7 +21159,7 @@ const getFieldEditTpl = async (field, label)=>{
21087
21159
  "minRows": 6,
21088
21160
  "maxRows": 20,
21089
21161
  "mode": "normal",
21090
- "placeholder": "请填写意见"
21162
+ "placeholder": instance.t('frontend_workflow_suggestion_placeholder'),//"请填写意见"
21091
21163
  },
21092
21164
  {
21093
21165
  "type": "grid",
@@ -21096,15 +21168,15 @@ const getFieldEditTpl = async (field, label)=>{
21096
21168
  "body": [
21097
21169
  {
21098
21170
  "type": "button",
21099
- "label": "已阅",
21171
+ "label": instance.t('frontend_workflow_approval_judge_readed'),//"已阅",
21100
21172
  "onEvent": {
21101
21173
  "click": {
21102
21174
  "actions": [
21103
21175
  {
21104
21176
  "componentId": "u:1d5a60623000",
21105
21177
  "args": {
21106
- "valueInput": "已阅",
21107
- "value": "已阅"
21178
+ "valueInput": instance.t('frontend_workflow_approval_judge_readed'),//"已阅",
21179
+ "value": instance.t('frontend_workflow_approval_judge_readed')//"已阅"
21108
21180
  },
21109
21181
  "actionType": "setValue"
21110
21182
  }
@@ -21117,15 +21189,15 @@ const getFieldEditTpl = async (field, label)=>{
21117
21189
  },
21118
21190
  {
21119
21191
  "type": "button",
21120
- "label": "已办",
21192
+ "label": instance.t('frontend_workflow_approval_suggestion_completed'),//"已办",
21121
21193
  "onEvent": {
21122
21194
  "click": {
21123
21195
  "actions": [
21124
21196
  {
21125
21197
  "componentId": "u:1d5a60623000",
21126
21198
  "args": {
21127
- "valueInput": "已办",
21128
- "value": "已办"
21199
+ "valueInput": instance.t('frontend_workflow_approval_suggestion_completed'),//"已办",
21200
+ "value": instance.t('frontend_workflow_approval_suggestion_completed')//"已办",
21129
21201
  },
21130
21202
  "actionType": "setValue"
21131
21203
  }
@@ -21138,15 +21210,15 @@ const getFieldEditTpl = async (field, label)=>{
21138
21210
  },
21139
21211
  {
21140
21212
  "type": "button",
21141
- "label": "同意",
21213
+ "label": instance.t('frontend_workflow_approval_suggestion_agree'),//"同意",
21142
21214
  "onEvent": {
21143
21215
  "click": {
21144
21216
  "actions": [
21145
21217
  {
21146
21218
  "componentId": "u:1d5a60623000",
21147
21219
  "args": {
21148
- "valueInput": "同意",
21149
- "value": "同意"
21220
+ "valueInput": instance.t('frontend_workflow_approval_suggestion_agree'),//"同意"
21221
+ "value": instance.t('frontend_workflow_approval_suggestion_agree')//"同意"
21150
21222
  },
21151
21223
  "actionType": "setValue"
21152
21224
  }
@@ -21159,7 +21231,7 @@ const getFieldEditTpl = async (field, label)=>{
21159
21231
  },
21160
21232
  {
21161
21233
  "type": "button",
21162
- "label": "其他常用意见",
21234
+ "label": instance.t('frontend_workflow_approval_suggestion_other'),//"同意"
21163
21235
  "onEvent": {
21164
21236
  "click": {
21165
21237
  "actions": []
@@ -21186,7 +21258,7 @@ const getFieldEditTpl = async (field, label)=>{
21186
21258
  "actions": [
21187
21259
  {
21188
21260
  "type": "button",
21189
- "label": "确认",
21261
+ "label": "${'OK' | t}",
21190
21262
  "onEvent": {
21191
21263
  "click": {
21192
21264
  "actions": [
@@ -21211,7 +21283,7 @@ const getFieldEditTpl = async (field, label)=>{
21211
21283
  },
21212
21284
  {
21213
21285
  "type": "button",
21214
- "label": "取消",
21286
+ "label": "${'Cancel' | t}",
21215
21287
  "onEvent": {
21216
21288
  "click": {
21217
21289
  "actions": [
@@ -21377,6 +21449,8 @@ const getFieldEditTpl = async (field, label)=>{
21377
21449
  tpl.editable = tpl.addable;
21378
21450
  tpl.copyable = tpl.addable;
21379
21451
  tpl.removable = tpl.addable;
21452
+ // tpl.fieldPrefix = field.name + "_";
21453
+ tpl.autoGeneratePrimaryKeyValue = true;
21380
21454
  tpl.fields = [];
21381
21455
  if(tpl.editable){
21382
21456
  tpl.className = `${tpl.className || ''} steedos-input-table-editable`;
@@ -21680,7 +21754,7 @@ const getFormWizardView = async (instance) => {
21680
21754
  className: "instance-form-view-wizard pt-4",
21681
21755
  steps: await getFormSteps(instance),
21682
21756
  actionFinishLabel: "${'CustomAction.instances.instance_save' | t}",//"保存",
21683
- id: "u:instance_wizard",
21757
+ id: "instance_wizard",
21684
21758
  target: "instance_form",
21685
21759
  "onEvent": {
21686
21760
  "change": {
@@ -21835,14 +21909,14 @@ const getApproveButton = async (instance$1)=>{
21835
21909
  }
21836
21910
  };
21837
21911
 
21838
- const getFlowFormSchema = async (instance, box) => {
21839
- const formStyle = instance.form.current.style || "table";
21912
+ const getFlowFormSchema = async (instance$1, box) => {
21913
+ const formStyle = instance$1.form.current.style || "table";
21840
21914
  let formContentSchema;
21841
21915
  if (formStyle === "wizard") {
21842
- formContentSchema = await getFormWizardView(instance);
21916
+ formContentSchema = await getFormWizardView(instance$1);
21843
21917
  }
21844
21918
  else {
21845
- formContentSchema = await getFormTableView(instance);
21919
+ formContentSchema = await getFormTableView(instance$1);
21846
21920
  }
21847
21921
  return {
21848
21922
  type: "page",
@@ -21854,7 +21928,7 @@ const getFlowFormSchema = async (instance, box) => {
21854
21928
  "type": "steedos-record-detail-header",
21855
21929
  "label": "标题面板",
21856
21930
  "objectApiName": "instances",
21857
- "recordId": instance._id,
21931
+ "recordId": instance$1._id,
21858
21932
  "id": "u:e6b2adbe0e21",
21859
21933
  "showRecordTitle": false,
21860
21934
  "className": "p-0 m-0 p0 m0 bg-gray-50"
@@ -21899,9 +21973,9 @@ const getFlowFormSchema = async (instance, box) => {
21899
21973
  }
21900
21974
  },
21901
21975
  body: [
21902
- await getAttachments(instance),
21976
+ await getAttachments(instance$1),
21903
21977
  await getRelatedInstances(),
21904
- await getRelatedRecords(instance),
21978
+ await getRelatedRecords(instance$1),
21905
21979
  {
21906
21980
  type: "form",
21907
21981
  debug: false,
@@ -21911,7 +21985,7 @@ const getFlowFormSchema = async (instance, box) => {
21911
21985
  {
21912
21986
  type: "tpl",
21913
21987
  id: "u:f5bb0ad602a6",
21914
- tpl: `<div class="instance-name">${instance.title}</div>`,
21988
+ tpl: `<div class="instance-name">${instance$1.title}</div>`,
21915
21989
  inline: true,
21916
21990
  wrapperComponent: "",
21917
21991
  style: {
@@ -21921,7 +21995,7 @@ const getFlowFormSchema = async (instance, box) => {
21921
21995
  },
21922
21996
  },
21923
21997
  formContentSchema,
21924
- await getApplicantTableView(instance),
21998
+ await getApplicantTableView(instance$1),
21925
21999
 
21926
22000
  ],
21927
22001
  id: "instance_form",
@@ -21936,8 +22010,8 @@ const getFlowFormSchema = async (instance, box) => {
21936
22010
  "position": "top-right",
21937
22011
  "closeButton": true,
21938
22012
  "showIcon": true,
21939
- "title": "提交失败",
21940
- "msg": "请填写必填字段"
22013
+ "title": instance.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
22014
+ "msg": instance.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
21941
22015
  },
21942
22016
  "actionType": "toast"
21943
22017
  }
@@ -21957,7 +22031,7 @@ const getFlowFormSchema = async (instance, box) => {
21957
22031
  }
21958
22032
  },
21959
22033
  await getInstanceApprovalHistory(),
21960
- await getApproveButton(instance)
22034
+ await getApproveButton(instance$1)
21961
22035
  ],
21962
22036
  id: "u:63849ea39e12",
21963
22037
  messages: {},
@@ -22014,7 +22088,7 @@ const getFlowFormSchema = async (instance, box) => {
22014
22088
  api.data = {
22015
22089
  query: \`
22016
22090
  {
22017
- instance: instances__findOne(id:"${instance._id}"){
22091
+ instance: instances__findOne(id:"${instance$1._id}"){
22018
22092
  related_instances: related_instances__expand{
22019
22093
  _id,
22020
22094
  name