@steedos-labs/plugin-workflow 3.0.0-beta.9 → 3.0.1-beta.1

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.
Files changed (82) hide show
  1. package/main/default/client/instance.client.js +6 -6
  2. package/main/default/client/object_workflows.client.js +8 -7
  3. package/main/default/client/socket.client.js +46 -3
  4. package/main/default/manager/import.js +17 -1
  5. package/main/default/manager/instance_manager.js +20 -6
  6. package/main/default/manager/push_manager.js +20 -12
  7. package/main/default/manager/uuflowManagerForInitApproval.js +794 -0
  8. package/main/default/manager/uuflow_manager.js +53 -4
  9. package/main/default/manager/workflow_manager.js +1 -1
  10. package/main/default/methods/instance_approve.js +258 -0
  11. package/main/default/methods/trace_approve_cc.js +571 -0
  12. package/main/default/objectTranslations/flows.en/flows.en.objectTranslation.yml +19 -0
  13. package/main/default/objectTranslations/flows.zh-CN/flows.zh-CN.objectTranslation.yml +19 -0
  14. package/main/default/objectTranslations/forms.en/forms.en.objectTranslation.yml +191 -0
  15. package/main/default/objectTranslations/forms.zh-CN/forms.zh-CN.objectTranslation.yml +246 -0
  16. package/main/default/objectTranslations/instance_tasks.en/instance_tasks.en.objectTranslation.yml +213 -0
  17. package/main/default/objectTranslations/instance_tasks.zh-CN/instance_tasks.zh-CN.objectTranslation.yml +213 -0
  18. package/main/default/objectTranslations/instances.en/instances.en.objectTranslation.yml +212 -0
  19. package/main/default/objectTranslations/instances.zh-CN/instances.zh-CN.objectTranslation.yml +209 -0
  20. package/main/default/objects/categories.object.yml +1 -0
  21. package/main/default/objects/flows/buttons/del.button.yml +7 -10
  22. package/main/default/objects/flows/buttons/design_form_layout.button.js +5 -2
  23. package/main/default/objects/flows/buttons/distributeAdmin.button.yml +5 -5
  24. package/main/default/objects/flows/buttons/newexport.button.yml +1 -1
  25. package/main/default/objects/flows/buttons/newimport.button.yml +2 -1
  26. package/main/default/objects/flows/flows.object.yml +12 -4
  27. package/main/default/objects/forms/forms.object.yml +85 -0
  28. package/main/default/objects/instance_tasks/buttons/instance_new.button.yml +3 -5
  29. package/main/default/objects/instances/buttons/instance_cc.button.yml +7 -7
  30. package/main/default/objects/instances/buttons/instance_delete.button.yml +2 -2
  31. package/main/default/objects/instances/buttons/instance_delete_many.button.yml +6 -6
  32. package/main/default/objects/instances/buttons/instance_distribute.button.yml +14 -13
  33. package/main/default/objects/instances/buttons/instance_flow_chart.button.yml +1 -1
  34. package/main/default/objects/instances/buttons/instance_forward.button.yml +8 -8
  35. package/main/default/objects/instances/buttons/instance_new.button.yml +3 -5
  36. package/main/default/objects/instances/buttons/instance_reassign.button.yml +1 -16
  37. package/main/default/objects/instances/buttons/instance_related.button.yml +4 -4
  38. package/main/default/objects/instances/buttons/instance_relocate.button.yml +9 -12
  39. package/main/default/objects/instances/buttons/instance_retrieve.button.yml +106 -2
  40. package/main/default/objects/instances/buttons/instance_save.button.yml +3 -9
  41. package/main/default/objects/instances/buttons/instance_submit.button.yml +1 -1
  42. package/main/default/objects/instances/buttons/instance_terminate.button.yml +7 -10
  43. package/main/default/objects/instances/listviews/monitor.listview.yml +0 -1
  44. package/main/default/pages/flowdetail.page.amis.json +11 -11
  45. package/main/default/pages/instance_detail.page.amis.json +25 -37
  46. package/main/default/pages/instance_tasks_detail.page.amis.json +21 -5
  47. package/main/default/pages/instance_tasks_list.page.amis.json +147 -110
  48. package/main/default/pages/instances_list.page.amis.json +146 -110
  49. package/main/default/routes/afterHook.js +34 -0
  50. package/main/default/routes/am.router.js +49 -2
  51. package/main/default/routes/api_cc.router.js +5 -12
  52. package/main/default/routes/api_flow_permission.router.js +7 -2
  53. package/main/default/routes/api_get_object_workflows.router.js +79 -22
  54. package/main/default/routes/api_have_read.router.js +73 -0
  55. package/main/default/routes/api_object_workflow_drafts.router.js +18 -19
  56. package/main/default/routes/api_workflow_approve_save.router.js +2 -1
  57. package/main/default/routes/api_workflow_chart.router.js +682 -0
  58. package/main/default/routes/api_workflow_engine.router.js +4 -4
  59. package/main/default/routes/api_workflow_flow_version.router.js +61 -0
  60. package/main/default/routes/api_workflow_form_version.router.js +61 -0
  61. package/main/default/routes/api_workflow_instance_return.router.js +164 -167
  62. package/main/default/routes/api_workflow_next_step_users.router.js +13 -8
  63. package/main/default/routes/api_workflow_reassign.router.js +200 -196
  64. package/main/default/routes/api_workflow_relocate.router.js +4 -3
  65. package/main/default/routes/api_workflow_retrieve.router.js +246 -237
  66. package/main/default/routes/export.router.js +5 -4
  67. package/main/default/routes/flow_form_design.ejs +33 -8
  68. package/main/default/routes/flow_form_design.router.js +4 -3
  69. package/main/default/routes/import.router.js +6 -7
  70. package/main/default/services/flows.service.js +1 -1
  71. package/main/default/translations/en.translation.yml +5 -0
  72. package/main/default/translations/zh-CN.translation.yml +2 -1
  73. package/main/default/triggers/amis_form_design.trigger.js +27 -5
  74. package/main/default/triggers/instances.trigger.js +9 -7
  75. package/main/default/utils/designerManager.js +12 -5
  76. package/package.json +4 -4
  77. package/package.service.js +21 -7
  78. package/public/workflow/index.css +4 -0
  79. package/src/instance_record_queue.js +1 -3
  80. package/src/rests/api_workflow_instance_batch_remove.js +4 -3
  81. package/src/webhook_queue.js +283 -0
  82. package/main/default/manager/index.js +0 -23
