eoss-ui 0.8.3 → 0.8.5
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/button-group.js +46 -45
- package/lib/button.js +46 -45
- package/lib/calogin.js +89 -57
- package/lib/checkbox-group.js +46 -45
- package/lib/data-table-form.js +46 -45
- package/lib/data-table.js +95 -69
- package/lib/date-picker.js +46 -45
- package/lib/dialog.js +46 -45
- package/lib/eoss-ui.common.js +401 -333
- package/lib/flow-group.js +46 -45
- package/lib/flow-list.js +46 -45
- package/lib/flow.js +285 -270
- package/lib/form.js +46 -45
- package/lib/handle-user.js +46 -45
- package/lib/handler.js +46 -45
- package/lib/icon.js +46 -45
- package/lib/index.js +1 -1
- package/lib/input-number.js +46 -45
- package/lib/input.js +46 -45
- package/lib/login.js +46 -45
- package/lib/main.js +63 -61
- package/lib/nav.js +46 -45
- package/lib/page.js +46 -45
- package/lib/pagination.js +46 -45
- package/lib/player.js +46 -45
- package/lib/qr-code.js +46 -45
- package/lib/radio-group.js +46 -45
- package/lib/retrial-auth.js +46 -45
- package/lib/select-ganged.js +46 -45
- package/lib/select.js +46 -45
- package/lib/selector-panel.js +46 -45
- package/lib/selector.js +46 -45
- package/lib/sizer.js +46 -45
- package/lib/steps.js +46 -45
- package/lib/switch.js +46 -45
- package/lib/table-form.js +46 -45
- package/lib/tabs.js +46 -45
- package/lib/tips.js +46 -45
- package/lib/tree-group.js +46 -45
- package/lib/tree.js +46 -45
- package/lib/upload.js +46 -45
- package/lib/utils/util.js +46 -45
- package/lib/wujie.js +46 -45
- package/lib/wxlogin.js +46 -45
- package/package.json +1 -1
- package/packages/calogin/src/plugin.js +3 -3
- package/packages/data-table/src/main.vue +49 -20
- package/packages/flow/src/processForm.vue +259 -228
- package/packages/main/src/main.vue +1 -1
- package/packages/main/src/simplicityTop/index.vue +6 -5
- package/src/index.js +1 -1
- package/src/utils/util.js +49 -48
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
:label-position="labelPosition"
|
|
16
16
|
>
|
|
17
17
|
<div
|
|
18
|
-
:style="`height:${
|
|
19
|
-
showBtn ? '
|
|
20
|
-
}
|
|
18
|
+
:style="`height:${showBtn ? '430px' : 'auto'}; overflow-y:${
|
|
19
|
+
showBtn ? 'auto' : 'hidden'
|
|
20
|
+
} ; margin-bottom: 10px;overflow-x: hidden;`"
|
|
21
21
|
>
|
|
22
22
|
<el-form-item
|
|
23
23
|
v-show="showBtn"
|
|
@@ -136,38 +136,35 @@
|
|
|
136
136
|
:params="params"
|
|
137
137
|
/>
|
|
138
138
|
</el-form-item> -->
|
|
139
|
-
<el-form-item
|
|
140
|
-
v-if="isHideCurrentOrg"
|
|
141
|
-
prop="nextCurrentOrgObj"
|
|
142
|
-
label="本单位"
|
|
143
|
-
>
|
|
144
|
-
<SelectUser
|
|
145
|
-
:nextUser="nextCurrentOrgObjSelect"
|
|
146
|
-
multiple
|
|
147
|
-
mix
|
|
148
|
-
@change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
|
|
149
|
-
:showTooltip="showTooltip"
|
|
150
|
-
:types="['employee', 'persongroup']"
|
|
151
|
-
:params="currentOrgSelectorParams"
|
|
152
|
-
/>
|
|
153
|
-
</el-form-item>
|
|
154
|
-
<el-form-item
|
|
155
|
-
v-if="isHideOtherOrg"
|
|
156
|
-
label="外单位"
|
|
157
|
-
>
|
|
158
|
-
<SelectUser
|
|
159
|
-
:nextUser="nextOtherOrgObjSelect"
|
|
160
|
-
multiple
|
|
161
|
-
:showTooltip="showTooltip"
|
|
162
|
-
mix
|
|
163
|
-
:where="{ filid: 'other' }"
|
|
164
|
-
@change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
|
|
165
|
-
:types="['enterprise', 'filgroup']"
|
|
166
|
-
:params="foreignOrgSelectorParams"
|
|
167
|
-
/>
|
|
168
|
-
</el-form-item>
|
|
169
139
|
<el-form-item
|
|
170
|
-
|
|
140
|
+
v-if="isHideCurrentOrg"
|
|
141
|
+
prop="nextCurrentOrgObj"
|
|
142
|
+
label="本单位"
|
|
143
|
+
>
|
|
144
|
+
<SelectUser
|
|
145
|
+
:nextUser="nextCurrentOrgObjSelect"
|
|
146
|
+
multiple
|
|
147
|
+
mix
|
|
148
|
+
@change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
|
|
149
|
+
:showTooltip="showTooltip"
|
|
150
|
+
:types="['employee', 'persongroup']"
|
|
151
|
+
:params="currentOrgSelectorParams"
|
|
152
|
+
/>
|
|
153
|
+
</el-form-item>
|
|
154
|
+
<el-form-item v-if="isHideOtherOrg" label="外单位">
|
|
155
|
+
<SelectUser
|
|
156
|
+
:nextUser="nextOtherOrgObjSelect"
|
|
157
|
+
multiple
|
|
158
|
+
:showTooltip="showTooltip"
|
|
159
|
+
mix
|
|
160
|
+
:where="{ filid: 'other' }"
|
|
161
|
+
@change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
|
|
162
|
+
:types="['enterprise', 'filgroup']"
|
|
163
|
+
:params="foreignOrgSelectorParams"
|
|
164
|
+
/>
|
|
165
|
+
</el-form-item>
|
|
166
|
+
<el-form-item
|
|
167
|
+
v-if="!isHideOtherOrg && !isHideCurrentOrg"
|
|
171
168
|
:prop="isShowNextUser ? 'nextUser' : 'nextOrgId'"
|
|
172
169
|
:label="isShowNextUser ? '下步办理人' : '办理对象'"
|
|
173
170
|
>
|
|
@@ -177,7 +174,9 @@
|
|
|
177
174
|
:multiple="multiple"
|
|
178
175
|
:isCustomUser="!isShowNextUser ? 1 : isCustomUser"
|
|
179
176
|
:showTooltip="showTooltip"
|
|
180
|
-
:isCurrentNodeForbiddenChangeCandidate="
|
|
177
|
+
:isCurrentNodeForbiddenChangeCandidate="
|
|
178
|
+
isCurrentNodeForbiddenChangeCandidate
|
|
179
|
+
"
|
|
181
180
|
:options="options"
|
|
182
181
|
:presetEdit="presetEdit"
|
|
183
182
|
:mix="multiple"
|
|
@@ -261,23 +260,27 @@
|
|
|
261
260
|
}
|
|
262
261
|
]"
|
|
263
262
|
>
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
263
|
+
<div style="display: flex">
|
|
264
|
+
<es-select
|
|
265
|
+
v-model="nextNode.customLimitTimeText"
|
|
266
|
+
placeholder="请选择"
|
|
267
|
+
@change="handleChangeTime"
|
|
268
|
+
:style="`flex:${showBtn ? 'unset' : '1'};width: ${
|
|
269
|
+
showBtn ? '20%' : 'unset'
|
|
270
|
+
} !important; display: inline-block;`"
|
|
271
|
+
sysCode="bpm_custom_limit_time"
|
|
272
|
+
></es-select>
|
|
273
|
+
<el-input
|
|
274
|
+
v-model="nextNode.customLimitTime"
|
|
275
|
+
:style="`flex:${showBtn ? 'unset' : '1'};width: ${
|
|
276
|
+
showBtn ? '20%' : 'unset'
|
|
277
|
+
} !important; display: inline-block;`"
|
|
278
|
+
placeholder="请输入限时办理的天数"
|
|
279
|
+
class="input-with-select custom-limit-time"
|
|
280
|
+
@change="changeCustomLimitTime"
|
|
281
|
+
>
|
|
279
282
|
</el-input>
|
|
280
|
-
|
|
283
|
+
<span style="margin-left: 5px">天</span>
|
|
281
284
|
</div>
|
|
282
285
|
</el-form-item>
|
|
283
286
|
<el-form-item
|
|
@@ -362,13 +365,10 @@
|
|
|
362
365
|
</div>
|
|
363
366
|
<el-form-item style="margin-bottom: 0px" v-show="showBtn">
|
|
364
367
|
<div style="text-align: right">
|
|
365
|
-
<el-button
|
|
366
|
-
type="primary"
|
|
367
|
-
@click="subProcess('nextNode')"
|
|
368
|
-
>
|
|
368
|
+
<el-button type="primary" @click="subProcess('nextNode')">
|
|
369
369
|
确认
|
|
370
370
|
</el-button>
|
|
371
|
-
<el-button
|
|
371
|
+
<el-button @click="quit"> 取消 </el-button>
|
|
372
372
|
</div>
|
|
373
373
|
</el-form-item>
|
|
374
374
|
</el-form>
|
|
@@ -472,7 +472,7 @@ export default {
|
|
|
472
472
|
type: String,
|
|
473
473
|
default: ''
|
|
474
474
|
},
|
|
475
|
-
isCancelSecondConfirmationType:{
|
|
475
|
+
isCancelSecondConfirmationType: {
|
|
476
476
|
type: Boolean,
|
|
477
477
|
default: false
|
|
478
478
|
},
|
|
@@ -509,13 +509,13 @@ export default {
|
|
|
509
509
|
type: [Number, String],
|
|
510
510
|
default: 0
|
|
511
511
|
},
|
|
512
|
-
selectorParams:{type:Object,default:()=>{}}
|
|
512
|
+
selectorParams: { type: Object, default: () => {} }
|
|
513
513
|
},
|
|
514
514
|
data() {
|
|
515
515
|
return {
|
|
516
516
|
loading: false,
|
|
517
517
|
isCustomUser: 0,
|
|
518
|
-
isCurrentNodeForbiddenChangeCandidate:0,
|
|
518
|
+
isCurrentNodeForbiddenChangeCandidate: 0,
|
|
519
519
|
allLoading: null,
|
|
520
520
|
selectUser: false,
|
|
521
521
|
multiple: false,
|
|
@@ -588,10 +588,13 @@ export default {
|
|
|
588
588
|
subProcessColumns: [],
|
|
589
589
|
nextOtherOrgObjSelect: [],
|
|
590
590
|
nextCurrentOrgObjSelect: [],
|
|
591
|
-
isHideCurrentOrg:false,
|
|
592
|
-
isHideOtherOrg:false,
|
|
593
|
-
currentOrgSelectorParams:{
|
|
594
|
-
|
|
591
|
+
isHideCurrentOrg: false,
|
|
592
|
+
isHideOtherOrg: false,
|
|
593
|
+
currentOrgSelectorParams: {
|
|
594
|
+
filid: JSON.parse(util.getStorage('mainConfig')).userModel.orgId,
|
|
595
|
+
only_filid: true
|
|
596
|
+
},
|
|
597
|
+
foreignOrgSelectorParams: { filid: 'all', nofilid: 1 },
|
|
595
598
|
nextNode: {
|
|
596
599
|
nodeName: '',
|
|
597
600
|
customLimitTime: '',
|
|
@@ -700,7 +703,7 @@ export default {
|
|
|
700
703
|
}
|
|
701
704
|
},
|
|
702
705
|
methods: {
|
|
703
|
-
|
|
706
|
+
handleChangeTime(val) {
|
|
704
707
|
this.nextNode.customLimitTime = val;
|
|
705
708
|
},
|
|
706
709
|
limitTimevalidate() {
|
|
@@ -735,8 +738,9 @@ export default {
|
|
|
735
738
|
let mainConfig = util.getStorage('mainConfig');
|
|
736
739
|
if (mainConfig) {
|
|
737
740
|
this.userModel = JSON.parse(mainConfig).userModel;
|
|
738
|
-
this.foreignOrgSelectorParams.nofilid = this.userModel.orgId
|
|
739
|
-
this.foreignOrgSelectorParams.roleid =
|
|
741
|
+
this.foreignOrgSelectorParams.nofilid = this.userModel.orgId;
|
|
742
|
+
this.foreignOrgSelectorParams.roleid =
|
|
743
|
+
this.currentOrgSelectorParams.roleid = this.selectorParams.roleid;
|
|
740
744
|
} else {
|
|
741
745
|
util
|
|
742
746
|
.ajax({ url: loginUserInfo })
|
|
@@ -744,8 +748,10 @@ export default {
|
|
|
744
748
|
const { status, data } = res;
|
|
745
749
|
if (status == 'success') {
|
|
746
750
|
this.userModel = data;
|
|
747
|
-
|
|
748
|
-
|
|
751
|
+
this.foreignOrgSelectorParams.nofilid = this.userModel.orgId;
|
|
752
|
+
this.foreignOrgSelectorParams.roleid =
|
|
753
|
+
tthis.currentOrgSelectorParams.roleid =
|
|
754
|
+
this.selectorParams.roleid;
|
|
749
755
|
} else {
|
|
750
756
|
let msg = res.msg || '系统错误,请联系管理员!';
|
|
751
757
|
this.$message.error(msg);
|
|
@@ -838,8 +844,14 @@ export default {
|
|
|
838
844
|
}
|
|
839
845
|
this.nextNode.nodeInfo = this.operationList[val].list;
|
|
840
846
|
if (this.nextNode.nodeInfo.length > 0) {
|
|
847
|
+
let defaultNodeData = this.nextNode.nodeInfo.filter(
|
|
848
|
+
(x) => x.nodeId == this.defaultNextNode
|
|
849
|
+
);
|
|
850
|
+
length;
|
|
841
851
|
this.nextNode.nextNode =
|
|
842
|
-
|
|
852
|
+
defaultNodeData.length > 0
|
|
853
|
+
? this.defaultNextNode
|
|
854
|
+
: this.nextNode.nodeInfo[0].nodeId;
|
|
843
855
|
}
|
|
844
856
|
this.getNodeInfos();
|
|
845
857
|
},
|
|
@@ -880,7 +892,7 @@ export default {
|
|
|
880
892
|
this.subProcessColumns = data;
|
|
881
893
|
// return data;
|
|
882
894
|
},
|
|
883
|
-
|
|
895
|
+
// 单位选择完回调
|
|
884
896
|
disposeAppUnit(res, type) {
|
|
885
897
|
let label = type.substring(0, type.lastIndexOf('Select'));
|
|
886
898
|
this.nextNode[label + 'Name'] = '';
|
|
@@ -1024,7 +1036,11 @@ export default {
|
|
|
1024
1036
|
// return this.$message.warning('请选择通知方式');
|
|
1025
1037
|
// }
|
|
1026
1038
|
if (this.isShowNextUser) {
|
|
1027
|
-
if (
|
|
1039
|
+
if (
|
|
1040
|
+
(nextUser == '' || (this.multiple && nextUser.length == 0)) &&
|
|
1041
|
+
!this.isHideCurrentOrg &&
|
|
1042
|
+
!this.isHideOtherOrg
|
|
1043
|
+
) {
|
|
1028
1044
|
return this.$message.warning('请选择下步办理人');
|
|
1029
1045
|
}
|
|
1030
1046
|
} else {
|
|
@@ -1032,149 +1048,156 @@ export default {
|
|
|
1032
1048
|
return this.$message.warning('请选择办理对象');
|
|
1033
1049
|
}
|
|
1034
1050
|
}
|
|
1035
|
-
if(
|
|
1051
|
+
if (
|
|
1052
|
+
(this.isHideOtherOrg || this.isHideCurrentOrg) &&
|
|
1053
|
+
!nextCurrentOrgObj &&
|
|
1054
|
+
!nextOtherOrgObj
|
|
1055
|
+
) {
|
|
1036
1056
|
return this.$message.warning('请选择办理对象');
|
|
1037
1057
|
}
|
|
1038
|
-
if(this.isCancelSecondConfirmationType){
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
if (this.showBtn) {
|
|
1045
|
-
this.loading = true;
|
|
1046
|
-
} else {
|
|
1047
|
-
this.allLoading = util.loading(this.$loading, '加载中...');
|
|
1048
|
-
}
|
|
1049
|
-
let newNextUser = [];
|
|
1050
|
-
if (this.multiple) {
|
|
1051
|
-
nextUser && nextUser.map((item) => newNextUser.push(item));
|
|
1052
|
-
}
|
|
1053
|
-
let newNoticeType = '';
|
|
1054
|
-
if (noticeType) {
|
|
1055
|
-
newNoticeType = noticeType.join(',');
|
|
1056
|
-
}
|
|
1057
|
-
let params = {
|
|
1058
|
-
processDefinitionId: this.processDefinitionId,
|
|
1059
|
-
nextUserId: this.multiple ? newNextUser.join(',') : nextUser,
|
|
1060
|
-
nextNodeId: nextNode,
|
|
1061
|
-
businessId: this.businessId,
|
|
1062
|
-
notificationType: newNoticeType,
|
|
1063
|
-
userId: util.getStorage('userId'),
|
|
1064
|
-
notificationMsg: noticeInfo,
|
|
1065
|
-
customPresetUserJson: JSON.stringify(this.presetList),
|
|
1066
|
-
presetUserJson: JSON.stringify(this.presetUserJson),
|
|
1067
|
-
nextReadUserId: this.readMultiple
|
|
1068
|
-
? this.mixReadList && this.mixReadList.join('|')
|
|
1069
|
-
: nextReadUserId,
|
|
1070
|
-
nextOrgId: !this.isShowNextUser
|
|
1071
|
-
? this.multiple
|
|
1072
|
-
? this.mixOrgIdList && this.mixOrgIdList.join('|')
|
|
1073
|
-
: nextOrgId
|
|
1074
|
-
: '',
|
|
1075
|
-
handleExplain: handleExplain,
|
|
1076
|
-
presetReadUserId:
|
|
1077
|
-
this.mixPresetList && this.mixPresetList.length > 0
|
|
1078
|
-
? this.mixPresetList.join('|')
|
|
1079
|
-
: presetReadUserId.join(','),
|
|
1080
|
-
opinion: this.newOpinion || newOpinion
|
|
1081
|
-
};
|
|
1082
|
-
if (this.enableCustomLimitTimeSetting) {
|
|
1083
|
-
params.customLimitTime = customLimitTime;
|
|
1084
|
-
if (!customLimitTime) {
|
|
1085
|
-
this.$message.warning('请选择或输入限时办理的天数');
|
|
1086
|
-
this.nextNode.customLimitTime = '';
|
|
1087
|
-
return;
|
|
1088
|
-
} else if (
|
|
1089
|
-
!Number(customLimitTime) ||
|
|
1090
|
-
customLimitTime.indexOf('.') != -1 ||
|
|
1091
|
-
Number(customLimitTime) < 0
|
|
1092
|
-
) {
|
|
1093
|
-
this.$message.warning('请输入正确的天数');
|
|
1094
|
-
this.nextNode.customLimitTime = '';
|
|
1095
|
-
return;
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
if(this.isHideCurrentOrg){
|
|
1099
|
-
params.nextCurrentOrgObj = nextCurrentOrgObj
|
|
1100
|
-
}
|
|
1101
|
-
if(this.isHideOtherOrg){
|
|
1102
|
-
params.nextOtherOrgObj = nextOtherOrgObj
|
|
1103
|
-
}
|
|
1104
|
-
if (this.activeNames != '1') delete params.customPresetUserJson;
|
|
1105
|
-
if (this.isFreeStartFlow || this.formType === 'readTransfer') {
|
|
1106
|
-
let newParm = {};
|
|
1107
|
-
newParm.copyHistory = this.copyHistory === 'needCopyPendedHistory';
|
|
1108
|
-
newParm.startFlowParamJson = params;
|
|
1109
|
-
// newParm.startFlowParamJson.businessId = this.id; //this.id
|
|
1110
|
-
newParm.startFlowParamJson.taskExamineParam = {
|
|
1111
|
-
startFlowFirstNodeName: this.taskExamineParam
|
|
1112
|
-
};
|
|
1113
|
-
newParm.startFlowParamJson = JSON.stringify(
|
|
1114
|
-
newParm.startFlowParamJson
|
|
1115
|
-
);
|
|
1116
|
-
for (let key in this.taskParams) {
|
|
1117
|
-
if (Array.isArray(this.taskParams[key])) {
|
|
1118
|
-
this.taskParams[key] =
|
|
1119
|
-
this.taskParams[key].length > 0
|
|
1120
|
-
? this.taskParams[key].join(',')
|
|
1121
|
-
: '';
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
newParm.submitTaskParamJson = JSON.stringify(this.taskParams);
|
|
1126
|
-
if (this.formType == 'readTransfer') {
|
|
1127
|
-
newParm.readTransferHandleStartFlowParamJson =
|
|
1128
|
-
JSON.stringify(params);
|
|
1129
|
-
newParm.taskReadEndParamJson = JSON.stringify(this.taskParams);
|
|
1130
|
-
delete newParm.copyHistory;
|
|
1131
|
-
delete newParm.startFlowParamJson;
|
|
1132
|
-
delete newParm.submitTaskParamJson;
|
|
1133
|
-
}
|
|
1134
|
-
params = newParm;
|
|
1135
|
-
}
|
|
1136
|
-
if (this.copyHistory && !this.isFreeStartFlow) {
|
|
1137
|
-
params.pendingId = this.pendingId;
|
|
1138
|
-
delete params.businessId;
|
|
1139
|
-
}
|
|
1140
|
-
util
|
|
1141
|
-
.ajax({
|
|
1142
|
-
url: this.isFreeStartFlow
|
|
1143
|
-
? freeStartFlowWithSubmitTask
|
|
1144
|
-
: this.formType == 'readTransfer'
|
|
1145
|
-
? startReadTransferHandleFlowWithTaskReadEnd
|
|
1146
|
-
: this.copyHistory
|
|
1147
|
-
? freeStartFlow
|
|
1148
|
-
: register,
|
|
1149
|
-
method: 'post',
|
|
1150
|
-
data: params
|
|
1151
|
-
})
|
|
1152
|
-
.then((res) => {
|
|
1153
|
-
const { status, message } = res;
|
|
1058
|
+
if (this.isCancelSecondConfirmationType) {
|
|
1059
|
+
this.$confirm('确认提交吗?', '提示', {
|
|
1060
|
+
confirmButtonText: '确定',
|
|
1061
|
+
cancelButtonText: '取消',
|
|
1062
|
+
type: 'warning'
|
|
1063
|
+
}).then(() => {
|
|
1154
1064
|
if (this.showBtn) {
|
|
1155
|
-
this.loading =
|
|
1065
|
+
this.loading = true;
|
|
1156
1066
|
} else {
|
|
1157
|
-
this.allLoading.
|
|
1067
|
+
this.allLoading = util.loading(this.$loading, '加载中...');
|
|
1158
1068
|
}
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
} else {
|
|
1163
|
-
this.$message.error(message || '系统错误,请联系管理员!');
|
|
1069
|
+
let newNextUser = [];
|
|
1070
|
+
if (this.multiple) {
|
|
1071
|
+
nextUser && nextUser.map((item) => newNextUser.push(item));
|
|
1164
1072
|
}
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
this.loading = false;
|
|
1169
|
-
} else {
|
|
1170
|
-
this.allLoading.close();
|
|
1073
|
+
let newNoticeType = '';
|
|
1074
|
+
if (noticeType) {
|
|
1075
|
+
newNoticeType = noticeType.join(',');
|
|
1171
1076
|
}
|
|
1172
|
-
|
|
1173
|
-
this
|
|
1077
|
+
let params = {
|
|
1078
|
+
processDefinitionId: this.processDefinitionId,
|
|
1079
|
+
nextUserId: this.multiple ? newNextUser.join(',') : nextUser,
|
|
1080
|
+
nextNodeId: nextNode,
|
|
1081
|
+
businessId: this.businessId,
|
|
1082
|
+
notificationType: newNoticeType,
|
|
1083
|
+
userId: util.getStorage('userId'),
|
|
1084
|
+
notificationMsg: noticeInfo,
|
|
1085
|
+
customPresetUserJson: JSON.stringify(this.presetList),
|
|
1086
|
+
presetUserJson: JSON.stringify(this.presetUserJson),
|
|
1087
|
+
nextReadUserId: this.readMultiple
|
|
1088
|
+
? this.mixReadList && this.mixReadList.join('|')
|
|
1089
|
+
: nextReadUserId,
|
|
1090
|
+
nextOrgId: !this.isShowNextUser
|
|
1091
|
+
? this.multiple
|
|
1092
|
+
? this.mixOrgIdList && this.mixOrgIdList.join('|')
|
|
1093
|
+
: nextOrgId
|
|
1094
|
+
: '',
|
|
1095
|
+
handleExplain: handleExplain,
|
|
1096
|
+
presetReadUserId:
|
|
1097
|
+
this.mixPresetList && this.mixPresetList.length > 0
|
|
1098
|
+
? this.mixPresetList.join('|')
|
|
1099
|
+
: presetReadUserId.join(','),
|
|
1100
|
+
opinion: this.newOpinion || newOpinion
|
|
1101
|
+
};
|
|
1102
|
+
if (this.enableCustomLimitTimeSetting) {
|
|
1103
|
+
params.customLimitTime = customLimitTime;
|
|
1104
|
+
if (!customLimitTime) {
|
|
1105
|
+
this.$message.warning('请选择或输入限时办理的天数');
|
|
1106
|
+
this.nextNode.customLimitTime = '';
|
|
1107
|
+
return;
|
|
1108
|
+
} else if (
|
|
1109
|
+
!Number(customLimitTime) ||
|
|
1110
|
+
customLimitTime.indexOf('.') != -1 ||
|
|
1111
|
+
Number(customLimitTime) < 0
|
|
1112
|
+
) {
|
|
1113
|
+
this.$message.warning('请输入正确的天数');
|
|
1114
|
+
this.nextNode.customLimitTime = '';
|
|
1115
|
+
return;
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
if (this.isHideCurrentOrg) {
|
|
1119
|
+
params.nextCurrentOrgObj = nextCurrentOrgObj;
|
|
1174
1120
|
}
|
|
1121
|
+
if (this.isHideOtherOrg) {
|
|
1122
|
+
params.nextOtherOrgObj = nextOtherOrgObj;
|
|
1123
|
+
}
|
|
1124
|
+
if (this.activeNames != '1') delete params.customPresetUserJson;
|
|
1125
|
+
if (this.isFreeStartFlow || this.formType === 'readTransfer') {
|
|
1126
|
+
let newParm = {};
|
|
1127
|
+
newParm.copyHistory =
|
|
1128
|
+
this.copyHistory === 'needCopyPendedHistory';
|
|
1129
|
+
newParm.startFlowParamJson = params;
|
|
1130
|
+
// newParm.startFlowParamJson.businessId = this.id; //this.id
|
|
1131
|
+
newParm.startFlowParamJson.taskExamineParam = {
|
|
1132
|
+
startFlowFirstNodeName: this.taskExamineParam
|
|
1133
|
+
};
|
|
1134
|
+
newParm.startFlowParamJson = JSON.stringify(
|
|
1135
|
+
newParm.startFlowParamJson
|
|
1136
|
+
);
|
|
1137
|
+
for (let key in this.taskParams) {
|
|
1138
|
+
if (Array.isArray(this.taskParams[key])) {
|
|
1139
|
+
this.taskParams[key] =
|
|
1140
|
+
this.taskParams[key].length > 0
|
|
1141
|
+
? this.taskParams[key].join(',')
|
|
1142
|
+
: '';
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
newParm.submitTaskParamJson = JSON.stringify(this.taskParams);
|
|
1147
|
+
if (this.formType == 'readTransfer') {
|
|
1148
|
+
newParm.readTransferHandleStartFlowParamJson =
|
|
1149
|
+
JSON.stringify(params);
|
|
1150
|
+
newParm.taskReadEndParamJson = JSON.stringify(
|
|
1151
|
+
this.taskParams
|
|
1152
|
+
);
|
|
1153
|
+
delete newParm.copyHistory;
|
|
1154
|
+
delete newParm.startFlowParamJson;
|
|
1155
|
+
delete newParm.submitTaskParamJson;
|
|
1156
|
+
}
|
|
1157
|
+
params = newParm;
|
|
1158
|
+
}
|
|
1159
|
+
if (this.copyHistory && !this.isFreeStartFlow) {
|
|
1160
|
+
params.pendingId = this.pendingId;
|
|
1161
|
+
delete params.businessId;
|
|
1162
|
+
}
|
|
1163
|
+
util
|
|
1164
|
+
.ajax({
|
|
1165
|
+
url: this.isFreeStartFlow
|
|
1166
|
+
? freeStartFlowWithSubmitTask
|
|
1167
|
+
: this.formType == 'readTransfer'
|
|
1168
|
+
? startReadTransferHandleFlowWithTaskReadEnd
|
|
1169
|
+
: this.copyHistory
|
|
1170
|
+
? freeStartFlow
|
|
1171
|
+
: register,
|
|
1172
|
+
method: 'post',
|
|
1173
|
+
data: params
|
|
1174
|
+
})
|
|
1175
|
+
.then((res) => {
|
|
1176
|
+
const { status, message } = res;
|
|
1177
|
+
if (this.showBtn) {
|
|
1178
|
+
this.loading = false;
|
|
1179
|
+
} else {
|
|
1180
|
+
this.allLoading.close();
|
|
1181
|
+
}
|
|
1182
|
+
if (status === 'success' || res.rCode == 0) {
|
|
1183
|
+
this.quit(true);
|
|
1184
|
+
this.simpleTips && this.$message.success('操作成功');
|
|
1185
|
+
} else {
|
|
1186
|
+
this.$message.error(message || '系统错误,请联系管理员!');
|
|
1187
|
+
}
|
|
1188
|
+
})
|
|
1189
|
+
.catch((err) => {
|
|
1190
|
+
if (this.showBtn) {
|
|
1191
|
+
this.loading = false;
|
|
1192
|
+
} else {
|
|
1193
|
+
this.allLoading.close();
|
|
1194
|
+
}
|
|
1195
|
+
if (err.message && err.message !== 'canceled') {
|
|
1196
|
+
this.$message.error(err.message);
|
|
1197
|
+
}
|
|
1198
|
+
});
|
|
1175
1199
|
});
|
|
1176
|
-
|
|
1177
|
-
return
|
|
1200
|
+
return;
|
|
1178
1201
|
}
|
|
1179
1202
|
if (this.showBtn) {
|
|
1180
1203
|
this.loading = true;
|
|
@@ -1230,11 +1253,11 @@ export default {
|
|
|
1230
1253
|
return;
|
|
1231
1254
|
}
|
|
1232
1255
|
}
|
|
1233
|
-
if(this.isHideCurrentOrg){
|
|
1234
|
-
params.nextCurrentOrgObj = nextCurrentOrgObj
|
|
1256
|
+
if (this.isHideCurrentOrg) {
|
|
1257
|
+
params.nextCurrentOrgObj = nextCurrentOrgObj;
|
|
1235
1258
|
}
|
|
1236
|
-
if(this.isHideOtherOrg){
|
|
1237
|
-
params.nextOtherOrgObj = nextOtherOrgObj
|
|
1259
|
+
if (this.isHideOtherOrg) {
|
|
1260
|
+
params.nextOtherOrgObj = nextOtherOrgObj;
|
|
1238
1261
|
}
|
|
1239
1262
|
if (this.activeNames != '1') delete params.customPresetUserJson;
|
|
1240
1263
|
if (this.isFreeStartFlow || this.formType === 'readTransfer') {
|
|
@@ -1347,13 +1370,13 @@ export default {
|
|
|
1347
1370
|
this.nextNode.countersignaturetypeText = countersignaturetypeText;
|
|
1348
1371
|
this.enableCustomLimitTimeSetting =
|
|
1349
1372
|
nodeExtAttr.enableCustomLimitTimeSetting == 1;
|
|
1350
|
-
|
|
1373
|
+
if (
|
|
1351
1374
|
this.enableCustomLimitTimeSetting &&
|
|
1352
1375
|
nodeMoreInfo.defaultCustomLimitDays
|
|
1353
1376
|
) {
|
|
1354
1377
|
this.nextNode.customLimitTime =
|
|
1355
1378
|
this.nextNode.customLimitTimeText =
|
|
1356
|
-
|
|
1379
|
+
nodeMoreInfo.defaultCustomLimitDays + '';
|
|
1357
1380
|
}
|
|
1358
1381
|
this.isTaskread = nodeExtAttr.isTaskread;
|
|
1359
1382
|
this.isHandleExplain = nodeExtAttr.isHandleExplain;
|
|
@@ -1380,14 +1403,14 @@ export default {
|
|
|
1380
1403
|
}
|
|
1381
1404
|
// this.isReadMultiple(nodeExtAttr.userSelectionType);
|
|
1382
1405
|
if (nodeExtAttr.nodeType === 1 || nodeExtAttr.nodeType === 2) {
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1406
|
+
this.isHideCurrentOrg =
|
|
1407
|
+
nodeExtAttr.isHideCurrentOrg == 1 ? false : true; //判断是否隐藏本单位
|
|
1408
|
+
this.isHideOtherOrg =
|
|
1409
|
+
nodeExtAttr.isHideOtherOrg == 1 ? false : true; //判断是否隐藏外单位
|
|
1410
|
+
} else {
|
|
1411
|
+
this.isHideCurrentOrg = false;
|
|
1412
|
+
this.isHideOtherOrg = false;
|
|
1413
|
+
}
|
|
1391
1414
|
nextUserList.map((item) => {
|
|
1392
1415
|
if (
|
|
1393
1416
|
this.multiple &&
|
|
@@ -1541,8 +1564,8 @@ export default {
|
|
|
1541
1564
|
userId: util.getStorage('userId'),
|
|
1542
1565
|
businessId: this.businessId
|
|
1543
1566
|
};
|
|
1544
|
-
if(!this.shwowBtn){
|
|
1545
|
-
params.taskAction =
|
|
1567
|
+
if (!this.shwowBtn) {
|
|
1568
|
+
params.taskAction = 'toStartFlowWithoutTempSave';
|
|
1546
1569
|
}
|
|
1547
1570
|
// 获取节点
|
|
1548
1571
|
util
|
|
@@ -1587,15 +1610,21 @@ export default {
|
|
|
1587
1610
|
// { key: 0, value: '默认', list: [] },
|
|
1588
1611
|
{ key: 1, value: '自定义', list: [] }
|
|
1589
1612
|
];
|
|
1590
|
-
if(data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation != 1){
|
|
1591
|
-
this.operationList.unshift({
|
|
1613
|
+
if (data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation != 1) {
|
|
1614
|
+
this.operationList.unshift({
|
|
1615
|
+
key: 0,
|
|
1616
|
+
value: '默认',
|
|
1617
|
+
list: data.nextNodeList
|
|
1618
|
+
});
|
|
1592
1619
|
}
|
|
1593
1620
|
let arr = [];
|
|
1594
1621
|
for (let key in data.taskNodeMap) {
|
|
1595
1622
|
arr.push({ nodeName: data.taskNodeMap[key], nodeId: key });
|
|
1596
1623
|
}
|
|
1597
1624
|
// this.operationList[0].list = data.nextNodeList;
|
|
1598
|
-
this.operationList[
|
|
1625
|
+
this.operationList[
|
|
1626
|
+
data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation != 1 ? 1 : 0
|
|
1627
|
+
].list = arr;
|
|
1599
1628
|
if (this.isHideDefaultOperation != 1) {
|
|
1600
1629
|
this.nextNode.nextOperate = 0;
|
|
1601
1630
|
this.nextNode.nodeInfo = this.operationList[0].list;
|
|
@@ -1608,21 +1637,23 @@ export default {
|
|
|
1608
1637
|
? this.defaultNextNode
|
|
1609
1638
|
: data.nextNodeList[0].nodeId;
|
|
1610
1639
|
}
|
|
1611
|
-
}
|
|
1640
|
+
}
|
|
1641
|
+
if (
|
|
1612
1642
|
data.nodeInfoMap.nodeExtAttr.defaultNextOperate == 1 ||
|
|
1613
1643
|
data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation == 1
|
|
1614
1644
|
) {
|
|
1615
1645
|
// this.nextNode.nodeInfo = data.nextNodeList
|
|
1616
1646
|
this.nextNode.nextOperate = 1;
|
|
1617
|
-
this.nextNode.nodeInfo = this.operationList[0].list;
|
|
1647
|
+
this.nextNode.nodeInfo = this.operationList[this.isHideDefaultOperation != 1?1:0].list;
|
|
1648
|
+
|
|
1618
1649
|
if (this.nextNode.nodeInfo.length > 0) {
|
|
1619
|
-
let defaultNodeData =
|
|
1650
|
+
let defaultNodeData = this.nextNode.nodeInfo.filter(
|
|
1620
1651
|
(x) => x.nodeId == this.defaultNextNode
|
|
1621
1652
|
);
|
|
1622
1653
|
this.nextNode.nextNode =
|
|
1623
1654
|
defaultNodeData.length > 0
|
|
1624
1655
|
? this.defaultNextNode
|
|
1625
|
-
:
|
|
1656
|
+
:this.nextNode.nodeInfo[0].nodeId;
|
|
1626
1657
|
}
|
|
1627
1658
|
}
|
|
1628
1659
|
}
|