eoss-mobiles 0.3.34 → 0.3.35
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 +155 -101
- package/lib/flow.js +116 -71
- package/lib/form.js +33 -24
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/flow/src/components/Opinion.vue +2 -2
- package/packages/flow/src/components/StartFlow.vue +131 -77
- package/packages/flow/src/components/TaskRead.vue +0 -1
- package/packages/flow/src/components/reset.vue +0 -2
- package/packages/flow/src/components/taskUnionExamine.vue +0 -1
- package/packages/form/src/main.vue +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
:placeholder="placeholder"
|
|
27
27
|
v-model="opinion"
|
|
28
28
|
ref="opinionInp"
|
|
29
|
-
autofocus
|
|
29
|
+
:autofocus="pendingItemHandleDescription && showDescription"
|
|
30
30
|
type="textarea"
|
|
31
31
|
rows="3"
|
|
32
32
|
@input="onInput"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
ref="opinionInp"
|
|
55
55
|
type="textarea"
|
|
56
56
|
rows="3"
|
|
57
|
-
autofocus
|
|
57
|
+
:autofocus="pendingItemHandleDescription && showDescription"
|
|
58
58
|
@focus="handleFocus"
|
|
59
59
|
@blur="handleBlur"
|
|
60
60
|
@input="onInput"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
label="下步节点"
|
|
53
53
|
required
|
|
54
54
|
show-toolbar
|
|
55
|
-
v-model="form.
|
|
55
|
+
v-model="form.nextNodeId"
|
|
56
56
|
label-width="100%"
|
|
57
57
|
:columns="nodeList"
|
|
58
58
|
value-key="nodeId"
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
onlyMyOrg: false
|
|
76
76
|
}"
|
|
77
77
|
:disabled="
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
!isCustomUser || isCurrentNodeForbiddenChangeCandidate == 1
|
|
79
|
+
"
|
|
80
80
|
:baseUrl="apiBaseUrl"
|
|
81
81
|
:paddingTop="paddingTop"
|
|
82
82
|
:objType="objType"
|
|
@@ -86,59 +86,59 @@
|
|
|
86
86
|
/>
|
|
87
87
|
</div>
|
|
88
88
|
<div class="item" v-if="enableCustomLimitTimeSetting">
|
|
89
|
-
|
|
89
|
+
<!-- <van-field
|
|
90
90
|
value="主办"
|
|
91
91
|
label="主办"
|
|
92
92
|
:disabled="true"
|
|
93
93
|
placeholder="请选择"
|
|
94
94
|
/> -->
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
<em-picker
|
|
96
|
+
v-model="form.customLimitTime"
|
|
97
|
+
v-if="!showCustomLimitTimeText"
|
|
98
|
+
label="限时办理"
|
|
99
|
+
title="限时办理"
|
|
100
|
+
placeholder="请选择"
|
|
101
|
+
sysAppCode="bpm_custom_limit_time"
|
|
102
|
+
show-toolbar
|
|
103
|
+
>
|
|
104
|
+
<template slot="button">
|
|
105
|
+
<em-button
|
|
106
|
+
size="small"
|
|
107
|
+
type="primary"
|
|
108
|
+
@click="
|
|
109
|
+
() => {
|
|
110
|
+
form.customLimitTime = '';
|
|
111
|
+
showCustomLimitTimeText = !showCustomLimitTimeText;
|
|
112
|
+
}
|
|
113
|
+
"
|
|
114
|
+
>切换文本框</em-button
|
|
103
115
|
>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
116
|
+
</template>
|
|
117
|
+
</em-picker>
|
|
118
|
+
<em-input
|
|
119
|
+
v-else
|
|
120
|
+
v-model="form.customLimitTime"
|
|
121
|
+
center
|
|
122
|
+
label="限时办理"
|
|
123
|
+
clearable
|
|
124
|
+
@change="changeCustomLimitTime"
|
|
125
|
+
placeholder="请输入限时办理天数"
|
|
126
|
+
>
|
|
127
|
+
<template slot="button">
|
|
128
|
+
<em-button
|
|
129
|
+
size="small"
|
|
130
|
+
type="primary"
|
|
131
|
+
@click="
|
|
132
|
+
() => {
|
|
133
|
+
form.customLimitTime = '';
|
|
134
|
+
showCustomLimitTimeText = !showCustomLimitTimeText;
|
|
135
|
+
}
|
|
136
|
+
"
|
|
137
|
+
>切换选择框</em-button
|
|
126
138
|
>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
type="primary"
|
|
131
|
-
@click="
|
|
132
|
-
() => {
|
|
133
|
-
form.customLimitTime = '';
|
|
134
|
-
showCustomLimitTimeText = !showCustomLimitTimeText;
|
|
135
|
-
}
|
|
136
|
-
"
|
|
137
|
-
>切换选择框</em-button
|
|
138
|
-
>
|
|
139
|
-
</template>
|
|
140
|
-
</em-input>
|
|
141
|
-
</div>
|
|
139
|
+
</template>
|
|
140
|
+
</em-input>
|
|
141
|
+
</div>
|
|
142
142
|
<ProcessSetting
|
|
143
143
|
v-if="processObj.isCustomPreset && isPreset"
|
|
144
144
|
ref="processSetting"
|
|
@@ -259,7 +259,8 @@ export default {
|
|
|
259
259
|
showOpinion: true,
|
|
260
260
|
readOnlyNotificationType: '',
|
|
261
261
|
notificationMessageReadOnly: false,
|
|
262
|
-
|
|
262
|
+
defaultNextNode: '',
|
|
263
|
+
isCustomUser: 1,
|
|
263
264
|
isCurrentNodeForbiddenChangeCandidate: 0,
|
|
264
265
|
form: {
|
|
265
266
|
nextNodeId: undefined, // 流程节点id
|
|
@@ -400,7 +401,10 @@ export default {
|
|
|
400
401
|
? ''
|
|
401
402
|
: this.form.notificationType,
|
|
402
403
|
opinion: this.form.opinion,
|
|
403
|
-
customLimitTime
|
|
404
|
+
customLimitTime:
|
|
405
|
+
typeof this.form.customLimitTime === 'object'
|
|
406
|
+
? this.form.customLimitTime.cciValue
|
|
407
|
+
: this.form.customLimitTime,
|
|
404
408
|
nodeId: this.form.nodeId,
|
|
405
409
|
notificationMsg: this.form.notificationMsg,
|
|
406
410
|
loginType: 2, //登录方式
|
|
@@ -408,7 +412,7 @@ export default {
|
|
|
408
412
|
userId: this.userId || $.getStorage('userId'),
|
|
409
413
|
mobileKey: $.getStorage('deviceId') || '123'
|
|
410
414
|
};
|
|
411
|
-
if(!this.enableCustomLimitTimeSetting){
|
|
415
|
+
if (!this.enableCustomLimitTimeSetting) {
|
|
412
416
|
delete info.customLimitTime;
|
|
413
417
|
}
|
|
414
418
|
if (this.processObj.isCustomPreset && this.isPreset) {
|
|
@@ -446,8 +450,8 @@ export default {
|
|
|
446
450
|
}
|
|
447
451
|
info = newParm;
|
|
448
452
|
}
|
|
449
|
-
if(this.formType == 'freeStart' && !this.isFreeStartFlow){
|
|
450
|
-
info.businessId = this.businessId//this.businessId
|
|
453
|
+
if (this.formType == 'freeStart' && !this.isFreeStartFlow) {
|
|
454
|
+
info.businessId = this.businessId; //this.businessId
|
|
451
455
|
}
|
|
452
456
|
if (this.beforeSubmit) {
|
|
453
457
|
this.beforeSubmit(info);
|
|
@@ -486,15 +490,15 @@ export default {
|
|
|
486
490
|
format: false
|
|
487
491
|
}).then((res) => {
|
|
488
492
|
this.$toast.clear();
|
|
489
|
-
if (res.rCode == 0 || res.status ==
|
|
493
|
+
if (res.rCode == 0 || res.status == 'success') {
|
|
490
494
|
this.$toast('操作成功');
|
|
491
|
-
if(_that.formType == 'freeStart' && !_that.isFreeStartFlow){
|
|
492
|
-
this.$emit('closePop')
|
|
493
|
-
}else{
|
|
495
|
+
if (_that.formType == 'freeStart' && !_that.isFreeStartFlow) {
|
|
496
|
+
this.$emit('closePop');
|
|
497
|
+
} else {
|
|
494
498
|
// if(_that.formType == 'freeStart'){
|
|
495
499
|
// _that.$emit('success');
|
|
496
500
|
// }else{
|
|
497
|
-
|
|
501
|
+
_that.$parent.$emit('success');
|
|
498
502
|
// }
|
|
499
503
|
}
|
|
500
504
|
} else {
|
|
@@ -563,10 +567,26 @@ export default {
|
|
|
563
567
|
onConfirmNext(val) {
|
|
564
568
|
this.form.nextName = val.itemName;
|
|
565
569
|
this.nodeList = val.list;
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
570
|
+
if (
|
|
571
|
+
this.defaultNextNode &&
|
|
572
|
+
this.nodeList.filter((x) => x.nodeId == this.defaultNextNode).length > 0
|
|
573
|
+
) {
|
|
574
|
+
let nodeInfo = this.nodeList.filter(
|
|
575
|
+
(x) => x.nodeId == this.defaultNextNode
|
|
576
|
+
);
|
|
577
|
+
this.form.nextNodeId = nodeInfo[0].nodeId;
|
|
578
|
+
this.form.nextNodeName = nodeInfo[0].nodeName;
|
|
579
|
+
nodeInfo[0].transactorInfos &&
|
|
580
|
+
(this.nextUserList = nodeInfo[0].transactorInfos);
|
|
581
|
+
} else {
|
|
582
|
+
this.form.nextNodeId = val.list[0].nodeId;
|
|
583
|
+
this.form.nextNodeName = val.list[0].nodeName;
|
|
584
|
+
val.list[0].transactorInfos &&
|
|
569
585
|
(this.nextUserList = val.list[0].transactorInfos);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
this.nextUserSelectList = [];
|
|
570
590
|
this.showNextList = false;
|
|
571
591
|
this.getPeopleObj(this.form.nextNodeId);
|
|
572
592
|
},
|
|
@@ -575,6 +595,9 @@ export default {
|
|
|
575
595
|
this.form.nextNodeId = val.nodeId;
|
|
576
596
|
this.form.nextNodeName = val.nodeName;
|
|
577
597
|
this.showNextNodeList = false;
|
|
598
|
+
val.transactorInfos &&
|
|
599
|
+
(this.nextUserList = val.transactorInfos);
|
|
600
|
+
this.nextUserSelectList = [];
|
|
578
601
|
this.getPeopleObj(this.form.nextNodeId);
|
|
579
602
|
},
|
|
580
603
|
// 办理人选择完回调
|
|
@@ -621,7 +644,7 @@ export default {
|
|
|
621
644
|
res.results.extendData.readOnlyNotificationType;
|
|
622
645
|
}
|
|
623
646
|
that.isCurrentNodeForbiddenChangeCandidate =
|
|
624
|
-
|
|
647
|
+
res.results.nodeExtr.isCurrentNodeForbiddenChangeCandidate;
|
|
625
648
|
that.processObj = res.results;
|
|
626
649
|
that.nextList = res.results.nodeList;
|
|
627
650
|
that.isOpinionRequired = res.results.nodeExtr.isOpinionRequired;
|
|
@@ -633,17 +656,40 @@ export default {
|
|
|
633
656
|
that.isBanInputOpinion = 0;
|
|
634
657
|
}
|
|
635
658
|
that.isChooseNextNode = res.results.nodeExtr.isChooseNextNode;
|
|
659
|
+
that.defaultNextNode = res.results.nodeExtr.defaultNextNode;
|
|
636
660
|
that.nodeList = res.results.nodeList[0].list;
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
that.
|
|
644
|
-
x.
|
|
645
|
-
|
|
661
|
+
if (
|
|
662
|
+
res.results.nodeExtr.defaultNextNode &&
|
|
663
|
+
that.nextList[0].list.filter(
|
|
664
|
+
(x) => x.nodeId == res.results.nodeExtr.defaultNextNode
|
|
665
|
+
).length > 0
|
|
666
|
+
) {
|
|
667
|
+
let nodeInfo = that.nextList[0].list.filter(
|
|
668
|
+
(x) => x.nodeId == res.results.nodeExtr.defaultNextNode
|
|
669
|
+
);
|
|
670
|
+
|
|
671
|
+
that.form.nextNodeId = nodeInfo[0].nodeId;
|
|
672
|
+
that.form.nextNodeName = nodeInfo[0].nodeName;
|
|
673
|
+
nodeInfo[0].transactorInfos &&
|
|
674
|
+
(that.nextUserList = nodeInfo[0].transactorInfos);
|
|
675
|
+
if (that.nextUserList) {
|
|
676
|
+
that.nextUserList.map((x) => {
|
|
677
|
+
x.checked = false;
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
} else {
|
|
681
|
+
that.form.nextNodeId = that.nextList[0].list[0].nodeId;
|
|
682
|
+
that.form.nextNodeName = that.nextList[0].list[0].nodeName;
|
|
683
|
+
that.nextList[0].list[0].transactorInfos &&
|
|
684
|
+
(that.nextUserList = that.nextList[0].list[0].transactorInfos);
|
|
685
|
+
if (that.nextUserList) {
|
|
686
|
+
that.nextUserList.map((x) => {
|
|
687
|
+
x.checked = false;
|
|
688
|
+
});
|
|
689
|
+
}
|
|
646
690
|
}
|
|
691
|
+
that.form.nextName = that.nextList[0].itemName;
|
|
692
|
+
|
|
647
693
|
that.form.notificationMsg = res.results.notificationMsg;
|
|
648
694
|
that.form.nodeId = res.results.nodeId;
|
|
649
695
|
let defaultNotificationTypes = [];
|
|
@@ -669,21 +715,29 @@ export default {
|
|
|
669
715
|
// 获取节点信息(获取节点属性及办理人)
|
|
670
716
|
getPeopleObj(res) {
|
|
671
717
|
const _that = this;
|
|
718
|
+
// this.$toast.loading({
|
|
719
|
+
// message: '加载中...',
|
|
720
|
+
// forbidClick: true,
|
|
721
|
+
// loadingType: 'spinner',
|
|
722
|
+
// overlay: true,
|
|
723
|
+
// duration: 0
|
|
724
|
+
// });
|
|
672
725
|
request({
|
|
673
726
|
url: _that.apiBaseUrl ? _that.apiBaseUrl + getNodeInfo : getNodeInfo,
|
|
674
727
|
params: {
|
|
675
728
|
// params: {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
729
|
+
processDefinitionId: this.flowObj.processDefinitionId,
|
|
730
|
+
nodeId: res,
|
|
731
|
+
// taskId: this.processObj.taskId,
|
|
732
|
+
userId: _that.userId
|
|
680
733
|
// }
|
|
681
734
|
}
|
|
682
735
|
}).then((res) => {
|
|
683
736
|
this.$toast.clear();
|
|
684
737
|
if (res.rCode == 0) {
|
|
685
738
|
_that.isCustomUser = res.results.nodeExtr.isCustomUser;
|
|
686
|
-
|
|
739
|
+
_that.peopleObj = res.results.nodeExtr;
|
|
740
|
+
// _that.nextUserList = res.results.transactorInfos || [];
|
|
687
741
|
_that.enableCustomLimitTimeSetting =
|
|
688
742
|
this.peopleObj.enableCustomLimitTimeSetting == 1;
|
|
689
743
|
if (res.results.nodeExtr.userSelectionType) {
|
|
@@ -350,7 +350,6 @@ export default {
|
|
|
350
350
|
});
|
|
351
351
|
//获取流程发起信息后去获取节点信息和办理人信息
|
|
352
352
|
Promise.all([this.getProcessObj(res)]).then(() => {
|
|
353
|
-
console.log(res, this.form, 'asd');
|
|
354
353
|
this.getPeopleObj(this.form.nextNodeId);
|
|
355
354
|
});
|
|
356
355
|
},
|
|
@@ -523,7 +522,6 @@ export default {
|
|
|
523
522
|
},
|
|
524
523
|
// 确认下一步操作
|
|
525
524
|
onConfirmNext(val) {
|
|
526
|
-
console.log(val, 'vaaav');
|
|
527
525
|
this.form.nextName = val.itemName;
|
|
528
526
|
this.nodeList = val.list;
|
|
529
527
|
this.form.nextNodeId = val.list[0].nodeId;
|