@@ -0,0 +1,213 @@
1
+ name: instance_tasks
2
+ label: 审批
3
+ description:
4
+ fields:
5
+ applicant:
6
+ label: 申请单申请人
7
+ help:
8
+ description:
9
+ applicant_name:
10
+ label: 申请单申请人姓名
11
+ help:
12
+ description:
13
+ applicant_organization_name:
14
+ label: 申请单申请人所属组织名称
15
+ help:
16
+ description:
17
+ category:
18
+ label: 分类
19
+ help:
20
+ description:
21
+ category_name:
22
+ label: 分类名称
23
+ help:
24
+ description:
25
+ cost_time:
26
+ label: 花费时间
27
+ help:
28
+ description:
29
+ deadline:
30
+ label: 催办截止时间
31
+ help:
32
+ description:
33
+ description:
34
+ label: 备注
35
+ help:
36
+ description:
37
+ distribute_from_instance:
38
+ label: 分发来源申请单
39
+ help:
40
+ description:
41
+ due_date:
42
+ label: 截止时间
43
+ help:
44
+ description:
45
+ extras:
46
+ label: Extras
47
+ help:
48
+ description:
49
+ finish_date:
50
+ label: 完成时间
51
+ help:
52
+ description:
53
+ flow:
54
+ label: 流程
55
+ help:
56
+ description:
57
+ flow_name:
58
+ label: 流程名称
59
+ help:
60
+ description:
61
+ form:
62
+ label: 表单
63
+ help:
64
+ description:
65
+ forward_from_instance:
66
+ label: 转发来源申请单
67
+ help:
68
+ description:
69
+ handler:
70
+ label: 实际处理人
71
+ help:
72
+ description:
73
+ handler_name:
74
+ label: 实际处理人姓名
75
+ help:
76
+ description:
77
+ handler_organization:
78
+ label: 实际处理人所属组织
79
+ help:
80
+ description:
81
+ handler_organization_fullname:
82
+ label: 实际处理人所属组织全称
83
+ help:
84
+ description:
85
+ handler_organization_name:
86
+ label: 实际处理人所属组织名称
87
+ help:
88
+ description:
89
+ instance:
90
+ label: 申请单
91
+ help:
92
+ description:
93
+ instance_name:
94
+ label: 文件标题
95
+ help:
96
+ description:
97
+ instance_state:
98
+ label: 申请单状态
99
+ help:
100
+ options:
101
+ - label: 草稿
102
+ value: draft
103
+ - label: 进行中
104
+ value: pending
105
+ - label: 已完成
106
+ value: completed
107
+ description:
108
+ is_archived:
109
+ label: 是否已归档
110
+ help:
111
+ description:
112
+ is_error:
113
+ label: 是否报错
114
+ help:
115
+ description:
116
+ is_finished:
117
+ label: 是否已完成
118
+ help:
119
+ description:
120
+ is_latest_approve:
121
+ label: 是否是同一个用户在同一个申请单中最新的审批记录
122
+ help:
123
+ description:
124
+ is_read:
125
+ label: 已读
126
+ help:
127
+ description:
128
+ keywords:
129
+ label: 关键字
130
+ help:
131
+ description:
132
+ next_steps.$.step:
133
+ label: 步骤
134
+ help:
135
+ description:
136
+ next_steps.$.users:
137
+ label: 步骤处理人
138
+ help:
139
+ description:
140
+ next_steps:
141
+ label: 下一步
142
+ help:
143
+ description:
144
+ read_date:
145
+ label: 已读时间
146
+ help:
147
+ description:
148
+ remind_date:
149
+ label: 催办提醒时间
150
+ help:
151
+ description:
152
+ reminded_count:
153
+ label: 催办提醒次数
154
+ help:
155
+ description:
156
+ sign_show:
157
+ label: 显示签名
158
+ help:
159
+ description:
160
+ start_date:
161
+ label: 开始时间
162
+ help:
163
+ description:
164
+ step:
165
+ label: 步骤
166
+ help:
167
+ description:
168
+ step_name:
169
+ label: 步骤名称
170
+ help:
171
+ description:
172
+ submit_date:
173
+ label: 提交时间
174
+ help:
175
+ description:
176
+ submitter:
177
+ label: 申请单提交人
178
+ help:
179
+ description:
180
+ submitter_name:
181
+ label: 提交人姓名
182
+ help:
183
+ description:
184
+ trace:
185
+ label: Trace
186
+ help:
187
+ description:
188
+ type:
189
+ label:
190
+ help:
191
+ description:
192
+ user:
193
+ label: 处理人
194
+ help:
195
+ description:
196
+ user_name:
197
+ label: 处理人姓名
198
+ help:
199
+ description:
200
+ values:
201
+ label: 表单内容
202
+ help:
203
+ description:
204
+ listviews:
205
+ inbox:
206
+ label: 待审批
207
+ outbox:
208
+ label: 已审批
209
+ actions:
210
+ instance_new:
211
+ label: 新建
212
+ CustomLabels:
213
+ instance_task_set_have_read_failed: 设置为已读失败
@@ -0,0 +1,212 @@
1
+ name: instances
2
+ label: Request
3
+ description:
4
+ fields:
5
+ name:
6
+ label: Name
7
+ help:
8
+ description:
9
+ flow:
10
+ label: Workflow
11
+ help:
12
+ description:
13
+ flow_version:
14
+ label: Workflow Version
15
+ help:
16
+ description:
17
+ form:
18
+ label: Form
19
+ help:
20
+ description:
21
+ form_version:
22
+ label: Form Version
23
+ help:
24
+ description:
25
+ submitter:
26
+ label: Submitter
27
+ help:
28
+ description:
29
+ submitter_name:
30
+ label: Submitter's Name
31
+ help:
32
+ description:
33
+ submit_date:
34
+ label: Submit Date
35
+ help:
36
+ description:
37
+ applicant:
38
+ label: Applicant
39
+ help:
40
+ description:
41
+ applicant_name:
42
+ label: Applicant's Name
43
+ help:
44
+ description:
45
+ applicant_organization:
46
+ label: Applicant Department
47
+ help:
48
+ description:
49
+ applicant_organization_name:
50
+ label: Applicant Department's Name
51
+ help:
52
+ description:
53
+ applicant_organization_fullname:
54
+ label: Applicant Department's Fullname
55
+ help:
56
+ description:
57
+ code:
58
+ label: Code
59
+ help:
60
+ description:
61
+ values:
62
+ label: Field Values
63
+ help:
64
+ description:
65
+ inbox_users:
66
+ label: Inbox Users
67
+ help:
68
+ description:
69
+ outbox_users:
70
+ label: Outbox Users
71
+ help:
72
+ description:
73
+ traces:
74
+ label: Processing Traces
75
+ help:
76
+ description:
77
+ attachments:
78
+ label: Attachments
79
+ help:
80
+ description:
81
+ flow_name:
82
+ label: Workflow Name
83
+ help:
84
+ description:
85
+ category_name:
86
+ label: Category Name
87
+ help:
88
+ description:
89
+ category:
90
+ label: Category
91
+ help:
92
+ description:
93
+ state:
94
+ label: Processing State
95
+ help:
96
+ options:
97
+ - label: Draft
98
+ value: draft
99
+ - label: Pending
100
+ value: pending
101
+ - label: Completed
102
+ value: completed
103
+ description:
104
+ is_archived:
105
+ label: Archived
106
+ help:
107
+ description:
108
+ is_deleted:
109
+ label: Deleted
110
+ help:
111
+ description:
112
+ related_instances:
113
+ label: Related Instances
114
+ help:
115
+ description:
116
+ record_ids:
117
+ label: Record IDs
118
+ help:
119
+ description:
120
+ record_ids.$.o:
121
+ label:
122
+ help:
123
+ description:
124
+ record_ids.$.ids:
125
+ label:
126
+ help:
127
+ description:
128
+ current_step_auto_submit:
129
+ label: Auto Submit if Time Out
130
+ help:
131
+ description:
132
+ current_step_name:
133
+ label: Current Step Name
134
+ help:
135
+ description:
136
+ applicant_company:
137
+ label: Applicant's Division
138
+ help:
139
+ description:
140
+ cc_count:
141
+ label: CC Count
142
+ help:
143
+ description:
144
+ listviews:
145
+ all:
146
+ label: All
147
+ inbox:
148
+ label: Inbox
149
+ outbox:
150
+ label: Outbox
151
+ draft:
152
+ label: Draft
153
+ pending:
154
+ label: In Progress
155
+ completed:
156
+ label: Finished
157
+ monitor:
158
+ label: Monitor
159
+ actions:
160
+ view_instance:
161
+ label: View Instance
162
+ instance_terminate:
163
+ label: Cancel Request
164
+ instance_save:
165
+ label: Save
166
+ instance_related:
167
+ label: Linked requests
168
+ instance_distribute:
169
+ label: Distribute
170
+ instance_submit:
171
+ label: Submit
172
+ instance_forward:
173
+ label: Request Forward
174
+ instance_cc:
175
+ label: Carbon Copy
176
+ instance_relocate:
177
+ label: Relocate
178
+ instance_new:
179
+ label: New Request
180
+ instance_delete:
181
+ label: Delete
182
+ instance_delete_many:
183
+ label: Delete
184
+ CustomLabels:
185
+ instance_action_new_dialog_title: Please select the process
186
+ instance_action_new_dialog_msg_success: Created successfully!
187
+ instance_action_new_dialog_msg_failed: Created failed!
188
+ instance_action_delete_many_msg_not_select: Please select at least one record
189
+ instance_action_instance_save_msg_success: Temporary storage successful
190
+ instance_action_instance_save_msg_failed: Temporary storage failed
191
+ instance_action_instance_distribute_dialog_sub_title: Distribute the currently selected file to the new process and continue to execute the approval operation
192
+ instance_action_instance_distribute_dialog_field_process: Process name
193
+ instance_action_instance_distribute_dialog_field_users: Distribute to
194
+ instance_action_instance_distribute_dialog_field_description: Description
195
+ instance_action_instance_distribute_dialog_field_to_self: Distribute it to yourself too
196
+ instance_action_instance_distribute_dialog_field_to_attachment: Save the original form as an attachment
197
+ instance_action_instance_distribute_dialog_field_related: Automatically create associated files
198
+ instance_action_instance_cc_dialog_title_prefix: "Current Step:"
199
+ instance_action_instance_cc_dialog_field_users: Carbon Copy To
200
+ instance_action_instance_cc_dialog_field_description: Carbon Copy Description
201
+ instance_action_instance_cc_dialog_sub_title: Forward the currently selected file to the new process and continue to execute the approval operation.
202
+ instance_action_terminate_dialog_title: Cancel Request
203
+ instance_action_terminate_dialog_content: Please fill in the reasons for canceling the application
204
+ instance_action_terminate_dialog_msg_success: The cancellation application has been successful!
205
+ instance_action_terminate_dialog_msg_failed: The cancellation application failed.
206
+ instance_action_instance_relocate_dialog_title: Relocate
207
+ instance_action_instance_relocate_dialog_title_prefix: "Current Step:"
208
+ instance_action_instance_relocate_dialog_field_reason: Please fill in the reasons for the Relocating
209
+ instance_action_relocate_dialog_msg_success: Relocated successful
210
+ instance_action_relocate_dialog_msg_failed: Relocated failed
211
+ instance_action_instance_save_msg_upgraded: The workflow has been upgraded. The page will refresh automatically.
212
+
@@ -0,0 +1,209 @@
1
+ name: instances
2
+ label: 审批单
3
+ description:
4
+ fields:
5
+ name:
6
+ label: 文件标题
7
+ help:
8
+ description:
9
+ flow:
10
+ label: 流程
11
+ help:
12
+ description:
13
+ flow_version:
14
+ label: 流程版本号
15
+ help:
16
+ description:
17
+ form:
18
+ label: 表单
19
+ help:
20
+ description:
21
+ form_version:
22
+ label: 表单版本号
23
+ help:
24
+ description:
25
+ submitter:
26
+ label: 提交人
27
+ help:
28
+ description:
29
+ submitter_name:
30
+ label: 提交人姓名
31
+ help:
32
+ description:
33
+ submit_date:
34
+ label: 提交日期
35
+ help:
36
+ description:
37
+ applicant:
38
+ label: 申请人
39
+ help:
40
+ description:
41
+ applicant_name:
42
+ label: 申请人姓名
43
+ help:
44
+ description:
45
+ applicant_organization:
46
+ label: 申请人部门
47
+ help:
48
+ description:
49
+ applicant_organization_name:
50
+ label: 申请人部门名称
51
+ help:
52
+ description:
53
+ applicant_organization_fullname:
54
+ label: 申请人部门全称
55
+ help:
56
+ description:
57
+ code:
58
+ label: 公式
59
+ help:
60
+ description:
61
+ values:
62
+ label: 审批单字段
63
+ help:
64
+ description:
65
+ inbox_users:
66
+ label: 待办处理人
67
+ help:
68
+ description:
69
+ outbox_users:
70
+ label: 已办处理人
71
+ help:
72
+ description:
73
+ traces:
74
+ label: 步骤审批
75
+ help:
76
+ description:
77
+ attachments:
78
+ label: 附件
79
+ help:
80
+ description:
81
+ flow_name:
82
+ label: 流程名
83
+ help:
84
+ description:
85
+ category_name:
86
+ label: 流程分类
87
+ help:
88
+ description:
89
+ category:
90
+ label: 流程分类
91
+ help:
92
+ description:
93
+ state:
94
+ label: 审批单状态
95
+ help:
96
+ options:
97
+ - label: 草稿
98
+ value: draft
99
+ - label: 进行中
100
+ value: pending
101
+ - label: 已完成
102
+ value: completed
103
+ description:
104
+ is_archived:
105
+ label: 已归档
106
+ help:
107
+ description:
108
+ is_deleted:
109
+ label: 已删除
110
+ help:
111
+ description:
112
+ related_instances:
113
+ label: 相关审批单
114
+ help:
115
+ description:
116
+ record_ids:
117
+ label: 记录ID
118
+ help:
119
+ description:
120
+ record_ids.$.o:
121
+ label:
122
+ help:
123
+ description:
124
+ record_ids.$.ids:
125
+ label:
126
+ help:
127
+ description:
128
+ current_step_auto_submit:
129
+ label: 当前步骤超时自动流转
130
+ help:
131
+ description:
132
+ current_step_name:
133
+ label: 当前步骤
134
+ help:
135
+ description:
136
+ applicant_company:
137
+ label: 申请人所属分部
138
+ help:
139
+ description:
140
+ cc_count:
141
+ label: 传阅数
142
+ help:
143
+ description:
144
+ listviews:
145
+ all:
146
+ label: 所有
147
+ inbox:
148
+ label: 待办文件
149
+ outbox:
150
+ label: 已办文件
151
+ draft:
152
+ label: 草稿
153
+ pending:
154
+ label: 进行中
155
+ completed:
156
+ label: 已完成
157
+ monitor:
158
+ label: 监控箱
159
+ actions:
160
+ view_instance:
161
+ label: 查看审批单
162
+ instance_terminate:
163
+ label: 取消申请
164
+ instance_save:
165
+ label: 保存
166
+ instance_related:
167
+ label: 关联文件
168
+ instance_distribute:
169
+ label: 分发
170
+ instance_submit:
171
+ label: 发送
172
+ instance_forward:
173
+ label: 转发
174
+ instance_cc:
175
+ label: 传阅
176
+ instance_relocate:
177
+ label: 重定位
178
+ instance_new:
179
+ label: 新建
180
+ instance_delete_many:
181
+ label: 删除
182
+ CustomLabels:
183
+ instance_action_new_dialog_title: 请选择流程
184
+ instance_action_new_dialog_msg_success: 创建成功!
185
+ instance_action_new_dialog_msg_failed: 创建失败!
186
+ instance_action_delete_many_msg_not_select: 请至少选择一条记录
187
+ instance_action_instance_save_msg_success: 暂存成功
188
+ instance_action_instance_save_msg_failed: 暂存失败
189
+ instance_action_instance_distribute_dialog_sub_title: 将当前选中的文件分发到新的流程,继续执行审批操作
190
+ instance_action_instance_distribute_dialog_field_process: 流程名称
191
+ instance_action_instance_distribute_dialog_field_users: 分发对象
192
+ instance_action_instance_distribute_dialog_field_description: 备注
193
+ instance_action_instance_distribute_dialog_field_to_self: 同时分发给自己
194
+ instance_action_instance_distribute_dialog_field_to_attachment: 将原表单存储为附件
195
+ instance_action_instance_distribute_dialog_field_related: 自动创建关联文件
196
+ instance_action_instance_cc_dialog_title_prefix: 当前步骤:
197
+ instance_action_instance_cc_dialog_field_users: 传阅对象
198
+ instance_action_instance_cc_dialog_field_description: 传阅说明
199
+ instance_action_instance_cc_dialog_sub_title: 将当前选中的文件转发到新的流程,继续执行审批操作
200
+ instance_action_terminate_dialog_title: 取消申请
201
+ instance_action_terminate_dialog_content: 请填写取消申请的理由
202
+ instance_action_terminate_dialog_msg_success: 取消申请成功!
203
+ instance_action_terminate_dialog_msg_failed: 取消申请失败
204
+ instance_action_instance_relocate_dialog_title: 重定位
205
+ instance_action_instance_relocate_dialog_title_prefix: 当前步骤:
206
+ instance_action_instance_relocate_dialog_field_reason: 请填写重定位的理由
207
+ instance_action_relocate_dialog_msg_success: 重定位成功
208
+ instance_action_relocate_dialog_msg_failed: 重定位失败
209
+ instance_action_instance_save_msg_upgraded: 流程已升级,页面将自动刷新。
@@ -4,6 +4,7 @@ label: Workflow Category
4
4
  hidden: true
