nbb-component-ui 1.5.0 → 1.6.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.
- package/dist/index.es.js +1057 -437
- package/dist/index.umd.js +222 -1
- package/dist/src/ProcessFlow/src/CmcProcessFlow.vue.d.ts +0 -1
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/src/ProcessFlow/src/CmcProcessFlow.vue +433 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-button @click="open">测试按钮
|
|
2
|
+
<el-button @click="open">测试按钮10</el-button>
|
|
3
3
|
<!-- 审批记录列表 -->
|
|
4
4
|
<ProcessInstanceTaskList :process-instance="processInstance" :tasks="tasks"/>
|
|
5
5
|
</template>
|
|
@@ -7,14 +7,13 @@
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
8
|
import { ElMessage } from 'element-plus'
|
|
9
9
|
import {ref, watch} from "vue";
|
|
10
|
-
import * as processInstanceApi from "@/api/processInstance";
|
|
11
|
-
import * as taskApi from "@/api/task";
|
|
10
|
+
// import * as processInstanceApi from "@/api/processInstance";
|
|
11
|
+
// import * as taskApi from "@/api/task";
|
|
12
12
|
import ProcessInstanceTaskList from './CmcFlowList.vue'
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
const props = defineProps<{
|
|
16
16
|
processInstanceId: string
|
|
17
|
-
request: any
|
|
18
17
|
}>()
|
|
19
18
|
|
|
20
19
|
|
|
@@ -40,14 +39,313 @@ const getApprovalDetail = async () => {
|
|
|
40
39
|
try {
|
|
41
40
|
processInstanceLoading.value = true
|
|
42
41
|
|
|
43
|
-
const data = await processInstanceApi.getApprovalDetail(id.value)
|
|
44
|
-
if (!data) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
if (!data.processDefinition || !data.processInstance) {
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
// const data = await processInstanceApi.getApprovalDetail(id.value)
|
|
43
|
+
// if (!data) {
|
|
44
|
+
// ElMessage.error('查询不到审批详情信息!')
|
|
45
|
+
// return
|
|
46
|
+
// }
|
|
47
|
+
// if (!data.processDefinition || !data.processInstance) {
|
|
48
|
+
// ElMessage.error('查询不到流程信息!')
|
|
49
|
+
// return
|
|
50
|
+
// }
|
|
51
|
+
const data = {
|
|
52
|
+
"status": 1,
|
|
53
|
+
"activityNodes": [
|
|
54
|
+
{
|
|
55
|
+
"id": "StartUserNode",
|
|
56
|
+
"name": "发起人",
|
|
57
|
+
"nodeType": 10,
|
|
58
|
+
"status": 2,
|
|
59
|
+
"startTime": "2026-04-03T14:19:25+0800",
|
|
60
|
+
"endTime": "2026-04-03T14:19:26+0800",
|
|
61
|
+
"tasks": [
|
|
62
|
+
{
|
|
63
|
+
"id": "0fff48cd-2f25-11f1-9259-fa163e43f4f0",
|
|
64
|
+
"ownerUser": null,
|
|
65
|
+
"assigneeUser": {
|
|
66
|
+
"id": 207,
|
|
67
|
+
"nickname": "集运管理员",
|
|
68
|
+
"avatar": "https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",
|
|
69
|
+
"deptId": "1000000000000010322",
|
|
70
|
+
"deptName": "外运集运"
|
|
71
|
+
},
|
|
72
|
+
"status": 2,
|
|
73
|
+
"reason": "发起人节点首次自动通过",
|
|
74
|
+
"signPicUrl": null
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"candidateStrategy": 36,
|
|
78
|
+
"candidateUsers": [],
|
|
79
|
+
"processInstanceId": null
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "Activity_7e06529d-e9fa-4062-a1ae-18742609590d",
|
|
83
|
+
"name": "L1或签审批",
|
|
84
|
+
"nodeType": 11,
|
|
85
|
+
"status": 1,
|
|
86
|
+
"startTime": "2026-04-03T14:19:26+0800",
|
|
87
|
+
"endTime": null,
|
|
88
|
+
"tasks": [
|
|
89
|
+
{
|
|
90
|
+
"id": "106117fa-2f25-11f1-9259-fa163e43f4f0",
|
|
91
|
+
"ownerUser": null,
|
|
92
|
+
"assigneeUser": {
|
|
93
|
+
"id": 207,
|
|
94
|
+
"nickname": "集运管理员",
|
|
95
|
+
"avatar": "https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",
|
|
96
|
+
"deptId": "1000000000000010322",
|
|
97
|
+
"deptName": "外运集运"
|
|
98
|
+
},
|
|
99
|
+
"status": 1,
|
|
100
|
+
"reason": null,
|
|
101
|
+
"signPicUrl": null
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"candidateStrategy": 60,
|
|
105
|
+
"candidateUsers": [],
|
|
106
|
+
"processInstanceId": null
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": "Activity_82540b22-2616-4924-9554-8466e1201240",
|
|
110
|
+
"name": "L2会签审批",
|
|
111
|
+
"nodeType": 11,
|
|
112
|
+
"status": -1,
|
|
113
|
+
"startTime": null,
|
|
114
|
+
"endTime": null,
|
|
115
|
+
"tasks": null,
|
|
116
|
+
"candidateStrategy": 60,
|
|
117
|
+
"candidateUsers": [
|
|
118
|
+
{
|
|
119
|
+
"id": 207,
|
|
120
|
+
"nickname": "集运管理员",
|
|
121
|
+
"avatar": "https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",
|
|
122
|
+
"deptId": "1000000000000010322",
|
|
123
|
+
"deptName": "外运集运"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"processInstanceId": null
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": "Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f",
|
|
130
|
+
"name": "L3审批",
|
|
131
|
+
"nodeType": 11,
|
|
132
|
+
"status": -1,
|
|
133
|
+
"startTime": null,
|
|
134
|
+
"endTime": null,
|
|
135
|
+
"tasks": null,
|
|
136
|
+
"candidateStrategy": 60,
|
|
137
|
+
"candidateUsers": [
|
|
138
|
+
{
|
|
139
|
+
"id": 207,
|
|
140
|
+
"nickname": "集运管理员",
|
|
141
|
+
"avatar": "https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",
|
|
142
|
+
"deptId": "1000000000000010322",
|
|
143
|
+
"deptName": "外运集运"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"processInstanceId": null
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": "EndEvent",
|
|
150
|
+
"name": "结束",
|
|
151
|
+
"nodeType": 1,
|
|
152
|
+
"status": -1,
|
|
153
|
+
"startTime": null,
|
|
154
|
+
"endTime": null,
|
|
155
|
+
"tasks": null,
|
|
156
|
+
"candidateStrategy": null,
|
|
157
|
+
"candidateUsers": [],
|
|
158
|
+
"processInstanceId": null
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"formFieldsPermission": {
|
|
162
|
+
"deptId": "1",
|
|
163
|
+
"zhiShu": "1",
|
|
164
|
+
"gangWei": "1",
|
|
165
|
+
"fenGuan": "1"
|
|
166
|
+
},
|
|
167
|
+
"todoTask": {
|
|
168
|
+
"id": "106117fa-2f25-11f1-9259-fa163e43f4f0",
|
|
169
|
+
"name": "L1或签审批",
|
|
170
|
+
"createTime": "2026-04-03T14:19:26+0800",
|
|
171
|
+
"endTime": null,
|
|
172
|
+
"durationInMillis": null,
|
|
173
|
+
"status": 1,
|
|
174
|
+
"reason": null,
|
|
175
|
+
"ownerUser": null,
|
|
176
|
+
"assigneeUser": {
|
|
177
|
+
"id": 207,
|
|
178
|
+
"nickname": "集运管理员",
|
|
179
|
+
"avatar": "https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",
|
|
180
|
+
"deptId": "1000000000000010322",
|
|
181
|
+
"deptName": "外运集运"
|
|
182
|
+
},
|
|
183
|
+
"taskDefinitionKey": "Activity_7e06529d-e9fa-4062-a1ae-18742609590d",
|
|
184
|
+
"processInstanceId": "0ffc3c74-2f25-11f1-9259-fa163e43f4f0",
|
|
185
|
+
"processInstance": null,
|
|
186
|
+
"parentTaskId": null,
|
|
187
|
+
"children": [],
|
|
188
|
+
"formId": null,
|
|
189
|
+
"formName": null,
|
|
190
|
+
"formConf": null,
|
|
191
|
+
"formFields": null,
|
|
192
|
+
"formVariables": null,
|
|
193
|
+
"buttonsSetting": {
|
|
194
|
+
"1": {
|
|
195
|
+
"displayName": "通过",
|
|
196
|
+
"enable": true
|
|
197
|
+
},
|
|
198
|
+
"2": {
|
|
199
|
+
"displayName": "拒绝",
|
|
200
|
+
"enable": true
|
|
201
|
+
},
|
|
202
|
+
"3": {
|
|
203
|
+
"displayName": "转办",
|
|
204
|
+
"enable": true
|
|
205
|
+
},
|
|
206
|
+
"4": {
|
|
207
|
+
"displayName": "委派",
|
|
208
|
+
"enable": true
|
|
209
|
+
},
|
|
210
|
+
"5": {
|
|
211
|
+
"displayName": "加签",
|
|
212
|
+
"enable": true
|
|
213
|
+
},
|
|
214
|
+
"6": {
|
|
215
|
+
"displayName": "退回",
|
|
216
|
+
"enable": true
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"signEnable": false,
|
|
220
|
+
"reasonRequire": false,
|
|
221
|
+
"nodeType": 11,
|
|
222
|
+
"timeout": null,
|
|
223
|
+
"categoryName": null,
|
|
224
|
+
"deptName": null,
|
|
225
|
+
"roleName": null,
|
|
226
|
+
"proxyRoleName": null,
|
|
227
|
+
"proxyNickName": null,
|
|
228
|
+
"proxyDeptName": null,
|
|
229
|
+
"proxyUserId": null,
|
|
230
|
+
"proxyFlag": null,
|
|
231
|
+
"customVariables": null,
|
|
232
|
+
"category": "edi",
|
|
233
|
+
"priority": 95
|
|
234
|
+
},
|
|
235
|
+
"processDefinition": {
|
|
236
|
+
"icon": "https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/44dfaa7b271cd6cde7f394f6aea3e24b/1.png?expires=1768910930044764&signature=0101EhRCzjRM:Mzc4OTE2MDMyNjEyQzM2RkUzNkM5RjIzRjc4MEM4Q0RFQUUwRjIwMw==",
|
|
237
|
+
"description": "",
|
|
238
|
+
"approvalTimeout": 1,
|
|
239
|
+
"priority": 90,
|
|
240
|
+
"type": null,
|
|
241
|
+
"formType": 10,
|
|
242
|
+
"formId": "1995677721519898626",
|
|
243
|
+
"formCustomCreatePath": "/a",
|
|
244
|
+
"formCustomViewPath": "/b",
|
|
245
|
+
"visible": true,
|
|
246
|
+
"startUserIds": [],
|
|
247
|
+
"startDeptIds": [],
|
|
248
|
+
"managerUserIds": [
|
|
249
|
+
207
|
|
250
|
+
],
|
|
251
|
+
"sort": 1762130143976,
|
|
252
|
+
"allowCancelRunningProcess": true,
|
|
253
|
+
"allowWithdrawTask": false,
|
|
254
|
+
"processIdRule": {
|
|
255
|
+
"enable": false,
|
|
256
|
+
"prefix": "",
|
|
257
|
+
"infix": "",
|
|
258
|
+
"postfix": "",
|
|
259
|
+
"length": 5
|
|
260
|
+
},
|
|
261
|
+
"autoApprovalType": 2,
|
|
262
|
+
"sendMsgTypeSetting": [
|
|
263
|
+
"MAIL"
|
|
264
|
+
],
|
|
265
|
+
"titleSetting": {
|
|
266
|
+
"enable": false,
|
|
267
|
+
"title": ""
|
|
268
|
+
},
|
|
269
|
+
"summarySetting": {
|
|
270
|
+
"enable": false,
|
|
271
|
+
"summary": []
|
|
272
|
+
},
|
|
273
|
+
"processBeforeTriggerSetting": null,
|
|
274
|
+
"processAfterTriggerSetting": null,
|
|
275
|
+
"taskBeforeTriggerSetting": null,
|
|
276
|
+
"taskAfterTriggerSetting": null,
|
|
277
|
+
"id": "simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",
|
|
278
|
+
"version": 74,
|
|
279
|
+
"name": "连续多节点simple设计器",
|
|
280
|
+
"key": "simple-multi-node-simple",
|
|
281
|
+
"category": "edi",
|
|
282
|
+
"categoryName": null,
|
|
283
|
+
"modelType": 20,
|
|
284
|
+
"modelId": "084d6e51-b84d-11f0-a9da-fa163ecf527b",
|
|
285
|
+
"formConf": "{\"form\":{\"inline\":false,\"hideRequiredAsterisk\":false,\"labelPosition\":\"right\",\"size\":\"default\",\"labelWidth\":\"100px\"},\"resetBtn\":{\"show\":false,\"innerText\":\"重置\"},\"submitBtn\":{\"show\":true,\"innerText\":\"提交\"}}",
|
|
286
|
+
"formFields": [
|
|
287
|
+
"{\"type\":\"input\",\"field\":\"fenGuan\",\"title\":\"分管领导\",\"info\":\"\",\"$required\":true,\"_fc_id\":\"id_Fi7kminy00nsafc\",\"name\":\"ref_Fq5eminy00nsagc\",\"display\":true,\"hidden\":false,\"_fc_drag_tag\":\"input\"}",
|
|
288
|
+
"{\"type\":\"input\",\"field\":\"gangWei\",\"title\":\"岗位\",\"info\":\"\",\"$required\":true,\"_fc_id\":\"id_Ftwominy1gozalc\",\"name\":\"ref_F0onminy1gozamc\",\"display\":true,\"hidden\":false,\"_fc_drag_tag\":\"input\"}",
|
|
289
|
+
"{\"type\":\"DeptSelect\",\"field\":\"deptId\",\"title\":\"部门\",\"info\":\"\",\"$required\":true,\"props\":{\"checkStrictly\":true},\"_fc_id\":\"id_Fv2nminyehg2anc\",\"name\":\"ref_Fzoiminyehg2aoc\",\"display\":true,\"hidden\":false,\"_fc_drag_tag\":\"DeptSelect\"}",
|
|
290
|
+
"{\"type\":\"UserSelect\",\"field\":\"zhiShu\",\"title\":\"直属领导\",\"info\":\"\",\"$required\":true,\"props\":{\"checkStrictly\":false},\"_fc_id\":\"id_Fsrnmipach61abc\",\"name\":\"ref_Fcuhmipach61acc\",\"display\":true,\"hidden\":false,\"_fc_drag_tag\":\"UserSelect\"}"
|
|
291
|
+
],
|
|
292
|
+
"formName": null,
|
|
293
|
+
"suspensionState": 1,
|
|
294
|
+
"deploymentTime": null,
|
|
295
|
+
"bpmnXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:omgdi=\"http://www.omg.org/spec/DD/20100524/DI\" typeLanguage=\"http://www.w3.org/2001/XMLSchema\" expressionLanguage=\"http://www.w3.org/1999/XPath\" targetNamespace=\"http://www.omg.org/spec/BPMN/20100524/MODEL\">\n <process id=\"simple-multi-node-simple\" name=\"连续多节点simple设计器\" isExecutable=\"true\">\n <startEvent id=\"StartEvent\" name=\"开始\"></startEvent>\n <userTask id=\"StartUserNode\" name=\"发起人\">\n <extensionElements>\n <flowable:approveType><![CDATA[1]]></flowable:approveType>\n <flowable:candidateStrategy><![CDATA[36]]></flowable:candidateStrategy>\n <flowable:fieldsPermission field=\"fenGuan\" title=\"分管领导\" permission=\"2\"></flowable:fieldsPermission>\n <flowable:fieldsPermission field=\"gangWei\" title=\"岗位\" permission=\"2\"></flowable:fieldsPermission>\n <flowable:fieldsPermission field=\"deptId\" title=\"部门\" permission=\"2\"></flowable:fieldsPermission>\n <flowable:fieldsPermission field=\"zhiShu\" title=\"直属领导\" permission=\"2\"></flowable:fieldsPermission>\n <flowable:buttonsSetting displayName=\"提交\" enable=\"true\" id=\"1\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"拒绝\" enable=\"false\" id=\"2\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"抄送\" enable=\"false\" id=\"7\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"转办\" enable=\"false\" id=\"3\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"委派\" enable=\"false\" id=\"4\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"加签\" enable=\"false\" id=\"5\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"退回\" enable=\"false\" id=\"6\"></flowable:buttonsSetting>\n <flowable:assignStartUserHandlerType><![CDATA[2]]></flowable:assignStartUserHandlerType>\n </extensionElements>\n </userTask>\n <exclusiveGateway id=\"GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1\" default=\"Flow_928eac73-294a-425f-bf01-9c045d29a92f\"></exclusiveGateway>\n <userTask id=\"Activity_7e06529d-e9fa-4062-a1ae-18742609590d\" name=\"L1或签审批\">\n <extensionElements>\n <flowable:approveType><![CDATA[1]]></flowable:approveType>\n <flowable:candidateStrategy><![CDATA[60]]></flowable:candidateStrategy>\n <flowable:candidateParam><![CDATA[${L1UserList}]]></flowable:candidateParam>\n <flowable:fieldsPermission field=\"fenGuan\" title=\"分管领导\" permission=\"1\"></flowable:fieldsPermission>\n <flowable:fieldsPermission field=\"gangWei\" title=\"岗位\" permission=\"1\"></flowable:fieldsPermission>\n <flowable:fieldsPermission field=\"deptId\" title=\"部门\" permission=\"1\"></flowable:fieldsPermission>\n <flowable:fieldsPermission field=\"zhiShu\" title=\"直属领导\" permission=\"1\"></flowable:fieldsPermission>\n <flowable:buttonsSetting displayName=\"通过\" enable=\"true\" id=\"1\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"拒绝\" enable=\"true\" id=\"2\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"转办\" enable=\"true\" id=\"3\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"委派\" enable=\"true\" id=\"4\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"加签\" enable=\"true\" id=\"5\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"退回\" enable=\"true\" id=\"6\"></flowable:buttonsSetting>\n <flowable:extendProcessSendSetting><![CDATA[true]]></flowable:extendProcessSendSetting>\n <flowable:approveMethod><![CDATA[3]]></flowable:approveMethod>\n <flowable:rejectHandlerType><![CDATA[1]]></flowable:rejectHandlerType>\n <flowable:assignStartUserHandlerType><![CDATA[1]]></flowable:assignStartUserHandlerType>\n <flowable:assignEmptyHandlerType><![CDATA[1]]></flowable:assignEmptyHandlerType>\n <flowable:signEnable><![CDATA[false]]></flowable:signEnable>\n <flowable:reasonRequire><![CDATA[false]]></flowable:reasonRequire>\n <flowable:nodeType><![CDATA[11]]></flowable:nodeType>\n </extensionElements>\n <multiInstanceLoopCharacteristics isSequential=\"false\" flowable:collection=\"${coll_userList}\">\n <completionCondition>${ nrOfCompletedInstances > 0 }</completionCondition>\n </multiInstanceLoopCharacteristics>\n </userTask>\n <exclusiveGateway id=\"GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563\" default=\"Flow_c35e6e1c-2249-45b2-bfd2-92dc4f141426\"></exclusiveGateway>\n <userTask id=\"Activity_82540b22-2616-4924-9554-8466e1201240\" name=\"L2会签审批\">\n <extensionElements>\n <flowable:approveType><![CDATA[1]]></flowable:approveType>\n <flowable:candidateStrategy><![CDATA[60]]></flowable:candidateStrategy>\n <flowable:candidateParam><![CDATA[${L2UserList}]]></flowable:candidateParam>\n <flowable:fieldsPermission field=\"days\" title=\"请假天数\" permission=\"1\"></flowable:fieldsPermission>\n <flowable:buttonsSetting displayName=\"通过\" enable=\"true\" id=\"1\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"拒绝\" enable=\"true\" id=\"2\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"转办\" enable=\"true\" id=\"3\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"委派\" enable=\"true\" id=\"4\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"加签\" enable=\"true\" id=\"5\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"退回\" enable=\"true\" id=\"6\"></flowable:buttonsSetting>\n <flowable:extendProcessSendSetting><![CDATA[null]]></flowable:extendProcessSendSetting>\n <flowable:approveMethod><![CDATA[2]]></flowable:approveMethod>\n <flowable:rejectHandlerType><![CDATA[1]]></flowable:rejectHandlerType>\n <flowable:assignStartUserHandlerType><![CDATA[1]]></flowable:assignStartUserHandlerType>\n <flowable:assignEmptyHandlerType><![CDATA[1]]></flowable:assignEmptyHandlerType>\n <flowable:signEnable><![CDATA[false]]></flowable:signEnable>\n <flowable:reasonRequire><![CDATA[false]]></flowable:reasonRequire>\n <flowable:nodeType><![CDATA[11]]></flowable:nodeType>\n </extensionElements>\n <multiInstanceLoopCharacteristics isSequential=\"false\" flowable:collection=\"${coll_userList}\">\n <completionCondition>${ nrOfCompletedInstances/nrOfInstances >= 1.00}</completionCondition>\n </multiInstanceLoopCharacteristics>\n </userTask>\n <exclusiveGateway id=\"GateWay_f6496e3b-2adf-406b-a6aa-087682eab021\" default=\"Flow_1d7a231a-cd17-46c0-b9d4-25b3403bfe3c\"></exclusiveGateway>\n <userTask id=\"Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f\" name=\"L3审批\">\n <extensionElements>\n <flowable:approveType><![CDATA[1]]></flowable:approveType>\n <flowable:candidateStrategy><![CDATA[60]]></flowable:candidateStrategy>\n <flowable:candidateParam><![CDATA[${L3UserList}]]></flowable:candidateParam>\n <flowable:fieldsPermission field=\"fenGuan\" title=\"分管领导\" permission=\"1\"></flowable:fieldsPermission>\n <flowable:fieldsPermission field=\"gangWei\" title=\"岗位\" permission=\"1\"></flowable:fieldsPermission>\n <flowable:fieldsPermission field=\"deptId\" title=\"部门\" permission=\"1\"></flowable:fieldsPermission>\n <flowable:fieldsPermission field=\"zhiShu\" title=\"直属领导\" permission=\"1\"></flowable:fieldsPermission>\n <flowable:buttonsSetting displayName=\"通过\" enable=\"true\" id=\"1\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"拒绝\" enable=\"true\" id=\"2\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"转办\" enable=\"true\" id=\"3\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"委派\" enable=\"true\" id=\"4\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"加签\" enable=\"true\" id=\"5\"></flowable:buttonsSetting>\n <flowable:buttonsSetting displayName=\"退回\" enable=\"true\" id=\"6\"></flowable:buttonsSetting>\n <flowable:extendProcessSendSetting><![CDATA[true]]></flowable:extendProcessSendSetting>\n <flowable:approveMethod><![CDATA[4]]></flowable:approveMethod>\n <flowable:rejectHandlerType><![CDATA[1]]></flowable:rejectHandlerType>\n <flowable:assignStartUserHandlerType><![CDATA[1]]></flowable:assignStartUserHandlerType>\n <flowable:assignEmptyHandlerType><![CDATA[1]]></flowable:assignEmptyHandlerType>\n <flowable:signEnable><![CDATA[false]]></flowable:signEnable>\n <flowable:reasonRequire><![CDATA[false]]></flowable:reasonRequire>\n <flowable:nodeType><![CDATA[11]]></flowable:nodeType>\n </extensionElements>\n <multiInstanceLoopCharacteristics isSequential=\"true\" flowable:collection=\"${coll_userList}\">\n <loopCardinality>1</loopCardinality>\n <completionCondition>${ nrOfCompletedInstances >= nrOfInstances }</completionCondition>\n </multiInstanceLoopCharacteristics>\n </userTask>\n <endEvent id=\"EndEvent\" name=\"结束\"></endEvent>\n <sequenceFlow id=\"sequenceFlow-f434973e-3ae2-4f01-bb38-49dee26aed04\" sourceRef=\"StartEvent\" targetRef=\"StartUserNode\"></sequenceFlow>\n <sequenceFlow id=\"sequenceFlow-3319ffd6-e602-44ad-9045-4f19376b83e9\" sourceRef=\"StartUserNode\" targetRef=\"GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1\"></sequenceFlow>\n <sequenceFlow id=\"Flow_026df4de-49c1-43ba-9a98-28f0568776d0\" name=\"L1审批存在用户\" sourceRef=\"GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1\" targetRef=\"Activity_7e06529d-e9fa-4062-a1ae-18742609590d\">\n <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${L1UserList.size() > 0}]]></conditionExpression>\n </sequenceFlow>\n <sequenceFlow id=\"sequenceFlow-122adc53-accc-4da5-ba34-92f3b11e8789\" sourceRef=\"Activity_7e06529d-e9fa-4062-a1ae-18742609590d\" targetRef=\"GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563\"></sequenceFlow>\n <sequenceFlow id=\"Flow_928eac73-294a-425f-bf01-9c045d29a92f\" name=\"L1审批不存在用户\" sourceRef=\"GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1\" targetRef=\"GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563\"></sequenceFlow>\n <sequenceFlow id=\"Flow_8ca2525a-0c23-4f05-a843-36c364facb96\" name=\"L2审批存在用户\" sourceRef=\"GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563\" targetRef=\"Activity_82540b22-2616-4924-9554-8466e1201240\">\n <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${L2UserList.size() > 0}]]></conditionExpression>\n </sequenceFlow>\n <sequenceFlow id=\"sequenceFlow-b88a1c83-a42b-46c2-a92d-ba6798fed1de\" sourceRef=\"Activity_82540b22-2616-4924-9554-8466e1201240\" targetRef=\"GateWay_f6496e3b-2adf-406b-a6aa-087682eab021\"></sequenceFlow>\n <sequenceFlow id=\"Flow_c35e6e1c-2249-45b2-bfd2-92dc4f141426\" name=\"L2审批不存在用户\" sourceRef=\"GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563\" targetRef=\"GateWay_f6496e3b-2adf-406b-a6aa-087682eab021\"></sequenceFlow>\n <sequenceFlow id=\"Flow_b1c94590-0170-41af-a462-f02b6f86f7d0\" name=\"L3审批存在用户\" sourceRef=\"GateWay_f6496e3b-2adf-406b-a6aa-087682eab021\" targetRef=\"Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f\">\n <conditionExpression xsi:type=\"tFormalExpression\"><![CDATA[${L3UserList.size() > 0}]]></conditionExpression>\n </sequenceFlow>\n <sequenceFlow id=\"sequenceFlow-e688ab64-9229-4125-86fe-4bbdb6668ccb\" sourceRef=\"Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f\" targetRef=\"EndEvent\"></sequenceFlow>\n <sequenceFlow id=\"Flow_1d7a231a-cd17-46c0-b9d4-25b3403bfe3c\" name=\"L3审批不存在用户\" sourceRef=\"GateWay_f6496e3b-2adf-406b-a6aa-087682eab021\" targetRef=\"EndEvent\"></sequenceFlow>\n </process>\n <bpmndi:BPMNDiagram id=\"BPMNDiagram_simple-multi-node-simple\">\n <bpmndi:BPMNPlane bpmnElement=\"simple-multi-node-simple\" id=\"BPMNPlane_simple-multi-node-simple\">\n <bpmndi:BPMNShape bpmnElement=\"StartUserNode\" id=\"BPMNShape_StartUserNode\">\n <omgdc:Bounds height=\"60.0\" width=\"100.0\" x=\"80.0\" y=\"59.0\"></omgdc:Bounds>\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape bpmnElement=\"GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563\" id=\"BPMNShape_GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563\">\n <omgdc:Bounds height=\"40.0\" width=\"40.0\" x=\"470.0\" y=\"60.0\"></omgdc:Bounds>\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape bpmnElement=\"Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f\" id=\"BPMNShape_Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f\">\n <omgdc:Bounds height=\"60.0\" width=\"100.0\" x=\"800.0\" y=\"100.0\"></omgdc:Bounds>\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape bpmnElement=\"GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1\" id=\"BPMNShape_GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1\">\n <omgdc:Bounds height=\"40.0\" width=\"40.0\" x=\"230.0\" y=\"72.0\"></omgdc:Bounds>\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape bpmnElement=\"Activity_7e06529d-e9fa-4062-a1ae-18742609590d\" id=\"BPMNShape_Activity_7e06529d-e9fa-4062-a1ae-18742609590d\">\n <omgdc:Bounds height=\"60.0\" width=\"100.0\" x=\"320.0\" y=\"0.0\"></omgdc:Bounds>\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape bpmnElement=\"StartEvent\" id=\"BPMNShape_StartEvent\">\n <omgdc:Bounds height=\"30.0\" width=\"30.0\" x=\"0.0\" y=\"74.0\"></omgdc:Bounds>\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape bpmnElement=\"Activity_82540b22-2616-4924-9554-8466e1201240\" id=\"BPMNShape_Activity_82540b22-2616-4924-9554-8466e1201240\">\n <omgdc:Bounds height=\"60.0\" width=\"100.0\" x=\"560.0\" y=\"100.0\"></omgdc:Bounds>\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape bpmnElement=\"EndEvent\" id=\"BPMNShape_EndEvent\">\n <omgdc:Bounds height=\"30.0\" width=\"30.0\" x=\"950.0\" y=\"50.0\"></omgdc:Bounds>\n </bpmndi:BPMNShape>\n <bpmndi:BPMNShape bpmnElement=\"GateWay_f6496e3b-2adf-406b-a6aa-087682eab021\" id=\"BPMNShape_GateWay_f6496e3b-2adf-406b-a6aa-087682eab021\">\n <omgdc:Bounds height=\"40.0\" width=\"40.0\" x=\"710.0\" y=\"45.0\"></omgdc:Bounds>\n </bpmndi:BPMNShape>\n <bpmndi:BPMNEdge bpmnElement=\"Flow_026df4de-49c1-43ba-9a98-28f0568776d0\" id=\"BPMNEdge_Flow_026df4de-49c1-43ba-9a98-28f0568776d0\">\n <omgdi:waypoint x=\"270.0\" y=\"84.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"282.0\" y=\"84.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"282.0\" y=\"30.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"320.0\" y=\"30.0\"></omgdi:waypoint>\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge bpmnElement=\"sequenceFlow-b88a1c83-a42b-46c2-a92d-ba6798fed1de\" id=\"BPMNEdge_sequenceFlow-b88a1c83-a42b-46c2-a92d-ba6798fed1de\">\n <omgdi:waypoint x=\"660.0\" y=\"130.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"672.0\" y=\"130.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"672.0\" y=\"65.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"710.0\" y=\"65.0\"></omgdi:waypoint>\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge bpmnElement=\"Flow_928eac73-294a-425f-bf01-9c045d29a92f\" id=\"BPMNEdge_Flow_928eac73-294a-425f-bf01-9c045d29a92f\">\n <omgdi:waypoint x=\"270.0\" y=\"99.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"282.0\" y=\"99.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"282.0\" y=\"80.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"470.0\" y=\"80.0\"></omgdi:waypoint>\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge bpmnElement=\"sequenceFlow-122adc53-accc-4da5-ba34-92f3b11e8789\" id=\"BPMNEdge_sequenceFlow-122adc53-accc-4da5-ba34-92f3b11e8789\">\n <omgdi:waypoint x=\"420.0\" y=\"30.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"432.0\" y=\"30.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"432.0\" y=\"80.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"470.0\" y=\"80.0\"></omgdi:waypoint>\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge bpmnElement=\"Flow_1d7a231a-cd17-46c0-b9d4-25b3403bfe3c\" id=\"BPMNEdge_Flow_1d7a231a-cd17-46c0-b9d4-25b3403bfe3c\">\n <omgdi:waypoint x=\"750.0\" y=\"57.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"762.0\" y=\"57.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"762.0\" y=\"65.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"950.0\" y=\"65.0\"></omgdi:waypoint>\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge bpmnElement=\"Flow_c35e6e1c-2249-45b2-bfd2-92dc4f141426\" id=\"BPMNEdge_Flow_c35e6e1c-2249-45b2-bfd2-92dc4f141426\">\n <omgdi:waypoint x=\"510.0\" y=\"72.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"522.0\" y=\"72.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"522.0\" y=\"65.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"710.0\" y=\"65.0\"></omgdi:waypoint>\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge bpmnElement=\"sequenceFlow-e688ab64-9229-4125-86fe-4bbdb6668ccb\" id=\"BPMNEdge_sequenceFlow-e688ab64-9229-4125-86fe-4bbdb6668ccb\">\n <omgdi:waypoint x=\"900.0\" y=\"130.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"912.0\" y=\"130.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"912.0\" y=\"65.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"950.0\" y=\"65.0\"></omgdi:waypoint>\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge bpmnElement=\"sequenceFlow-f434973e-3ae2-4f01-bb38-49dee26aed04\" id=\"BPMNEdge_sequenceFlow-f434973e-3ae2-4f01-bb38-49dee26aed04\">\n <omgdi:waypoint x=\"30.0\" y=\"89.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"80.0\" y=\"89.0\"></omgdi:waypoint>\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge bpmnElement=\"sequenceFlow-3319ffd6-e602-44ad-9045-4f19376b83e9\" id=\"BPMNEdge_sequenceFlow-3319ffd6-e602-44ad-9045-4f19376b83e9\">\n <omgdi:waypoint x=\"180.0\" y=\"89.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"192.0\" y=\"89.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"192.0\" y=\"92.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"230.0\" y=\"92.0\"></omgdi:waypoint>\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge bpmnElement=\"Flow_8ca2525a-0c23-4f05-a843-36c364facb96\" id=\"BPMNEdge_Flow_8ca2525a-0c23-4f05-a843-36c364facb96\">\n <omgdi:waypoint x=\"510.0\" y=\"87.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"522.0\" y=\"87.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"522.0\" y=\"130.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"560.0\" y=\"130.0\"></omgdi:waypoint>\n </bpmndi:BPMNEdge>\n <bpmndi:BPMNEdge bpmnElement=\"Flow_b1c94590-0170-41af-a462-f02b6f86f7d0\" id=\"BPMNEdge_Flow_b1c94590-0170-41af-a462-f02b6f86f7d0\">\n <omgdi:waypoint x=\"750.0\" y=\"72.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"762.0\" y=\"72.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"762.0\" y=\"130.0\"></omgdi:waypoint>\n <omgdi:waypoint x=\"800.0\" y=\"130.0\"></omgdi:waypoint>\n </bpmndi:BPMNEdge>\n </bpmndi:BPMNPlane>\n </bpmndi:BPMNDiagram>\n</definitions>",
|
|
296
|
+
"simpleModel": "{\"id\":\"StartUserNode\",\"type\":10,\"name\":\"发起人\",\"showText\":\"已设置\",\"childNode\":{\"id\":\"GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1\",\"type\":51,\"name\":\"条件分支\",\"childNode\":{\"id\":\"GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563\",\"type\":51,\"name\":\"条件分支\",\"childNode\":{\"id\":\"GateWay_f6496e3b-2adf-406b-a6aa-087682eab021\",\"type\":51,\"name\":\"条件分支\",\"childNode\":{\"id\":\"EndEvent\",\"type\":1,\"name\":\"结束\"},\"conditionNodes\":[{\"id\":\"Flow_b1c94590-0170-41af-a462-f02b6f86f7d0\",\"type\":50,\"name\":\"L3审批存在用户\",\"showText\":\"表达式:${L3UserList.size() > 0}\",\"childNode\":{\"id\":\"Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f\",\"type\":11,\"name\":\"L3审批\",\"showText\":\"流程表达式:${L3UserList}\",\"candidateStrategy\":60,\"candidateParam\":\"${L3UserList}\",\"approveType\":1,\"approveMethod\":4,\"fieldsPermission\":[{\"field\":\"fenGuan\",\"title\":\"分管领导\",\"permission\":\"1\"},{\"field\":\"gangWei\",\"title\":\"岗位\",\"permission\":\"1\"},{\"field\":\"deptId\",\"title\":\"部门\",\"permission\":\"1\"},{\"field\":\"zhiShu\",\"title\":\"直属领导\",\"permission\":\"1\"}],\"buttonsSetting\":[{\"id\":1,\"displayName\":\"通过\",\"enable\":true},{\"id\":2,\"displayName\":\"拒绝\",\"enable\":true},{\"id\":3,\"displayName\":\"转办\",\"enable\":true},{\"id\":4,\"displayName\":\"委派\",\"enable\":true},{\"id\":5,\"displayName\":\"加签\",\"enable\":true},{\"id\":6,\"displayName\":\"退回\",\"enable\":true}],\"signEnable\":false,\"reasonRequire\":false,\"skipExpression\":\"\",\"extendProcessSendSetting\":true,\"rejectHandler\":{\"type\":1},\"timeoutHandler\":{\"enable\":false},\"assignStartUserHandlerType\":1,\"assignEmptyHandler\":{\"type\":1},\"taskCreateListener\":{\"enable\":false,\"header\":[],\"body\":[]},\"taskAssignListener\":{\"enable\":false,\"header\":[],\"body\":[]},\"taskCompleteListener\":{\"enable\":false,\"header\":[],\"body\":[]}},\"conditionSetting\":{\"conditionType\":1,\"conditionExpression\":\"${L3UserList.size() > 0}\",\"defaultFlow\":false}},{\"id\":\"Flow_1d7a231a-cd17-46c0-b9d4-25b3403bfe3c\",\"type\":50,\"name\":\"L3审批不存在用户\",\"showText\":\"未满足其它条件时,将进入此分支\",\"conditionSetting\":{\"defaultFlow\":true}}]},\"conditionNodes\":[{\"id\":\"Flow_8ca2525a-0c23-4f05-a843-36c364facb96\",\"type\":50,\"name\":\"L2审批存在用户\",\"showText\":\"表达式:${L2UserList.size() > 0}\",\"childNode\":{\"id\":\"Activity_82540b22-2616-4924-9554-8466e1201240\",\"type\":11,\"name\":\"L2会签审批\",\"showText\":\"流程表达式:${L2UserList}\",\"candidateStrategy\":60,\"candidateParam\":\"${L2UserList}\",\"approveType\":1,\"approveMethod\":2,\"approveRatio\":100,\"fieldsPermission\":[{\"field\":\"days\",\"title\":\"请假天数\",\"permission\":\"1\"}],\"buttonsSetting\":[{\"id\":1,\"displayName\":\"通过\",\"enable\":true},{\"id\":2,\"displayName\":\"拒绝\",\"enable\":true},{\"id\":3,\"displayName\":\"转办\",\"enable\":true},{\"id\":4,\"displayName\":\"委派\",\"enable\":true},{\"id\":5,\"displayName\":\"加签\",\"enable\":true},{\"id\":6,\"displayName\":\"退回\",\"enable\":true}],\"signEnable\":false,\"reasonRequire\":false,\"skipExpression\":\"\",\"rejectHandler\":{\"type\":1},\"timeoutHandler\":{\"enable\":false},\"assignStartUserHandlerType\":1,\"assignEmptyHandler\":{\"type\":1},\"taskCreateListener\":{\"enable\":false,\"header\":[],\"body\":[]},\"taskAssignListener\":{\"enable\":false,\"header\":[],\"body\":[]},\"taskCompleteListener\":{\"enable\":false,\"header\":[],\"body\":[]}},\"conditionSetting\":{\"conditionType\":1,\"conditionExpression\":\"${L2UserList.size() > 0}\",\"defaultFlow\":false}},{\"id\":\"Flow_c35e6e1c-2249-45b2-bfd2-92dc4f141426\",\"type\":50,\"name\":\"L2审批不存在用户\",\"showText\":\"未满足其它条件时,将进入此分支\",\"conditionSetting\":{\"defaultFlow\":true}}]},\"conditionNodes\":[{\"id\":\"Flow_026df4de-49c1-43ba-9a98-28f0568776d0\",\"type\":50,\"name\":\"L1审批存在用户\",\"showText\":\"表达式:${L1UserList.size() > 0}\",\"childNode\":{\"id\":\"Activity_7e06529d-e9fa-4062-a1ae-18742609590d\",\"type\":11,\"name\":\"L1或签审批\",\"showText\":\"流程表达式:${L1UserList}\",\"candidateStrategy\":60,\"candidateParam\":\"${L1UserList}\",\"approveType\":1,\"approveMethod\":3,\"fieldsPermission\":[{\"field\":\"fenGuan\",\"title\":\"分管领导\",\"permission\":\"1\"},{\"field\":\"gangWei\",\"title\":\"岗位\",\"permission\":\"1\"},{\"field\":\"deptId\",\"title\":\"部门\",\"permission\":\"1\"},{\"field\":\"zhiShu\",\"title\":\"直属领导\",\"permission\":\"1\"}],\"buttonsSetting\":[{\"id\":1,\"displayName\":\"通过\",\"enable\":true},{\"id\":2,\"displayName\":\"拒绝\",\"enable\":true},{\"id\":3,\"displayName\":\"转办\",\"enable\":true},{\"id\":4,\"displayName\":\"委派\",\"enable\":true},{\"id\":5,\"displayName\":\"加签\",\"enable\":true},{\"id\":6,\"displayName\":\"退回\",\"enable\":true}],\"signEnable\":false,\"reasonRequire\":false,\"skipExpression\":\"\",\"extendProcessSendSetting\":true,\"rejectHandler\":{\"type\":1},\"timeoutHandler\":{\"enable\":false},\"assignStartUserHandlerType\":1,\"assignEmptyHandler\":{\"type\":1},\"taskCreateListener\":{\"enable\":false,\"header\":[],\"body\":[]},\"taskAssignListener\":{\"enable\":false,\"header\":[],\"body\":[]},\"taskCompleteListener\":{\"enable\":false,\"header\":[],\"body\":[]}},\"conditionSetting\":{\"conditionType\":1,\"conditionExpression\":\"${L1UserList.size() > 0}\",\"defaultFlow\":false}},{\"id\":\"Flow_928eac73-294a-425f-bf01-9c045d29a92f\",\"type\":50,\"name\":\"L1审批不存在用户\",\"showText\":\"未满足其它条件时,将进入此分支\",\"conditionSetting\":{\"defaultFlow\":true}}]},\"fieldsPermission\":[{\"field\":\"fenGuan\",\"title\":\"分管领导\",\"permission\":\"2\"},{\"field\":\"gangWei\",\"title\":\"岗位\",\"permission\":\"2\"},{\"field\":\"deptId\",\"title\":\"部门\",\"permission\":\"2\"},{\"field\":\"zhiShu\",\"title\":\"直属领导\",\"permission\":\"2\"}],\"buttonsSetting\":[{\"id\":1,\"displayName\":\"提交\",\"enable\":true},{\"id\":2,\"displayName\":\"拒绝\",\"enable\":false},{\"id\":7,\"displayName\":\"抄送\",\"enable\":false},{\"id\":3,\"displayName\":\"转办\",\"enable\":false},{\"id\":4,\"displayName\":\"委派\",\"enable\":false},{\"id\":5,\"displayName\":\"加签\",\"enable\":false},{\"id\":6,\"displayName\":\"退回\",\"enable\":false}]}"
|
|
297
|
+
},
|
|
298
|
+
"processInstance": {
|
|
299
|
+
"id": "0ffc3c74-2f25-11f1-9259-fa163e43f4f0",
|
|
300
|
+
"name": "连续多节点simple设计器",
|
|
301
|
+
"summary": null,
|
|
302
|
+
"category": null,
|
|
303
|
+
"categoryName": null,
|
|
304
|
+
"status": 1,
|
|
305
|
+
"startTime": "2026-04-03T14:19:25+0800",
|
|
306
|
+
"endTime": null,
|
|
307
|
+
"durationInMillis": null,
|
|
308
|
+
"formVariables": {
|
|
309
|
+
"_FLOWABLE_SKIP_EXPRESSION_ENABLED": true,
|
|
310
|
+
"approvalDialogComponentPath": "/line/testSimpleMutilNode/DialogDetail.vue",
|
|
311
|
+
"L2ApproveType": 1,
|
|
312
|
+
"customVariables": {},
|
|
313
|
+
"L2UserList": [
|
|
314
|
+
207
|
|
315
|
+
],
|
|
316
|
+
"PROCESS_START_USER_ID": 207,
|
|
317
|
+
"approvalPageOpenType": "openDialog",
|
|
318
|
+
"L1ApproveType": 2,
|
|
319
|
+
"L3UserList": [
|
|
320
|
+
207
|
|
321
|
+
],
|
|
322
|
+
"USER_ID_207": {
|
|
323
|
+
"userId": 207,
|
|
324
|
+
"id": "1000000000000010322",
|
|
325
|
+
"name": "外运集运",
|
|
326
|
+
"roleId": 170,
|
|
327
|
+
"roleName": "租户管理员",
|
|
328
|
+
"nickName": "集运管理员"
|
|
329
|
+
},
|
|
330
|
+
"L1UserList": [
|
|
331
|
+
207
|
|
332
|
+
],
|
|
333
|
+
"L3ApproveType": 2,
|
|
334
|
+
"applicationPrefix": "/svl",
|
|
335
|
+
"approvalRouteUrl": "/line/bpmSimpleMutilNode/detail"
|
|
336
|
+
},
|
|
337
|
+
"businessKey": "2039950881344360448",
|
|
338
|
+
"startUser": {
|
|
339
|
+
"id": 207,
|
|
340
|
+
"nickname": "集运管理员",
|
|
341
|
+
"avatar": "https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",
|
|
342
|
+
"deptId": "1000000000000010322",
|
|
343
|
+
"deptName": "外运集运"
|
|
344
|
+
},
|
|
345
|
+
"processDefinitionId": "simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",
|
|
346
|
+
"processDefinition": null,
|
|
347
|
+
"tasks": null
|
|
348
|
+
}
|
|
51
349
|
}
|
|
52
350
|
processInstance.value = data?.processInstance
|
|
53
351
|
applicationPrefix.value = data?.processInstance?.formVariables?.applicationPrefix
|
|
@@ -59,7 +357,129 @@ const getApprovalDetail = async () => {
|
|
|
59
357
|
|
|
60
358
|
// 获取任务列表
|
|
61
359
|
const getTaskList = async () => {
|
|
62
|
-
tasks.value = await taskApi.getTaskListByProcessInstanceId(id.value)
|
|
360
|
+
// tasks.value = await taskApi.getTaskListByProcessInstanceId(id.value)
|
|
361
|
+
tasks.value = [
|
|
362
|
+
{
|
|
363
|
+
"id": "0fff48cd-2f25-11f1-9259-fa163e43f4f0",
|
|
364
|
+
"name": "发起人",
|
|
365
|
+
"createTime": "2026-04-03T14:19:25+0800",
|
|
366
|
+
"endTime": "2026-04-03T14:19:26+0800",
|
|
367
|
+
"durationInMillis": 618,
|
|
368
|
+
"status": 2,
|
|
369
|
+
"reason": "发起人节点首次自动通过",
|
|
370
|
+
"ownerUser": null,
|
|
371
|
+
"assigneeUser": {
|
|
372
|
+
"id": 207,
|
|
373
|
+
"nickname": "集运管理员",
|
|
374
|
+
"avatar": "https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",
|
|
375
|
+
"deptId": "1000000000000010322",
|
|
376
|
+
"deptName": "外运集运"
|
|
377
|
+
},
|
|
378
|
+
"taskDefinitionKey": "StartUserNode",
|
|
379
|
+
"processInstanceId": "0ffc3c74-2f25-11f1-9259-fa163e43f4f0",
|
|
380
|
+
"processInstance": {
|
|
381
|
+
"id": "0ffc3c74-2f25-11f1-9259-fa163e43f4f0",
|
|
382
|
+
"name": "连续多节点simple设计器",
|
|
383
|
+
"createTime": null,
|
|
384
|
+
"processDefinitionId": "simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",
|
|
385
|
+
"businessKey": "2039950881344360448",
|
|
386
|
+
"summary": null,
|
|
387
|
+
"startUser": {
|
|
388
|
+
"id": 207,
|
|
389
|
+
"nickname": "集运管理员",
|
|
390
|
+
"avatar": "https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",
|
|
391
|
+
"deptId": "1000000000000010322",
|
|
392
|
+
"deptName": null
|
|
393
|
+
},
|
|
394
|
+
"deptName": null,
|
|
395
|
+
"formVariables": null
|
|
396
|
+
},
|
|
397
|
+
"parentTaskId": null,
|
|
398
|
+
"children": null,
|
|
399
|
+
"formId": null,
|
|
400
|
+
"formName": null,
|
|
401
|
+
"formConf": null,
|
|
402
|
+
"formFields": null,
|
|
403
|
+
"formVariables": null,
|
|
404
|
+
"buttonsSetting": null,
|
|
405
|
+
"signEnable": null,
|
|
406
|
+
"reasonRequire": null,
|
|
407
|
+
"nodeType": null,
|
|
408
|
+
"timeout": null,
|
|
409
|
+
"categoryName": null,
|
|
410
|
+
"deptName": "外运集运",
|
|
411
|
+
"roleName": "租户管理员",
|
|
412
|
+
"proxyRoleName": null,
|
|
413
|
+
"proxyNickName": null,
|
|
414
|
+
"proxyDeptName": null,
|
|
415
|
+
"proxyUserId": null,
|
|
416
|
+
"proxyFlag": null,
|
|
417
|
+
"customVariables": null,
|
|
418
|
+
"category": "edi",
|
|
419
|
+
"priority": 50,
|
|
420
|
+
"editable": true
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"id": "106117fa-2f25-11f1-9259-fa163e43f4f0",
|
|
424
|
+
"name": "L1或签审批",
|
|
425
|
+
"createTime": "2026-04-03T14:19:26+0800",
|
|
426
|
+
"endTime": null,
|
|
427
|
+
"durationInMillis": null,
|
|
428
|
+
"status": 1,
|
|
429
|
+
"reason": null,
|
|
430
|
+
"ownerUser": null,
|
|
431
|
+
"assigneeUser": {
|
|
432
|
+
"id": 207,
|
|
433
|
+
"nickname": "集运管理员",
|
|
434
|
+
"avatar": "https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",
|
|
435
|
+
"deptId": "1000000000000010322",
|
|
436
|
+
"deptName": "外运集运"
|
|
437
|
+
},
|
|
438
|
+
"taskDefinitionKey": "Activity_7e06529d-e9fa-4062-a1ae-18742609590d",
|
|
439
|
+
"processInstanceId": "0ffc3c74-2f25-11f1-9259-fa163e43f4f0",
|
|
440
|
+
"processInstance": {
|
|
441
|
+
"id": "0ffc3c74-2f25-11f1-9259-fa163e43f4f0",
|
|
442
|
+
"name": "连续多节点simple设计器",
|
|
443
|
+
"createTime": null,
|
|
444
|
+
"processDefinitionId": "simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",
|
|
445
|
+
"businessKey": "2039950881344360448",
|
|
446
|
+
"summary": null,
|
|
447
|
+
"startUser": {
|
|
448
|
+
"id": 207,
|
|
449
|
+
"nickname": "集运管理员",
|
|
450
|
+
"avatar": "https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",
|
|
451
|
+
"deptId": "1000000000000010322",
|
|
452
|
+
"deptName": null
|
|
453
|
+
},
|
|
454
|
+
"deptName": null,
|
|
455
|
+
"formVariables": null
|
|
456
|
+
},
|
|
457
|
+
"parentTaskId": null,
|
|
458
|
+
"children": null,
|
|
459
|
+
"formId": null,
|
|
460
|
+
"formName": null,
|
|
461
|
+
"formConf": null,
|
|
462
|
+
"formFields": null,
|
|
463
|
+
"formVariables": null,
|
|
464
|
+
"buttonsSetting": null,
|
|
465
|
+
"signEnable": null,
|
|
466
|
+
"reasonRequire": null,
|
|
467
|
+
"nodeType": null,
|
|
468
|
+
"timeout": null,
|
|
469
|
+
"categoryName": null,
|
|
470
|
+
"deptName": "外运集运",
|
|
471
|
+
"roleName": "租户管理员",
|
|
472
|
+
"proxyRoleName": null,
|
|
473
|
+
"proxyNickName": null,
|
|
474
|
+
"proxyDeptName": null,
|
|
475
|
+
"proxyUserId": null,
|
|
476
|
+
"proxyFlag": null,
|
|
477
|
+
"customVariables": null,
|
|
478
|
+
"category": "edi",
|
|
479
|
+
"priority": 95,
|
|
480
|
+
"editable": true
|
|
481
|
+
}
|
|
482
|
+
]
|
|
63
483
|
}
|
|
64
484
|
|
|
65
485
|
watch(
|