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.
Files changed (52) hide show
  1. package/lib/button-group.js +46 -45
  2. package/lib/button.js +46 -45
  3. package/lib/calogin.js +89 -57
  4. package/lib/checkbox-group.js +46 -45
  5. package/lib/data-table-form.js +46 -45
  6. package/lib/data-table.js +95 -69
  7. package/lib/date-picker.js +46 -45
  8. package/lib/dialog.js +46 -45
  9. package/lib/eoss-ui.common.js +401 -333
  10. package/lib/flow-group.js +46 -45
  11. package/lib/flow-list.js +46 -45
  12. package/lib/flow.js +285 -270
  13. package/lib/form.js +46 -45
  14. package/lib/handle-user.js +46 -45
  15. package/lib/handler.js +46 -45
  16. package/lib/icon.js +46 -45
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +46 -45
  19. package/lib/input.js +46 -45
  20. package/lib/login.js +46 -45
  21. package/lib/main.js +63 -61
  22. package/lib/nav.js +46 -45
  23. package/lib/page.js +46 -45
  24. package/lib/pagination.js +46 -45
  25. package/lib/player.js +46 -45
  26. package/lib/qr-code.js +46 -45
  27. package/lib/radio-group.js +46 -45
  28. package/lib/retrial-auth.js +46 -45
  29. package/lib/select-ganged.js +46 -45
  30. package/lib/select.js +46 -45
  31. package/lib/selector-panel.js +46 -45
  32. package/lib/selector.js +46 -45
  33. package/lib/sizer.js +46 -45
  34. package/lib/steps.js +46 -45
  35. package/lib/switch.js +46 -45
  36. package/lib/table-form.js +46 -45
  37. package/lib/tabs.js +46 -45
  38. package/lib/tips.js +46 -45
  39. package/lib/tree-group.js +46 -45
  40. package/lib/tree.js +46 -45
  41. package/lib/upload.js +46 -45
  42. package/lib/utils/util.js +46 -45
  43. package/lib/wujie.js +46 -45
  44. package/lib/wxlogin.js +46 -45
  45. package/package.json +1 -1
  46. package/packages/calogin/src/plugin.js +3 -3
  47. package/packages/data-table/src/main.vue +49 -20
  48. package/packages/flow/src/processForm.vue +259 -228
  49. package/packages/main/src/main.vue +1 -1
  50. package/packages/main/src/simplicityTop/index.vue +6 -5
  51. package/src/index.js +1 -1
  52. 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 ? '430px' : 'auto'
20
- }; overflow-y:${showBtn ? 'auto' : 'hidden'} ; margin-bottom: 10px;overflow-x: hidden;`"
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
- v-if="!isHideOtherOrg && !isHideCurrentOrg"
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="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
- <div style="display: flex;">
265
- <es-select
266
- v-model="nextNode.customLimitTimeText"
267
- placeholder="请选择"
268
- @change="handleChangeTime"
269
- :style="`flex:${showBtn?'unset' : '1'};width: ${showBtn?'20%' : 'unset'} !important; display: inline-block;`"
270
- sysCode="bpm_custom_limit_time"
271
- ></es-select>
272
- <el-input
273
- v-model="nextNode.customLimitTime"
274
- :style="`flex:${showBtn?'unset' : '1'};width: ${showBtn?'20%' : 'unset'} !important; display: inline-block;`"
275
- placeholder="请输入限时办理的天数"
276
- class="input-with-select custom-limit-time"
277
- @change="changeCustomLimitTime"
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
- <span style="margin-left:5px">天</span>
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 @click="quit"> 取消 </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:{filid: JSON.parse(util.getStorage('mainConfig')).userModel.orgId,only_filid:true},
594
- foreignOrgSelectorParams:{filid: 'all', nofilid: 1},
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
- handleChangeTime(val){
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 = this.currentOrgSelectorParams.roleid = this.selectorParams.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
- this.foreignOrgSelectorParams.nofilid = this.userModel.orgId
748
- this.foreignOrgSelectorParams.roleid = tthis.currentOrgSelectorParams.roleid = this.selectorParams.roleid
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
- this.defaultNextNode || this.nextNode.nodeInfo[0].nodeId;
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 ((nextUser == '' || (this.multiple && nextUser.length == 0)) && !this.isHideCurrentOrg && !this.isHideOtherOrg) {
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((this.isHideOtherOrg || this.isHideCurrentOrg) && !nextCurrentOrgObj && !nextOtherOrgObj){
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
- this.$confirm('确认提交吗?', '提示', {
1040
- confirmButtonText: '确定',
1041
- cancelButtonText: '取消',
1042
- type: 'warning'
1043
- }).then( () => {
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 = false;
1065
+ this.loading = true;
1156
1066
  } else {
1157
- this.allLoading.close();
1067
+ this.allLoading = util.loading(this.$loading, '加载中...');
1158
1068
  }
1159
- if (status === 'success' || res.rCode == 0) {
1160
- this.quit(true);
1161
- this.simpleTips && this.$message.success('操作成功');
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
- .catch((err) => {
1167
- if (this.showBtn) {
1168
- this.loading = false;
1169
- } else {
1170
- this.allLoading.close();
1073
+ let newNoticeType = '';
1074
+ if (noticeType) {
1075
+ newNoticeType = noticeType.join(',');
1171
1076
  }
1172
- if (err.message && err.message !== 'canceled') {
1173
- this.$message.error(err.message);
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
- if (
1373
+ if (
1351
1374
  this.enableCustomLimitTimeSetting &&
1352
1375
  nodeMoreInfo.defaultCustomLimitDays
1353
1376
  ) {
1354
1377
  this.nextNode.customLimitTime =
1355
1378
  this.nextNode.customLimitTimeText =
1356
- nodeMoreInfo.defaultCustomLimitDays + '';
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
- this.isHideCurrentOrg =
1385
- nodeExtAttr.isHideCurrentOrg == 1 ? false : true; //判断是否隐藏本单位
1386
- this.isHideOtherOrg = nodeExtAttr.isHideOtherOrg == 1 ? false : true; //判断是否隐藏外单位
1387
- } else {
1388
- this.isHideCurrentOrg = false;
1389
- this.isHideOtherOrg = false;
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 = "toStartFlowWithoutTempSave"
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({ key: 0, value: '默认', list: [] });
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[0].list = arr;
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
- } else if (
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 = data.nextNodeList.filter(
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
- : data.nextNodeList[0].nodeId;
1656
+ :this.nextNode.nodeInfo[0].nodeId;
1626
1657
  }
1627
1658
  }
1628
1659
  }
@@ -276,7 +276,7 @@ export default {
276
276
  // 重新加载页面,刷新布局风格配置信息
277
277
  // 如果不刷新,会导致事件绑定出现问题,导致事件丢失
278
278
  if (this.changeThemeReload) {
279
- window.top.location.reload();
279
+ window.location.reload();
280
280
  return;
281
281
  }
282
282