eoss-mobiles 0.1.20 → 0.1.21
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 +75 -109
- package/lib/flow.js +74 -108
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/flow/src/components/Handle.vue +41 -14
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -96,10 +96,14 @@
|
|
|
96
96
|
!isHiddenNextStepInfo
|
|
97
97
|
"
|
|
98
98
|
>
|
|
99
|
-
<div
|
|
99
|
+
<div
|
|
100
|
+
@click="isNextBox = !isNextBox"
|
|
101
|
+
v-if="!isReject"
|
|
102
|
+
class="shrink-btn"
|
|
103
|
+
>
|
|
100
104
|
{{ isNextBox ? '收起下一步操作和节点' : '展开下一步操作和节点' }}
|
|
101
105
|
</div>
|
|
102
|
-
<div class="next-box" v-show="isNextBox">
|
|
106
|
+
<div class="next-box" v-show="isNextBox || isReject">
|
|
103
107
|
<!-- 下一步操作 -->
|
|
104
108
|
<div
|
|
105
109
|
class="item"
|
|
@@ -119,7 +123,10 @@
|
|
|
119
123
|
/>
|
|
120
124
|
</div>
|
|
121
125
|
<!-- 下步节点 -->
|
|
122
|
-
<div
|
|
126
|
+
<div
|
|
127
|
+
class="item"
|
|
128
|
+
v-if="nodeList && nodeList.length > 0 && !isReject"
|
|
129
|
+
>
|
|
123
130
|
<em-picker
|
|
124
131
|
title="下步节点"
|
|
125
132
|
label="下步节点"
|
|
@@ -398,6 +405,7 @@ export default {
|
|
|
398
405
|
nextNodeDefault: 0,
|
|
399
406
|
showAppUnit: false, // 弹窗单位
|
|
400
407
|
handleFlow: true,
|
|
408
|
+
isReject: false,
|
|
401
409
|
isChooseNextNode: 1, //是否展示下步操作
|
|
402
410
|
pid: 'root', //树选中pid
|
|
403
411
|
objType: 'enterprise', //树点击对象
|
|
@@ -448,6 +456,7 @@ export default {
|
|
|
448
456
|
advanceNoticeHour: undefined, //限时办理 时
|
|
449
457
|
advanceNoticeType: [] //催办通知方式
|
|
450
458
|
},
|
|
459
|
+
isChooseNextNode: 1,
|
|
451
460
|
isOpinionRequired: 0, // 意见是否必填
|
|
452
461
|
isBanInputOpinion: 0, //意见是否禁用
|
|
453
462
|
showTimeList: false, //选择限时办理弹出层
|
|
@@ -511,6 +520,7 @@ export default {
|
|
|
511
520
|
choiceOrgId: '',
|
|
512
521
|
choiceDeptId: '',
|
|
513
522
|
taskExamineInfo: {},
|
|
523
|
+
nodeInfoMapInfo:{},
|
|
514
524
|
pOrgId: ''
|
|
515
525
|
};
|
|
516
526
|
},
|
|
@@ -578,12 +588,12 @@ export default {
|
|
|
578
588
|
this.isSpecial &&
|
|
579
589
|
this.isNextUser &&
|
|
580
590
|
!this.form.nextUserId &&
|
|
581
|
-
idStr === ''
|
|
591
|
+
idStr === '' && !this.isReject
|
|
582
592
|
) {
|
|
583
593
|
this.$toast('请选择办理人');
|
|
584
594
|
return;
|
|
585
595
|
}
|
|
586
|
-
if (!this.form.nextNodeId && this.nodeList.length > 0 && this.isSpecial) {
|
|
596
|
+
if (!this.form.nextNodeId && this.nodeList.length > 0 && this.isSpecial && !this.isReject) {
|
|
587
597
|
this.$toast('请选择流程节点');
|
|
588
598
|
return;
|
|
589
599
|
}
|
|
@@ -650,7 +660,8 @@ export default {
|
|
|
650
660
|
choiceOrgId,
|
|
651
661
|
choiceDeptId,
|
|
652
662
|
pOrgId,
|
|
653
|
-
taskExamineInfo
|
|
663
|
+
taskExamineInfo,
|
|
664
|
+
nodeInfoMapInfo
|
|
654
665
|
} = this;
|
|
655
666
|
_that.form.isEndUserTask = isEndUserTask;
|
|
656
667
|
_that.form.choiceOrgId = choiceOrgId;
|
|
@@ -661,7 +672,8 @@ export default {
|
|
|
661
672
|
_that.form.appId = taskExamineInfo.appId;
|
|
662
673
|
_that.form.processDefinitionId = taskExamineInfo.processDefinitionId;
|
|
663
674
|
_that.form.isSubFlow = taskExamineInfo.isSubFlow;
|
|
664
|
-
_that.form.nodeId = taskExamineInfo.nodeId;
|
|
675
|
+
_that.form.nodeId = taskExamineInfo.nodeId ;
|
|
676
|
+
_that.form.nextNodeId = _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode
|
|
665
677
|
request({
|
|
666
678
|
url: _that.baseUrl ? _that.baseUrl + taskHandleHtml : taskHandleHtml,
|
|
667
679
|
params: {
|
|
@@ -725,6 +737,14 @@ export default {
|
|
|
725
737
|
} else if (val == 7) {
|
|
726
738
|
} else if (val == 8) {
|
|
727
739
|
} else if (val == 9) {
|
|
740
|
+
} else {
|
|
741
|
+
}
|
|
742
|
+
if (val == 9) {
|
|
743
|
+
this.isNextUser = false;
|
|
744
|
+
this.isReject = true
|
|
745
|
+
} else {
|
|
746
|
+
this.isNextUser = true;
|
|
747
|
+
this.isReject = false;
|
|
728
748
|
}
|
|
729
749
|
this.form.nextOperate = val.key;
|
|
730
750
|
this.form.nextOperateName = val.value;
|
|
@@ -824,6 +844,8 @@ export default {
|
|
|
824
844
|
that.taskExamineInfo = taskExamine;
|
|
825
845
|
that.form.notificationMsg = defaultNotificationMessage;
|
|
826
846
|
that.defaultNotificationType = defaultNotificationType.split(',');
|
|
847
|
+
that.nodeInfoMapInfo = nodeInfoMap
|
|
848
|
+
// that.defaultNextNode = nodeInfoMap.nodeExtAttr.defaultNextNode;
|
|
827
849
|
that.isCanAddSign = res.data.isCanAddSign;
|
|
828
850
|
if (that.isCanAddSign) {
|
|
829
851
|
that.form.isAddSign = '2';
|
|
@@ -847,8 +869,9 @@ export default {
|
|
|
847
869
|
!that.taskOperations[0].taskNodeList ||
|
|
848
870
|
that.taskOperations[0].taskNodeList.length === 0
|
|
849
871
|
) {
|
|
850
|
-
that.form.nextNodeId =
|
|
872
|
+
that.form.nextNodeId =undefined;
|
|
851
873
|
that.form.nextNodeName = undefined;
|
|
874
|
+
console.log(that.form.nextNodeId,'that.form.nextNodeId')
|
|
852
875
|
} else {
|
|
853
876
|
that.nodeList = that.taskOperations[0].taskNodeList;
|
|
854
877
|
let info = [];
|
|
@@ -860,6 +883,7 @@ export default {
|
|
|
860
883
|
that.nextNodeDefault = y;
|
|
861
884
|
}
|
|
862
885
|
});
|
|
886
|
+
if(info.length == 0 && that.nodeList.length !=0) info =[that.nodeList[0]]
|
|
863
887
|
if (info.length > 0) {
|
|
864
888
|
that.form.nextNodeId = info[0].nodeId;
|
|
865
889
|
that.form.nextNodeName = info[0].nodeName;
|
|
@@ -884,6 +908,8 @@ export default {
|
|
|
884
908
|
that.nextNodeDefault = y;
|
|
885
909
|
}
|
|
886
910
|
});
|
|
911
|
+
if(info.length == 0 && that.nodeList.length !=0) info =[that.nodeList[0]]
|
|
912
|
+
console.log(info,'infoinfo')
|
|
887
913
|
if (info.length > 0) {
|
|
888
914
|
that.form.nextNodeId = info[0].nodeId;
|
|
889
915
|
that.form.nextNodeName = info[0].nodeName;
|
|
@@ -892,13 +918,14 @@ export default {
|
|
|
892
918
|
// that.form.nextNodeName = that.nodeList[0].nodeName;
|
|
893
919
|
}
|
|
894
920
|
}
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
921
|
+
console.log(that.taskOperations, that.form, 'asdsdsa');
|
|
922
|
+
if (item.key == 9) {
|
|
923
|
+
that.isReject = true;
|
|
924
|
+
}
|
|
899
925
|
}
|
|
926
|
+
console.log(that.form, 'that.form');
|
|
900
927
|
});
|
|
901
|
-
if (isSelected) {
|
|
928
|
+
if (!isSelected) {
|
|
902
929
|
that.form.nextOperate = that.taskOperations[0].key;
|
|
903
930
|
that.form.nextOperateName = that.taskOperations[0].value;
|
|
904
931
|
that.nodeList = that.taskOperations[0].taskNodeList || [];
|
|
@@ -917,7 +944,7 @@ export default {
|
|
|
917
944
|
nodeInfoMap.nodeExtAttr.isSubmitButtonShowAgreeAndDisagree;
|
|
918
945
|
that.isOpinionRequired =
|
|
919
946
|
nodeInfoMap.nodeExtAttr.isOpinionRequired;
|
|
920
|
-
that.isChooseNextNode = nodeInfoMap.nodeExtAttr.isChooseNextNode;
|
|
947
|
+
// that.isChooseNextNode = nodeInfoMap.nodeExtAttr.isChooseNextNode;
|
|
921
948
|
that.isBanInputOpinion =
|
|
922
949
|
nodeInfoMap.nodeExtAttr.isBanInputOpinion;
|
|
923
950
|
}
|