5
5
  version: 2
6
6
  enable_dataloader: false
7
+ enable_enhanced_lookup: true
7
8
  fields:
8
9
  name:
9
10
  type: text
@@ -5,7 +5,7 @@ amis_schema: |-
5
5
  "body": [
6
6
  {
7
7
  "type": "button",
8
- "label": "删除",
8
+ "label": "${'CustomAction.flows.del' | t}",
9
9
  "id": "u:del",
10
10
  "editorState": "default",
11
11
  "level": "danger",
@@ -18,7 +18,7 @@ amis_schema: |-
18
18
  "actionType": "dialog",
19
19
  "dialog": {
20
20
  "type": "dialog",
21
- "title": "删除流程",
21
+ "title": "${'flows_action_del_dialog_title' | t}",
22
22
  "body": [
23
23
  {
24
24
  "id": "u:f6977226303b",
@@ -30,7 +30,7 @@ amis_schema: |-
30
30
  "body": [
31
31
  {
32
32
  "name": "flowName",
33
- "label": "为了确保安全,请输入您要删除的流程名(同时会删除相关的申请单)",
33
+ "label": "${'flows_action_del_dialog_field_flowName' | t}",
34
34
  "type": "input-text",
35
35
  "id": "u:5c7f7b0c4f06",
36
36
  "editorState": "default",
@@ -73,10 +73,7 @@ amis_schema: |-
73
73
  "url": "/am/forms?methodOverride=DELETE",
74
74
  "method": "post",
75
75
  "requestAdaptor": "api.data = { 'Forms': [{ 'id': context._master.record.form }] }; return api;",
76
- "adaptor": "",
77
- "messages": {
78
- "success": "操作成功"
79
- },
76
+ "adaptor": "return payload.ChangeSet ? {data: {...payload}, status: 0, msg: t('flows_action_del_dialog_message_success')} : {...payload, status: 1, msg: t('flows_action_del_dialog_message_failed')};",
80
77
  "sendOn": "${name === _master.record.name}"
81
78
  }
82
79
  }
@@ -86,13 +83,13 @@ amis_schema: |-
86
83
  {
87
84
  "type": "button",
88
85
  "actionType": "cancel",
89
- "label": "取消",
86
+ "label": "${'Cancel' | t}",
90
87
  "id": "u:cc2293523b91"
91
88
  },
92
89
  {
93
90
  "type": "button",
94
91
  "actionType": "confirm",
95
- "label": "确定",
92
+ "label": "${'OK' | t}",
96
93
  "primary": true,
97
94
  "id": "u:753881d2d453",
98
95
  "editorState": "default",
@@ -103,7 +100,7 @@ amis_schema: |-
103
100
  {
104
101
  "ignoreError": false,
105
102
  "actionType": "custom",
106
- "script": "if (event.data._master.record.name != event.data._scoped.getComponentById('u:f6977226303b').props.data.flowName) {\n doAction({\n \"actionType\": \"toast\",\n \"args\": {\n \"msgType\": \"error\",\n \"msg\": \"请确认, 输入的名称与流程名称不一致\"\n }\n });\n event.stopPropagation();event.preventDefault();\n}\n\n",
103
+ "script": "if (event.data._master.record.name != event.data._scoped.getComponentById('u:f6977226303b').props.data.flowName) {\n doAction({\n \"actionType\": \"toast\",\n \"args\": {\n \"msgType\": \"error\",\n \"msg\": t('flows_action_del_dialog_error_not_same')\n }\n });\n event.stopPropagation();event.preventDefault();\n}\n\n",
107
104
  "args": {}
108
105
  }
109
106
  ]