cloud-module-bpm 6.13.2 → 6.13.3
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/cloud-module-bpm.common.js +3965 -1347
- package/dist/cloud-module-bpm.common.js.map +1 -1
- package/dist/cloud-module-bpm.css +1 -1
- package/dist/cloud-module-bpm.umd.js +3965 -1347
- package/dist/cloud-module-bpm.umd.js.map +1 -1
- package/dist/cloud-module-bpm.umd.min.js +6 -6
- package/dist/cloud-module-bpm.umd.min.js.map +1 -1
- package/package.json +5 -2
- package/packages/bpm-back-anylink-dialog/Tree.vue +222 -0
- package/packages/bpm-back-anylink-dialog/bpm-back-anylink-dialog.vue +466 -213
- package/packages/bpm-form-tools/bpm-form-tools.vue +33 -10
- package/packages/bpm-jump-dialog/Tree.vue +222 -0
- package/packages/bpm-jump-dialog/bpm-jump-dialog.vue +425 -161
- package/packages/bpm-jump-latest-dialog/Tree.vue +180 -41
- package/packages/bpm-jump-latest-dialog/bpm-jump-latest-dialog.vue +200 -30
- package/packages/bpm-opinion-dialog/bpm-opinion.vue +105 -44
- package/packages/bpm-send-read-dialog/SelectedGrid.vue +1 -1
- package/packages/bpm-send-read-dialog/SourceGrid.vue +90 -102
- package/packages/bpm-send-read-dialog/Tree.vue +145 -24
- package/packages/bpm-send-read-dialog/bpm-next-node.vue +3 -3
- package/packages/bpm-send-read-opinion-dialog/bpm-send-read-opinion.vue +35 -34
- package/packages/bpm-sign-dialog/SelectedGrid.vue +2 -2
- package/packages/bpm-sign-dialog/SourceGrid.vue +96 -113
- package/packages/bpm-sign-dialog/Tree.vue +125 -87
- package/packages/bpm-sign-dialog/bpm-next-node.vue +11 -8
- package/packages/bpm-user-select-dialog/SourceGrid.vue +127 -51
- package/packages/bpm-user-select-dialog/Tree.vue +151 -61
- package/packages/bpm-user-select-dialog/bpm-next-node.vue +17 -5
- package/packages/i18n/langs/zh_CN.js +6 -6
- package/packages/utils/merit-bpm.js +121 -8
|
@@ -12,7 +12,8 @@ var MeritBPM = {
|
|
|
12
12
|
sendReadDialogVisible: false, // 阅知对话框是否显示
|
|
13
13
|
sednReadOpinionDialogVisible: false, // 阅知意见对话框是否显示
|
|
14
14
|
signDialogVisible: false, // 转发对话框是否显示
|
|
15
|
-
signOpinionDialogVisible: false // 转发意见对话框是否显示
|
|
15
|
+
signOpinionDialogVisible: false, // 转发意见对话框是否显示
|
|
16
|
+
btnDisable: false
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
18
19
|
* 功能说明:创建流程,并不发启流程,只是为了获取流程第一个用户任务表单地址
|
|
@@ -51,6 +52,7 @@ MeritBPM.open = function(that, params, callback) {
|
|
|
51
52
|
})
|
|
52
53
|
.then(function(res) {
|
|
53
54
|
if (res) {
|
|
55
|
+
// that.MeritBPM.btnDisable = false
|
|
54
56
|
if (typeof callback == 'function') {
|
|
55
57
|
callback(res);
|
|
56
58
|
} else if (res.data != null) {
|
|
@@ -115,12 +117,15 @@ MeritBPM.runRuleEngine = function(that, bpmBtn, callback) {
|
|
|
115
117
|
// return item.id != 'bpmSaveOrUpdateBtn' && item.id != 'bpmOpinionBtn';
|
|
116
118
|
// });
|
|
117
119
|
that.MeritBPM.bpmBtns = bpmBtns;
|
|
120
|
+
// that.MeritBPM.btnDisable = false;
|
|
118
121
|
}
|
|
119
122
|
if (typeof callback === 'function') {
|
|
120
123
|
callback(res);
|
|
124
|
+
// that.MeritBPM.btnDisable = false;
|
|
121
125
|
} else {
|
|
122
126
|
// 当实例id不为null,点击保存操作,回调函数
|
|
123
127
|
that.bpmCustomFunction();
|
|
128
|
+
// that.MeritBPM.btnDisable = false;
|
|
124
129
|
}
|
|
125
130
|
})
|
|
126
131
|
.catch(function(err) {
|
|
@@ -146,19 +151,25 @@ MeritBPM.doSend = function(that, bpmBtn) {
|
|
|
146
151
|
that.bpmBtn = bpmBtn;
|
|
147
152
|
console.log(bpmBtn)
|
|
148
153
|
if (bpmBtn.id == 'bpmProcFileBtn') {
|
|
154
|
+
// 填表说明,下载
|
|
149
155
|
that.MeritBPM.openProcFilesWindow(that, {
|
|
150
156
|
procInstId: bpmBtn.procInstId,
|
|
151
157
|
procDefId: bpmBtn.procDefId,
|
|
152
158
|
procId:that.procDefKey
|
|
153
159
|
});
|
|
154
160
|
} else if (bpmBtn.id == 'bpmProcTrackBtn') {
|
|
161
|
+
// 流程跟踪
|
|
155
162
|
that.MeritBPM.openProcTrackWindow(that, {
|
|
156
163
|
procInstId: bpmBtn.procInstId,
|
|
157
164
|
procDefId: bpmBtn.procDefId
|
|
158
165
|
});
|
|
159
166
|
} else if (bpmBtn.id == 'bpmSaveOrUpdateBtn ' && bpmBtn.isSave != '1') {
|
|
167
|
+
// 保存
|
|
168
|
+
that.MeritBPM.btnDisable = true
|
|
169
|
+
|
|
160
170
|
that.bpmAddOrUpdate(bpmBtn);
|
|
161
171
|
} else if (bpmBtn.id == 'bpmCloseBtn') {
|
|
172
|
+
// 关闭
|
|
162
173
|
that.bpmClose();
|
|
163
174
|
} else {
|
|
164
175
|
if (
|
|
@@ -188,47 +199,68 @@ MeritBPM.doSend = function(that, bpmBtn) {
|
|
|
188
199
|
that.ruleEngine.nextNodes = nextNodes;
|
|
189
200
|
//================================是否打开人员选择对话框====================================
|
|
190
201
|
if (bpmBtn.id == 'bpmOpinionBtn') {
|
|
202
|
+
// 填写意见
|
|
203
|
+
// that.MeritBPM.btnDisable = true
|
|
191
204
|
that.MeritBPM.opinionDialogVisible = true;
|
|
192
205
|
} else if (that.ruleEngine.runtime.opinionWin == 'yes') {
|
|
206
|
+
// that.MeritBPM.btnDisable = true
|
|
193
207
|
that.MeritBPM.opinionDialogVisible = true;
|
|
194
208
|
} else if (that.ruleEngine.runtime.selUserWin == 'yes') {
|
|
209
|
+
// that.MeritBPM.btnDisable = true
|
|
195
210
|
that.MeritBPM.userSelectDialogVisible = true;
|
|
196
211
|
} else if (bpmBtn.id.indexOf('Flow') > 0 || bpmBtn.id.indexOf('Send') > 0) {
|
|
212
|
+
// 发送
|
|
213
|
+
that.MeritBPM.btnDisable = true
|
|
197
214
|
that.MeritBPM.finishTask(that, that.ruleEngine);
|
|
198
215
|
} else if (bpmBtn.id == 'bpmJumpBtn') {
|
|
216
|
+
// that.MeritBPM.btnDisable = true
|
|
199
217
|
that.MeritBPM.bpmJumpDialogVisible = true;
|
|
200
218
|
} else if (bpmBtn.id == 'bpmJumpManagementBtn') {
|
|
219
|
+
// that.MeritBPM.btnDisable = true
|
|
201
220
|
that.MeritBPM.bpmJumpManagementDialogVisible = true;
|
|
202
221
|
} else if (bpmBtn.id == 'bpmJumpBtnEnd') {
|
|
222
|
+
// that.MeritBPM.btnDisable = true
|
|
203
223
|
that.MeritBPM.opinionDialogVisible = true;
|
|
204
224
|
// that.MeritBPM.bpmJumpBtnEnd(that, that.ruleEngine);
|
|
205
225
|
} else if (bpmBtn.id == 'bpmJumpBtnCancel') {
|
|
206
|
-
|
|
226
|
+
// that.MeritBPM.btnDisable = true;
|
|
227
|
+
that.MeritBPM.opinionDialogVisible = true;
|
|
207
228
|
// that.MeritBPM.bpmJumpBtnCancel(that, that.ruleEngine);
|
|
208
229
|
}else if (bpmBtn.id == 'bpmTakeBackBtn') {
|
|
230
|
+
that.MeritBPM.btnDisable = true;
|
|
209
231
|
that.MeritBPM.bpmTakeBackBtn(that, that.ruleEngine);
|
|
210
232
|
} else if (bpmBtn.id == 'bpmRetRandomNodeStatusBtn') {
|
|
233
|
+
that.MeritBPM.btnDisable = true;
|
|
211
234
|
that.MeritBPM.bpmAnyLink = true;
|
|
212
235
|
} else if (bpmBtn.id == 'bpmRetfirnodeBtn') {
|
|
236
|
+
that.MeritBPM.btnDisable = true;
|
|
213
237
|
that.MeritBPM.bpmRetfirnodeBtn(that, that.ruleEngine);
|
|
214
238
|
} else if (bpmBtn.id == 'bpmRetprenodeBtn') {
|
|
239
|
+
that.MeritBPM.btnDisable = true;
|
|
215
240
|
that.MeritBPM.bpmRetprenodeBtn(that, that.ruleEngine);
|
|
216
241
|
} else if (bpmBtn.id == 'bpmDoBackBtn') {
|
|
242
|
+
that.MeritBPM.btnDisable = true;
|
|
217
243
|
that.MeritBPM.bpmDoBackBtn(that, that.ruleEngine);
|
|
218
244
|
} else if (bpmBtn.id == 'bpmReadToKnowBtn') {
|
|
245
|
+
// that.MeritBPM.btnDisable = true;
|
|
219
246
|
that.MeritBPM.sendReadDialogVisible = true;
|
|
220
247
|
} else if (bpmBtn.id == 'bpmReadEndBtn') {
|
|
248
|
+
that.MeritBPM.btnDisable = true;
|
|
221
249
|
that.MeritBPM.bpmReadEndBtn(that, that.ruleEngine);
|
|
222
250
|
} else if (bpmBtn.id == 'bpmReadOpinionBtn') {
|
|
251
|
+
// that.MeritBPM.btnDisable = true;
|
|
223
252
|
that.MeritBPM.sednReadOpinionDialogVisible = true;
|
|
224
253
|
} else if (bpmBtn.id == 'bpmSignBtn') {
|
|
254
|
+
// that.MeritBPM.btnDisable = true;
|
|
225
255
|
that.MeritBPM.signOpinionDialogVisible = true;
|
|
226
256
|
} else {
|
|
227
257
|
//回调函数
|
|
258
|
+
// that.MeritBPM.btnDisable = false;
|
|
228
259
|
that.bpmCustomFunction();
|
|
229
260
|
}
|
|
230
261
|
});
|
|
231
262
|
} else {
|
|
263
|
+
that.MeritBPM.btnDisable = true;
|
|
232
264
|
that.bpmAddOrUpdate(bpmBtn);
|
|
233
265
|
}
|
|
234
266
|
}
|
|
@@ -272,13 +304,17 @@ MeritBPM.startProcess = function(that, bpmBtn, callback) {
|
|
|
272
304
|
let bpmVars = that.getBpmVar({});
|
|
273
305
|
if (bpmBtn.procInstId == '') {
|
|
274
306
|
axios['bpm-engine'].post('/api/engine/bpm/' + that.ruleEngine.runtime.procDefKey + '/startprocess', bpmVars).then(function(res) {
|
|
307
|
+
// that.MeritBPM.btnDisable = false;
|
|
275
308
|
if (res.data == undefined || res.data == null) {
|
|
276
309
|
return;
|
|
277
310
|
}
|
|
278
311
|
Object.assign(that.ruleEngine, res.data);
|
|
279
312
|
MeritBPM.runRuleEngine(that, bpmBtn, callback);
|
|
280
313
|
});
|
|
281
|
-
}
|
|
314
|
+
}else {
|
|
315
|
+
// that.MeritBPM.btnDisable = false;
|
|
316
|
+
}
|
|
317
|
+
|
|
282
318
|
};
|
|
283
319
|
/**
|
|
284
320
|
* 功能说明
|
|
@@ -309,6 +345,7 @@ MeritBPM.finishTask = function(that, _ruleEngine) {
|
|
|
309
345
|
.post('/api/engine/bpm/task/' + _ruleEngine.runtime.taskId + '/complete', bpmVars)
|
|
310
346
|
.then(function(res) {
|
|
311
347
|
if (res.success) {
|
|
348
|
+
// that.MeritBPM.btnDisable = false;
|
|
312
349
|
// 判断是否存在回调函数,如果存在,回调,在回调函数中手动关闭。不存在,自动关闭
|
|
313
350
|
if (that.customFun != undefined && typeof that.customFun == 'function') {
|
|
314
351
|
that.bpmCustomFunction();
|
|
@@ -316,6 +353,7 @@ MeritBPM.finishTask = function(that, _ruleEngine) {
|
|
|
316
353
|
that.bpmClose();
|
|
317
354
|
}
|
|
318
355
|
} else {
|
|
356
|
+
// that.MeritBPM.btnDisable = false;
|
|
319
357
|
that.$message.error(that.$t('base.operation.error') + res.message);
|
|
320
358
|
return;
|
|
321
359
|
}
|
|
@@ -325,7 +363,10 @@ MeritBPM.finishTask = function(that, _ruleEngine) {
|
|
|
325
363
|
that.$message.error(that.$t('base.operation.error') + ':没有后处理节点!请联系管理员。');
|
|
326
364
|
}
|
|
327
365
|
});
|
|
328
|
-
}
|
|
366
|
+
} else {
|
|
367
|
+
// that.MeritBPM.btnDisable = false;
|
|
368
|
+
}
|
|
369
|
+
|
|
329
370
|
};
|
|
330
371
|
// 流程终止
|
|
331
372
|
MeritBPM.bpmJumpBtnEnd = function(that, ruleEngine) {
|
|
@@ -337,6 +378,7 @@ MeritBPM.bpmJumpBtnEnd = function(that, ruleEngine) {
|
|
|
337
378
|
if (temRuleEngine.runtime.opinion) {
|
|
338
379
|
temRuleEngine.runtime.opinion = [];
|
|
339
380
|
}
|
|
381
|
+
that.MeritBPM.btnDisable = false;
|
|
340
382
|
that
|
|
341
383
|
.$confirm('此操作将终止该流程, 是否继续?', '提示', {
|
|
342
384
|
confirmButtonText: '确定',
|
|
@@ -348,6 +390,7 @@ MeritBPM.bpmJumpBtnEnd = function(that, ruleEngine) {
|
|
|
348
390
|
axios['bpm-engine']
|
|
349
391
|
.post('/api/engine/bpm/process/over/' + ruleEngine.businessId, temRuleEngine)
|
|
350
392
|
.then(function(res) {
|
|
393
|
+
// that.MeritBPM.btnDisable = false;
|
|
351
394
|
if (res.status == '1') {
|
|
352
395
|
that.$message.success(res.message);
|
|
353
396
|
that.bpmClose();
|
|
@@ -356,10 +399,14 @@ MeritBPM.bpmJumpBtnEnd = function(that, ruleEngine) {
|
|
|
356
399
|
}
|
|
357
400
|
})
|
|
358
401
|
.catch(function(err) {
|
|
402
|
+
// that.MeritBPM.btnDisable = false;
|
|
359
403
|
console.log(err);
|
|
360
404
|
});
|
|
361
405
|
})
|
|
362
|
-
.catch(() => {
|
|
406
|
+
.catch(() => {
|
|
407
|
+
// that.MeritBPM.btnDisable = false;
|
|
408
|
+
});
|
|
409
|
+
|
|
363
410
|
};
|
|
364
411
|
|
|
365
412
|
// 流程撤办
|
|
@@ -372,6 +419,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
372
419
|
if (temRuleEngine.runtime.opinion) {
|
|
373
420
|
temRuleEngine.runtime.opinion = [];
|
|
374
421
|
}
|
|
422
|
+
that.MeritBPM.btnDisable = false;
|
|
375
423
|
that
|
|
376
424
|
.$confirm('此操作将撤办该流程, 是否继续?', '提示', {
|
|
377
425
|
confirmButtonText: '确定',
|
|
@@ -383,6 +431,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
383
431
|
axios['bpm-engine']
|
|
384
432
|
.post('/api/engine/bpm/process/cancel/' + ruleEngine.businessId, temRuleEngine)
|
|
385
433
|
.then(function(res) {
|
|
434
|
+
// that.MeritBPM.btnDisable = false;
|
|
386
435
|
if (res.status == '1') {
|
|
387
436
|
that.$message.success(res.message);
|
|
388
437
|
that.bpmClose();
|
|
@@ -391,6 +440,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
391
440
|
}
|
|
392
441
|
})
|
|
393
442
|
.catch(function(err) {
|
|
443
|
+
// that.MeritBPM.btnDisable = false;
|
|
394
444
|
console.log(err);
|
|
395
445
|
});
|
|
396
446
|
})
|
|
@@ -407,6 +457,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
407
457
|
if (temRuleEngine.runtime.opinion) {
|
|
408
458
|
temRuleEngine.runtime.opinion = [];
|
|
409
459
|
}
|
|
460
|
+
that.MeritBPM.btnDisable = false;
|
|
410
461
|
that
|
|
411
462
|
.$confirm('此操作将退回到上一环节处理人, 是否继续?', '提示', {
|
|
412
463
|
confirmButtonText: '确定',
|
|
@@ -418,6 +469,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
418
469
|
axios['bpm-engine']
|
|
419
470
|
.post('/api/engine/bpm/process/retprenode/' + businessId, temRuleEngine)
|
|
420
471
|
.then(function(res) {
|
|
472
|
+
// that.MeritBPM.btnDisable = false;
|
|
421
473
|
if (res.status == '1') {
|
|
422
474
|
that.$message.success(res.message);
|
|
423
475
|
that.bpmClose();
|
|
@@ -426,10 +478,14 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
426
478
|
}
|
|
427
479
|
})
|
|
428
480
|
.catch(function(err) {
|
|
481
|
+
// that.MeritBPM.btnDisable = false;
|
|
429
482
|
console.log(err);
|
|
430
483
|
});
|
|
431
484
|
})
|
|
432
|
-
.catch(() => {
|
|
485
|
+
.catch(() => {
|
|
486
|
+
// that.MeritBPM.btnDisable = false;
|
|
487
|
+
});
|
|
488
|
+
|
|
433
489
|
}),
|
|
434
490
|
//发送到退回人
|
|
435
491
|
(MeritBPM.bpmDoBackBtn = function(that, ruleEngine) {
|
|
@@ -445,6 +501,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
445
501
|
if (temRuleEngine.runtime.bpmBtns) {
|
|
446
502
|
temRuleEngine.runtime.bpmBtns = [];
|
|
447
503
|
}
|
|
504
|
+
that.MeritBPM.btnDisable = false;
|
|
448
505
|
that
|
|
449
506
|
.$confirm('是否将流程直接发送给退回人', '发送提示', {
|
|
450
507
|
confirmButtonText: '确定',
|
|
@@ -456,6 +513,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
456
513
|
axios['bpm-engine']
|
|
457
514
|
.post('/api/engine/bpm/process/dostatus/' + businessId, temRuleEngine)
|
|
458
515
|
.then(function(res) {
|
|
516
|
+
// that.MeritBPM.btnDisable = false;
|
|
459
517
|
if (res.status == '1') {
|
|
460
518
|
that.$message.success(res.message);
|
|
461
519
|
that.bpmClose();
|
|
@@ -464,10 +522,14 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
464
522
|
}
|
|
465
523
|
})
|
|
466
524
|
.catch(function(err) {
|
|
525
|
+
// that.MeritBPM.btnDisable = false;
|
|
467
526
|
console.log(err);
|
|
468
527
|
});
|
|
469
528
|
})
|
|
470
|
-
|
|
529
|
+
.catch(() => {
|
|
530
|
+
// that.MeritBPM.btnDisable = false;
|
|
531
|
+
});
|
|
532
|
+
|
|
471
533
|
}),
|
|
472
534
|
// 送阅知
|
|
473
535
|
(MeritBPM.sendReadSave = function(that, ruleEngine) {
|
|
@@ -477,6 +539,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
477
539
|
axios['bpm-engine']
|
|
478
540
|
.post('/api/engine/bpm/process/sendingRead/' + procInstId, userCodes)
|
|
479
541
|
.then(function(res) {
|
|
542
|
+
// that.MeritBPM.btnDisable = false;
|
|
480
543
|
if (res.status == '1') {
|
|
481
544
|
that.$message.success(res.message);
|
|
482
545
|
} else {
|
|
@@ -484,6 +547,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
484
547
|
}
|
|
485
548
|
})
|
|
486
549
|
.catch(function(err) {
|
|
550
|
+
// that.MeritBPM.btnDisable = false;
|
|
487
551
|
console.log(err);
|
|
488
552
|
});
|
|
489
553
|
}),
|
|
@@ -494,6 +558,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
494
558
|
axios['bpm-engine']
|
|
495
559
|
.post('/api/engine/bpm/process/sendSign/' + procInstId, variables)
|
|
496
560
|
.then(function(res) {
|
|
561
|
+
// that.MeritBPM.btnDisable = false;
|
|
497
562
|
if (res.status == '1') {
|
|
498
563
|
that.$message.success(res.message);
|
|
499
564
|
that.bpmClose();
|
|
@@ -502,6 +567,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
502
567
|
}
|
|
503
568
|
})
|
|
504
569
|
.catch(function(err) {
|
|
570
|
+
// that.MeritBPM.btnDisable = false;
|
|
505
571
|
console.log(err);
|
|
506
572
|
});
|
|
507
573
|
}),
|
|
@@ -511,6 +577,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
511
577
|
axios['bpm-engine']
|
|
512
578
|
.post('/api/engine/bpm/process/sendReadEnd/' + procInstId)
|
|
513
579
|
.then(function(res) {
|
|
580
|
+
// that.MeritBPM.btnDisable = false;
|
|
514
581
|
if (res.status == '1') {
|
|
515
582
|
that.$message.success(res.message);
|
|
516
583
|
that.bpmClose();
|
|
@@ -519,6 +586,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
519
586
|
}
|
|
520
587
|
})
|
|
521
588
|
.catch(function(err) {
|
|
589
|
+
// that.MeritBPM.btnDisable = false;
|
|
522
590
|
console.log(err);
|
|
523
591
|
});
|
|
524
592
|
}),
|
|
@@ -533,6 +601,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
533
601
|
if (temRuleEngine.runtime.opinion) {
|
|
534
602
|
temRuleEngine.runtime.opinion = [];
|
|
535
603
|
}
|
|
604
|
+
that.MeritBPM.btnDisable = false;
|
|
536
605
|
that
|
|
537
606
|
.$confirm('此操作将退回到拟稿人, 是否继续?', '提示', {
|
|
538
607
|
confirmButtonText: '确定',
|
|
@@ -544,6 +613,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
544
613
|
axios['bpm-engine']
|
|
545
614
|
.post('/api/engine/bpm/process/retfirnode/' + businessId, temRuleEngine)
|
|
546
615
|
.then(function(res) {
|
|
616
|
+
// that.MeritBPM.btnDisable = false;
|
|
547
617
|
if (res.status == '1') {
|
|
548
618
|
that.$message.success(res.message);
|
|
549
619
|
that.bpmClose();
|
|
@@ -552,6 +622,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
552
622
|
}
|
|
553
623
|
})
|
|
554
624
|
.catch(function(err) {
|
|
625
|
+
// that.MeritBPM.btnDisable = false;
|
|
555
626
|
console.log(err);
|
|
556
627
|
});
|
|
557
628
|
})
|
|
@@ -573,6 +644,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
573
644
|
axios['bpm-engine']
|
|
574
645
|
.post('/api/engine/bpm/process/RetRandomNodeStatus/' + businessId + '/' + toTaskDefKey + '/' + receiver, temRuleEngine)
|
|
575
646
|
.then(function(res) {
|
|
647
|
+
// that.MeritBPM.btnDisable = false;
|
|
576
648
|
if (res.status == '1') {
|
|
577
649
|
that.$message.success(res.message);
|
|
578
650
|
that.bpmClose();
|
|
@@ -581,6 +653,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
581
653
|
}
|
|
582
654
|
})
|
|
583
655
|
.catch(function(err) {
|
|
656
|
+
// that.MeritBPM.btnDisable = false;
|
|
584
657
|
console.log(err);
|
|
585
658
|
});
|
|
586
659
|
}),
|
|
@@ -595,6 +668,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
595
668
|
if (temRuleEngine.runtime.opinion) {
|
|
596
669
|
temRuleEngine.runtime.opinion = [];
|
|
597
670
|
}
|
|
671
|
+
that.MeritBPM.btnDisable = false;
|
|
598
672
|
that
|
|
599
673
|
.$confirm('此操作将收回该流程, 是否继续?', '提示', {
|
|
600
674
|
confirmButtonText: '确定',
|
|
@@ -606,6 +680,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
606
680
|
axios['bpm-engine']
|
|
607
681
|
.post('/api/engine/bpm/process/takeBack/' + businessId, temRuleEngine)
|
|
608
682
|
.then(function(res) {
|
|
683
|
+
// that.MeritBPM.btnDisable = false;
|
|
609
684
|
if (res.status == '1') {
|
|
610
685
|
that.$message.success(res.message);
|
|
611
686
|
that.bpmClose();
|
|
@@ -614,10 +689,14 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
614
689
|
}
|
|
615
690
|
})
|
|
616
691
|
.catch(function(err) {
|
|
692
|
+
// that.MeritBPM.btnDisable = false;
|
|
617
693
|
console.log(err);
|
|
618
694
|
});
|
|
619
695
|
})
|
|
620
|
-
.catch(() => {
|
|
696
|
+
.catch(() => {
|
|
697
|
+
// that.MeritBPM.btnDisable = false
|
|
698
|
+
});
|
|
699
|
+
|
|
621
700
|
}),
|
|
622
701
|
// 特送对话框
|
|
623
702
|
(MeritBPM.JumpSave = function(that, ruleEngine) {
|
|
@@ -634,6 +713,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
634
713
|
axios['bpm-engine']
|
|
635
714
|
.post('/api/engine/bpm/jump/process/' + businessId + '/' + toTaskDefKey, temRuleEngine)
|
|
636
715
|
.then(function(res) {
|
|
716
|
+
// that.MeritBPM.btnDisable = false
|
|
637
717
|
if (res.status == '1') {
|
|
638
718
|
that.$message.success(res.message);
|
|
639
719
|
that.bpmClose();
|
|
@@ -642,6 +722,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
642
722
|
}
|
|
643
723
|
})
|
|
644
724
|
.catch(function(err) {
|
|
725
|
+
// that.MeritBPM.btnDisable = false
|
|
645
726
|
console.log(err);
|
|
646
727
|
});
|
|
647
728
|
}),
|
|
@@ -660,6 +741,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
660
741
|
axios['bpm-engine']
|
|
661
742
|
.post('/api/engine/bpm/jump/latest/process/' + businessId + '/' + toTaskDefKey, temRuleEngine)
|
|
662
743
|
.then(function(res) {
|
|
744
|
+
// that.MeritBPM.btnDisable = false
|
|
663
745
|
if (res.status == '1') {
|
|
664
746
|
that.$message.success(res.message);
|
|
665
747
|
that.bpmClose();
|
|
@@ -668,6 +750,7 @@ MeritBPM.bpmJumpBtnCancel = function(that, ruleEngine) {
|
|
|
668
750
|
}
|
|
669
751
|
})
|
|
670
752
|
.catch(function(err) {
|
|
753
|
+
// that.MeritBPM.btnDisable = false
|
|
671
754
|
console.log(err);
|
|
672
755
|
});
|
|
673
756
|
});
|
|
@@ -771,40 +854,48 @@ MeritBPM.openProcTrackWindow = function(that, params) {
|
|
|
771
854
|
|
|
772
855
|
// 发送人员对话框关闭
|
|
773
856
|
MeritBPM.bpmUserSelectClose = function(that, params) {
|
|
857
|
+
that.MeritBPM.btnDisable = false
|
|
774
858
|
MeritBPM.userSelectDialogVisible = false;
|
|
775
859
|
};
|
|
776
860
|
|
|
777
861
|
// 发送人员对话框确定
|
|
778
862
|
MeritBPM.bpmUserSelectSave = function(that, _ruleEngine) {
|
|
863
|
+
that.MeritBPM.btnDisable = false
|
|
779
864
|
MeritBPM.finishTask(that, _ruleEngine);
|
|
780
865
|
MeritBPM.userSelectDialogVisible = false;
|
|
781
866
|
};
|
|
782
867
|
|
|
783
868
|
// 送阅知对话框关闭
|
|
784
869
|
MeritBPM.bpmSendReadClose = function(that, params) {
|
|
870
|
+
that.MeritBPM.btnDisable = false
|
|
785
871
|
MeritBPM.sendReadDialogVisible = false;
|
|
786
872
|
window.location.reload();
|
|
787
873
|
};
|
|
788
874
|
// 送阅知对话框确认
|
|
789
875
|
MeritBPM.bpmSendReadSave = function(that, ruleEngine) {
|
|
876
|
+
that.MeritBPM.btnDisable = false
|
|
790
877
|
MeritBPM.sendReadSave(that, ruleEngine);
|
|
791
878
|
MeritBPM.sendReadDialogVisible = false;
|
|
792
879
|
};
|
|
793
880
|
// 阅知意见对话框关闭
|
|
794
881
|
MeritBPM.bpmSendReadOpinionClose = function(that, params) {
|
|
882
|
+
that.MeritBPM.btnDisable = false
|
|
795
883
|
MeritBPM.sednReadOpinionDialogVisible = false;
|
|
796
884
|
};
|
|
797
885
|
// 阅知意见对话框确定
|
|
798
886
|
MeritBPM.bpmSendReadOpinionSave = function(that, params) {
|
|
887
|
+
that.MeritBPM.btnDisable = false
|
|
799
888
|
MeritBPM.sednReadOpinionDialogVisible = false;
|
|
800
889
|
};
|
|
801
890
|
|
|
802
891
|
// 转发意见对话框关闭
|
|
803
892
|
MeritBPM.bpmSignOpinionClose = function(that, params) {
|
|
893
|
+
that.MeritBPM.btnDisable = false
|
|
804
894
|
MeritBPM.signOpinionDialogVisible = false;
|
|
805
895
|
};
|
|
806
896
|
// 转发意见对话框确定
|
|
807
897
|
MeritBPM.bpmSignOpinionSave = function(that, params) {
|
|
898
|
+
that.MeritBPM.btnDisable = false
|
|
808
899
|
MeritBPM.signOpinionDialogVisible = false;
|
|
809
900
|
// 打开转发对话框
|
|
810
901
|
// if()
|
|
@@ -813,48 +904,57 @@ MeritBPM.bpmSignOpinionSave = function(that, params) {
|
|
|
813
904
|
|
|
814
905
|
// 转发对话框关闭
|
|
815
906
|
MeritBPM.bpmSignClose = function(that, params) {
|
|
907
|
+
that.MeritBPM.btnDisable = false
|
|
816
908
|
MeritBPM.signDialogVisible = false;
|
|
817
909
|
};
|
|
818
910
|
// 转发对话框确定
|
|
819
911
|
MeritBPM.bpmSignSave = function(that, ruleEngine) {
|
|
912
|
+
that.MeritBPM.btnDisable = false
|
|
820
913
|
MeritBPM.signSave(that, ruleEngine);
|
|
821
914
|
MeritBPM.signDialogVisible = false;
|
|
822
915
|
};
|
|
823
916
|
|
|
824
917
|
// 特送对话框关闭
|
|
825
918
|
MeritBPM.bpmJumpClose = function(that, params) {
|
|
919
|
+
that.MeritBPM.btnDisable = false
|
|
826
920
|
MeritBPM.bpmJumpDialogVisible = false;
|
|
827
921
|
};
|
|
828
922
|
|
|
829
923
|
// 特送对话框确定
|
|
830
924
|
MeritBPM.bpmJumpSave = function(that, ruleEngine) {
|
|
925
|
+
that.MeritBPM.btnDisable = false
|
|
831
926
|
MeritBPM.JumpSave(that, ruleEngine);
|
|
832
927
|
MeritBPM.bpmJumpDialogVisible = false;
|
|
833
928
|
};
|
|
834
929
|
|
|
835
930
|
// 特送管理对话框关闭
|
|
836
931
|
MeritBPM.bpmJumpManagementClose = function(that, params) {
|
|
932
|
+
that.MeritBPM.btnDisable = false
|
|
837
933
|
MeritBPM.bpmJumpManagementDialogVisible = false;
|
|
838
934
|
};
|
|
839
935
|
|
|
840
936
|
// 特送管理对话框确定
|
|
841
937
|
MeritBPM.bpmJumpManagementSave = function(that, ruleEngine) {
|
|
938
|
+
that.MeritBPM.btnDisable = false
|
|
842
939
|
MeritBPM.JumpManagementSave(that, ruleEngine);
|
|
843
940
|
MeritBPM.bpmJumpManagementDialogVisible = false;
|
|
844
941
|
};
|
|
845
942
|
|
|
846
943
|
// 任意环节对话框 关闭
|
|
847
944
|
MeritBPM.bpmRetRandomNodeStatusClose = function(that, params) {
|
|
945
|
+
that.MeritBPM.btnDisable = false
|
|
848
946
|
MeritBPM.bpmAnyLink = false;
|
|
849
947
|
};
|
|
850
948
|
// 任意环节对话框 确定
|
|
851
949
|
MeritBPM.bpmRetRandomNodeStatusSave = function(that, ruleEngine) {
|
|
950
|
+
that.MeritBPM.btnDisable = false
|
|
852
951
|
MeritBPM.retRandomNodeStatusSave(that, ruleEngine);
|
|
853
952
|
MeritBPM.bpmAnyLink = false;
|
|
854
953
|
};
|
|
855
954
|
|
|
856
955
|
// 意见对话框关闭
|
|
857
956
|
MeritBPM.bpmOpinionClose = function(that, params) {
|
|
957
|
+
that.MeritBPM.btnDisable = false
|
|
858
958
|
MeritBPM.opinionDialogVisible = false;
|
|
859
959
|
};
|
|
860
960
|
|
|
@@ -870,18 +970,31 @@ MeritBPM.bpmOpinionSave = function(that, params) {
|
|
|
870
970
|
}
|
|
871
971
|
} else if (that.ruleEngine.runtime.selUserWin == 'yes') {
|
|
872
972
|
// 点击发送,需要选择人员
|
|
973
|
+
// that.MeritBPM.btnDisable = false
|
|
873
974
|
MeritBPM.userSelectDialogVisible = true;
|
|
874
975
|
} else if (bpmBtn.id == 'bpmRetfirnodeBtn') {
|
|
976
|
+
// that.MeritBPM.btnDisable = false
|
|
875
977
|
that.MeritBPM.bpmRetfirnodeBtn(that, that.ruleEngine);
|
|
876
978
|
} else if (bpmBtn.id == 'bpmRetprenodeBtn') {
|
|
979
|
+
// that.MeritBPM.btnDisable = false
|
|
877
980
|
that.MeritBPM.bpmRetprenodeBtn(that, that.ruleEngine);
|
|
878
981
|
} else if (bpmBtn.id == 'bpmRetRandomNodeStatusBtn') {
|
|
982
|
+
// that.MeritBPM.btnDisable = false
|
|
879
983
|
that.MeritBPM.bpmAnyLink = true;
|
|
880
984
|
} else if (bpmBtn.id == 'bpmJumpBtnEnd') {
|
|
985
|
+
// that.MeritBPM.btnDisable = false
|
|
881
986
|
that.MeritBPM.bpmJumpBtnEnd(that, that.ruleEngine);
|
|
882
987
|
} else if (bpmBtn.id == 'bpmJumpBtnCancel') {
|
|
988
|
+
// that.MeritBPM.btnDisable = false
|
|
883
989
|
that.MeritBPM.bpmJumpBtnCancel(that, that.ruleEngine);
|
|
990
|
+
} else if (bpmBtn.id == 'bpmJumpBtn') {
|
|
991
|
+
// that.MeritBPM.btnDisable = false
|
|
992
|
+
that.MeritBPM.JumpOpinionSave(that, that.ruleEngine)
|
|
993
|
+
} else if (bpmBtn.id == 'bpmJumpManagementBtn') {
|
|
994
|
+
// that.MeritBPM.btnDisable = false
|
|
995
|
+
that.MeritBPM.JumpManagementOpinionSave(that, that.ruleEngine)
|
|
884
996
|
} else {
|
|
997
|
+
// that.MeritBPM.btnDisable = false
|
|
885
998
|
// 点击发送,不需要选择人员
|
|
886
999
|
that.MeritBPM.finishTask(that, that.ruleEngine);
|
|
887
1000
|
}
|