eoss-mobiles 0.3.86 → 0.3.87
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-mobile.common.js +217 -77
- package/lib/flow.js +192 -69
- package/lib/index.js +1 -1
- package/lib/selector.js +19 -2
- package/package.json +1 -1
- package/packages/flow/src/components/Circulate.vue +5 -0
- package/packages/flow/src/components/Handle.vue +93 -34
- package/packages/flow/src/components/ProcessSettings.vue +5 -2
- package/packages/flow/src/components/StartFlow.vue +84 -70
- package/packages/flow/src/components/TaskRead.vue +15 -10
- package/packages/flow/src/components/reset.vue +44 -22
- package/packages/flow/src/components/taskUnionExamine.vue +46 -35
- package/packages/selector/src/main.vue +20 -3
- package/src/index.js +1 -1
|
@@ -63,43 +63,45 @@
|
|
|
63
63
|
</div>
|
|
64
64
|
</div>
|
|
65
65
|
<!-- 本单位-->
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
66
|
+
<!-- v-if="isHideCurrentOrg" -->
|
|
67
|
+
<div class="item" v-if="isHideCurrentOrg">
|
|
68
|
+
<em-selector
|
|
69
|
+
v-model="nextCurrentOrgObjSelect"
|
|
70
|
+
multiple
|
|
71
|
+
:isAllCheck="isAllCheck"
|
|
72
|
+
:paddingTop="paddingTop"
|
|
73
|
+
isDepartment
|
|
74
|
+
@selector-click="handleSelectorClick"
|
|
75
|
+
:objType="'enterprise'"
|
|
76
|
+
:tabs="currentOrgSelectorTabs"
|
|
77
|
+
:param="currentOrgSelectorParams"
|
|
78
|
+
:disableds="currentOrgDisabledObjId"
|
|
79
|
+
:baseUrl="apiBaseUrl"
|
|
80
|
+
:isOtherUnit="false"
|
|
81
|
+
:label="'本单位'"
|
|
82
|
+
@change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
|
|
83
|
+
/>
|
|
84
|
+
</div>
|
|
85
|
+
<!-- 外单位 -->
|
|
86
|
+
<!-- v-if="isHideOtherOrg" -->
|
|
87
|
+
<div class="item" v-if="isHideOtherOrg">
|
|
88
|
+
<em-selector
|
|
89
|
+
v-model="nextOtherOrgObjSelect"
|
|
90
|
+
multiple
|
|
91
|
+
:isAllCheck="isAllCheck"
|
|
92
|
+
:paddingTop="paddingTop"
|
|
93
|
+
:objType="'enterprise'"
|
|
94
|
+
@selector-click="handleSelectorClick"
|
|
95
|
+
:param="foreignOrgSelectorParams"
|
|
96
|
+
:tabs="foreignOrgSelectorTabs"
|
|
97
|
+
:baseUrl="apiBaseUrl"
|
|
98
|
+
:disableds="otherOrgDisabledObjId"
|
|
99
|
+
:isOtherUnit="true"
|
|
100
|
+
isEnterprise
|
|
101
|
+
:label="'外单位'"
|
|
102
|
+
@change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
|
|
103
|
+
/>
|
|
104
|
+
</div>
|
|
103
105
|
<!--办理人 -->
|
|
104
106
|
<div class="item item-two-line" v-if="isNextUser">
|
|
105
107
|
<em-selector
|
|
@@ -108,6 +110,7 @@
|
|
|
108
110
|
:isAllCheck="isAllCheck"
|
|
109
111
|
required
|
|
110
112
|
tabs="employee,persongroup"
|
|
113
|
+
@selector-click="handleSelectorClick"
|
|
111
114
|
:param="{
|
|
112
115
|
pid: pid,
|
|
113
116
|
onlyMyOrg: onlyMyOrg
|
|
@@ -120,7 +123,7 @@
|
|
|
120
123
|
:objType="objType"
|
|
121
124
|
:nextUserList="nextUserList"
|
|
122
125
|
@change="handleChange($event, 'nextUserSelectList')"
|
|
123
|
-
:label="`${flowLabelConfig.nextUser|| '办理人'}`"
|
|
126
|
+
:label="`${flowLabelConfig.nextUser || '办理人'}`"
|
|
124
127
|
/>
|
|
125
128
|
</div>
|
|
126
129
|
<div class="item" v-if="enableCustomLimitTimeSetting">
|
|
@@ -311,7 +314,7 @@ export default {
|
|
|
311
314
|
hideMessage: {
|
|
312
315
|
type: Boolean,
|
|
313
316
|
default: false
|
|
314
|
-
}
|
|
317
|
+
}
|
|
315
318
|
},
|
|
316
319
|
data() {
|
|
317
320
|
return {
|
|
@@ -322,17 +325,16 @@ export default {
|
|
|
322
325
|
isCustomUser: 1,
|
|
323
326
|
isHideCurrentOrg: false, //是否隐藏本单位(承办)
|
|
324
327
|
isHideOtherOrg: false, //是否隐藏外单位(承办)
|
|
325
|
-
|
|
328
|
+
nextCurrentOrgObjSelect: [], // 选中本单位
|
|
326
329
|
nextOtherOrgObjSelect: [], //选中外单位
|
|
327
|
-
currentOrgSelectorParams: {only_filid: true,
|
|
328
|
-
onlyMyOrg:true},
|
|
330
|
+
currentOrgSelectorParams: { only_filid: true, onlyMyOrg: true },
|
|
329
331
|
currentOrgSelectorTabs: 'employee,persongroup',
|
|
330
332
|
foreignOrgSelectorTabs: 'enterprise,filgroupobj',
|
|
331
333
|
foreignOrgSelectorParams: { roleid: '' },
|
|
332
334
|
otherOrgDisabledObjId: [],
|
|
333
335
|
currentOrgDisabledObjId: [],
|
|
334
336
|
isCurrentNodeForbiddenChangeCandidate: 0,
|
|
335
|
-
isNextUser:true,
|
|
337
|
+
isNextUser: true,
|
|
336
338
|
form: {
|
|
337
339
|
nextNodeId: undefined, // 流程节点id
|
|
338
340
|
nextNodeName: undefined, // 流程节点名称
|
|
@@ -381,12 +383,14 @@ export default {
|
|
|
381
383
|
...this.foreignOrgSelectorParams,
|
|
382
384
|
...this.selectorParams
|
|
383
385
|
};
|
|
384
|
-
if(this.orgId){
|
|
386
|
+
if (this.orgId) {
|
|
385
387
|
this.currentOrgSelectorParams.pid = this.orgId;
|
|
386
|
-
}else if($.getStorage('orgId')){
|
|
388
|
+
} else if ($.getStorage('orgId')) {
|
|
387
389
|
this.currentOrgSelectorParams.pid = $.getStorage('orgId');
|
|
388
|
-
}else if($.getStorage('userInfo')){
|
|
389
|
-
this.currentOrgSelectorParams.pid = JSON.parse(
|
|
390
|
+
} else if ($.getStorage('userInfo')) {
|
|
391
|
+
this.currentOrgSelectorParams.pid = JSON.parse(
|
|
392
|
+
$.getStorage('userInfo')
|
|
393
|
+
).orgId;
|
|
390
394
|
}
|
|
391
395
|
let obj = {
|
|
392
396
|
processDefinitionId: this.defId,
|
|
@@ -402,6 +406,9 @@ export default {
|
|
|
402
406
|
},
|
|
403
407
|
|
|
404
408
|
methods: {
|
|
409
|
+
handleSelectorClick(val) {
|
|
410
|
+
this.$parent.$emit('selector-click', val);
|
|
411
|
+
},
|
|
405
412
|
goBack() {
|
|
406
413
|
this.$parent.$emit('close');
|
|
407
414
|
this.$emit('close');
|
|
@@ -473,7 +480,7 @@ export default {
|
|
|
473
480
|
if (
|
|
474
481
|
(this.isHideCurrentOrg || this.isHideOtherOrg) &&
|
|
475
482
|
!this.form.nextCurrentOrgObjJson &&
|
|
476
|
-
!this.form.nextOtherOrgObjJson
|
|
483
|
+
!this.form.nextOtherOrgObjJson
|
|
477
484
|
) {
|
|
478
485
|
// this.$toast(`请选择${this.currentOrgName || '本单位'}`);
|
|
479
486
|
this.$toast(`请选择办理对象`);
|
|
@@ -483,7 +490,7 @@ export default {
|
|
|
483
490
|
// this.$toast('请选择通知消息');
|
|
484
491
|
// return;
|
|
485
492
|
// }
|
|
486
|
-
|
|
493
|
+
|
|
487
494
|
let info = {
|
|
488
495
|
processDefinitionId: this.flowObj.processDefinitionId,
|
|
489
496
|
nextUserId: this.form.nextUserId,
|
|
@@ -504,15 +511,15 @@ export default {
|
|
|
504
511
|
userId: this.userId || $.getStorage('userId'),
|
|
505
512
|
mobileKey: $.getStorage('deviceId') || '123'
|
|
506
513
|
};
|
|
507
|
-
if(this.isHideCurrentOrg && this.form.nextCurrentOrgObj){
|
|
514
|
+
if (this.isHideCurrentOrg && this.form.nextCurrentOrgObj) {
|
|
508
515
|
info.nextCurrentOrgObj = this.form.nextCurrentOrgObj;
|
|
509
516
|
}
|
|
510
|
-
if(this.isHideOtherOrg && this.form.nextOtherOrgObj){
|
|
517
|
+
if (this.isHideOtherOrg && this.form.nextOtherOrgObj) {
|
|
511
518
|
info.nextOtherOrgObj = this.form.nextOtherOrgObj;
|
|
512
519
|
}
|
|
513
|
-
if(this.enableCustomLimitTimeSetting && !info.customLimitTime){
|
|
520
|
+
if (this.enableCustomLimitTimeSetting && !info.customLimitTime) {
|
|
514
521
|
this.$toast(`请选择或填写限时办理时间`);
|
|
515
|
-
return
|
|
522
|
+
return;
|
|
516
523
|
}
|
|
517
524
|
if (!this.enableCustomLimitTimeSetting) {
|
|
518
525
|
delete info.customLimitTime;
|
|
@@ -556,12 +563,12 @@ export default {
|
|
|
556
563
|
info.businessId = this.businessId; //this.businessId
|
|
557
564
|
}
|
|
558
565
|
if (this.beforeSubmit) {
|
|
559
|
-
this.beforeSubmit(info,this.sendData);
|
|
566
|
+
this.beforeSubmit(info, this.sendData);
|
|
560
567
|
return;
|
|
561
568
|
}
|
|
562
569
|
this.sendData(info);
|
|
563
570
|
},
|
|
564
|
-
sendData(info){
|
|
571
|
+
sendData(info) {
|
|
565
572
|
let formData = new FormData();
|
|
566
573
|
// if (this.form.isImageOpinion == 1) {
|
|
567
574
|
// formData.append('file', this.file);
|
|
@@ -600,10 +607,10 @@ export default {
|
|
|
600
607
|
if (_that.formType == 'freeStart' && !_that.isFreeStartFlow) {
|
|
601
608
|
this.$emit('closePop');
|
|
602
609
|
} else {
|
|
603
|
-
if(_that.formType == 'freeStart'){
|
|
610
|
+
if (_that.formType == 'freeStart') {
|
|
604
611
|
_that.$emit('success');
|
|
605
|
-
}else{
|
|
606
|
-
|
|
612
|
+
} else {
|
|
613
|
+
_that.$parent.$emit('success');
|
|
607
614
|
}
|
|
608
615
|
}
|
|
609
616
|
} else {
|
|
@@ -681,16 +688,15 @@ export default {
|
|
|
681
688
|
);
|
|
682
689
|
this.form.nextNodeId = nodeInfo[0].nodeId;
|
|
683
690
|
this.form.nextNodeName = nodeInfo[0].nodeName;
|
|
684
|
-
|
|
685
|
-
|
|
691
|
+
nodeInfo[0].transactorInfos &&
|
|
692
|
+
(this.nextUserList = nodeInfo[0].transactorInfos);
|
|
686
693
|
} else {
|
|
687
694
|
this.form.nextNodeId = val.list[0].nodeId;
|
|
688
695
|
this.form.nextNodeName = val.list[0].nodeName;
|
|
689
|
-
|
|
690
|
-
|
|
696
|
+
val.list[0].transactorInfos &&
|
|
697
|
+
(this.nextUserList = val.list[0].transactorInfos);
|
|
691
698
|
}
|
|
692
699
|
|
|
693
|
-
|
|
694
700
|
this.nextUserSelectList = [];
|
|
695
701
|
this.showNextList = false;
|
|
696
702
|
this.getPeopleObj(this.form.nextNodeId);
|
|
@@ -700,8 +706,7 @@ export default {
|
|
|
700
706
|
this.form.nextNodeId = val.nodeId;
|
|
701
707
|
this.form.nextNodeName = val.nodeName;
|
|
702
708
|
this.showNextNodeList = false;
|
|
703
|
-
val.transactorInfos &&
|
|
704
|
-
(this.nextUserList = val.transactorInfos);
|
|
709
|
+
val.transactorInfos && (this.nextUserList = val.transactorInfos);
|
|
705
710
|
this.nextUserSelectList = [];
|
|
706
711
|
this.getPeopleObj(this.form.nextNodeId);
|
|
707
712
|
},
|
|
@@ -800,7 +805,8 @@ export default {
|
|
|
800
805
|
let defaultNotificationTypes = [];
|
|
801
806
|
if (
|
|
802
807
|
res.results.notificationTypes &&
|
|
803
|
-
that.defaultNotificationType.length == 0 &&
|
|
808
|
+
that.defaultNotificationType.length == 0 &&
|
|
809
|
+
!that.hideMessage
|
|
804
810
|
) {
|
|
805
811
|
defaultNotificationTypes = res.results.notificationTypes.filter(
|
|
806
812
|
(x) => x.defaultSelected == 'true'
|
|
@@ -817,7 +823,7 @@ export default {
|
|
|
817
823
|
});
|
|
818
824
|
});
|
|
819
825
|
},
|
|
820
|
-
|
|
826
|
+
// 单位选择完回调
|
|
821
827
|
disposeAppUnit(res, type) {
|
|
822
828
|
let label = type.substring(0, type.lastIndexOf('Select'));
|
|
823
829
|
let idStr = '';
|
|
@@ -908,7 +914,10 @@ export default {
|
|
|
908
914
|
if (res.rCode == 0) {
|
|
909
915
|
_that.isCustomUser = res.results.nodeExtr.isCustomUser;
|
|
910
916
|
_that.peopleObj = res.results.nodeExtr;
|
|
911
|
-
|
|
917
|
+
if (
|
|
918
|
+
res.results.nodeExtr.nodeType === 1 ||
|
|
919
|
+
res.results.nodeExtr.nodeType === 2
|
|
920
|
+
) {
|
|
912
921
|
_that.isNextUser = false;
|
|
913
922
|
_that.isHideCurrentOrg =
|
|
914
923
|
res.results.nodeExtr.isHideCurrentOrg == 1 ? false : true; //判断是否隐藏本单位
|
|
@@ -925,8 +934,13 @@ export default {
|
|
|
925
934
|
// _that.nextUserList = res.results.transactorInfos || [];
|
|
926
935
|
_that.enableCustomLimitTimeSetting =
|
|
927
936
|
this.peopleObj.enableCustomLimitTimeSetting == 1;
|
|
928
|
-
if(
|
|
929
|
-
_that.
|
|
937
|
+
if (
|
|
938
|
+
_that.enableCustomLimitTimeSetting &&
|
|
939
|
+
res.results.nodeMoreInfo &&
|
|
940
|
+
res.results.nodeMoreInfo.defaultCustomLimitDays
|
|
941
|
+
) {
|
|
942
|
+
_that.form.customLimitTime =
|
|
943
|
+
res.results.nodeMoreInfo.defaultCustomLimitDays + '';
|
|
930
944
|
}
|
|
931
945
|
if (res.results.nodeExtr.userSelectionType) {
|
|
932
946
|
this.treeType = res.results.nodeExtr.userSelectionType;
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
:isAllCheck="isAllCheck"
|
|
24
24
|
:param="params"
|
|
25
25
|
:baseUrl="apiBaseUrl"
|
|
26
|
+
@selector-click="handleSelectorClick"
|
|
26
27
|
tabs="employee,persongroup"
|
|
27
28
|
:paddingTop="paddingTop"
|
|
28
29
|
v-model="nextReadUserSelectList"
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
:multiple="multiple"
|
|
37
38
|
tabs="employee,persongroup"
|
|
38
39
|
:param="params"
|
|
40
|
+
@selector-click="handleSelectorClick"
|
|
39
41
|
:isAllCheck="isAllCheck"
|
|
40
42
|
:baseUrl="apiBaseUrl"
|
|
41
43
|
:paddingTop="paddingTop"
|
|
@@ -79,7 +81,7 @@
|
|
|
79
81
|
/>
|
|
80
82
|
</div>
|
|
81
83
|
<Opinion
|
|
82
|
-
|
|
84
|
+
v-if="isSyncCopy"
|
|
83
85
|
:ownId="pendingId"
|
|
84
86
|
@onInputOpintion="onInputOpintion"
|
|
85
87
|
:isOpinionRequired="0"
|
|
@@ -96,7 +98,7 @@
|
|
|
96
98
|
</div>
|
|
97
99
|
<div class="item">
|
|
98
100
|
<Message
|
|
99
|
-
v-if="!hideMessage
|
|
101
|
+
v-if="!hideMessage"
|
|
100
102
|
ref="message"
|
|
101
103
|
:code="msgCode"
|
|
102
104
|
:readOnlyNotificationType="readOnlyNotificationType"
|
|
@@ -213,7 +215,7 @@ export default {
|
|
|
213
215
|
getSubText() {
|
|
214
216
|
return this.processObj.rereadButtonName || '确定';
|
|
215
217
|
},
|
|
216
|
-
|
|
218
|
+
|
|
217
219
|
params() {
|
|
218
220
|
return {
|
|
219
221
|
pid:
|
|
@@ -249,7 +251,10 @@ export default {
|
|
|
249
251
|
},
|
|
250
252
|
|
|
251
253
|
methods: {
|
|
252
|
-
|
|
254
|
+
handleSelectorClick(val) {
|
|
255
|
+
this.$parent.$emit('selector-click', val);
|
|
256
|
+
},
|
|
257
|
+
onInputOpintion(val) {
|
|
253
258
|
this.form.handleExplain = val.opinion;
|
|
254
259
|
},
|
|
255
260
|
//获取通知信息
|
|
@@ -500,8 +505,8 @@ export default {
|
|
|
500
505
|
if (res.status == 'success' || res.rCode == 0) {
|
|
501
506
|
this.selectPersonValue = res.data.selectPersonValue;
|
|
502
507
|
this.isSyncCopy = res.data.isSyncCopy == 1;
|
|
503
|
-
if(res.data.taskHandleReadUserSelectLabelName){
|
|
504
|
-
this.radioData[1].name = res.data.taskHandleReadUserSelectLabelName
|
|
508
|
+
if (res.data.taskHandleReadUserSelectLabelName) {
|
|
509
|
+
this.radioData[1].name = res.data.taskHandleReadUserSelectLabelName;
|
|
505
510
|
}
|
|
506
511
|
this.isMultiple();
|
|
507
512
|
}
|
|
@@ -628,10 +633,10 @@ export default {
|
|
|
628
633
|
if (status == 'success') {
|
|
629
634
|
this.defaultNotificationMessage = defaultNotificationMessage;
|
|
630
635
|
this.form.notificationMsg = defaultNotificationMessage;
|
|
631
|
-
if(choiceDeptId){
|
|
636
|
+
if (choiceDeptId) {
|
|
632
637
|
taskExamine.choiceDeptId = choiceDeptId;
|
|
633
638
|
}
|
|
634
|
-
if(choiceOrgId){
|
|
639
|
+
if (choiceOrgId) {
|
|
635
640
|
taskExamine.choiceOrgId = choiceOrgId;
|
|
636
641
|
}
|
|
637
642
|
this.taskExamine = taskExamine;
|
|
@@ -695,8 +700,8 @@ export default {
|
|
|
695
700
|
nextReadUserId: ids
|
|
696
701
|
}
|
|
697
702
|
};
|
|
698
|
-
if(this.isSyncCopy && this.isSync ==1){
|
|
699
|
-
params.params.nextHandleReadUserId = params.params.nextReadUserId;
|
|
703
|
+
if (this.isSyncCopy && this.isSync == 1) {
|
|
704
|
+
params.params.nextHandleReadUserId = params.params.nextReadUserId;
|
|
700
705
|
delete params.params.nextReadUserId;
|
|
701
706
|
}
|
|
702
707
|
if (this.readParams) {
|
|
@@ -3,10 +3,15 @@
|
|
|
3
3
|
<div class="process-start">
|
|
4
4
|
<div class="startFlow-content">
|
|
5
5
|
<!-- 当前节点 -->
|
|
6
|
-
|
|
6
|
+
<div style="border-radius: 5px; overflow: hidden">
|
|
7
7
|
<em-input v-model="title" label-width="90" label="标题" readonly />
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
<em-input
|
|
9
|
+
v-model="processObj.nodeName"
|
|
10
|
+
label-width="90"
|
|
11
|
+
label="当前办理节点"
|
|
12
|
+
readonly
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
10
15
|
<!-- 意见 -->
|
|
11
16
|
<Opinion
|
|
12
17
|
v-if="showOpinion"
|
|
@@ -51,6 +56,7 @@
|
|
|
51
56
|
v-model="nextUserSelectList"
|
|
52
57
|
:multiple="!isRadio"
|
|
53
58
|
:isAllCheck="isAllCheck"
|
|
59
|
+
@selector-click="handleSelectorClick"
|
|
54
60
|
required
|
|
55
61
|
:param="{
|
|
56
62
|
pid: pid,
|
|
@@ -64,7 +70,7 @@
|
|
|
64
70
|
:objType="objType"
|
|
65
71
|
:nextUserList="nextUserList"
|
|
66
72
|
@change="handleChange($event, 'nextUserSelectList')"
|
|
67
|
-
:label="`${flowLabelConfig.nextUser|| '办理人'}`"
|
|
73
|
+
:label="`${flowLabelConfig.nextUser || '办理人'}`"
|
|
68
74
|
/>
|
|
69
75
|
</div>
|
|
70
76
|
<div class="item" v-if="enableCustomLimitTimeSetting">
|
|
@@ -175,7 +181,7 @@ import {
|
|
|
175
181
|
toTaskContinuationIndex,
|
|
176
182
|
taskContinuation,
|
|
177
183
|
getNotificationMsg,
|
|
178
|
-
findSysCodes
|
|
184
|
+
findSysCodes
|
|
179
185
|
} from '../../../../src/config/api';
|
|
180
186
|
import request from '../../../../src/utils/http.js';
|
|
181
187
|
import Opinion from './Opinion.vue';
|
|
@@ -247,11 +253,11 @@ export default {
|
|
|
247
253
|
flowLabelConfig: {
|
|
248
254
|
type: Object,
|
|
249
255
|
default: () => ({})
|
|
250
|
-
}
|
|
256
|
+
}
|
|
251
257
|
},
|
|
252
258
|
data() {
|
|
253
259
|
return {
|
|
254
|
-
title:'',
|
|
260
|
+
title: '',
|
|
255
261
|
showOpinion: true,
|
|
256
262
|
readOnlyNotificationType: '',
|
|
257
263
|
notificationMessageReadOnly: false,
|
|
@@ -307,18 +313,21 @@ export default {
|
|
|
307
313
|
// hideTempSave: true,
|
|
308
314
|
businessId: this.businessId
|
|
309
315
|
};
|
|
310
|
-
|
|
316
|
+
|
|
311
317
|
this.geAllData(obj);
|
|
312
318
|
this.getDefNoticeType();
|
|
313
319
|
},
|
|
314
320
|
|
|
315
321
|
methods: {
|
|
322
|
+
handleSelectorClick(val) {
|
|
323
|
+
this.$parent.$emit('selector-click', val);
|
|
324
|
+
},
|
|
316
325
|
getDefNoticeType() {
|
|
317
326
|
request({
|
|
318
327
|
url: findSysCodes
|
|
319
328
|
}).then((res) => {
|
|
320
329
|
// this.form.notificationMsg = res.message;
|
|
321
|
-
if(this.hideMessage) return
|
|
330
|
+
if (this.hideMessage) return;
|
|
322
331
|
this.defaultNotificationType = res.message.split(',');
|
|
323
332
|
});
|
|
324
333
|
},
|
|
@@ -397,7 +406,7 @@ export default {
|
|
|
397
406
|
return;
|
|
398
407
|
}
|
|
399
408
|
if (!this.form.nextUserId) {
|
|
400
|
-
this.$toast(`请选择${this.flowLabelConfig.nextUser|| '办理人'}`);
|
|
409
|
+
this.$toast(`请选择${this.flowLabelConfig.nextUser || '办理人'}`);
|
|
401
410
|
return;
|
|
402
411
|
}
|
|
403
412
|
if (!this.form.nextNodeId) {
|
|
@@ -463,7 +472,10 @@ export default {
|
|
|
463
472
|
});
|
|
464
473
|
const _that = this;
|
|
465
474
|
request({
|
|
466
|
-
url:
|
|
475
|
+
url:
|
|
476
|
+
(_that.apiBaseUrl || '') + _that.type === 'reset'
|
|
477
|
+
? resetProcess
|
|
478
|
+
: taskContinuation,
|
|
467
479
|
type: 'post',
|
|
468
480
|
params: info,
|
|
469
481
|
format: false
|
|
@@ -491,7 +503,7 @@ export default {
|
|
|
491
503
|
this.$refs.selectTree.getContent(label);
|
|
492
504
|
});
|
|
493
505
|
let obj = {
|
|
494
|
-
label: `请选择${this.flowLabelConfig.nextUser|| '办理人'}`,
|
|
506
|
+
label: `请选择${this.flowLabelConfig.nextUser || '办理人'}`,
|
|
495
507
|
show: true
|
|
496
508
|
};
|
|
497
509
|
this.$emit('informNav', obj);
|
|
@@ -574,19 +586,19 @@ export default {
|
|
|
574
586
|
// 获取发起流程信息
|
|
575
587
|
getProcessObj(res) {
|
|
576
588
|
let that = this;
|
|
577
|
-
const url =
|
|
589
|
+
const url =
|
|
590
|
+
that.type === 'reset' ? toResetProcessIndex : toTaskContinuationIndex;
|
|
578
591
|
return new Promise(function (resolve, reiect) {
|
|
579
592
|
request({
|
|
580
|
-
url: that.apiBaseUrl
|
|
581
|
-
? that.apiBaseUrl + url
|
|
582
|
-
: url,
|
|
593
|
+
url: that.apiBaseUrl ? that.apiBaseUrl + url : url,
|
|
583
594
|
params: {
|
|
584
595
|
appId: that.appId,
|
|
585
596
|
userId: that.userId || $.getStorage('userId')
|
|
586
597
|
}
|
|
587
598
|
}).then((res) => {
|
|
588
599
|
if (res.rCode == 0 || res.status == 'success') {
|
|
589
|
-
that.title =
|
|
600
|
+
that.title =
|
|
601
|
+
res.data.pendtitle || res.data.taskExamine.businessName;
|
|
590
602
|
that.isCurrentNodeForbiddenChangeCandidate =
|
|
591
603
|
res.data.nodeInfoMap.nodeExtAttr.isCurrentNodeForbiddenChangeCandidate;
|
|
592
604
|
that.processObj = res.data.taskExamine;
|
|
@@ -608,7 +620,7 @@ export default {
|
|
|
608
620
|
that.nodeList.push({ nodeName: obj[key], nodeId: key });
|
|
609
621
|
}
|
|
610
622
|
}
|
|
611
|
-
|
|
623
|
+
if (res.data.taskNodeList && res.data.taskNodeList.length > 0) {
|
|
612
624
|
for (let key in res.data.taskNodeList[0]) {
|
|
613
625
|
that.nodeList.push({
|
|
614
626
|
nodeName: res.data.taskNodeList[0][key],
|
|
@@ -650,14 +662,19 @@ export default {
|
|
|
650
662
|
request({
|
|
651
663
|
url: _that.apiBaseUrl ? _that.apiBaseUrl + getNodeInfo : getNodeInfo,
|
|
652
664
|
params: {
|
|
653
|
-
|
|
665
|
+
processDefinitionId: this.processObj.processDefinitionId,
|
|
654
666
|
// nextNodeId: res,
|
|
655
667
|
nodeId: res,
|
|
656
668
|
businessId: this.processObj.businessId,
|
|
657
669
|
// taskId: this.processObj.taskId,
|
|
658
670
|
pendingId: this.processObj.pendingId,
|
|
659
671
|
userId: _that.userId,
|
|
660
|
-
taskAction:
|
|
672
|
+
taskAction:
|
|
673
|
+
_that.type == 'reset'
|
|
674
|
+
? 'resetProcess'
|
|
675
|
+
: _that.type == 'continuation'
|
|
676
|
+
? 'continuation'
|
|
677
|
+
: ''
|
|
661
678
|
}
|
|
662
679
|
}).then((res) => {
|
|
663
680
|
this.$toast.clear();
|
|
@@ -672,8 +689,13 @@ export default {
|
|
|
672
689
|
});
|
|
673
690
|
_that.enableCustomLimitTimeSetting =
|
|
674
691
|
this.peopleObj.enableCustomLimitTimeSetting == 1;
|
|
675
|
-
if(
|
|
676
|
-
_that.
|
|
692
|
+
if (
|
|
693
|
+
_that.enableCustomLimitTimeSetting &&
|
|
694
|
+
res.data.nodeMoreInfo &&
|
|
695
|
+
res.data.nodeMoreInfo.defaultCustomLimitDays
|
|
696
|
+
) {
|
|
697
|
+
_that.form.customLimitTime =
|
|
698
|
+
res.data.nodeMoreInfo.defaultCustomLimitDays + '';
|
|
677
699
|
}
|
|
678
700
|
if (res.data.nodeExtAttr.userSelectionType) {
|
|
679
701
|
this.treeType = res.data.nodeExtAttr.userSelectionType;
|