eoss-ui 0.8.35 → 0.8.36
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 +79 -29
- package/lib/flow.js +73 -23
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/flow/src/flow.vue +66 -41
- package/packages/flow/src/main.vue +48 -46
- package/packages/flow/src/processForm.vue +25 -0
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
/>
|
|
222
222
|
</div>
|
|
223
223
|
<div
|
|
224
|
-
v-show="!isStartFlow && !shrink && typeList.length>1"
|
|
224
|
+
v-show="!isStartFlow && !shrink && typeList.length > 1"
|
|
225
225
|
class="es-flow-middle-more-btn"
|
|
226
226
|
:style="{
|
|
227
227
|
flex: getFlexStyle()
|
|
@@ -631,9 +631,7 @@
|
|
|
631
631
|
<el-form-item
|
|
632
632
|
prop="nextReadUserId"
|
|
633
633
|
v-if="isTaskread == 1"
|
|
634
|
-
label="
|
|
635
|
-
分阅用户
|
|
636
|
-
"
|
|
634
|
+
label="分阅用户"
|
|
637
635
|
>
|
|
638
636
|
<SelectUser
|
|
639
637
|
:nextUser="nextNode.nextReadUserId"
|
|
@@ -642,6 +640,7 @@
|
|
|
642
640
|
:options="userOptions"
|
|
643
641
|
:showTooltip="showTooltip"
|
|
644
642
|
title="分阅用户"
|
|
643
|
+
:params="fyParams"
|
|
645
644
|
:mix="true"
|
|
646
645
|
:types="types"
|
|
647
646
|
@change="changeSelectReadUser($event, 'nextReadUserId')"
|
|
@@ -664,6 +663,7 @@
|
|
|
664
663
|
:radioList="presetReadUserId"
|
|
665
664
|
:presetEdit="1"
|
|
666
665
|
title="分阅用户"
|
|
666
|
+
:params="fyParams"
|
|
667
667
|
:mix="true"
|
|
668
668
|
:types="types"
|
|
669
669
|
@change="changeSelectReadUser($event, 'presetReadUserId')"
|
|
@@ -916,7 +916,7 @@
|
|
|
916
916
|
ref="reject"
|
|
917
917
|
:pending-id="pendingId"
|
|
918
918
|
:option="value"
|
|
919
|
-
|
|
919
|
+
class="es-info"
|
|
920
920
|
hideBtn
|
|
921
921
|
:showTooltip="showTooltip"
|
|
922
922
|
:simpleTips="simpleTips"
|
|
@@ -931,10 +931,10 @@
|
|
|
931
931
|
ref="toStartTaskRead"
|
|
932
932
|
:pending-id="pendingId"
|
|
933
933
|
hideBtn
|
|
934
|
-
|
|
934
|
+
class="es-info"
|
|
935
935
|
:opinion="value"
|
|
936
936
|
:type="taskReadType"
|
|
937
|
-
|
|
937
|
+
:resetAppId="resetAppId"
|
|
938
938
|
:showTooltip="showTooltip"
|
|
939
939
|
:flowLabelConfig="flowLabelConfig"
|
|
940
940
|
:hideMessage="hideMessage"
|
|
@@ -946,24 +946,24 @@
|
|
|
946
946
|
@cancel="closeProcess($event, 'showTaskRead')"
|
|
947
947
|
/>
|
|
948
948
|
<TaskUnionExamine
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
949
|
+
v-else-if="
|
|
950
|
+
btnType === 'toTakeAdvice' ||
|
|
951
|
+
btnType === 'toUnionExamine' ||
|
|
952
|
+
btnType === 'toStartDraf'
|
|
953
|
+
"
|
|
954
|
+
:ref="btnType"
|
|
955
|
+
class="es-info"
|
|
956
|
+
hideBtn
|
|
957
|
+
@cancel="closeProcess($event, 'showTaskUnionExamine')"
|
|
958
|
+
:simpleTips="simpleTips"
|
|
959
|
+
:pendingId="pendingId"
|
|
960
|
+
:defaultOpinion="nodeDefaultSubmitOpinion"
|
|
961
|
+
:oldOption="value"
|
|
962
|
+
:selectorParams="selectorParams"
|
|
963
|
+
:type="flowType"
|
|
964
|
+
:multiple="flowMultiple"
|
|
965
|
+
:disabled="flowDisabled"
|
|
966
|
+
/>
|
|
967
967
|
<div
|
|
968
968
|
class="es-flow-buttons"
|
|
969
969
|
v-if="newTypeCode != 'fenyue' && !shrink"
|
|
@@ -1047,7 +1047,7 @@
|
|
|
1047
1047
|
style="margin: 0px 10px"
|
|
1048
1048
|
v-if="hideBtn"
|
|
1049
1049
|
> -->
|
|
1050
|
-
|
|
1050
|
+
<!-- <el-button
|
|
1051
1051
|
v-show="isSubmitButtonShowAgreeAndDisagree != 1"
|
|
1052
1052
|
v-for="item of btnList.slice(0, 2)"
|
|
1053
1053
|
:key="item.name"
|
|
@@ -1059,7 +1059,7 @@
|
|
|
1059
1059
|
>
|
|
1060
1060
|
{{ item.event == 'save' ? saveButtonName : item.text }}
|
|
1061
1061
|
</el-button> -->
|
|
1062
|
-
|
|
1062
|
+
<!-- <el-dropdown
|
|
1063
1063
|
v-if="
|
|
1064
1064
|
!isFlow &&
|
|
1065
1065
|
(rejectObj.fun || pointsReadingObj.fun || moreList.length > 0)
|
|
@@ -1229,7 +1229,7 @@
|
|
|
1229
1229
|
:flowLabelConfig="flowLabelConfig"
|
|
1230
1230
|
:hideMessage="hideMessage"
|
|
1231
1231
|
:selectorConfig="selectorConfig"
|
|
1232
|
-
|
|
1232
|
+
:resetAppId="resetAppId"
|
|
1233
1233
|
:simpleTips="simpleTips"
|
|
1234
1234
|
:subParams="subParams"
|
|
1235
1235
|
:taskExamine="taskExamineInfo"
|
|
@@ -1430,7 +1430,7 @@ export default {
|
|
|
1430
1430
|
type: Array,
|
|
1431
1431
|
default: () => [
|
|
1432
1432
|
{ text: '暂存', event: 'save' },
|
|
1433
|
-
{ text: '提交', event: 'sub', type: 'primary' }
|
|
1433
|
+
{ text: '提交', event: 'sub', type: 'primary' }
|
|
1434
1434
|
]
|
|
1435
1435
|
},
|
|
1436
1436
|
subFun: {
|
|
@@ -1853,6 +1853,28 @@ export default {
|
|
|
1853
1853
|
} else {
|
|
1854
1854
|
return { width: '100%' };
|
|
1855
1855
|
}
|
|
1856
|
+
},
|
|
1857
|
+
fyParams() {
|
|
1858
|
+
let orgId = JSON.parse(util.getStorage('mainConfig')).userModel.orgId;
|
|
1859
|
+
let params = {};
|
|
1860
|
+
if (this.configInfo.selectPersonValue == 1) {
|
|
1861
|
+
params.filid = orgId;
|
|
1862
|
+
} else if (this.configInfo.selectPersonValue == 2) {
|
|
1863
|
+
params.filid = orgId;
|
|
1864
|
+
} else if (this.configInfo.selectPersonValue == 3) {
|
|
1865
|
+
params.filid = 'all';
|
|
1866
|
+
} else if (this.configInfo.selectPersonValue == 4) {
|
|
1867
|
+
params.filid = 'all';
|
|
1868
|
+
} else if (this.configInfo.selectPersonValue == 5) {
|
|
1869
|
+
params.filid = '';
|
|
1870
|
+
} else if (this.configInfo.selectPersonValue == 6) {
|
|
1871
|
+
params.filid = '';
|
|
1872
|
+
} else if (this.configInfo.selectPersonValue == 7) {
|
|
1873
|
+
params.filid = orgId;
|
|
1874
|
+
} else if (this.configInfo.selectPersonValue == 8) {
|
|
1875
|
+
params.filid = orgId;
|
|
1876
|
+
}
|
|
1877
|
+
return params;
|
|
1856
1878
|
}
|
|
1857
1879
|
},
|
|
1858
1880
|
methods: {
|
|
@@ -2468,7 +2490,7 @@ export default {
|
|
|
2468
2490
|
**/
|
|
2469
2491
|
taskReadBtn(res) {
|
|
2470
2492
|
// return this.$message.warning('暂未开放!敬请期待');
|
|
2471
|
-
|
|
2493
|
+
|
|
2472
2494
|
if (this.beforeSubmit != undefined) {
|
|
2473
2495
|
this.beforeSubmit()
|
|
2474
2496
|
.then((next) => {
|
|
@@ -2768,9 +2790,9 @@ export default {
|
|
|
2768
2790
|
this.loading.close();
|
|
2769
2791
|
if (message == 'success') {
|
|
2770
2792
|
// this.showTaskUnionExamine = true;
|
|
2771
|
-
this.btnType = ''
|
|
2793
|
+
this.btnType = '';
|
|
2772
2794
|
setTimeout(() => {
|
|
2773
|
-
this.btnType = this.btnFunValue(resInfo.fun)
|
|
2795
|
+
this.btnType = this.btnFunValue(resInfo.fun);
|
|
2774
2796
|
}, 0);
|
|
2775
2797
|
} else {
|
|
2776
2798
|
this.$message.error(message || '系统错误,请联系管理员!');
|
|
@@ -2790,24 +2812,24 @@ export default {
|
|
|
2790
2812
|
* @date 2022年9月29日
|
|
2791
2813
|
**/
|
|
2792
2814
|
toStartDraf(res) {
|
|
2793
|
-
console.log(res)
|
|
2815
|
+
console.log(res);
|
|
2794
2816
|
if (this.beforeSubmit != undefined) {
|
|
2795
2817
|
this.beforeSubmit()
|
|
2796
2818
|
.then((next) => {
|
|
2797
2819
|
// this.showTaskUnionExamine = true;
|
|
2798
|
-
this.btnType = ''
|
|
2820
|
+
this.btnType = '';
|
|
2799
2821
|
setTimeout(() => {
|
|
2800
|
-
this.btnType = this.btnFunValue(res.fun)
|
|
2822
|
+
this.btnType = this.btnFunValue(res.fun);
|
|
2801
2823
|
}, 0);
|
|
2802
2824
|
// this.btnType = this.btnFunValue(res.fun) //this.btnFunValue(res.fun);
|
|
2803
2825
|
})
|
|
2804
2826
|
.catch((e) => {});
|
|
2805
2827
|
} else {
|
|
2806
2828
|
// this.showTaskUnionExamine = true;
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2829
|
+
this.btnType = '';
|
|
2830
|
+
setTimeout(() => {
|
|
2831
|
+
this.btnType = this.btnFunValue(res.fun);
|
|
2832
|
+
}, 0);
|
|
2811
2833
|
}
|
|
2812
2834
|
},
|
|
2813
2835
|
/**
|
|
@@ -3138,7 +3160,10 @@ export default {
|
|
|
3138
3160
|
data.globalNodeType === 'endEvent' ? (this.endFlow = true) : '';
|
|
3139
3161
|
}
|
|
3140
3162
|
}
|
|
3141
|
-
console.log(
|
|
3163
|
+
console.log(
|
|
3164
|
+
this.$refs.customPreset.getPresetFlowInfo,
|
|
3165
|
+
'his.$refs.customPreset'
|
|
3166
|
+
);
|
|
3142
3167
|
this.isCustomPreset &&
|
|
3143
3168
|
this.$refs.customPreset.getPresetFlowInfo(
|
|
3144
3169
|
this.nextNode.nextNodeId,
|
|
@@ -3938,7 +3963,7 @@ export default {
|
|
|
3938
3963
|
warning('暂无可驳回节点及对象');
|
|
3939
3964
|
return;
|
|
3940
3965
|
}
|
|
3941
|
-
|
|
3966
|
+
console.log('taskReadBtn', this.btnType);
|
|
3942
3967
|
this.$refs[this.btnType].subProcess('nextNode');
|
|
3943
3968
|
return;
|
|
3944
3969
|
}
|
|
@@ -5,44 +5,44 @@
|
|
|
5
5
|
:style="styles"
|
|
6
6
|
v-if="!shrinkAbled"
|
|
7
7
|
>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
8
|
+
<FlowNew
|
|
9
|
+
v-bind="$attrs"
|
|
10
|
+
v-if="!shrinkAbled && newFlow"
|
|
11
|
+
:hideMessage="hideMessage"
|
|
12
|
+
:showShrink="showShrink"
|
|
13
|
+
:showTooltip="showTooltip"
|
|
14
|
+
:isStartFlow="isStartFlow"
|
|
15
|
+
:businessId="businessId"
|
|
16
|
+
:pendingId="pendingId"
|
|
17
|
+
:nodeName="nodeName"
|
|
18
|
+
:typeCode="typeCode"
|
|
19
|
+
:selectorConfig="selectorConfig"
|
|
20
|
+
:flowTypeCode="flowTypeCode"
|
|
21
|
+
:defaultProcessKey="defaultProcessKey"
|
|
22
|
+
:isCirculate="isCirculate"
|
|
23
|
+
:newFlow="newFlow"
|
|
24
|
+
:formLabelPosition="formLabelPosition"
|
|
25
|
+
:flowListDisabled="flowListDisabled"
|
|
26
|
+
:subFun="subFun"
|
|
27
|
+
:urgencyLevel="urgencyLevel"
|
|
28
|
+
:beforeSubmit="beforeSubmit"
|
|
29
|
+
:title="title"
|
|
30
|
+
:formTitle="formTitle"
|
|
31
|
+
:closeParent="closeParent"
|
|
32
|
+
:param="param"
|
|
33
|
+
:subParams="subParams"
|
|
34
|
+
:selectorParams="selectorParams"
|
|
35
|
+
:fullFlow="fullFlow"
|
|
36
|
+
:showReadConfirm="showReadConfirm"
|
|
37
|
+
:width="width"
|
|
38
|
+
:resetAppId="resetAppId"
|
|
39
|
+
:userSelectRange="userSelectRange"
|
|
40
|
+
:rows="rows"
|
|
41
|
+
@success="handleNewFlowSuccess"
|
|
42
|
+
:showOther="showOther"
|
|
43
|
+
:flowLabelConfig="flowLabelConfig"
|
|
44
|
+
:isEndMessage="isEndMessage"
|
|
45
|
+
/>
|
|
46
46
|
<div
|
|
47
47
|
v-if="showCirculate && newTypeCode != 'fenyue' && !newFlow"
|
|
48
48
|
style="height: 100%; display: flex; flex-direction: column"
|
|
@@ -636,9 +636,7 @@
|
|
|
636
636
|
<el-form-item
|
|
637
637
|
prop="nextReadUserId"
|
|
638
638
|
v-if="isTaskread == 1"
|
|
639
|
-
label="
|
|
640
|
-
分阅用户
|
|
641
|
-
"
|
|
639
|
+
label="分阅用户"
|
|
642
640
|
>
|
|
643
641
|
<SelectUser
|
|
644
642
|
:nextUser="nextNode.nextReadUserId"
|
|
@@ -1124,7 +1122,7 @@
|
|
|
1124
1122
|
:taskParams="taskParams"
|
|
1125
1123
|
:formType="processFormType"
|
|
1126
1124
|
:isCanReadTransferHandle="isCanReadTransferHandle"
|
|
1127
|
-
:readTransferHandleFlowTypeCode="readTransferHandleFlowTypeCode"
|
|
1125
|
+
:readTransferHandleFlowTypeCode="readTransferHandleFlowTypeCode"
|
|
1128
1126
|
@cancel="closeProcess($event, 'handleVisible', closeParent)"
|
|
1129
1127
|
/>
|
|
1130
1128
|
</es-dialog>
|
|
@@ -1736,6 +1734,7 @@ export default {
|
|
|
1736
1734
|
}
|
|
1737
1735
|
if (this.nodeInfo.nextNode) {
|
|
1738
1736
|
this.handleChange(this.nodeInfo.nextNode, true);
|
|
1737
|
+
// this.handleChange(val, true);
|
|
1739
1738
|
}
|
|
1740
1739
|
}
|
|
1741
1740
|
},
|
|
@@ -1884,7 +1883,8 @@ export default {
|
|
|
1884
1883
|
this.getTaskReadFlow();
|
|
1885
1884
|
} else if (
|
|
1886
1885
|
this.newTypeCode != 'reset' &&
|
|
1887
|
-
this.newTypeCode != 'continuation'
|
|
1886
|
+
this.newTypeCode != 'continuation' &&
|
|
1887
|
+
!this.newFlow
|
|
1888
1888
|
) {
|
|
1889
1889
|
this.getHedInfo();
|
|
1890
1890
|
}
|
|
@@ -1901,6 +1901,7 @@ export default {
|
|
|
1901
1901
|
}
|
|
1902
1902
|
},
|
|
1903
1903
|
getNodeInfoForStartFlow(processDefinitionId) {
|
|
1904
|
+
console.log('processDefinitionId',processDefinitionId);
|
|
1904
1905
|
let params = {
|
|
1905
1906
|
url: getNodeInfoForStart,
|
|
1906
1907
|
params: { processDefinitionId }
|
|
@@ -1976,7 +1977,7 @@ export default {
|
|
|
1976
1977
|
this.$refs.esContent.scrollTop += this.$refs.messagebox.clientHeight;
|
|
1977
1978
|
});
|
|
1978
1979
|
},
|
|
1979
|
-
handleNewFlowSuccess(){
|
|
1980
|
+
handleNewFlowSuccess() {
|
|
1980
1981
|
this.$emit('success');
|
|
1981
1982
|
},
|
|
1982
1983
|
freeStartFlowSuccess() {
|
|
@@ -1985,6 +1986,7 @@ export default {
|
|
|
1985
1986
|
// this.$emit('success');
|
|
1986
1987
|
},
|
|
1987
1988
|
handleChange(val, isForStartFlow) {
|
|
1989
|
+
console.log('handleChange val', val);
|
|
1988
1990
|
this.getNodeInfoForStartFlow(val, isForStartFlow);
|
|
1989
1991
|
this.$parent.$emit('flowChange', val);
|
|
1990
1992
|
},
|
|
@@ -3209,7 +3211,7 @@ export default {
|
|
|
3209
3211
|
}
|
|
3210
3212
|
if (this.endFlow && isDef) {
|
|
3211
3213
|
this.loading.close();
|
|
3212
|
-
} else if(!this.newFlow){
|
|
3214
|
+
} else if (!this.newFlow) {
|
|
3213
3215
|
this.getNodeInfo();
|
|
3214
3216
|
}
|
|
3215
3217
|
},
|
|
@@ -3779,7 +3781,7 @@ export default {
|
|
|
3779
3781
|
this.showNews = false;
|
|
3780
3782
|
this.nextNode.notificationType = [];
|
|
3781
3783
|
this.pendingId = results[results.length - 1].attachId;
|
|
3782
|
-
if(!this.newFlow){
|
|
3784
|
+
if (!this.newFlow) {
|
|
3783
3785
|
this.getHedInfo();
|
|
3784
3786
|
}
|
|
3785
3787
|
} else {
|
|
@@ -276,6 +276,7 @@
|
|
|
276
276
|
:mix="true"
|
|
277
277
|
:types="types"
|
|
278
278
|
@change="changeSelectReadUser($event, 'nextReadUserId')"
|
|
279
|
+
:params="fyParams"
|
|
279
280
|
:tabs="tabs"
|
|
280
281
|
/>
|
|
281
282
|
</el-form-item>
|
|
@@ -293,6 +294,7 @@
|
|
|
293
294
|
:showTooltip="showTooltip"
|
|
294
295
|
:options="presetOptions"
|
|
295
296
|
title="分阅用户"
|
|
297
|
+
:params="fyParams"
|
|
296
298
|
:radioList="presetReadUserId"
|
|
297
299
|
:presetEdit="1"
|
|
298
300
|
:mix="true"
|
|
@@ -773,6 +775,28 @@ export default {
|
|
|
773
775
|
} else {
|
|
774
776
|
return ['employee', 'enterprise', 'department', 'persongroup'];
|
|
775
777
|
}
|
|
778
|
+
},
|
|
779
|
+
fyParams() {
|
|
780
|
+
let orgId = JSON.parse(util.getStorage('mainConfig')).userModel.orgId;
|
|
781
|
+
let params = {};
|
|
782
|
+
if (this.configInfo.selectPersonValue == 1) {
|
|
783
|
+
params.filid = orgId;
|
|
784
|
+
} else if (this.configInfo.selectPersonValue == 2) {
|
|
785
|
+
params.filid = orgId;
|
|
786
|
+
} else if (this.configInfo.selectPersonValue == 3) {
|
|
787
|
+
params.filid = 'all';
|
|
788
|
+
} else if (this.configInfo.selectPersonValue == 4) {
|
|
789
|
+
params.filid = 'all';
|
|
790
|
+
} else if (this.configInfo.selectPersonValue == 5) {
|
|
791
|
+
params.filid = '';
|
|
792
|
+
} else if (this.configInfo.selectPersonValue == 6) {
|
|
793
|
+
params.filid = '';
|
|
794
|
+
} else if (this.configInfo.selectPersonValue == 7) {
|
|
795
|
+
params.filid = orgId;
|
|
796
|
+
} else if (this.configInfo.selectPersonValue == 8) {
|
|
797
|
+
params.filid = orgId;
|
|
798
|
+
}
|
|
799
|
+
return params;
|
|
776
800
|
}
|
|
777
801
|
},
|
|
778
802
|
created() {
|
|
@@ -1850,6 +1874,7 @@ export default {
|
|
|
1850
1874
|
});
|
|
1851
1875
|
}
|
|
1852
1876
|
}
|
|
1877
|
+
this.configInfo = res.data;
|
|
1853
1878
|
this.customPresetHintMessage = data.customPresetHintMessage;
|
|
1854
1879
|
this.readOnlyNotificationType = data.readOnlyNotificationType;
|
|
1855
1880
|
this.notificationMessageReadOnly =
|