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
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="process-popup-content">
|
|
3
|
+
<div v-if="param.isMsg">
|
|
4
|
+
<div
|
|
5
|
+
class="process-radio-item"
|
|
6
|
+
@click="handleOpenMsg()"
|
|
7
|
+
style="color: #1389ff; font-size: 14px;"
|
|
8
|
+
>
|
|
9
|
+
常用意见
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
3
12
|
<div class="process-pc-label">
|
|
4
13
|
加签理由:<span class="process-pc-label--re">*</span>
|
|
5
14
|
</div>
|
|
@@ -14,6 +23,11 @@
|
|
|
14
23
|
maxlength="200"
|
|
15
24
|
></textarea>
|
|
16
25
|
</div>
|
|
26
|
+
<div class="msg-btn" v-if="param.isMsg">
|
|
27
|
+
<span class="msg-btn-click" @click="handleMakeMsg()"
|
|
28
|
+
>设置为常用意见</span
|
|
29
|
+
>
|
|
30
|
+
</div>
|
|
17
31
|
</div>
|
|
18
32
|
|
|
19
33
|
<template
|
|
@@ -23,18 +37,11 @@
|
|
|
23
37
|
>
|
|
24
38
|
<template v-if="nextNodeData.length">
|
|
25
39
|
<template v-for="item in nextNodeData">
|
|
26
|
-
<template
|
|
27
|
-
|
|
28
|
-
item.type != 'endEvent' &&
|
|
29
|
-
isOption(
|
|
30
|
-
item?.userTaskModelDTO?.humanPerformer?.name
|
|
31
|
-
)
|
|
32
|
-
"
|
|
33
|
-
>
|
|
34
|
-
<div class="process-pc-label">
|
|
35
|
-
{{ item.userTaskModelDTO.name }}
|
|
40
|
+
<template v-if="item.type != 'endEvent'">
|
|
41
|
+
<div>
|
|
36
42
|
<br />
|
|
37
|
-
|
|
43
|
+
审批人
|
|
44
|
+
<span class="process-pc-label--re">*</span>
|
|
38
45
|
</div>
|
|
39
46
|
<div
|
|
40
47
|
class="process-pc-value"
|
|
@@ -126,9 +133,9 @@
|
|
|
126
133
|
:isDrawer="true"
|
|
127
134
|
>
|
|
128
135
|
<departPerson
|
|
136
|
+
:isTitle="false"
|
|
129
137
|
:visible.sync="visible"
|
|
130
138
|
:request="param.request"
|
|
131
|
-
:businessId="param.formData.businessKey"
|
|
132
139
|
v-bind="entity"
|
|
133
140
|
@callback="handleCallback"
|
|
134
141
|
@cancel="handleCancel"
|
|
@@ -145,6 +152,32 @@
|
|
|
145
152
|
:linkUrl="param.linkUrl"
|
|
146
153
|
@getValue="getValues"
|
|
147
154
|
/>
|
|
155
|
+
<TopPopup
|
|
156
|
+
v-bind:visible="visibleListMsg"
|
|
157
|
+
v-on:update:visible="(val) => (visibleListMsg = val)"
|
|
158
|
+
ref="TopPopup"
|
|
159
|
+
titleText="常用意见"
|
|
160
|
+
:isDrawer="true"
|
|
161
|
+
>
|
|
162
|
+
<MsgList
|
|
163
|
+
:visible="visibleListMsg"
|
|
164
|
+
:request="param.request"
|
|
165
|
+
:useInfo="param.userInfo"
|
|
166
|
+
@handleTips="handleTips"
|
|
167
|
+
@handleMsg="handleMsg"
|
|
168
|
+
></MsgList>
|
|
169
|
+
</TopPopup>
|
|
170
|
+
|
|
171
|
+
<TopPopup
|
|
172
|
+
titleText="操作消息提示"
|
|
173
|
+
:isTips="true"
|
|
174
|
+
:context="`将${commentMsg}设置为常用意见`"
|
|
175
|
+
:cancel="handleTipsCancel"
|
|
176
|
+
:comfig="handleTipsComfig"
|
|
177
|
+
v-bind:visible="visibleMsgComfig"
|
|
178
|
+
v-on:update:visible="(val) => (visibleMsgComfig = val)"
|
|
179
|
+
>
|
|
180
|
+
</TopPopup>
|
|
148
181
|
</div>
|
|
149
182
|
</template>
|
|
150
183
|
<script>
|
|
@@ -152,6 +185,7 @@ import TopTips from "../../tip/index.vue";
|
|
|
152
185
|
import attchViews from "../../attchUpload/index.vue";
|
|
153
186
|
import TopPopup from "../../popup/index.vue";
|
|
154
187
|
import { departPerson } from "checked-pick-app";
|
|
188
|
+
import MsgList from "./msgList.vue";
|
|
155
189
|
export default {
|
|
156
190
|
name: "counterSign",
|
|
157
191
|
props: {
|
|
@@ -165,6 +199,7 @@ export default {
|
|
|
165
199
|
attchViews,
|
|
166
200
|
TopPopup,
|
|
167
201
|
departPerson,
|
|
202
|
+
MsgList,
|
|
168
203
|
},
|
|
169
204
|
data() {
|
|
170
205
|
return {
|
|
@@ -195,9 +230,9 @@ export default {
|
|
|
195
230
|
source: "0",
|
|
196
231
|
type: "0",
|
|
197
232
|
request: this.param.request, //'http://59.53.91.231:2100' 0002
|
|
198
|
-
businessId: this.param.businessKey,
|
|
199
233
|
codeType: [3], // 可选类型 1-主体 2-部门 3-人员
|
|
200
234
|
multiple: true, // 是否多选
|
|
235
|
+
checkedArray: [],
|
|
201
236
|
},
|
|
202
237
|
/* {
|
|
203
238
|
source: "0",
|
|
@@ -213,6 +248,10 @@ export default {
|
|
|
213
248
|
partObjId: [],
|
|
214
249
|
// 选中人员信息
|
|
215
250
|
partNode: {},
|
|
251
|
+
actionName: "",
|
|
252
|
+
|
|
253
|
+
visibleListMsg: false,
|
|
254
|
+
visibleMsgComfig: false,
|
|
216
255
|
};
|
|
217
256
|
},
|
|
218
257
|
watch: {
|
|
@@ -221,8 +260,9 @@ export default {
|
|
|
221
260
|
this.nextNodeData = val.nextNodeData;
|
|
222
261
|
this.taskNode = val.taskNode;
|
|
223
262
|
this.outGatewayUserTaskModel = val.outGatewayUserTaskModel;
|
|
263
|
+
this.actionName = val.actionName;
|
|
224
264
|
if (val.nextNodeData.length) {
|
|
225
|
-
console.log("handler::::", this.nextNodeData[0]);
|
|
265
|
+
// console.log("handler::::", this.nextNodeData[0]);
|
|
226
266
|
if (
|
|
227
267
|
this.nextNodeData[0].type == "userTask" ||
|
|
228
268
|
this.nextNodeData[0].type == "UserTaskModel"
|
|
@@ -230,6 +270,7 @@ export default {
|
|
|
230
270
|
this.entity.multiple = true;
|
|
231
271
|
this.entity.codeType = [3];
|
|
232
272
|
this.entity.source = "1";
|
|
273
|
+
this.entity.checkedArray = [];
|
|
233
274
|
} else if (
|
|
234
275
|
this.nextNodeData[0].type == "ExclusiveGatewayModel"
|
|
235
276
|
) {
|
|
@@ -242,6 +283,7 @@ export default {
|
|
|
242
283
|
this.entity.multiple = true;
|
|
243
284
|
this.entity.codeType = [3];
|
|
244
285
|
this.entity.source = "1";
|
|
286
|
+
this.entity.checkedArray = [];
|
|
245
287
|
} else if (
|
|
246
288
|
val.outGatewayUserTaskModel[0].type ==
|
|
247
289
|
"ExclusiveGatewayModel"
|
|
@@ -255,6 +297,7 @@ export default {
|
|
|
255
297
|
) {
|
|
256
298
|
this.entity.multiple = true;
|
|
257
299
|
this.entity.codeType = [3];
|
|
300
|
+
this.entity.checkedArray = [];
|
|
258
301
|
this.entity.source = "1";
|
|
259
302
|
}
|
|
260
303
|
}
|
|
@@ -264,10 +307,47 @@ export default {
|
|
|
264
307
|
},
|
|
265
308
|
},
|
|
266
309
|
created() {
|
|
267
|
-
console.log("isVue2", this.param);
|
|
310
|
+
// console.log("isVue2", this.param);
|
|
268
311
|
this.makeDelegateTaskButtonAnnex();
|
|
269
312
|
},
|
|
270
313
|
methods: {
|
|
314
|
+
// 设置msg
|
|
315
|
+
handleMakeMsg() {
|
|
316
|
+
if (this.commentMsg == "" && !this.commentMsg.length) {
|
|
317
|
+
this.handleTips("请输入审批意见!", false, "success");
|
|
318
|
+
this.visibleMsgComfig = false;
|
|
319
|
+
} else {
|
|
320
|
+
this.visibleMsgComfig = true;
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
handleOpenMsg() {
|
|
324
|
+
this.visibleListMsg = true;
|
|
325
|
+
},
|
|
326
|
+
handleTipsCancel() {
|
|
327
|
+
this.visibleMsgComfig = false;
|
|
328
|
+
},
|
|
329
|
+
handleTipsComfig() {
|
|
330
|
+
this.handleTips("", true, "loading");
|
|
331
|
+
this.visibleMsgComfig = false;
|
|
332
|
+
this.param.request
|
|
333
|
+
.post("/auth//user/opinion/save", {
|
|
334
|
+
opinionName: this.commentMsg,
|
|
335
|
+
})
|
|
336
|
+
.then((res) => {
|
|
337
|
+
if (res.code === 200) {
|
|
338
|
+
this.handleTips("设置成功!", true, "success");
|
|
339
|
+
} else {
|
|
340
|
+
this.handleTips(res.msg, true, "error");
|
|
341
|
+
}
|
|
342
|
+
})
|
|
343
|
+
.catch((error) => {
|
|
344
|
+
this.handleTips(error.msg, true, "error");
|
|
345
|
+
});
|
|
346
|
+
},
|
|
347
|
+
handleMsg(val) {
|
|
348
|
+
this.commentMsg = val;
|
|
349
|
+
this.visibleListMsg = false;
|
|
350
|
+
},
|
|
271
351
|
handleOpenPopup(id) {
|
|
272
352
|
this.visible = true;
|
|
273
353
|
this.partObjId = id;
|
|
@@ -303,6 +383,7 @@ export default {
|
|
|
303
383
|
if (res.code == 200) {
|
|
304
384
|
this.$emit("handleClosePopup1");
|
|
305
385
|
this.handleTips("提交成功!", false, "success");
|
|
386
|
+
this.handleFinal();
|
|
306
387
|
this.commentMsg = "";
|
|
307
388
|
} else {
|
|
308
389
|
this.handleTips(res.msg, true, "error");
|
|
@@ -316,31 +397,37 @@ export default {
|
|
|
316
397
|
this.limit = str[2];
|
|
317
398
|
this.requires = JSON.parse(str[1]);
|
|
318
399
|
this.labels = str[0];
|
|
319
|
-
console.log(
|
|
400
|
+
/* console.log(
|
|
320
401
|
"makeDelegateTaskButtonAnnex",
|
|
321
402
|
this.otherList,
|
|
322
403
|
this.limit,
|
|
323
404
|
this.requires,
|
|
324
405
|
this.labels
|
|
325
|
-
);
|
|
406
|
+
); */
|
|
326
407
|
}
|
|
327
408
|
},
|
|
328
409
|
|
|
329
410
|
handleCallback(res) {
|
|
411
|
+
console.log("111:::", res);
|
|
412
|
+
this.visible = false;
|
|
330
413
|
this.multiNodeParticipant[this.partObjId] = [];
|
|
331
414
|
this.partNode[this.partObjId] = [];
|
|
332
415
|
res.map((v, i) => {
|
|
333
416
|
this.multiNodeParticipant[this.partObjId].push(v.uid);
|
|
334
417
|
this.partNode[this.partObjId].push(v.name);
|
|
418
|
+
this.entity.checkedArray.push({
|
|
419
|
+
type: 3,
|
|
420
|
+
uid: v.uid,
|
|
421
|
+
});
|
|
335
422
|
});
|
|
336
|
-
console.log("callback_OK", res, this.multiNodeParticipant);
|
|
423
|
+
// console.log("callback_OK", res, this.multiNodeParticipant);
|
|
337
424
|
},
|
|
338
425
|
handleCancel() {
|
|
339
|
-
console.log("cancel_No");
|
|
426
|
+
// console.log("cancel_No");
|
|
340
427
|
},
|
|
341
428
|
|
|
342
429
|
getValues(data) {
|
|
343
|
-
console.log("获取当前附件信息::::", data);
|
|
430
|
+
// console.log("获取当前附件信息::::", data);
|
|
344
431
|
this.attchLists = data;
|
|
345
432
|
},
|
|
346
433
|
|
|
@@ -364,11 +451,11 @@ export default {
|
|
|
364
451
|
saveMetaAnnexCmdList: param,
|
|
365
452
|
}
|
|
366
453
|
);
|
|
367
|
-
console.log("asd", ress);
|
|
454
|
+
// console.log("asd", ress);
|
|
368
455
|
if (ress.success) {
|
|
369
456
|
this.$emit("handleClosePopup1");
|
|
370
457
|
this.handleTips("提交成功!", false, "success");
|
|
371
|
-
this.handleFinal()
|
|
458
|
+
this.handleFinal();
|
|
372
459
|
this.commentMsg = "";
|
|
373
460
|
} else {
|
|
374
461
|
this.handleTips("上传失败", true, "error");
|
|
@@ -392,10 +479,10 @@ export default {
|
|
|
392
479
|
this.typeTips = type;
|
|
393
480
|
this.$refs.topTips.handleOpen();
|
|
394
481
|
},
|
|
395
|
-
|
|
482
|
+
|
|
396
483
|
handleFinal() {
|
|
397
484
|
if (this.param.endFunction) {
|
|
398
|
-
this.param.endFunction();
|
|
485
|
+
this.param.endFunction("counterSign");
|
|
399
486
|
}
|
|
400
487
|
},
|
|
401
488
|
},
|
|
@@ -460,6 +547,11 @@ export default {
|
|
|
460
547
|
margin: 0;
|
|
461
548
|
text-decoration: inherit;
|
|
462
549
|
height: 100%;
|
|
550
|
+
font-size: 14px;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.process-popup-textarea .textarea-item::placeholder {
|
|
554
|
+
line-height: 4;
|
|
463
555
|
}
|
|
464
556
|
.process-pc-label--re {
|
|
465
557
|
color: #ee0000;
|
|
@@ -467,10 +559,11 @@ export default {
|
|
|
467
559
|
|
|
468
560
|
.process-pc-value--people {
|
|
469
561
|
width: 100%;
|
|
470
|
-
height: 43px;
|
|
562
|
+
min-height: 43px;
|
|
471
563
|
padding: 10px 26px 10px 0;
|
|
472
564
|
box-sizing: border-box;
|
|
473
565
|
position: relative;
|
|
566
|
+
font-size: 14px;
|
|
474
567
|
}
|
|
475
568
|
|
|
476
569
|
.process-pc-value--people::after {
|
|
@@ -482,4 +575,16 @@ export default {
|
|
|
482
575
|
bottom: 0;
|
|
483
576
|
left: 0;
|
|
484
577
|
}
|
|
578
|
+
|
|
579
|
+
::v-deep .departPerson-main {
|
|
580
|
+
width: 100% !important;
|
|
581
|
+
height: 100% !important;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.msg-btn {
|
|
585
|
+
font-size: 14px;
|
|
586
|
+
margin: 8px 0;
|
|
587
|
+
text-align: right;
|
|
588
|
+
color: #1890ff;
|
|
589
|
+
}
|
|
485
590
|
</style>
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="process-popup-content">
|
|
3
|
+
<div v-if="param.isMsg">
|
|
4
|
+
<div
|
|
5
|
+
class="process-radio-item"
|
|
6
|
+
@click="handleOpenMsg()"
|
|
7
|
+
style="color: #1389ff; font-size: 14px;"
|
|
8
|
+
>
|
|
9
|
+
常用意见
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
3
12
|
<div class="process-pc-label">
|
|
4
13
|
转审理由:<span class="process-pc-label--re">*</span>
|
|
5
14
|
</div>
|
|
@@ -14,6 +23,11 @@
|
|
|
14
23
|
maxlength="200"
|
|
15
24
|
></textarea>
|
|
16
25
|
</div>
|
|
26
|
+
<div class="msg-btn" v-if="param.isMsg">
|
|
27
|
+
<span class="msg-btn-click" @click="handleMakeMsg()"
|
|
28
|
+
>设置为常用意见</span
|
|
29
|
+
>
|
|
30
|
+
</div>
|
|
17
31
|
</div>
|
|
18
32
|
|
|
19
33
|
<template
|
|
@@ -23,18 +37,12 @@
|
|
|
23
37
|
>
|
|
24
38
|
<template v-if="nextNodeData.length">
|
|
25
39
|
<template v-for="item in nextNodeData">
|
|
26
|
-
<template
|
|
27
|
-
|
|
28
|
-
item.type != 'endEvent' &&
|
|
29
|
-
isOption(
|
|
30
|
-
item?.userTaskModelDTO?.humanPerformer?.name
|
|
31
|
-
)
|
|
32
|
-
"
|
|
33
|
-
>
|
|
34
|
-
<div class="process-pc-label">
|
|
40
|
+
<template v-if="item.type != 'endEvent'">
|
|
41
|
+
<div>
|
|
35
42
|
{{ item.userTaskModelDTO.name }}
|
|
36
43
|
<br />
|
|
37
|
-
|
|
44
|
+
审批人
|
|
45
|
+
<span class="process-pc-label--re">*</span>
|
|
38
46
|
</div>
|
|
39
47
|
<div
|
|
40
48
|
class="process-pc-value"
|
|
@@ -126,9 +134,9 @@
|
|
|
126
134
|
:isDrawer="true"
|
|
127
135
|
>
|
|
128
136
|
<departPerson
|
|
137
|
+
:isTitle="false"
|
|
129
138
|
:visible.sync="visible"
|
|
130
139
|
:request="param.request"
|
|
131
|
-
:businessId="param.formData.businessKey"
|
|
132
140
|
v-bind="entity"
|
|
133
141
|
@callback="handleCallback"
|
|
134
142
|
@cancel="handleCancel"
|
|
@@ -145,6 +153,33 @@
|
|
|
145
153
|
:linkUrl="param.linkUrl"
|
|
146
154
|
@getValue="getValues"
|
|
147
155
|
/>
|
|
156
|
+
|
|
157
|
+
<TopPopup
|
|
158
|
+
v-bind:visible="visibleListMsg"
|
|
159
|
+
v-on:update:visible="(val) => (visibleListMsg = val)"
|
|
160
|
+
ref="TopPopup"
|
|
161
|
+
titleText="常用意见"
|
|
162
|
+
:isDrawer="true"
|
|
163
|
+
>
|
|
164
|
+
<MsgList
|
|
165
|
+
:visible="visibleListMsg"
|
|
166
|
+
:request="param.request"
|
|
167
|
+
:useInfo="param.userInfo"
|
|
168
|
+
@handleTips="handleTips"
|
|
169
|
+
@handleMsg="handleMsg"
|
|
170
|
+
></MsgList>
|
|
171
|
+
</TopPopup>
|
|
172
|
+
|
|
173
|
+
<TopPopup
|
|
174
|
+
titleText="操作消息提示"
|
|
175
|
+
:isTips="true"
|
|
176
|
+
:context="`将${commentMsg}设置为常用意见`"
|
|
177
|
+
:cancel="handleTipsCancel"
|
|
178
|
+
:comfig="handleTipsComfig"
|
|
179
|
+
v-bind:visible="visibleMsgComfig"
|
|
180
|
+
v-on:update:visible="(val) => (visibleMsgComfig = val)"
|
|
181
|
+
>
|
|
182
|
+
</TopPopup>
|
|
148
183
|
</div>
|
|
149
184
|
</template>
|
|
150
185
|
<script>
|
|
@@ -152,6 +187,7 @@ import TopTips from "../../tip/index.vue";
|
|
|
152
187
|
import attchViews from "../../attchUpload/index.vue";
|
|
153
188
|
import TopPopup from "../../popup/index.vue";
|
|
154
189
|
import { departPerson } from "checked-pick-app";
|
|
190
|
+
import MsgList from "./msgList.vue";
|
|
155
191
|
export default {
|
|
156
192
|
name: "delegateTask",
|
|
157
193
|
props: {
|
|
@@ -165,6 +201,7 @@ export default {
|
|
|
165
201
|
attchViews,
|
|
166
202
|
TopPopup,
|
|
167
203
|
departPerson,
|
|
204
|
+
MsgList,
|
|
168
205
|
},
|
|
169
206
|
data() {
|
|
170
207
|
return {
|
|
@@ -195,9 +232,9 @@ export default {
|
|
|
195
232
|
source: "0",
|
|
196
233
|
type: "0",
|
|
197
234
|
request: this.param.request, //'http://59.53.91.231:2100' 0002
|
|
198
|
-
businessId: this.param.businessKey,
|
|
199
235
|
codeType: [3], // 可选类型 1-主体 2-部门 3-人员
|
|
200
236
|
multiple: true, // 是否多选
|
|
237
|
+
checkedArray: [],
|
|
201
238
|
},
|
|
202
239
|
/* {
|
|
203
240
|
source: "0",
|
|
@@ -213,6 +250,10 @@ export default {
|
|
|
213
250
|
partObjId: [],
|
|
214
251
|
// 选中人员信息
|
|
215
252
|
partNode: {},
|
|
253
|
+
actionName: "",
|
|
254
|
+
|
|
255
|
+
visibleListMsg: false,
|
|
256
|
+
visibleMsgComfig: false,
|
|
216
257
|
};
|
|
217
258
|
},
|
|
218
259
|
watch: {
|
|
@@ -221,8 +262,9 @@ export default {
|
|
|
221
262
|
this.nextNodeData = val.nextNodeData;
|
|
222
263
|
this.taskNode = val.taskNode;
|
|
223
264
|
this.outGatewayUserTaskModel = val.outGatewayUserTaskModel;
|
|
265
|
+
this.actionName = val.actionName;
|
|
224
266
|
if (val.nextNodeData.length) {
|
|
225
|
-
console.log("handler::::", this.nextNodeData[0]);
|
|
267
|
+
// console.log("handler::::", this.nextNodeData[0]);
|
|
226
268
|
if (
|
|
227
269
|
this.nextNodeData[0].type == "userTask" ||
|
|
228
270
|
this.nextNodeData[0].type == "UserTaskModel"
|
|
@@ -230,6 +272,7 @@ export default {
|
|
|
230
272
|
this.entity.multiple = true;
|
|
231
273
|
this.entity.codeType = [3];
|
|
232
274
|
this.entity.source = "1";
|
|
275
|
+
this.entity.checkedArray = [];
|
|
233
276
|
} else if (
|
|
234
277
|
this.nextNodeData[0].type == "ExclusiveGatewayModel"
|
|
235
278
|
) {
|
|
@@ -242,6 +285,7 @@ export default {
|
|
|
242
285
|
this.entity.multiple = true;
|
|
243
286
|
this.entity.codeType = [3];
|
|
244
287
|
this.entity.source = "1";
|
|
288
|
+
this.entity.checkedArray = [];
|
|
245
289
|
} else if (
|
|
246
290
|
val.outGatewayUserTaskModel[0].type ==
|
|
247
291
|
"ExclusiveGatewayModel"
|
|
@@ -256,6 +300,7 @@ export default {
|
|
|
256
300
|
this.entity.multiple = true;
|
|
257
301
|
this.entity.codeType = [3];
|
|
258
302
|
this.entity.source = "1";
|
|
303
|
+
this.entity.checkedArray = [];
|
|
259
304
|
}
|
|
260
305
|
}
|
|
261
306
|
},
|
|
@@ -264,10 +309,47 @@ export default {
|
|
|
264
309
|
},
|
|
265
310
|
},
|
|
266
311
|
created() {
|
|
267
|
-
console.log("isVue2", this.param);
|
|
312
|
+
// console.log("isVue2", this.param);
|
|
268
313
|
this.makeDelegateTaskButtonAnnex();
|
|
269
314
|
},
|
|
270
315
|
methods: {
|
|
316
|
+
// 设置msg
|
|
317
|
+
handleMakeMsg() {
|
|
318
|
+
if (this.commentMsg == "" && !this.commentMsg.length) {
|
|
319
|
+
this.handleTips("请输入审批意见!", false, "success");
|
|
320
|
+
this.visibleMsgComfig = false;
|
|
321
|
+
} else {
|
|
322
|
+
this.visibleMsgComfig = true;
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
handleOpenMsg() {
|
|
326
|
+
this.visibleListMsg = true;
|
|
327
|
+
},
|
|
328
|
+
handleTipsCancel() {
|
|
329
|
+
this.visibleMsgComfig = false;
|
|
330
|
+
},
|
|
331
|
+
handleTipsComfig() {
|
|
332
|
+
this.handleTips("", true, "loading");
|
|
333
|
+
this.visibleMsgComfig = false;
|
|
334
|
+
this.param.request
|
|
335
|
+
.post("/auth//user/opinion/save", {
|
|
336
|
+
opinionName: this.commentMsg,
|
|
337
|
+
})
|
|
338
|
+
.then((res) => {
|
|
339
|
+
if (res.code === 200) {
|
|
340
|
+
this.handleTips("设置成功!", true, "success");
|
|
341
|
+
} else {
|
|
342
|
+
this.handleTips(res.msg, true, "error");
|
|
343
|
+
}
|
|
344
|
+
})
|
|
345
|
+
.catch((error) => {
|
|
346
|
+
this.handleTips(error.msg, true, "error");
|
|
347
|
+
});
|
|
348
|
+
},
|
|
349
|
+
handleMsg(val) {
|
|
350
|
+
this.commentMsg = val;
|
|
351
|
+
this.visibleListMsg = false;
|
|
352
|
+
},
|
|
271
353
|
handleOpenPopup(id) {
|
|
272
354
|
this.visible = true;
|
|
273
355
|
this.partObjId = id;
|
|
@@ -298,6 +380,7 @@ export default {
|
|
|
298
380
|
if (res.code == 200) {
|
|
299
381
|
this.$emit("handleClosePopup1");
|
|
300
382
|
this.handleTips("提交成功!", false, "success");
|
|
383
|
+
this.handleFinal();
|
|
301
384
|
this.commentMsg = "";
|
|
302
385
|
} else {
|
|
303
386
|
this.handleTips(res.msg, true, "error");
|
|
@@ -311,31 +394,37 @@ export default {
|
|
|
311
394
|
this.limit = str[2];
|
|
312
395
|
this.requires = JSON.parse(str[1]);
|
|
313
396
|
this.labels = str[0];
|
|
314
|
-
console.log(
|
|
397
|
+
/* console.log(
|
|
315
398
|
"makeDelegateTaskButtonAnnex",
|
|
316
399
|
this.otherList,
|
|
317
400
|
this.limit,
|
|
318
401
|
this.requires,
|
|
319
402
|
this.labels
|
|
320
|
-
);
|
|
403
|
+
); */
|
|
321
404
|
}
|
|
322
405
|
},
|
|
323
406
|
|
|
324
407
|
handleCallback(res) {
|
|
408
|
+
console.log("111:::", res);
|
|
409
|
+
this.visible = false;
|
|
325
410
|
this.multiNodeParticipant[this.partObjId] = [];
|
|
326
411
|
this.partNode[this.partObjId] = [];
|
|
327
412
|
res.map((v, i) => {
|
|
328
413
|
this.multiNodeParticipant[this.partObjId].push(v.uid);
|
|
329
414
|
this.partNode[this.partObjId].push(v.name);
|
|
415
|
+
this.entity.checkedArray.push({
|
|
416
|
+
type: 3,
|
|
417
|
+
uid: v.uid,
|
|
418
|
+
});
|
|
330
419
|
});
|
|
331
|
-
console.log("callback_OK", res, this.multiNodeParticipant);
|
|
420
|
+
// console.log("callback_OK", res, this.multiNodeParticipant);
|
|
332
421
|
},
|
|
333
422
|
handleCancel() {
|
|
334
|
-
console.log("cancel_No");
|
|
423
|
+
// console.log("cancel_No");
|
|
335
424
|
},
|
|
336
425
|
|
|
337
426
|
getValues(data) {
|
|
338
|
-
console.log("获取当前附件信息::::", data);
|
|
427
|
+
// console.log("获取当前附件信息::::", data);
|
|
339
428
|
this.attchLists = data;
|
|
340
429
|
},
|
|
341
430
|
|
|
@@ -359,11 +448,11 @@ export default {
|
|
|
359
448
|
saveMetaAnnexCmdList: param,
|
|
360
449
|
}
|
|
361
450
|
);
|
|
362
|
-
console.log("asd", ress);
|
|
451
|
+
// console.log("asd", ress);
|
|
363
452
|
if (ress.success) {
|
|
364
453
|
this.$emit("handleClosePopup1");
|
|
365
454
|
this.handleTips("提交成功!", false, "success");
|
|
366
|
-
this.handleFinal()
|
|
455
|
+
this.handleFinal();
|
|
367
456
|
this.commentMsg = "";
|
|
368
457
|
} else {
|
|
369
458
|
this.handleTips("上传失败", true, "error");
|
|
@@ -390,7 +479,7 @@ export default {
|
|
|
390
479
|
|
|
391
480
|
handleFinal() {
|
|
392
481
|
if (this.param.endFunction) {
|
|
393
|
-
this.param.endFunction();
|
|
482
|
+
this.param.endFunction("delegateTask");
|
|
394
483
|
}
|
|
395
484
|
},
|
|
396
485
|
},
|
|
@@ -455,6 +544,11 @@ export default {
|
|
|
455
544
|
margin: 0;
|
|
456
545
|
text-decoration: inherit;
|
|
457
546
|
height: 100%;
|
|
547
|
+
font-size: 14px;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.process-popup-textarea .textarea-item::placeholder {
|
|
551
|
+
line-height: 4;
|
|
458
552
|
}
|
|
459
553
|
.process-pc-label--re {
|
|
460
554
|
color: #ee0000;
|
|
@@ -462,10 +556,11 @@ export default {
|
|
|
462
556
|
|
|
463
557
|
.process-pc-value--people {
|
|
464
558
|
width: 100%;
|
|
465
|
-
height: 43px;
|
|
559
|
+
min-height: 43px;
|
|
466
560
|
padding: 10px 26px 10px 0;
|
|
467
561
|
box-sizing: border-box;
|
|
468
562
|
position: relative;
|
|
563
|
+
font-size: 14px;
|
|
469
564
|
}
|
|
470
565
|
|
|
471
566
|
.process-pc-value--people::after {
|
|
@@ -477,4 +572,16 @@ export default {
|
|
|
477
572
|
bottom: 0;
|
|
478
573
|
left: 0;
|
|
479
574
|
}
|
|
575
|
+
|
|
576
|
+
::v-deep .departPerson-main {
|
|
577
|
+
width: 100% !important;
|
|
578
|
+
height: 100% !important;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.msg-btn {
|
|
582
|
+
font-size: 14px;
|
|
583
|
+
margin: 8px 0;
|
|
584
|
+
text-align: right;
|
|
585
|
+
color: #1890ff;
|
|
586
|
+
}
|
|
480
587
|
</style>
|