@steedos-widgets/amis-object 6.10.1-beta.50 → 6.10.1-beta.52

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.
@@ -33,7 +33,7 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
33
33
  ".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
34
34
  padding: string;
35
35
  };
36
- ".steedos-amis-instance-view .antd-Page-body": {
36
+ ".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
37
37
  width: string;
38
38
  };
39
39
  ".antd-List-placeholder": {
@@ -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
  }[];
@@ -587,7 +587,6 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
587
587
  className: string;
588
588
  steps: {
589
589
  title: any;
590
- mode: string;
591
590
  body: {
592
591
  label: any;
593
592
  name: any;
@@ -663,8 +662,8 @@ export declare const AmisInstanceDetail: (props: any) => Promise<{
663
662
  position: string;
664
663
  closeButton: boolean;
665
664
  showIcon: boolean;
666
- title: string;
667
- msg: string;
665
+ title: any;
666
+ msg: any;
668
667
  };
669
668
  actionType: string;
670
669
  }[];
@@ -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 21:01:29
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": [
@@ -21621,6 +21693,7 @@ const getFormTableView = async (instance) => {
21621
21693
  };
21622
21694
 
21623
21695
  const getFormSteps = async (instance) => {
21696
+ const formMode = instance.form.current.mode || "normal";//normal,horizontal,inline
21624
21697
  const stepsSchema = [];
21625
21698
  let stepFields = [];
21626
21699
  let fields = [];
@@ -21648,11 +21721,16 @@ const getFormSteps = async (instance) => {
21648
21721
  let fieldSchema;
21649
21722
  for (const childField of field.fields) {
21650
21723
  fieldSchema = await getTdInputTpl(childField, true);
21724
+ if (fieldSchema.type === "steedos-field"){
21725
+ fieldSchema.config.amis.mode = formMode;
21726
+ }
21727
+ else {
21728
+ fieldSchema.mode = formMode;
21729
+ }
21651
21730
  stepFields.push(fieldSchema);
21652
21731
  }
21653
21732
  stepsSchema.push({
21654
21733
  "title": field.name,
21655
- "mode": "horizontal",
21656
21734
  "body": stepFields
21657
21735
  });
21658
21736
  }
@@ -21682,7 +21760,7 @@ const getFormWizardView = async (instance) => {
21682
21760
  className: "instance-form-view-wizard pt-4",
21683
21761
  steps: await getFormSteps(instance),
21684
21762
  actionFinishLabel: "${'CustomAction.instances.instance_save' | t}",//"保存",
21685
- id: "u:instance_wizard",
21763
+ id: "instance_wizard",
21686
21764
  target: "instance_form",
21687
21765
  "onEvent": {
21688
21766
  "change": {
@@ -21837,26 +21915,26 @@ const getApproveButton = async (instance$1)=>{
21837
21915
  }
21838
21916
  };
21839
21917
 
21840
- const getFlowFormSchema = async (instance, box) => {
21841
- const formStyle = instance.form.current.style || "table";
21918
+ const getFlowFormSchema = async (instance$1, box) => {
21919
+ const formStyle = instance$1.form.current.style || "table";
21842
21920
  let formContentSchema;
21843
21921
  if (formStyle === "wizard") {
21844
- formContentSchema = await getFormWizardView(instance);
21922
+ formContentSchema = await getFormWizardView(instance$1);
21845
21923
  }
21846
21924
  else {
21847
- formContentSchema = await getFormTableView(instance);
21925
+ formContentSchema = await getFormTableView(instance$1);
21848
21926
  }
21849
21927
  return {
21850
21928
  type: "page",
21851
21929
  name: "instancePage",
21852
- className: "steedos-amis-instance-view",
21930
+ className: "steedos-amis-instance-view " + "steedos-instance-style-" + formStyle,
21853
21931
  bodyClassName: "overflow-y-auto h-full steedos-amis-instance-view-body",
21854
21932
  headerClassName: "p-0",
21855
21933
  "title": {
21856
21934
  "type": "steedos-record-detail-header",
21857
21935
  "label": "标题面板",
21858
21936
  "objectApiName": "instances",
21859
- "recordId": instance._id,
21937
+ "recordId": instance$1._id,
21860
21938
  "id": "u:e6b2adbe0e21",
21861
21939
  "showRecordTitle": false,
21862
21940
  "className": "p-0 m-0 p0 m0 bg-gray-50"
@@ -21880,7 +21958,7 @@ const getFlowFormSchema = async (instance, box) => {
21880
21958
  ".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
21881
21959
  "padding": "0px !important"
21882
21960
  },
21883
- ".steedos-amis-instance-view .antd-Page-body": {
21961
+ ".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
21884
21962
  "width": "1024px"
21885
21963
  },
21886
21964
  ".antd-List-placeholder": {
@@ -21901,9 +21979,9 @@ const getFlowFormSchema = async (instance, box) => {
21901
21979
  }
21902
21980
  },
21903
21981
  body: [
21904
- await getAttachments(instance),
21982
+ await getAttachments(instance$1),
21905
21983
  await getRelatedInstances(),
21906
- await getRelatedRecords(instance),
21984
+ await getRelatedRecords(instance$1),
21907
21985
  {
21908
21986
  type: "form",
21909
21987
  debug: false,
@@ -21913,7 +21991,7 @@ const getFlowFormSchema = async (instance, box) => {
21913
21991
  {
21914
21992
  type: "tpl",
21915
21993
  id: "u:f5bb0ad602a6",
21916
- tpl: `<div class="instance-name">${instance.title}</div>`,
21994
+ tpl: `<div class="instance-name">${instance$1.title}</div>`,
21917
21995
  inline: true,
21918
21996
  wrapperComponent: "",
21919
21997
  style: {
@@ -21923,7 +22001,7 @@ const getFlowFormSchema = async (instance, box) => {
21923
22001
  },
21924
22002
  },
21925
22003
  formContentSchema,
21926
- await getApplicantTableView(instance),
22004
+ await getApplicantTableView(instance$1),
21927
22005
 
21928
22006
  ],
21929
22007
  id: "instance_form",
@@ -21938,8 +22016,8 @@ const getFlowFormSchema = async (instance, box) => {
21938
22016
  "position": "top-right",
21939
22017
  "closeButton": true,
21940
22018
  "showIcon": true,
21941
- "title": "提交失败",
21942
- "msg": "请填写必填字段"
22019
+ "title": instance.t('frontend_workflow_submit_validate_error_title'),//"提交失败",
22020
+ "msg": instance.t('frontend_workflow_submit_validate_error_msg'),//"请填写必填字段"
21943
22021
  },
21944
22022
  "actionType": "toast"
21945
22023
  }
@@ -21959,7 +22037,7 @@ const getFlowFormSchema = async (instance, box) => {
21959
22037
  }
21960
22038
  },
21961
22039
  await getInstanceApprovalHistory(),
21962
- await getApproveButton(instance)
22040
+ await getApproveButton(instance$1)
21963
22041
  ],
21964
22042
  id: "u:63849ea39e12",
21965
22043
  messages: {},
@@ -22016,7 +22094,7 @@ const getFlowFormSchema = async (instance, box) => {
22016
22094
  api.data = {
22017
22095
  query: \`
22018
22096
  {
22019
- instance: instances__findOne(id:"${instance._id}"){
22097
+ instance: instances__findOne(id:"${instance$1._id}"){
22020
22098
  related_instances: related_instances__expand{
22021
22099
  _id,
22022
22100
  name
@@ -22116,7 +22194,7 @@ const getOpinionFieldStepsName = (field, top_keywords) => {
22116
22194
  * @Author: baozhoutao@steedos.com
22117
22195
  * @Date: 2022-09-09 17:47:37
22118
22196
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
22119
- * @LastEditTime: 2025-08-28 01:47:42
22197
+ * @LastEditTime: 2025-08-29 20:51:53
22120
22198
  * @Description:
22121
22199
  */
22122
22200
 
@@ -22293,6 +22371,7 @@ const getInstanceInfo = async (props) => {
22293
22371
  _id,
22294
22372
  name,
22295
22373
  style,
22374
+ mode,
22296
22375
  current,
22297
22376
  historys
22298
22377
  },
@@ -29748,11 +29827,6 @@ var AmisSteedosFlowForm = function (props) {
29748
29827
  if (props === void 0) { props = { className: null, body: null }; }
29749
29828
  return __awaiter(void 0, void 0, void 0, function () {
29750
29829
  return __generator(this, function (_a) {
29751
- console.log('AmisSteedosFlowForm===>', {
29752
- type: "container",
29753
- className: props.className,
29754
- body: props.body || []
29755
- });
29756
29830
  return [2 /*return*/, {
29757
29831
  type: "container",
29758
29832
  className: props.className,