eoss-ui 0.8.46 → 0.8.48
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 +125 -59
- package/lib/flow-list.js +16 -6
- package/lib/flow.js +88 -38
- package/lib/index.js +1 -1
- package/lib/selector.js +8 -2
- package/lib/theme-chalk/flow.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/package.json +1 -1
- package/packages/flow/src/component/SortFlow.vue +112 -110
- package/packages/flow/src/flow.vue +155 -133
- package/packages/flow/src/main.vue +4 -3
- package/packages/flow/src/selectUser.vue +13 -1
- package/packages/flow/src/startTaskRead.vue +2 -1
- package/packages/flow-list/src/main.vue +24 -1
- package/packages/selector/src/main.vue +3 -0
- package/packages/theme-chalk/lib/flow.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/flow.scss +15 -0
- package/src/index.js +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
style="height: 100%; display: flex; flex-direction: column"
|
|
11
11
|
>
|
|
12
12
|
<div class="es-flow-top">
|
|
13
|
-
<div :class="`es-flow-title ${shrink?'border_none' : ''}`">
|
|
13
|
+
<div :class="`es-flow-title ${shrink ? 'border_none' : ''}`">
|
|
14
14
|
<span v-show="!shrink"
|
|
15
15
|
>当前步骤:{{ isFlow ? nodeName || '拟稿' : NodeName }}</span
|
|
16
16
|
>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
label="下步节点"
|
|
71
71
|
>
|
|
72
72
|
<el-select
|
|
73
|
-
|
|
73
|
+
class="es-flow-select"
|
|
74
74
|
v-if="nextNodeCheckType == 'select'"
|
|
75
75
|
v-model="circulateForm.nextNodeId"
|
|
76
76
|
style="width: 100% !important"
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
v-else
|
|
181
181
|
>
|
|
182
182
|
<div class="es-flow-top">
|
|
183
|
-
<div :class="`es-flow-title ${shrink?'border_none' : ''}`">
|
|
183
|
+
<div :class="`es-flow-title ${shrink ? 'border_none' : ''}`">
|
|
184
184
|
<span v-show="!shrink"
|
|
185
185
|
>当前节点:{{ isFlow ? nodeName || '拟稿' : NodeName }}</span
|
|
186
186
|
>
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
>
|
|
336
336
|
<el-select
|
|
337
337
|
slot="prepend"
|
|
338
|
-
|
|
338
|
+
class="es-flow-select"
|
|
339
339
|
v-model="nodeInfo.nextNode"
|
|
340
340
|
style="width: calc(100% + 40px)"
|
|
341
341
|
:placeholder="`请选择流程`"
|
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
v-if="nextOperateCheckType == 'select'"
|
|
472
472
|
v-model="nextNode.nextOperate"
|
|
473
473
|
:placeholder="`请选择下步操作`"
|
|
474
|
-
|
|
474
|
+
class="es-flow-select"
|
|
475
475
|
:disabled="operationList && operationList.length == 1"
|
|
476
476
|
@change="selecNext($event, true)"
|
|
477
477
|
>
|
|
@@ -509,12 +509,12 @@
|
|
|
509
509
|
v-model="nextNode.nextNodeId"
|
|
510
510
|
:placeholder="`请选择下步节点`"
|
|
511
511
|
:disabled="nodeInfos && nodeInfos.length == 1"
|
|
512
|
-
|
|
512
|
+
class="es-flow-select"
|
|
513
513
|
@change="selecNext($event, false)"
|
|
514
514
|
>
|
|
515
515
|
<el-option
|
|
516
516
|
v-for="items in nodeInfos"
|
|
517
|
-
|
|
517
|
+
class="es-flow-select"
|
|
518
518
|
:key="items.id"
|
|
519
519
|
:label="items.nodeName"
|
|
520
520
|
:value="items.nodeId"
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
>
|
|
620
620
|
<el-select
|
|
621
621
|
v-model="nextNode.mainSubId"
|
|
622
|
-
|
|
622
|
+
class="es-flow-select"
|
|
623
623
|
:placeholder="`请选择主办`"
|
|
624
624
|
>
|
|
625
625
|
<el-option
|
|
@@ -919,63 +919,67 @@
|
|
|
919
919
|
</el-form-item>
|
|
920
920
|
</el-form>
|
|
921
921
|
<div class="es-info" v-show="btnType != 'default'">
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
922
|
+
<ProcessReject
|
|
923
|
+
v-if="btnType === 'reject'"
|
|
924
|
+
ref="reject"
|
|
925
|
+
:pending-id="pendingId"
|
|
926
|
+
:option="value"
|
|
927
|
+
class="es-info"
|
|
928
|
+
hideBtn
|
|
929
|
+
:showTooltip="showTooltip"
|
|
930
|
+
:simpleTips="simpleTips"
|
|
931
|
+
:flowLabelConfig="flowLabelConfig"
|
|
932
932
|
:isCancelSecondConfirmationType="isCancelSecondConfirmationType"
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
933
|
+
:hideMessage="hideMessage"
|
|
934
|
+
:show-reject="showReject"
|
|
935
|
+
:news-info="nextNode.notificationMsg"
|
|
936
|
+
@cancel="closeProcess($event, 'showReject')"
|
|
937
|
+
/>
|
|
938
|
+
<StartTaskRead
|
|
939
|
+
v-else-if="
|
|
940
|
+
btnType === 'toStartTaskRead' ||
|
|
941
|
+
btnType === 'toTaskReadAndEnd' ||
|
|
942
|
+
btnType === 'toTransfer'
|
|
943
|
+
"
|
|
944
|
+
:ref="btnType"
|
|
945
|
+
:pending-id="pendingId"
|
|
946
|
+
hideBtn
|
|
947
|
+
class="es-info"
|
|
948
|
+
:opinion="value"
|
|
949
|
+
:type="taskReadType"
|
|
950
|
+
:resetAppId="resetAppId"
|
|
951
|
+
:businessName="businessName"
|
|
952
|
+
:showTooltip="showTooltip"
|
|
953
|
+
:flowLabelConfig="flowLabelConfig"
|
|
954
|
+
:hideMessage="hideMessage"
|
|
955
|
+
:selectorConfig="selectorConfig"
|
|
956
|
+
:simpleTips="simpleTips"
|
|
957
|
+
:subParams="subParams"
|
|
958
|
+
:taskExamine="taskExamineInfo"
|
|
959
|
+
:news-info="nextNode.notificationMsg"
|
|
960
|
+
@cancel="closeProcess($event, 'showTaskRead')"
|
|
961
|
+
/>
|
|
962
|
+
|
|
963
|
+
<TaskUnionExamine
|
|
964
|
+
v-else-if="
|
|
965
|
+
btnType === 'toTakeAdvice' ||
|
|
966
|
+
btnType === 'toUnionExamine' ||
|
|
967
|
+
btnType === 'toStartDraf'
|
|
968
|
+
"
|
|
969
|
+
:ref="btnType"
|
|
970
|
+
class="es-info"
|
|
971
|
+
hideBtn
|
|
972
|
+
@cancel="closeProcess($event, 'showTaskUnionExamine')"
|
|
973
|
+
:simpleTips="simpleTips"
|
|
974
|
+
:pendingId="pendingId"
|
|
975
|
+
:defaultOpinion="nodeDefaultSubmitOpinion"
|
|
976
|
+
:oldOption="value"
|
|
977
|
+
:isCancelSecondConfirmationType="isCancelSecondConfirmationType"
|
|
978
|
+
:selectorParams="selectorParams"
|
|
979
|
+
:type="flowType"
|
|
980
|
+
:multiple="flowMultiple"
|
|
981
|
+
:disabled="flowDisabled"
|
|
982
|
+
/>
|
|
979
983
|
</div>
|
|
980
984
|
<div
|
|
981
985
|
class="es-flow-buttons"
|
|
@@ -1011,9 +1015,9 @@
|
|
|
1011
1015
|
>
|
|
1012
1016
|
<el-button
|
|
1013
1017
|
v-show="isSubmitButtonShowAgreeAndDisagree != 1"
|
|
1014
|
-
v-for="item of
|
|
1015
|
-
? btnList.filter(item => item.event !== 'save')
|
|
1016
|
-
: btnList
|
|
1018
|
+
v-for="item of hideBtn || isHideTemporarySave
|
|
1019
|
+
? btnList.filter((item) => item.event !== 'save')
|
|
1020
|
+
: btnList"
|
|
1017
1021
|
:key="item.name"
|
|
1018
1022
|
:type="item.type"
|
|
1019
1023
|
:style="btnStyle"
|
|
@@ -1196,9 +1200,12 @@
|
|
|
1196
1200
|
>
|
|
1197
1201
|
<!-- <FlowChart :nodeId="nodeInfo.nextNode" v-if="showFlowChart" /> -->
|
|
1198
1202
|
<img
|
|
1203
|
+
v-show="showFlowImg"
|
|
1199
1204
|
style="width: 100%"
|
|
1200
1205
|
:src="`${charUrl}/bpm/service/diagram/getpng.png?processDefinitionId=${nodeInfo.nextNode}`"
|
|
1201
1206
|
alt="加载失败"
|
|
1207
|
+
@error="handleErrorImg('error')"
|
|
1208
|
+
@load="handleErrorImg('load')"
|
|
1202
1209
|
/>
|
|
1203
1210
|
</es-dialog>
|
|
1204
1211
|
<es-dialog
|
|
@@ -1277,6 +1284,7 @@
|
|
|
1277
1284
|
<SortFlow
|
|
1278
1285
|
:flowTypeCode="flowTypeCode"
|
|
1279
1286
|
:defaultProcessKey="defaultProcessKey"
|
|
1287
|
+
:ownerType="ownerType"
|
|
1280
1288
|
@success="sortSuccess"
|
|
1281
1289
|
@close="showSort = false"
|
|
1282
1290
|
/>
|
|
@@ -1433,7 +1441,7 @@ export default {
|
|
|
1433
1441
|
hideBtn: { type: Boolean, default: false },
|
|
1434
1442
|
isCirculate: { type: Boolean, default: false },
|
|
1435
1443
|
newFlow: { type: Boolean, default: false },
|
|
1436
|
-
ownerType:{type:String, default: ''},
|
|
1444
|
+
ownerType: { type: String, default: '' },
|
|
1437
1445
|
formLabelPosition: {
|
|
1438
1446
|
type: String,
|
|
1439
1447
|
default: 'left'
|
|
@@ -1524,6 +1532,7 @@ export default {
|
|
|
1524
1532
|
isHideTemporarySave: false,
|
|
1525
1533
|
oldNextOperate: '',
|
|
1526
1534
|
showOpinion: true,
|
|
1535
|
+
showFlowImg: true,
|
|
1527
1536
|
submitButtonFunKey: '',
|
|
1528
1537
|
activitiDefinitionSort: false,
|
|
1529
1538
|
taskNodeButtons: [],
|
|
@@ -1624,7 +1633,7 @@ export default {
|
|
|
1624
1633
|
nextNodeList: [],
|
|
1625
1634
|
removeUsers: [],
|
|
1626
1635
|
options: [],
|
|
1627
|
-
configInfo:{},
|
|
1636
|
+
configInfo: {},
|
|
1628
1637
|
params: {
|
|
1629
1638
|
filid: 'all', //选择范围(my:本单位/ "" or all:全部)
|
|
1630
1639
|
selectmix: 'true1',
|
|
@@ -1896,6 +1905,9 @@ export default {
|
|
|
1896
1905
|
}
|
|
1897
1906
|
},
|
|
1898
1907
|
methods: {
|
|
1908
|
+
handleErrorImg(type) {
|
|
1909
|
+
this.showFlowImg = type != 'error';
|
|
1910
|
+
},
|
|
1899
1911
|
sortSuccess(list) {
|
|
1900
1912
|
this.nodeInfo.option = list;
|
|
1901
1913
|
if (this.defaultProcessKey == '') {
|
|
@@ -2402,7 +2414,7 @@ export default {
|
|
|
2402
2414
|
saveInfo(type, btn) {
|
|
2403
2415
|
if (this.isFlow) {
|
|
2404
2416
|
if (!type) {
|
|
2405
|
-
console.log(btn)
|
|
2417
|
+
console.log(btn);
|
|
2406
2418
|
if (btn && btn.before) {
|
|
2407
2419
|
btn
|
|
2408
2420
|
.before(
|
|
@@ -2416,7 +2428,8 @@ export default {
|
|
|
2416
2428
|
this.beforeSubmit(
|
|
2417
2429
|
btn && Object.prototype.hasOwnProperty.call(btn, 'code')
|
|
2418
2430
|
? btn.code
|
|
2419
|
-
: 1,
|
|
2431
|
+
: 1,
|
|
2432
|
+
btn.event
|
|
2420
2433
|
)
|
|
2421
2434
|
.then((next) => {
|
|
2422
2435
|
this.$emit('save', this.businessIds);
|
|
@@ -2509,8 +2522,8 @@ export default {
|
|
|
2509
2522
|
**/
|
|
2510
2523
|
taskReadBtn(res) {
|
|
2511
2524
|
// return this.$message.warning('暂未开放!敬请期待');
|
|
2512
|
-
|
|
2513
|
-
this.btnType=''
|
|
2525
|
+
|
|
2526
|
+
this.btnType = '';
|
|
2514
2527
|
setTimeout(() => {
|
|
2515
2528
|
if (this.beforeSubmit != undefined) {
|
|
2516
2529
|
this.beforeSubmit()
|
|
@@ -2518,9 +2531,9 @@ export default {
|
|
|
2518
2531
|
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
2519
2532
|
this.taskReadType = 'create';
|
|
2520
2533
|
// this.showTaskRead = true;
|
|
2521
|
-
if(this.typeCode == 'fenyue'){
|
|
2534
|
+
if (this.typeCode == 'fenyue') {
|
|
2522
2535
|
this.showTaskRead = true;
|
|
2523
|
-
}else{
|
|
2536
|
+
} else {
|
|
2524
2537
|
this.btnType = this.btnFunValue(res.fun);
|
|
2525
2538
|
}
|
|
2526
2539
|
})
|
|
@@ -2529,11 +2542,11 @@ export default {
|
|
|
2529
2542
|
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
2530
2543
|
this.taskReadType = 'create';
|
|
2531
2544
|
// this.showTaskRead = true;
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2545
|
+
if (this.typeCode == 'fenyue') {
|
|
2546
|
+
this.showTaskRead = true;
|
|
2547
|
+
} else {
|
|
2548
|
+
this.btnType = this.btnFunValue(res.fun);
|
|
2549
|
+
}
|
|
2537
2550
|
}
|
|
2538
2551
|
}, 0);
|
|
2539
2552
|
},
|
|
@@ -2703,8 +2716,7 @@ export default {
|
|
|
2703
2716
|
// 驳回:taskRejectHtml
|
|
2704
2717
|
// 直接办结:endFlowHtml
|
|
2705
2718
|
// 自由发起子流程:toFreeStartFlow
|
|
2706
|
-
|
|
2707
|
-
|
|
2719
|
+
|
|
2708
2720
|
if (res.type == 4) {
|
|
2709
2721
|
this.$emit(
|
|
2710
2722
|
'buttonClick',
|
|
@@ -2880,8 +2892,10 @@ export default {
|
|
|
2880
2892
|
}
|
|
2881
2893
|
},
|
|
2882
2894
|
isLoadRead() {
|
|
2883
|
-
const funs = this.typeList.map(item => this.btnFunValue(item.fun));
|
|
2884
|
-
return
|
|
2895
|
+
const funs = this.typeList.map((item) => this.btnFunValue(item.fun));
|
|
2896
|
+
return (
|
|
2897
|
+
funs.includes('toStartTaskRead') && funs.includes('toTaskReadAndEnd')
|
|
2898
|
+
);
|
|
2885
2899
|
},
|
|
2886
2900
|
|
|
2887
2901
|
/**
|
|
@@ -2891,8 +2905,7 @@ export default {
|
|
|
2891
2905
|
* @date 2022年9月29日
|
|
2892
2906
|
**/
|
|
2893
2907
|
toTaskReadAndEnd(res) {
|
|
2894
|
-
|
|
2895
|
-
this.btnType=''
|
|
2908
|
+
this.btnType = '';
|
|
2896
2909
|
setTimeout(() => {
|
|
2897
2910
|
if (this.beforeSubmit != undefined) {
|
|
2898
2911
|
this.beforeSubmit()
|
|
@@ -2900,14 +2913,14 @@ export default {
|
|
|
2900
2913
|
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
2901
2914
|
this.taskReadType = 'taskReadAndEnd';
|
|
2902
2915
|
this.btnType = this.btnFunValue(res.fun);
|
|
2903
|
-
|
|
2916
|
+
|
|
2904
2917
|
// this.showTaskRead = true;
|
|
2905
2918
|
})
|
|
2906
2919
|
.catch((e) => {});
|
|
2907
2920
|
} else {
|
|
2908
2921
|
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
2909
2922
|
this.taskReadType = 'taskReadAndEnd';
|
|
2910
|
-
|
|
2923
|
+
this.btnType = this.btnFunValue(res.fun);
|
|
2911
2924
|
// this.showTaskRead = true;
|
|
2912
2925
|
}
|
|
2913
2926
|
}, 0);
|
|
@@ -2979,21 +2992,21 @@ export default {
|
|
|
2979
2992
|
* @date 2022年9月29日
|
|
2980
2993
|
**/
|
|
2981
2994
|
toTransfer(res) {
|
|
2982
|
-
this.btnType = ''
|
|
2995
|
+
this.btnType = '';
|
|
2983
2996
|
setTimeout(() => {
|
|
2984
2997
|
if (this.beforeSubmit != undefined) {
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2998
|
+
this.beforeSubmit(0)
|
|
2999
|
+
.then((next) => {
|
|
3000
|
+
this.taskReadType = 'transfer';
|
|
3001
|
+
// this.showTaskRead = true;
|
|
3002
|
+
this.btnType = this.btnFunValue(res.fun);
|
|
3003
|
+
})
|
|
3004
|
+
.catch((e) => {});
|
|
3005
|
+
} else {
|
|
3006
|
+
this.taskReadType = 'transfer';
|
|
3007
|
+
this.btnType = this.btnFunValue(res.fun);
|
|
3008
|
+
// this.showTaskRead = true;
|
|
3009
|
+
}
|
|
2997
3010
|
}, 0);
|
|
2998
3011
|
},
|
|
2999
3012
|
handleChangeTime(val) {
|
|
@@ -3471,7 +3484,7 @@ export default {
|
|
|
3471
3484
|
if (temporarySaveButtonName) {
|
|
3472
3485
|
this.saveButtonName = temporarySaveButtonName;
|
|
3473
3486
|
}
|
|
3474
|
-
this.configInfo = res.data
|
|
3487
|
+
this.configInfo = res.data;
|
|
3475
3488
|
if (simpleTips != undefined) {
|
|
3476
3489
|
this.simpleTips = simpleTips;
|
|
3477
3490
|
}
|
|
@@ -3801,7 +3814,7 @@ export default {
|
|
|
3801
3814
|
* @date 2022年5月25日
|
|
3802
3815
|
**/
|
|
3803
3816
|
closeProcess(val, type, closeParent) {
|
|
3804
|
-
|
|
3817
|
+
if (!this.startFlowPageEmbeddedIntoStartFlowIndex) {
|
|
3805
3818
|
this[type] = false;
|
|
3806
3819
|
}
|
|
3807
3820
|
if (
|
|
@@ -3820,13 +3833,12 @@ export default {
|
|
|
3820
3833
|
this.flowSuccess(true);
|
|
3821
3834
|
// this.$emit('success');
|
|
3822
3835
|
} else {
|
|
3823
|
-
if(type == 'showTaskRead'){
|
|
3824
|
-
!this.simpleTips && this.$message.success('分阅成功')
|
|
3825
|
-
this.$emit('success','taskRead');
|
|
3826
|
-
}else{
|
|
3836
|
+
if (type == 'showTaskRead') {
|
|
3837
|
+
!this.simpleTips && this.$message.success('分阅成功');
|
|
3838
|
+
this.$emit('success', 'taskRead');
|
|
3839
|
+
} else {
|
|
3827
3840
|
this.$emit('cancel');
|
|
3828
3841
|
}
|
|
3829
|
-
|
|
3830
3842
|
}
|
|
3831
3843
|
},
|
|
3832
3844
|
/**
|
|
@@ -3867,9 +3879,8 @@ export default {
|
|
|
3867
3879
|
...this.param
|
|
3868
3880
|
// onlyFlag: true
|
|
3869
3881
|
};
|
|
3870
|
-
if(this.ownerType){
|
|
3882
|
+
if (this.ownerType) {
|
|
3871
3883
|
params.ownerType = this.ownerType;
|
|
3872
|
-
|
|
3873
3884
|
}
|
|
3874
3885
|
this.loading = util.loading(this.$loading, '加载中...');
|
|
3875
3886
|
util
|
|
@@ -4001,7 +4012,7 @@ export default {
|
|
|
4001
4012
|
},
|
|
4002
4013
|
// 提交流程前验证
|
|
4003
4014
|
beforeSubProcess(val, type) {
|
|
4004
|
-
|
|
4015
|
+
return this.$refs['nextNode'].validate((valid) => {
|
|
4005
4016
|
if (valid) {
|
|
4006
4017
|
if (this.isSubmitButtonShowAgreeAndDisagree == 1) {
|
|
4007
4018
|
this.value = this.value.replace(RegExp('不同意。', 'g'), '');
|
|
@@ -4021,7 +4032,7 @@ export default {
|
|
|
4021
4032
|
// this.reqCircularRead(type);
|
|
4022
4033
|
// return;
|
|
4023
4034
|
// }
|
|
4024
|
-
|
|
4035
|
+
|
|
4025
4036
|
if (this.submitButtonFunKey) {
|
|
4026
4037
|
let btnInfo = this.taskNodeButtons.filter(
|
|
4027
4038
|
(x) => x.key === this.submitButtonFunKey
|
|
@@ -4071,17 +4082,15 @@ export default {
|
|
|
4071
4082
|
this.$refs[this.btnType].subProcess('nextNode');
|
|
4072
4083
|
return;
|
|
4073
4084
|
}
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
}
|
|
4084
|
-
|
|
4085
|
+
if (this.beforeSubmit == undefined) {
|
|
4086
|
+
this.beforeSubProcess(val, type);
|
|
4087
|
+
} else {
|
|
4088
|
+
this.beforeSubmit(1)
|
|
4089
|
+
.then((next) => {
|
|
4090
|
+
this.beforeSubProcess(val, type);
|
|
4091
|
+
})
|
|
4092
|
+
.catch((e) => {});
|
|
4093
|
+
}
|
|
4085
4094
|
},
|
|
4086
4095
|
validInfo() {
|
|
4087
4096
|
if (
|
|
@@ -4246,12 +4255,19 @@ export default {
|
|
|
4246
4255
|
delete this.nextNode.nextNodeId;
|
|
4247
4256
|
}
|
|
4248
4257
|
|
|
4249
|
-
if (this.isCustomPreset && this.activeNames == '1'){
|
|
4258
|
+
if (this.isCustomPreset && this.activeNames == '1') {
|
|
4250
4259
|
for (let i = 0; i < this.presetList.length; i++) {
|
|
4251
|
-
if
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4260
|
+
if (
|
|
4261
|
+
this.presetList[i].name &&
|
|
4262
|
+
this.presetList[i].name != '1' &&
|
|
4263
|
+
this.presetList[i].name != 'endEvent' &&
|
|
4264
|
+
(!this.presetList[i].value ||
|
|
4265
|
+
this.presetList[i].value.length == 0)
|
|
4266
|
+
) {
|
|
4267
|
+
return this.$message.warning(
|
|
4268
|
+
`预设节点<节点${this.presetList[i].sequence}-${this.presetList[i].label}>必须选择办理人!`
|
|
4269
|
+
);
|
|
4270
|
+
} else {
|
|
4255
4271
|
delete this.presetList[i].label;
|
|
4256
4272
|
}
|
|
4257
4273
|
}
|
|
@@ -4297,7 +4313,9 @@ export default {
|
|
|
4297
4313
|
presetUserJson: JSON.stringify(this.presetUserJson),
|
|
4298
4314
|
removeSignUserId,
|
|
4299
4315
|
nextReadUserId: this.readMultiple
|
|
4300
|
-
? this.mixReadList
|
|
4316
|
+
? this.mixReadList
|
|
4317
|
+
? this.mixReadList.join('|')
|
|
4318
|
+
: ''
|
|
4301
4319
|
: this.nextNode.nextReadUserId.join(','),
|
|
4302
4320
|
nextOrgId: !this.isShowNextUser
|
|
4303
4321
|
? this.multiple
|
|
@@ -4310,7 +4328,8 @@ export default {
|
|
|
4310
4328
|
: this.nextNode.presetReadUserId.join(','),
|
|
4311
4329
|
notificationType
|
|
4312
4330
|
};
|
|
4313
|
-
if (this.activeNames != '1'
|
|
4331
|
+
if (this.activeNames != '1' || !this.isCustomPreset)
|
|
4332
|
+
delete params.customPresetUserJson;
|
|
4314
4333
|
delete params.customLimitTimeText;
|
|
4315
4334
|
if (this.nextNode.isRemoveSign != '1') {
|
|
4316
4335
|
delete params.removeSignUserId;
|
|
@@ -4414,8 +4433,10 @@ export default {
|
|
|
4414
4433
|
presetUserJson: JSON.stringify(this.presetUserJson),
|
|
4415
4434
|
removeSignUserId,
|
|
4416
4435
|
nextReadUserId: this.readMultiple
|
|
4417
|
-
? this.mixReadList
|
|
4418
|
-
|
|
4436
|
+
? this.mixReadList
|
|
4437
|
+
? this.mixReadList.join('|')
|
|
4438
|
+
: ''
|
|
4439
|
+
: this.nextNode.nextReadUserId.join(','),
|
|
4419
4440
|
nextOrgId: !this.isShowNextUser
|
|
4420
4441
|
? this.multiple
|
|
4421
4442
|
? this.mixOrgIdList && this.mixOrgIdList.join('|')
|
|
@@ -4427,7 +4448,8 @@ export default {
|
|
|
4427
4448
|
: this.nextNode.presetReadUserId.join(','),
|
|
4428
4449
|
notificationType
|
|
4429
4450
|
};
|
|
4430
|
-
if (this.activeNames != '1'
|
|
4451
|
+
if (this.activeNames != '1' || !this.isCustomPreset)
|
|
4452
|
+
delete params.customPresetUserJson;
|
|
4431
4453
|
delete params.customLimitTimeText;
|
|
4432
4454
|
if (this.nextNode.isRemoveSign != '1') {
|
|
4433
4455
|
delete params.removeSignUserId;
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
:flowParams="param"
|
|
215
215
|
:subParams="subParams"
|
|
216
216
|
v-else-if="
|
|
217
|
-
|
|
217
|
+
( newTypeCode == 'reset' || newTypeCode == 'continuation' )&& !newFlow
|
|
218
218
|
"
|
|
219
219
|
/>
|
|
220
220
|
<div
|
|
@@ -751,7 +751,7 @@
|
|
|
751
751
|
</div>
|
|
752
752
|
</div>
|
|
753
753
|
<CustomPreset
|
|
754
|
-
v-if="isCustomPreset"
|
|
754
|
+
v-if="isCustomPreset && nextNode.nextOperate != 9"
|
|
755
755
|
ref="customPreset"
|
|
756
756
|
@changeCustom="
|
|
757
757
|
(data) => {
|
|
@@ -962,7 +962,7 @@
|
|
|
962
962
|
:style="btnStyle"
|
|
963
963
|
@click="item.event === 'sub' ? subProcess() : saveInfo(false, item)"
|
|
964
964
|
>
|
|
965
|
-
{{ item.event == 'save' ? saveButtonName : item.text }}
|
|
965
|
+
{{ item.event == 'save' ? saveButtonName : item.text }}
|
|
966
966
|
</el-button>
|
|
967
967
|
|
|
968
968
|
<div
|
|
@@ -1223,6 +1223,7 @@
|
|
|
1223
1223
|
>
|
|
1224
1224
|
<SortFlow
|
|
1225
1225
|
:flowTypeCode="flowTypeCode"
|
|
1226
|
+
:ownerType="ownerType"
|
|
1226
1227
|
:defaultProcessKey="defaultProcessKey"
|
|
1227
1228
|
@success="sortSuccess"
|
|
1228
1229
|
@close="showSort = false"
|
|
@@ -60,6 +60,8 @@
|
|
|
60
60
|
@cancel="cancelSelectUser"
|
|
61
61
|
:param="newParams"
|
|
62
62
|
></es-selector> -->
|
|
63
|
+
<!-- :showSwitch="showSwitch"
|
|
64
|
+
:treeTitle="treeTitle" -->
|
|
63
65
|
<el-input v-if="disabled" :readonly="disabled" v-model="onlyName" />
|
|
64
66
|
<es-selector
|
|
65
67
|
v-else-if="!disabled && isChange"
|
|
@@ -70,12 +72,14 @@
|
|
|
70
72
|
:title="title"
|
|
71
73
|
:showFilterListDep="false"
|
|
72
74
|
reset
|
|
75
|
+
|
|
73
76
|
destroyOnClose
|
|
74
77
|
:classify="classify"
|
|
75
78
|
:collapse-tags="selectorTags"
|
|
76
79
|
:mix="mix"
|
|
77
80
|
:min="isUnionSeal ? 1 : 0"
|
|
78
81
|
:disabled="!isCustomUser || isCurrentNodeForbiddenChangeCandidate == 1"
|
|
82
|
+
:readonly="!isCustomUser || isCurrentNodeForbiddenChangeCandidate == 1"
|
|
79
83
|
:filterable="Boolean(isCustomUser && !isUnionSeal)"
|
|
80
84
|
:class="
|
|
81
85
|
isCustomUser &&
|
|
@@ -112,6 +116,14 @@ export default {
|
|
|
112
116
|
type: Boolean,
|
|
113
117
|
default: false
|
|
114
118
|
},
|
|
119
|
+
treeTitle: {
|
|
120
|
+
type: String,
|
|
121
|
+
default: '组织机构'
|
|
122
|
+
},
|
|
123
|
+
showSwitch: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: false
|
|
126
|
+
},
|
|
115
127
|
tabs: {
|
|
116
128
|
type: Object
|
|
117
129
|
},
|
|
@@ -289,7 +301,7 @@ export default {
|
|
|
289
301
|
this.classify =
|
|
290
302
|
util.getStorage('classify') != undefined
|
|
291
303
|
? util.getStorage('classify')
|
|
292
|
-
:
|
|
304
|
+
: true;
|
|
293
305
|
},
|
|
294
306
|
|
|
295
307
|
methods: {
|
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
<el-form
|
|
11
11
|
ref="nextNode"
|
|
12
12
|
:model="nextNode"
|
|
13
|
-
class="demo-dynamic"
|
|
13
|
+
class="demo-dynamic task-read-form"
|
|
14
14
|
label-width="110px"
|
|
15
15
|
>
|
|
16
16
|
<div
|
|
17
17
|
:style="`max-height: ${
|
|
18
18
|
typeCode || hideBtn ? '100%' : '290px'
|
|
19
19
|
}; overflow-y:${hideBtn?'unset' : 'auto'}; margin-bottom: 10px`"
|
|
20
|
+
class="task-read-form-content"
|
|
20
21
|
>
|
|
21
22
|
<el-form-item
|
|
22
23
|
prop="handleExplain"
|