eoss-ui 0.6.81 → 0.6.82
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/lib/eoss-ui.common.js +75 -43
- package/lib/flow.js +69 -37
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/flow/src/main.vue +18 -23
- package/packages/flow/src/processForm.vue +69 -38
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
</el-form>
|
|
216
216
|
<div
|
|
217
217
|
v-show="
|
|
218
|
-
(!endFlow || nodeInfos.length > 1) &&
|
|
218
|
+
(!endFlow || nodeInfos.length > 1 || taskOperationShiftedNodeList) &&
|
|
219
219
|
newTypeCode != 'fenyue' &&
|
|
220
220
|
!shrink
|
|
221
221
|
"
|
|
@@ -669,6 +669,7 @@
|
|
|
669
669
|
"
|
|
670
670
|
:label-position="formLabelPosition"
|
|
671
671
|
:showBtn="false"
|
|
672
|
+
:formTitle="formTitle"
|
|
672
673
|
:copy-history="freeStartFlowParams.pendedHistoryHandle"
|
|
673
674
|
:process-definition-id="freeStartFlowNextNode || nodeInfo.nextNode"
|
|
674
675
|
:opinion="value"
|
|
@@ -1162,6 +1163,7 @@ export default {
|
|
|
1162
1163
|
},
|
|
1163
1164
|
beforeSubmit: Function,
|
|
1164
1165
|
title: { type: String, default: '流程办理' },
|
|
1166
|
+
formTitle: { type: String, default: '' },
|
|
1165
1167
|
closeParent: Boolean,
|
|
1166
1168
|
param: {
|
|
1167
1169
|
type: Object,
|
|
@@ -1187,6 +1189,7 @@ export default {
|
|
|
1187
1189
|
return {
|
|
1188
1190
|
styles: {},
|
|
1189
1191
|
optionsKey: 0,
|
|
1192
|
+
taskOperationShiftedNodeList:null,
|
|
1190
1193
|
currentNodeEnableItemHandleDescription: false,
|
|
1191
1194
|
startFlowPageEmbeddedIntoStartFlowIndex: false,
|
|
1192
1195
|
pendingItemHandleDescription: '',
|
|
@@ -2572,7 +2575,6 @@ export default {
|
|
|
2572
2575
|
* @date 2022年5月25日
|
|
2573
2576
|
**/
|
|
2574
2577
|
selecNext(val, type, isDef) {
|
|
2575
|
-
console.log(val, 'valvalval');
|
|
2576
2578
|
let isNextNode = false;
|
|
2577
2579
|
if (type) {
|
|
2578
2580
|
isNextNode = this.operationList.filter((x) => x.key == val)[0]
|
|
@@ -2588,8 +2590,7 @@ export default {
|
|
|
2588
2590
|
this.selectUserList = [];
|
|
2589
2591
|
this.radioList = [];
|
|
2590
2592
|
|
|
2591
|
-
if (type
|
|
2592
|
-
console.log('不是下一步节点');
|
|
2593
|
+
if (type) {
|
|
2593
2594
|
this.isNextUser = false;
|
|
2594
2595
|
this.isShowNode = false;
|
|
2595
2596
|
this.isMainSubProcess = false;
|
|
@@ -2606,30 +2607,16 @@ export default {
|
|
|
2606
2607
|
this.nextNode.isReturnRejectNode = 0;
|
|
2607
2608
|
this.nextNode.isSerialSubmit = 0;
|
|
2608
2609
|
this.nodeInfos = [];
|
|
2609
|
-
let newOperationList = [];
|
|
2610
|
-
// this.operationList.map(x => {
|
|
2611
|
-
|
|
2612
|
-
// })
|
|
2613
2610
|
this.operationList.forEach((item) => {
|
|
2614
2611
|
if (item.key === val) {
|
|
2615
2612
|
if (!item.taskNodeList) {
|
|
2616
2613
|
this.nodeInfos = [];
|
|
2617
2614
|
} else {
|
|
2618
|
-
|
|
2619
|
-
// item.taskNodeList.map((x) => {
|
|
2620
|
-
// if (x.nodeName == '编号') {
|
|
2621
|
-
// this.operationList.push({
|
|
2622
|
-
// key: x.nodeId,
|
|
2623
|
-
// value: x.nodeName,
|
|
2624
|
-
// isNextNode: true
|
|
2625
|
-
// });
|
|
2626
|
-
// }
|
|
2627
|
-
// });
|
|
2628
|
-
// }
|
|
2615
|
+
this.nodeInfos = item.taskNodeList;
|
|
2629
2616
|
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2617
|
+
this.nodeInfos = item.taskNodeList.filter(
|
|
2618
|
+
(x) =>this.taskOperationShiftedNodeList.indexOf(x.nodeId) == -1
|
|
2619
|
+
);
|
|
2633
2620
|
}
|
|
2634
2621
|
return;
|
|
2635
2622
|
}
|
|
@@ -2790,6 +2777,7 @@ export default {
|
|
|
2790
2777
|
isSpecial,
|
|
2791
2778
|
canPresetRead,
|
|
2792
2779
|
isCdjxjTaskHandle,
|
|
2780
|
+
taskOperationShiftedNodeList,
|
|
2793
2781
|
taskButtonList,
|
|
2794
2782
|
simpleTips,
|
|
2795
2783
|
isCanPreAddSign
|
|
@@ -2800,6 +2788,13 @@ export default {
|
|
|
2800
2788
|
}
|
|
2801
2789
|
this.$emit('startTaskRead', res);
|
|
2802
2790
|
this.$emit('start-task-read', res);
|
|
2791
|
+
if(taskOperationShiftedNodeList && taskOperationShiftedNodeList.length>0){
|
|
2792
|
+
this.taskOperationShiftedNodeList = []
|
|
2793
|
+
taskOperationShiftedNodeList.map(x =>{
|
|
2794
|
+
this.taskOperationShiftedNodeList.push(x.nodeId)
|
|
2795
|
+
taskOperations.push({key: x.nodeId, value: x.nodeName,isNextNode: true})
|
|
2796
|
+
})
|
|
2797
|
+
}
|
|
2803
2798
|
this.pendingItemHandleDescription = pendingItemHandleDescription;
|
|
2804
2799
|
if (currentOrgSelectorParams.enableCurrentOrgConfig == 'true') {
|
|
2805
2800
|
this.currentOrgSelectorTabs =
|
|
@@ -3072,7 +3067,7 @@ export default {
|
|
|
3072
3067
|
if (
|
|
3073
3068
|
val == 'taskReadAndEnd' ||
|
|
3074
3069
|
(val == true && type != 'taskRead') ||
|
|
3075
|
-
val == 'transfer'
|
|
3070
|
+
val == 'transfer' || this.typeCode == 'read'
|
|
3076
3071
|
) {
|
|
3077
3072
|
this.flowSuccess(true);
|
|
3078
3073
|
// this.$emit('success');
|
|
@@ -13,9 +13,13 @@
|
|
|
13
13
|
label-width="100px"
|
|
14
14
|
:label-position="labelPosition"
|
|
15
15
|
>
|
|
16
|
-
<div
|
|
16
|
+
<div
|
|
17
|
+
:style="`height:${
|
|
18
|
+
showBtn ? '430px' : 'auto'
|
|
19
|
+
}; overflow-y: auto; margin-bottom: 10px`"
|
|
20
|
+
>
|
|
17
21
|
<el-form-item
|
|
18
|
-
|
|
22
|
+
v-show="showBtn"
|
|
19
23
|
prop="nodeName"
|
|
20
24
|
label="当前节点"
|
|
21
25
|
:rules="[
|
|
@@ -324,40 +328,41 @@
|
|
|
324
328
|
</el-form-item>
|
|
325
329
|
</el-form>
|
|
326
330
|
<div v-if="!showBtn" style="padding: 5px; background: #fff">
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
331
|
+
<div class="news" @click="showNews = !showNews">
|
|
332
|
+
<span class="news-item">消息通知</span>
|
|
333
|
+
<span :class="showNews ? 'show' : 'sj'"></span>
|
|
334
|
+
</div>
|
|
335
|
+
<div v-if="showNews" ref="messagebox" style="transition: 1s">
|
|
336
|
+
<el-checkbox-group v-model="nextNode.noticeType">
|
|
337
|
+
<el-checkbox
|
|
338
|
+
v-for="item of nextNode.noticeList"
|
|
339
|
+
:key="item.cciValue"
|
|
340
|
+
:label="item.cciValue"
|
|
341
|
+
:disabled="
|
|
342
|
+
readOnlyNotificationType
|
|
343
|
+
? readOnlyNotificationType.indexOf(item.cciValue) != -1
|
|
344
|
+
: false
|
|
345
|
+
"
|
|
346
|
+
>
|
|
347
|
+
{{ item.shortName }}
|
|
348
|
+
</el-checkbox>
|
|
349
|
+
</el-checkbox-group>
|
|
350
|
+
<es-input
|
|
351
|
+
style="
|
|
352
|
+
border-color: #ccc;
|
|
353
|
+
padding: 5px;
|
|
354
|
+
border-radius: 5px;
|
|
355
|
+
font-size: 13px;
|
|
356
|
+
"
|
|
357
|
+
autosize
|
|
358
|
+
v-show="showNews"
|
|
359
|
+
type="textarea"
|
|
360
|
+
v-model="nextNode.noticeInfo"
|
|
361
|
+
@change="handleChange"
|
|
362
|
+
:readonly="notificationMessageReadOnly"
|
|
363
|
+
/>
|
|
364
|
+
</div>
|
|
365
|
+
</div>
|
|
361
366
|
</div>
|
|
362
367
|
</template>
|
|
363
368
|
|
|
@@ -429,6 +434,10 @@ export default {
|
|
|
429
434
|
type: String,
|
|
430
435
|
default: 'left'
|
|
431
436
|
},
|
|
437
|
+
formTitle: {
|
|
438
|
+
type: String,
|
|
439
|
+
default: ''
|
|
440
|
+
},
|
|
432
441
|
showBtn: { type: Boolean, default: true }
|
|
433
442
|
},
|
|
434
443
|
data() {
|
|
@@ -444,6 +453,7 @@ export default {
|
|
|
444
453
|
nextOperateCheckType: 'select',
|
|
445
454
|
showNews: false, // 是否展示通知信息
|
|
446
455
|
notificationMessageReadOnly: false,
|
|
456
|
+
isChangeMessage: false,
|
|
447
457
|
readOnlyNotificationType: '',
|
|
448
458
|
show: true,
|
|
449
459
|
enableCustomLimitTimeSetting: false,
|
|
@@ -501,6 +511,7 @@ export default {
|
|
|
501
511
|
mixPresetList: [],
|
|
502
512
|
isCdjxjTaskHandle: '',
|
|
503
513
|
isShowNextUser: true,
|
|
514
|
+
oldMessage: '',
|
|
504
515
|
mixOrgIdList: [], //办理对象混选
|
|
505
516
|
nextNode: {
|
|
506
517
|
nodeName: '',
|
|
@@ -535,9 +546,18 @@ export default {
|
|
|
535
546
|
}
|
|
536
547
|
// this.getStartFlow(val);
|
|
537
548
|
},
|
|
538
|
-
opinion(val){
|
|
549
|
+
opinion(val) {
|
|
539
550
|
this.newOpinion = this.opinion;
|
|
540
551
|
},
|
|
552
|
+
formTitle: {
|
|
553
|
+
handler(val) {
|
|
554
|
+
if (!this.showBtn && !this.isChangeMessage) {
|
|
555
|
+
this.nextNode.noticeInfo = this.oldMessage.replace('{title}', val);
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
deep: true,
|
|
559
|
+
immediate: true
|
|
560
|
+
}
|
|
541
561
|
},
|
|
542
562
|
computed: {
|
|
543
563
|
types() {
|
|
@@ -561,6 +581,9 @@ export default {
|
|
|
561
581
|
}
|
|
562
582
|
},
|
|
563
583
|
methods: {
|
|
584
|
+
handleChange() {
|
|
585
|
+
this.isChangeMessage = true
|
|
586
|
+
},
|
|
564
587
|
changeCustomLimitTime(val) {
|
|
565
588
|
if (!Number(val) || val.indexOf('.') != -1 || Number(val) < 0) {
|
|
566
589
|
this.$message.warning('请输入正确的天数');
|
|
@@ -713,11 +736,19 @@ export default {
|
|
|
713
736
|
nodeId: this.nextNode.nextNode,
|
|
714
737
|
businessId: this.id
|
|
715
738
|
};
|
|
739
|
+
if (!this.showBtn) {
|
|
740
|
+
params.openMode = 'samepage';
|
|
741
|
+
}
|
|
716
742
|
util
|
|
717
743
|
.ajax({ url: getNotificationMsg, params, methods: 'post' })
|
|
718
744
|
.then((res) => {
|
|
719
745
|
if (res.status === 'success') {
|
|
720
|
-
this.
|
|
746
|
+
if (!this.showBtn) {
|
|
747
|
+
this.oldMessage = res.message;
|
|
748
|
+
this.nextNode.noticeInfo = res.message.replace('{title}', '');
|
|
749
|
+
} else {
|
|
750
|
+
this.nextNode.noticeInfo = res.message;
|
|
751
|
+
}
|
|
721
752
|
}
|
|
722
753
|
})
|
|
723
754
|
.catch((err) => {
|