ui-process-h5 0.1.40 → 1.0.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/build/configure/README.md +83 -42
- package/build/configure/package.json +3 -2
- package/package.json +5 -2
- package/src/App.vue +87 -16
- package/src/assets/js/auth.js +36 -12
- package/src/assets/js/request.js +80 -71
- package/src/assets/js/utils.js +2 -1
- package/src/assets/status/check.png +0 -0
- package/src/assets/status/del.png +0 -0
- package/src/main.js +14 -12
- package/src/packages/attchUpload/index.js +19 -16
- package/src/packages/attchUpload/index.scss +10 -3
- package/src/packages/downSelect/index.js +25 -7
- package/src/packages/downSelect/index.scss +4 -0
- package/src/packages/downSelect/index.vue +6 -3
- package/src/packages/popup/index.js +17 -5
- package/src/packages/popup/index.scss +0 -1
- package/src/packages/popup/index.vue +1 -0
- package/src/packages/preview/index.vue +1 -1
- package/src/packages/previewImage/index.js +125 -2
- package/src/packages/previewImage/index.scss +19 -2
- package/src/packages/previewImage/index.vue +25 -4
- package/src/packages/process/index.js +299 -55
- package/src/packages/process/index.scss +12 -1
- package/src/packages/process/index.vue +114 -40
- package/src/packages/process/operation/backNode.vue +117 -25
- package/src/packages/process/operation/cancel.vue +133 -14
- package/src/packages/process/operation/ccTask.vue +46 -34
- package/src/packages/process/operation/complete.vue +729 -91
- package/src/packages/process/operation/counterSign.vue +130 -25
- package/src/packages/process/operation/delegateTask.vue +130 -23
- package/src/packages/process/operation/msgList.vue +174 -0
- package/src/packages/process/operation/restart.vue +15 -4
- package/src/packages/submitPopup/index.js +407 -59
- package/src/packages/submitPopup/index.scss +51 -46
- package/src/packages/submitPopup/index.vue +21 -5
- package/src/packages/tab/index.js +34 -5
- package/src/packages/tab/index.scss +2 -1
- package/src/packages/tab/index.vue +7 -7
- package/src/packages/tip/index.js +8 -2
- package/src/packages/tip/index.scss +39 -0
- package/src/packages/tip/index.vue +1 -1
- package/src/packages/viewAttchList/index.js +16 -14
- package/vite.config.ts +101 -72
- package/ui-process-h5/README.md +0 -171
- package/ui-process-h5/package.json +0 -27
- package/ui-process-h5/scripts/postinstall.mjs +0 -14
- package/ui-process-h5/scripts/switch-cli.mjs +0 -4
- package/ui-process-h5/scripts/utils.mjs +0 -60
- package/ui-process-h5/v2/style.css +0 -1
- package/ui-process-h5/v2/ui-process-h5.js +0 -13467
- package/ui-process-h5/v2/ui-process-h5.umd.cjs +0 -67
- package/ui-process-h5/v2.7/style.css +0 -1
- package/ui-process-h5/v2.7/ui-process-h5.js +0 -12844
- package/ui-process-h5/v2.7/ui-process-h5.umd.cjs +0 -67
- package/ui-process-h5/v3/style.css +0 -1
- package/ui-process-h5/v3/ui-process-h5.js +0 -10336
- package/ui-process-h5/v3/ui-process-h5.umd.cjs +0 -55
|
@@ -4,7 +4,7 @@ import TopTips from "../tip/index.vue";
|
|
|
4
4
|
import TopSumbitPopup from "../submitPopup/index.vue";
|
|
5
5
|
import * as operation from "./operation";
|
|
6
6
|
import { defineComponent } from "vue-demi";
|
|
7
|
-
import "checked-pick-app
|
|
7
|
+
import "checked-pick-app-style";
|
|
8
8
|
|
|
9
9
|
export default defineComponent({
|
|
10
10
|
name: "TopProcess",
|
|
@@ -24,8 +24,6 @@ export default defineComponent({
|
|
|
24
24
|
processInstId: { require: true, default: "", type: String },
|
|
25
25
|
isAdditional: { require: false, default: false, type: Boolean },
|
|
26
26
|
isView: { default: false, type: Boolean },
|
|
27
|
-
// 当前账号 id
|
|
28
|
-
userId: { require: true, default: "", type: String },
|
|
29
27
|
// 表单信息
|
|
30
28
|
formData: { default: {}, type: Object },
|
|
31
29
|
|
|
@@ -35,23 +33,56 @@ export default defineComponent({
|
|
|
35
33
|
|
|
36
34
|
// 请求
|
|
37
35
|
request: {
|
|
38
|
-
type: Function,
|
|
36
|
+
type: [Function, Object],
|
|
39
37
|
default: () => {
|
|
40
|
-
return { get: () => {}, post: () => {}
|
|
38
|
+
return { get: () => {}, post: () => {} };
|
|
41
39
|
},
|
|
42
40
|
},
|
|
43
41
|
|
|
44
|
-
// appid
|
|
45
|
-
appId: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: "",
|
|
48
|
-
},
|
|
49
|
-
|
|
50
42
|
// 结束执行事件
|
|
51
43
|
endFunction: {
|
|
52
44
|
type: Function,
|
|
53
45
|
default: null,
|
|
54
46
|
},
|
|
47
|
+
// 弹窗开启前触发
|
|
48
|
+
beforeFunction: {
|
|
49
|
+
type: Function,
|
|
50
|
+
default: null,
|
|
51
|
+
},
|
|
52
|
+
// 是否开启公文独立配置
|
|
53
|
+
isDocument: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: false,
|
|
56
|
+
},
|
|
57
|
+
// 送审参数
|
|
58
|
+
restartData: {
|
|
59
|
+
type: Object,
|
|
60
|
+
default: {
|
|
61
|
+
businessType: "",
|
|
62
|
+
showType: "",
|
|
63
|
+
processName: "",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
selfList: {
|
|
67
|
+
type: Array,
|
|
68
|
+
default: () => [],
|
|
69
|
+
},
|
|
70
|
+
selfBtn: {
|
|
71
|
+
type: Array,
|
|
72
|
+
default: () => [],
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
// 炎黄userId this.user.
|
|
76
|
+
uid: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: "",
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
// is Msg
|
|
82
|
+
isMsg: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: false,
|
|
85
|
+
},
|
|
55
86
|
},
|
|
56
87
|
data() {
|
|
57
88
|
return {
|
|
@@ -112,13 +143,33 @@ export default defineComponent({
|
|
|
112
143
|
visibleSong: false,
|
|
113
144
|
|
|
114
145
|
trackList: [],
|
|
146
|
+
user: {},
|
|
147
|
+
// 是否可选
|
|
148
|
+
canCheck: true,
|
|
149
|
+
|
|
150
|
+
// 节点信息
|
|
151
|
+
approveNode: {},
|
|
152
|
+
|
|
153
|
+
// 重新提交
|
|
154
|
+
restartDataS: {},
|
|
155
|
+
selfBtnList: [],
|
|
156
|
+
|
|
157
|
+
// 高度信息
|
|
158
|
+
topNum: 144,
|
|
159
|
+
bottomNum: 70,
|
|
160
|
+
|
|
161
|
+
userIdData: "",
|
|
162
|
+
TopPopup1: false,
|
|
115
163
|
};
|
|
116
164
|
},
|
|
117
165
|
watch: {
|
|
118
166
|
processInstId: {
|
|
119
167
|
// 初始化获取流程相关信息
|
|
120
168
|
async handler(val, preVal) {
|
|
121
|
-
this.processIntId =
|
|
169
|
+
this.processIntId =
|
|
170
|
+
this.processInstId ||
|
|
171
|
+
this.formData.processId ||
|
|
172
|
+
this.formData.processInstId;
|
|
122
173
|
if (val) {
|
|
123
174
|
// 流程图
|
|
124
175
|
this.request
|
|
@@ -162,6 +213,9 @@ export default defineComponent({
|
|
|
162
213
|
}
|
|
163
214
|
});
|
|
164
215
|
|
|
216
|
+
// info信息
|
|
217
|
+
this.getUserInfo();
|
|
218
|
+
|
|
165
219
|
// id
|
|
166
220
|
this.request
|
|
167
221
|
.get("/aws/pis/getProcessInstanceById", {
|
|
@@ -172,7 +226,6 @@ export default defineComponent({
|
|
|
172
226
|
this.ProcessInsObj = res.data;
|
|
173
227
|
}
|
|
174
228
|
});
|
|
175
|
-
|
|
176
229
|
// task信息 任务节点
|
|
177
230
|
await this.request
|
|
178
231
|
.get("/aws/repository/queryTaskNodeList", {
|
|
@@ -211,7 +264,33 @@ export default defineComponent({
|
|
|
211
264
|
immediate: true,
|
|
212
265
|
deep: true,
|
|
213
266
|
},
|
|
267
|
+
restartData: {
|
|
268
|
+
handler(val, preVal) {
|
|
269
|
+
this.restartDataS = val;
|
|
270
|
+
},
|
|
271
|
+
immediate: true,
|
|
272
|
+
deep: true,
|
|
273
|
+
},
|
|
274
|
+
selfBtn: {
|
|
275
|
+
handler(val, preVal) {
|
|
276
|
+
if (val && val.length) {
|
|
277
|
+
this.selfBtnList = val;
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
immediate: true,
|
|
281
|
+
deep: true,
|
|
282
|
+
},
|
|
283
|
+
uid: {
|
|
284
|
+
handler(val, preVal) {
|
|
285
|
+
if (val) {
|
|
286
|
+
this.userIdData = val;
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
immediate: true,
|
|
290
|
+
deep: true,
|
|
291
|
+
},
|
|
214
292
|
},
|
|
293
|
+
mounted() {},
|
|
215
294
|
computed: {
|
|
216
295
|
//筛选
|
|
217
296
|
actionBtn() {
|
|
@@ -228,6 +307,23 @@ export default defineComponent({
|
|
|
228
307
|
this.taskNode[0] &&
|
|
229
308
|
this.taskNode[0].taskState != 4;
|
|
230
309
|
|
|
310
|
+
// 当前是否为重新提交
|
|
311
|
+
if (
|
|
312
|
+
this.formData.currentState === "已撤销" ||
|
|
313
|
+
this.formData.currentState === "已驳回" ||
|
|
314
|
+
this.processStatus.status === "已撤销" ||
|
|
315
|
+
this.processStatus.status === "已驳回" ||
|
|
316
|
+
this.processStatus.bizStatusName === "已撤销" ||
|
|
317
|
+
this.processStatus.bizStatusName === "已驳回"
|
|
318
|
+
) {
|
|
319
|
+
let obj = {};
|
|
320
|
+
obj.name = "重新提交";
|
|
321
|
+
obj.btnProps = { type: "default" };
|
|
322
|
+
btnList.push(obj);
|
|
323
|
+
obj.click = this.handleTest;
|
|
324
|
+
// handleRestart
|
|
325
|
+
}
|
|
326
|
+
|
|
231
327
|
//处理
|
|
232
328
|
if (flag && !this.isView && this.taskObj.completeButtonLabel) {
|
|
233
329
|
let obj = {};
|
|
@@ -235,7 +331,6 @@ export default defineComponent({
|
|
|
235
331
|
obj.btnProps = { type: "primary" };
|
|
236
332
|
btnList.push(obj);
|
|
237
333
|
obj.click = (name) => {
|
|
238
|
-
this.$refs.TopPopup1.handleOpen();
|
|
239
334
|
this.handleActionClose();
|
|
240
335
|
this.showOperation(
|
|
241
336
|
operation.complete,
|
|
@@ -253,7 +348,6 @@ export default defineComponent({
|
|
|
253
348
|
obj.btnProps = { type: "danger" };
|
|
254
349
|
btnList.push(obj);
|
|
255
350
|
obj.click = (name) => {
|
|
256
|
-
this.$refs.TopPopup1.handleOpen();
|
|
257
351
|
this.handleActionClose();
|
|
258
352
|
this.showOperation(
|
|
259
353
|
operation.cancel,
|
|
@@ -264,6 +358,17 @@ export default defineComponent({
|
|
|
264
358
|
};
|
|
265
359
|
}
|
|
266
360
|
|
|
361
|
+
// 自定义
|
|
362
|
+
if (this.selfBtnList && this.selfBtnList.length) {
|
|
363
|
+
this.selfBtnList.map((v) => {
|
|
364
|
+
let obj = {};
|
|
365
|
+
obj.name = v.name;
|
|
366
|
+
obj.btnProps = { type: v.type };
|
|
367
|
+
btnList.push(obj);
|
|
368
|
+
obj.click = v.click;
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
|
|
267
372
|
// 退回
|
|
268
373
|
if (
|
|
269
374
|
flag &&
|
|
@@ -278,7 +383,6 @@ export default defineComponent({
|
|
|
278
383
|
obj.btnProps = { type: "danger" };
|
|
279
384
|
btnList.push(obj);
|
|
280
385
|
obj.click = (name) => {
|
|
281
|
-
this.$refs.TopPopup1.handleOpen();
|
|
282
386
|
this.handleActionClose();
|
|
283
387
|
this.showOperation(
|
|
284
388
|
operation.backNode,
|
|
@@ -297,7 +401,6 @@ export default defineComponent({
|
|
|
297
401
|
obj.name = this.taskObj.ccTaskButtonLabel;
|
|
298
402
|
obj.btnProps = { type: "default" };
|
|
299
403
|
obj.click = (name) => {
|
|
300
|
-
this.$refs.TopPopup1.handleOpen();
|
|
301
404
|
this.handleActionClose();
|
|
302
405
|
this.showOperation(
|
|
303
406
|
operation.ccTask,
|
|
@@ -315,7 +418,6 @@ export default defineComponent({
|
|
|
315
418
|
obj.name = this.taskObj.delegateTaskButtonLabel;
|
|
316
419
|
obj.btnProps = { type: "default" };
|
|
317
420
|
obj.click = (name) => {
|
|
318
|
-
this.$refs.TopPopup1.handleOpen();
|
|
319
421
|
this.handleActionClose();
|
|
320
422
|
this.showOperation(
|
|
321
423
|
operation.delegateTask,
|
|
@@ -333,7 +435,6 @@ export default defineComponent({
|
|
|
333
435
|
obj.name = this.taskObj.counterSignLabel;
|
|
334
436
|
obj.btnProps = { type: "primary" };
|
|
335
437
|
obj.click = (name) => {
|
|
336
|
-
this.$refs.TopPopup1.handleOpen();
|
|
337
438
|
this.handleActionClose();
|
|
338
439
|
this.showOperation(
|
|
339
440
|
operation.counterSign,
|
|
@@ -348,7 +449,7 @@ export default defineComponent({
|
|
|
348
449
|
// 催办
|
|
349
450
|
if (
|
|
350
451
|
this.processIntId &&
|
|
351
|
-
this.processStatus.
|
|
452
|
+
this.processStatus.createUid == this.userIdData &&
|
|
352
453
|
this.taskNode[0]?.taskState != 2 &&
|
|
353
454
|
this.processStatus.status !== "已驳回" &&
|
|
354
455
|
this.processStatus.status !== "已撤销"
|
|
@@ -369,7 +470,7 @@ export default defineComponent({
|
|
|
369
470
|
// 撤销
|
|
370
471
|
if (
|
|
371
472
|
this.processIntId &&
|
|
372
|
-
this.processStatus.
|
|
473
|
+
this.processStatus.createUid == this.userIdData &&
|
|
373
474
|
this.taskNode[0]?.taskState != 2 &&
|
|
374
475
|
this.processStatus.status !== "已驳回" &&
|
|
375
476
|
this.processStatus.status !== "已撤销"
|
|
@@ -390,21 +491,54 @@ export default defineComponent({
|
|
|
390
491
|
},
|
|
391
492
|
// 底部高度
|
|
392
493
|
processCardHeight() {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
494
|
+
console.log("btnList", this.operBtn);
|
|
495
|
+
|
|
496
|
+
let num = this.topNum + this.bottomNum - 10;
|
|
497
|
+
if (
|
|
498
|
+
this.isAdditional &&
|
|
499
|
+
!this.operBtn &&
|
|
500
|
+
!this.operBtn.length &&
|
|
501
|
+
!this.ProcessInsObj.end
|
|
502
|
+
) {
|
|
503
|
+
num -= this.bottomNum;
|
|
504
|
+
}
|
|
400
505
|
return `calc(100vh - ${num}px)`;
|
|
401
506
|
},
|
|
507
|
+
// 底部按钮定位
|
|
508
|
+
processBtn() {
|
|
509
|
+
console.log("btnList", this.operBtn);
|
|
510
|
+
|
|
511
|
+
if (
|
|
512
|
+
this.isAdditional &&
|
|
513
|
+
!this.operBtn &&
|
|
514
|
+
!this.operBtn.length &&
|
|
515
|
+
!this.ProcessInsObj.end
|
|
516
|
+
) {
|
|
517
|
+
return `-${this.bottomNum}px`;
|
|
518
|
+
}
|
|
519
|
+
},
|
|
402
520
|
},
|
|
403
521
|
methods: {
|
|
522
|
+
handleTestsss(val, vals) {
|
|
523
|
+
console.log("==========:::", val, vals);
|
|
524
|
+
},
|
|
404
525
|
// 测试
|
|
526
|
+
handleTestS() {
|
|
527
|
+
this.handleTips("提交成功!", false, "success");
|
|
528
|
+
},
|
|
529
|
+
|
|
530
|
+
// 重新提交
|
|
405
531
|
handleTest() {
|
|
406
|
-
|
|
532
|
+
this.visibleSong = true;
|
|
533
|
+
},
|
|
534
|
+
// 用户信息
|
|
535
|
+
async getUserInfo() {
|
|
536
|
+
let res = await this.request.get("/app/user/info");
|
|
537
|
+
if (res.code === 200) {
|
|
538
|
+
this.user = res.data || {};
|
|
539
|
+
}
|
|
407
540
|
},
|
|
541
|
+
|
|
408
542
|
// 流程查询
|
|
409
543
|
async handleGetSimulation(vars) {
|
|
410
544
|
this.handleTips("", true, "loading");
|
|
@@ -412,6 +546,7 @@ export default defineComponent({
|
|
|
412
546
|
processInstId: this.processInstId,
|
|
413
547
|
taskInstId: this.taskNode.length ? this.taskNode[0].taskId : "",
|
|
414
548
|
vars: vars,
|
|
549
|
+
errorTip: false,
|
|
415
550
|
};
|
|
416
551
|
|
|
417
552
|
let simulationData = await this.request.post(
|
|
@@ -422,23 +557,63 @@ export default defineComponent({
|
|
|
422
557
|
if (simulationData.success) {
|
|
423
558
|
this.handleTips("", false, "success");
|
|
424
559
|
this.nextNodeData = simulationData.data;
|
|
560
|
+
|
|
561
|
+
for (let i = 0; i < this.nextNodeData.length; i++) {
|
|
562
|
+
this.approveNode = this.nextNodeData[i];
|
|
563
|
+
}
|
|
425
564
|
} else {
|
|
426
|
-
|
|
427
|
-
.
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
})
|
|
435
|
-
.then((res) => {
|
|
436
|
-
this.handleTips("", false, "success");
|
|
437
|
-
console.log("outGatewayUserTaskModel", res);
|
|
438
|
-
this.outGatewayUserTaskModel = res.data;
|
|
439
|
-
});
|
|
565
|
+
let taskIDCopy =
|
|
566
|
+
this.taskNode && this.taskNode.length
|
|
567
|
+
? this.taskNode[0].taskId
|
|
568
|
+
: "";
|
|
569
|
+
this.outGatewayUserTaskModel = await this.getOutgoingProcessNode(
|
|
570
|
+
taskIDCopy,
|
|
571
|
+
""
|
|
572
|
+
);
|
|
440
573
|
}
|
|
441
574
|
},
|
|
575
|
+
async getOutgoingProcessNode(taskId, processNodeId) {
|
|
576
|
+
let res = await this.request.get(
|
|
577
|
+
"/aws/repository/getOutgoingProcessNode",
|
|
578
|
+
{
|
|
579
|
+
params: {
|
|
580
|
+
taskId: taskId,
|
|
581
|
+
processNodeId: processNodeId,
|
|
582
|
+
},
|
|
583
|
+
}
|
|
584
|
+
);
|
|
585
|
+
|
|
586
|
+
if (res.code == 200) {
|
|
587
|
+
if (res.data && res.data.length) {
|
|
588
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
589
|
+
let o = res.data[i];
|
|
590
|
+
if (o.type != "UserTaskModel") {
|
|
591
|
+
let childNode = await this.getOutgoingProcessNode(
|
|
592
|
+
taskId,
|
|
593
|
+
o.id
|
|
594
|
+
);
|
|
595
|
+
|
|
596
|
+
if (childNode && childNode.length) {
|
|
597
|
+
await childNode.map((v, i) => {
|
|
598
|
+
v.nodeName =
|
|
599
|
+
v.incomingConditionItemList &&
|
|
600
|
+
v.incomingConditionItemList.length
|
|
601
|
+
? v.incomingConditionItemList[0]
|
|
602
|
+
.compareValue
|
|
603
|
+
: "";
|
|
604
|
+
});
|
|
605
|
+
o.childNode = childNode;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
this.handleTips("", false, "success");
|
|
610
|
+
return res.data;
|
|
611
|
+
}
|
|
612
|
+
this.handleTips("", false, "success");
|
|
613
|
+
return [];
|
|
614
|
+
}
|
|
615
|
+
return [];
|
|
616
|
+
},
|
|
442
617
|
|
|
443
618
|
// 集合
|
|
444
619
|
handleGet(task) {
|
|
@@ -450,6 +625,7 @@ export default defineComponent({
|
|
|
450
625
|
},
|
|
451
626
|
// 流程状态
|
|
452
627
|
handleGetProcessStatus() {
|
|
628
|
+
this.handleTips("", true, "loading");
|
|
453
629
|
this.request
|
|
454
630
|
.get("/aws/pis/getProcessStatus", {
|
|
455
631
|
params: {
|
|
@@ -461,7 +637,23 @@ export default defineComponent({
|
|
|
461
637
|
})
|
|
462
638
|
.then((res) => {
|
|
463
639
|
if (res.code == 200) {
|
|
640
|
+
// res.data.allUserNames = [];
|
|
464
641
|
this.processStatus = res.data;
|
|
642
|
+
this.$emit("processStatus", this.processStatus);
|
|
643
|
+
// this.canCheck
|
|
644
|
+
if (
|
|
645
|
+
this.processStatus.userNodeGroup &&
|
|
646
|
+
this.processStatus.userNodeGroup[
|
|
647
|
+
this.taskNode[0].nodeName
|
|
648
|
+
] &&
|
|
649
|
+
this.processStatus.userNodeGroup[
|
|
650
|
+
this.taskNode[0].nodeName
|
|
651
|
+
].length > 1
|
|
652
|
+
) {
|
|
653
|
+
this.canCheck = false;
|
|
654
|
+
} else {
|
|
655
|
+
this.canCheck = true;
|
|
656
|
+
}
|
|
465
657
|
}
|
|
466
658
|
});
|
|
467
659
|
},
|
|
@@ -477,6 +669,30 @@ export default defineComponent({
|
|
|
477
669
|
.then((res) => {
|
|
478
670
|
if (res.code == 200) {
|
|
479
671
|
this.taskObj = res.data;
|
|
672
|
+
/* this.handleTips("加载完成", true, "success"); */
|
|
673
|
+
this.$nextTick(() => {
|
|
674
|
+
setTimeout(() => {
|
|
675
|
+
let header = document.getElementById(
|
|
676
|
+
"process-header"
|
|
677
|
+
);
|
|
678
|
+
let footer = document.getElementById(
|
|
679
|
+
"process-footer"
|
|
680
|
+
);
|
|
681
|
+
|
|
682
|
+
this.bottomNum = footer
|
|
683
|
+
? footer.scrollHeight + 10
|
|
684
|
+
: 70;
|
|
685
|
+
this.topNum = header
|
|
686
|
+
? header.scrollHeight + 10
|
|
687
|
+
: 144;
|
|
688
|
+
console.log(
|
|
689
|
+
this.bottomNum,
|
|
690
|
+
"diss::",
|
|
691
|
+
this.topNum
|
|
692
|
+
);
|
|
693
|
+
}, 1000);
|
|
694
|
+
});
|
|
695
|
+
this.$refs.topTips.handleClose();
|
|
480
696
|
}
|
|
481
697
|
});
|
|
482
698
|
}
|
|
@@ -484,6 +700,13 @@ export default defineComponent({
|
|
|
484
700
|
|
|
485
701
|
// 弹窗内部渲染
|
|
486
702
|
async showOperation(com, label, request, annex) {
|
|
703
|
+
if (this.beforeFunction) {
|
|
704
|
+
let flag = this.beforeFunction();
|
|
705
|
+
if (!flag) {
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
487
710
|
if (
|
|
488
711
|
this.processStatus.allUserNames &&
|
|
489
712
|
this.processStatus.allUserNames.length == 1
|
|
@@ -500,18 +723,28 @@ export default defineComponent({
|
|
|
500
723
|
|
|
501
724
|
if (request) {
|
|
502
725
|
this.operationParam.request = request;
|
|
726
|
+
this.annexlabel = annex;
|
|
503
727
|
}
|
|
504
|
-
if (request) this.annexlabel = annex;
|
|
505
728
|
this.titleText = label;
|
|
506
729
|
this.operationCom = com;
|
|
507
730
|
|
|
731
|
+
/* this.$refs.TopPopup1.handleOpen(); */
|
|
732
|
+
this.TopPopup1 = true;
|
|
733
|
+
|
|
734
|
+
this.operationParam.visible = this.TopPopup1;
|
|
508
735
|
this.operationParam.annex = annex;
|
|
509
736
|
this.operationParam.subjectId = this.formData.subjectId;
|
|
510
737
|
this.operationParam.processInstId = this.processIntId;
|
|
511
|
-
this.operationParam.taskInstId =
|
|
738
|
+
this.operationParam.taskInstId =
|
|
739
|
+
this.taskNode && this.taskNode.length
|
|
740
|
+
? this.taskNode[0].taskId
|
|
741
|
+
: "";
|
|
512
742
|
this.operationParam.actionName = label;
|
|
513
743
|
this.operationParam.formData = this.formData;
|
|
514
744
|
|
|
745
|
+
// 个人信息
|
|
746
|
+
this.operationParam.userInfo = this.user;
|
|
747
|
+
|
|
515
748
|
// 下次节点数据
|
|
516
749
|
this.operationParam.nextNodeData = this.nextNodeData;
|
|
517
750
|
this.operationParam.outGatewayUserTaskModel = this.outGatewayUserTaskModel;
|
|
@@ -519,13 +752,26 @@ export default defineComponent({
|
|
|
519
752
|
this.operationParam.taskNode = this.taskNode;
|
|
520
753
|
|
|
521
754
|
this.operationParam.appId = this.processStatus.appId;
|
|
522
|
-
|
|
523
755
|
// 弹窗确认结束事件
|
|
524
756
|
this.operationParam.endFunction = this.endFunction;
|
|
757
|
+
|
|
758
|
+
// 公文配置参数
|
|
759
|
+
this.operationParam.isDocument = this.isDocument;
|
|
760
|
+
this.operationParam.isMsg = this.isMsg;
|
|
761
|
+
// 是否可选择
|
|
762
|
+
this.operationParam.canCheck = this.canCheck;
|
|
763
|
+
// 处理字段处理
|
|
764
|
+
let actionModel = this.taskObj.commentModels;
|
|
765
|
+
actionModel.some(
|
|
766
|
+
(item) =>
|
|
767
|
+
(this.operationParam.actionComplete = item?.isDefault
|
|
768
|
+
? item.actionName
|
|
769
|
+
: "")
|
|
770
|
+
);
|
|
525
771
|
},
|
|
526
772
|
// 弹窗取消
|
|
527
773
|
handleCancel() {
|
|
528
|
-
console.log("handleCancel");
|
|
774
|
+
// console.log("handleCancel");
|
|
529
775
|
},
|
|
530
776
|
// 弹窗确认
|
|
531
777
|
async handleComfig() {
|
|
@@ -533,7 +779,8 @@ export default defineComponent({
|
|
|
533
779
|
},
|
|
534
780
|
// 关闭弹窗TopPopup1
|
|
535
781
|
handleClosePopup1() {
|
|
536
|
-
this.$refs.TopPopup1.handleClose();
|
|
782
|
+
// this.$refs.TopPopup1.handleClose();
|
|
783
|
+
this.TopPopup1 = false;
|
|
537
784
|
},
|
|
538
785
|
// 确认弹窗(催办,撤销)
|
|
539
786
|
handleTipsComfig() {
|
|
@@ -547,6 +794,7 @@ export default defineComponent({
|
|
|
547
794
|
.then((res) => {
|
|
548
795
|
if (res.code == 200) {
|
|
549
796
|
this.handleTips("催办成功", true, "success");
|
|
797
|
+
this.endFunction("催办");
|
|
550
798
|
} else {
|
|
551
799
|
this.handleTips(res.msg, true, "error");
|
|
552
800
|
}
|
|
@@ -563,6 +811,7 @@ export default defineComponent({
|
|
|
563
811
|
.then((res) => {
|
|
564
812
|
if (res.code == 200) {
|
|
565
813
|
this.handleTips("撤销成功", true, "success");
|
|
814
|
+
this.endFunction("撤销");
|
|
566
815
|
} else {
|
|
567
816
|
this.textTips = res.msg;
|
|
568
817
|
this.typeTips = "error";
|
|
@@ -572,7 +821,7 @@ export default defineComponent({
|
|
|
572
821
|
}
|
|
573
822
|
},
|
|
574
823
|
handleTipsCancel() {
|
|
575
|
-
console.log("handleTipsCancel");
|
|
824
|
+
// console.log("handleTipsCancel");
|
|
576
825
|
},
|
|
577
826
|
|
|
578
827
|
// 当前流程进度状态回显
|
|
@@ -594,7 +843,6 @@ export default defineComponent({
|
|
|
594
843
|
},
|
|
595
844
|
// 按钮执行方法
|
|
596
845
|
actionClick(name) {
|
|
597
|
-
this.$refs.TopPopup1.handleOpen();
|
|
598
846
|
this.titleText = name;
|
|
599
847
|
this.actionShow = false;
|
|
600
848
|
},
|
|
@@ -640,15 +888,11 @@ export default defineComponent({
|
|
|
640
888
|
},
|
|
641
889
|
})
|
|
642
890
|
.then((res) => {
|
|
643
|
-
console.log(
|
|
644
|
-
"getProcessInstanceByBusinessKey:::",
|
|
645
|
-
res
|
|
646
|
-
);
|
|
647
891
|
this.getFirstProcessNode = res.data[0];
|
|
648
892
|
this.operationParam.getFirstProcessNode = this.getFirstProcessNode;
|
|
649
893
|
this.operationParam.formData = this.formData;
|
|
650
894
|
this.handleTips("", false, "success");
|
|
651
|
-
|
|
895
|
+
|
|
652
896
|
this.handleActionClose();
|
|
653
897
|
this.showOperation(
|
|
654
898
|
operation.restart,
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
padding: 0 17px;
|
|
14
14
|
background: #fff;
|
|
15
15
|
margin: 0 0 10px 0;
|
|
16
|
+
height: auto;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.process-main .border {
|
|
@@ -35,6 +36,9 @@
|
|
|
35
36
|
|
|
36
37
|
.process-main .process-ml-item .process-mli-value {
|
|
37
38
|
color: #888888;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
text-overflow: ellipsis;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
.process-main .process-ml-item .process-mli-value .process-mliv-dd {
|
|
@@ -64,6 +68,9 @@
|
|
|
64
68
|
justify-content: center;
|
|
65
69
|
align-items: center;
|
|
66
70
|
flex-direction: row-reverse;
|
|
71
|
+
position: fixed;
|
|
72
|
+
bottom: 0;
|
|
73
|
+
width: 100%;
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
.process-btn .top-button,
|
|
@@ -161,4 +168,8 @@
|
|
|
161
168
|
justify-content: center;
|
|
162
169
|
display: flex;
|
|
163
170
|
align-items: center;
|
|
164
|
-
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.footBtnRow {
|
|
174
|
+
width: 100%;
|
|
175
|
+
}
|