eoss-ui 0.6.61 → 0.6.62

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 (57) hide show
  1. package/lib/button-group.js +118 -114
  2. package/lib/button.js +118 -114
  3. package/lib/checkbox-group.js +120 -116
  4. package/lib/config/api.js +3 -1
  5. package/lib/data-table-form.js +120 -116
  6. package/lib/data-table.js +123 -119
  7. package/lib/date-picker.js +118 -114
  8. package/lib/dialog.js +118 -114
  9. package/lib/eoss-ui.common.js +1558 -839
  10. package/lib/flow-group.js +118 -114
  11. package/lib/flow-list.js +165 -127
  12. package/lib/flow.js +1372 -687
  13. package/lib/form.js +120 -116
  14. package/lib/handle-user.js +119 -115
  15. package/lib/handler.js +119 -115
  16. package/lib/icon.js +119 -115
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +118 -114
  19. package/lib/input.js +118 -114
  20. package/lib/login.js +131 -127
  21. package/lib/main.js +153 -149
  22. package/lib/nav.js +118 -114
  23. package/lib/notify.js +121 -117
  24. package/lib/page.js +118 -114
  25. package/lib/pagination.js +118 -114
  26. package/lib/player.js +118 -114
  27. package/lib/qr-code.js +118 -114
  28. package/lib/radio-group.js +120 -116
  29. package/lib/retrial-auth.js +121 -117
  30. package/lib/select-ganged.js +120 -116
  31. package/lib/select.js +120 -116
  32. package/lib/selector-panel.js +136 -132
  33. package/lib/selector.js +119 -115
  34. package/lib/sizer.js +120 -116
  35. package/lib/steps.js +118 -114
  36. package/lib/switch.js +118 -114
  37. package/lib/table-form.js +118 -114
  38. package/lib/tabs.js +118 -114
  39. package/lib/tips.js +119 -115
  40. package/lib/tree-group.js +118 -114
  41. package/lib/tree.js +119 -115
  42. package/lib/upload.js +130 -126
  43. package/lib/wujie.js +118 -114
  44. package/lib/wxlogin.js +118 -114
  45. package/package.json +1 -1
  46. package/packages/flow/src/component/Circulate.vue +322 -0
  47. package/packages/flow/src/component/CommonOpinions.vue +3 -2
  48. package/packages/flow/src/component/SendMsg.vue +39 -27
  49. package/packages/flow/src/component/taskUnionExamine.vue +7 -5
  50. package/packages/flow/src/main.vue +109 -20
  51. package/packages/flow/src/processForm.vue +5 -1
  52. package/packages/flow/src/processReject.vue +3 -2
  53. package/packages/flow/src/startTaskRead.vue +3 -2
  54. package/packages/flow/src/supervise.vue +77 -72
  55. package/packages/flow-list/src/main.vue +58 -31
  56. package/src/config/api.js +4 -0
  57. package/src/index.js +1 -1
@@ -2,7 +2,7 @@
2
2
  <div class="commonOpinion">
3
3
  <el-form
4
4
  :model="form"
5
- :rules="rules"
5
+ :rules="required?rules:{}"
6
6
  ref="ruleForm"
7
7
  label-width="0"
8
8
  >
@@ -145,7 +145,8 @@ export default {
145
145
  rows: {
146
146
  type: [Number,String],
147
147
  default: 10
148
- }
148
+ },
149
+ required:{type:Boolean,default:false}
149
150
  },
150
151
  mounted() {
151
152
  if (this.nodeFixedOpinionSelectList.length > 0) {
@@ -16,14 +16,19 @@
16
16
  { required: false, message: `请选择通知方式`, trigger: 'blur' }
17
17
  ]"
18
18
  >
19
- <el-checkbox-group v-model="sendInfo.notificationType" style="display:contents">
19
+ <el-checkbox-group
20
+ v-model="sendInfo.notificationType"
21
+ style="display: contents"
22
+ >
20
23
  <el-checkbox
21
24
  v-for="item of notificationList"
22
25
  :key="item.cciValue"
23
26
  :label="item.cciValue"
24
- :disabled="readOnlyNotificationType
25
- ? readOnlyNotificationType.indexOf(item.cciValue) != -1
26
- : false"
27
+ :disabled="
28
+ readOnlyNotificationType
29
+ ? readOnlyNotificationType.indexOf(item.cciValue) != -1
30
+ : false
31
+ "
27
32
  >
28
33
  {{ item.shortName }}
29
34
  </el-checkbox>
@@ -56,15 +61,13 @@
56
61
  <el-table-column label="状态" show-overflow-tooltip>
57
62
  <template slot-scope="scope"
58
63
  ><span
59
- :style="
60
- `${
61
- scope.row.pendstate == 0
62
- ? 'color:red'
63
- : scope.row.pendstate == 1
64
- ? 'color:green'
65
- : ''
66
- }`
67
- "
64
+ :style="`${
65
+ scope.row.pendstate == 0
66
+ ? 'color:red'
67
+ : scope.row.pendstate == 1
68
+ ? 'color:green'
69
+ : ''
70
+ }`"
68
71
  >{{ scope.row.querykeywords }}</span
69
72
  ></template
70
73
  >
@@ -76,13 +79,11 @@
76
79
  </el-table-column>
77
80
  </el-table>
78
81
  <el-form-item>
79
- <div style="text-align:right">
82
+ <div style="text-align: right">
80
83
  <el-button type="primary" size="small" @click="subMit">
81
84
  确定
82
85
  </el-button>
83
- <el-button @click="quit" size="small">
84
- 取消
85
- </el-button>
86
+ <el-button @click="quit" size="small"> 取消 </el-button>
86
87
  </div>
87
88
  </el-form-item>
88
89
  </el-form>
@@ -114,6 +115,10 @@ export default {
114
115
  newsList: {
115
116
  type: Array,
116
117
  default: () => []
118
+ },
119
+ simpleTips: {
120
+ type: Boolean,
121
+ default: true
117
122
  }
118
123
  },
119
124
  mounted() {
@@ -146,17 +151,17 @@ export default {
146
151
  };
147
152
  util
148
153
  .ajax(params)
149
- .then(res => {
154
+ .then((res) => {
150
155
  const { message, status } = res;
151
156
  this.loading = false;
152
157
  if (status === 'success') {
153
- this.$message.success('操作成功');
158
+ this.simpleTips && this.$message.success('操作成功');
154
159
  this.quit(true);
155
160
  } else {
156
161
  this.$message.error(message || '系统错误,请联系管理员!');
157
162
  }
158
163
  })
159
- .catch(err => {
164
+ .catch((err) => {
160
165
  this.loading = false;
161
166
  if (err.message && err.message !== 'canceled') {
162
167
  this.$message.error(err.message);
@@ -177,13 +182,13 @@ export default {
177
182
  let rows = this.sendTable.filter(
178
183
  (item, index) => item.pendstate == 2 && index == 0
179
184
  );
180
- rows.forEach(row => {
185
+ rows.forEach((row) => {
181
186
  this.$refs.multipleTable.toggleRowSelection(row);
182
187
  });
183
188
  });
184
189
  },
185
190
  handleSelectionChange(val) {
186
- let ids = val.map(item => {
191
+ let ids = val.map((item) => {
187
192
  if (item.pendstate == 2) {
188
193
  return item.id;
189
194
  }
@@ -197,17 +202,24 @@ export default {
197
202
  url: toSendMsg,
198
203
  params: { pendingId: this.$attrs.pendingId }
199
204
  })
200
- .then(res => {
205
+ .then((res) => {
201
206
  const {
202
207
  status,
203
208
  message,
204
- data: { title, wfHistoryList, appId,notificationMessageReadOnly, readOnlyNotificationType}
209
+ data: {
210
+ title,
211
+ wfHistoryList,
212
+ appId,
213
+ notificationMessageReadOnly,
214
+ readOnlyNotificationType
215
+ }
205
216
  } = res;
206
217
  this.loading = false;
207
218
  if (status === 'success') {
208
219
  this.sendInfo.title = title;
209
- this.readOnlyNotificationType =readOnlyNotificationType;
210
- this.notificationMessageReadOnly = notificationMessageReadOnly == 'true';
220
+ this.readOnlyNotificationType = readOnlyNotificationType;
221
+ this.notificationMessageReadOnly =
222
+ notificationMessageReadOnly == 'true';
211
223
  this.appId = appId;
212
224
  this.sendTable = wfHistoryList;
213
225
  this.checkList();
@@ -215,7 +227,7 @@ export default {
215
227
  this.$message.error(message || '系统错误,请联系管理员!');
216
228
  }
217
229
  })
218
- .catch(err => {
230
+ .catch((err) => {
219
231
  this.loading = false;
220
232
  if (err.message && err.message !== 'canceled') {
221
233
  this.$message.error(err.message);
@@ -4,7 +4,7 @@
4
4
  ref="infoList"
5
5
  :model="infoList"
6
6
  class="demo-dynamic"
7
- label-width="100px"
7
+ label-width="120px"
8
8
  >
9
9
  <el-form-item v-if="isSinglePage" prop="opinion" label="意见">
10
10
  <CommonOpinions @change="(val) => (opinion = val)" />
@@ -18,7 +18,7 @@
18
18
  ? currentOrgName
19
19
  : '本单位'
20
20
  : type == 'startDraf'
21
- ? '呈送单位'
21
+ ? '呈送单位/对象'
22
22
  : type === 'taskReview'
23
23
  ? '复核人'
24
24
  : type === 'twoOfficesDispatch'
@@ -49,7 +49,7 @@
49
49
  ? ['enterprise', 'employee']
50
50
  : ['enterprise']
51
51
  "
52
- :params="params"
52
+ :params="type == 'startDraf'?otherParams:params"
53
53
  :tabs="currentOrgTabsParam"
54
54
  :disabled="disabled"
55
55
  :onlyName="onlyName"
@@ -160,6 +160,7 @@ export default {
160
160
  defaultOpinion: { type: String, default: '' },
161
161
  oldOption: { type: String, default: '' },
162
162
  disabled: { type: Boolean, default: false },
163
+ simpleTips: { type: Boolean, default: true },
163
164
  multiple: { type: Boolean, default: true }
164
165
  },
165
166
  inheritAttrs: false,
@@ -243,7 +244,7 @@ export default {
243
244
  const { message, status } = res;
244
245
  this.loading = false;
245
246
  if (status === 'success') {
246
- this.$message.success('提交成功');
247
+ this.simpleTips && this.$message.success('提交成功');
247
248
  this.quit(true);
248
249
  } else {
249
250
  this.$message.error(message || '系统错误,请联系管理员!');
@@ -361,6 +362,7 @@ export default {
361
362
  ).userModel.orgId;
362
363
  }
363
364
  }
365
+
364
366
  if (res.data.customizedConfig.foreignOrgSelectorCustomized) {
365
367
  this.otherMix =
366
368
  res.data.customizedConfig.foreignOrgSelectorSelectMix ==
@@ -499,7 +501,7 @@ export default {
499
501
  const { message, status } = res;
500
502
  this.loading = false;
501
503
  if (status == 'success') {
502
- this.$message.success('提交成功');
504
+ this.simpleTips && this.$message.success('提交成功');
503
505
  this.quit(true);
504
506
  } else {
505
507
  this.$message.error(message || '系统错误,请联系管理员!');
@@ -10,6 +10,7 @@
10
10
  :pending-id="pendingId"
11
11
  :opinion="value"
12
12
  type="create"
13
+ :simpleTips="simpleTips"
13
14
  :key="StartTaskReadKey"
14
15
  typeCode="read"
15
16
  :param="param"
@@ -20,12 +21,14 @@
20
21
  />
21
22
  <Supervise
22
23
  :businessId="businessId"
24
+ :simpleTips="simpleTips"
23
25
  @cancel="closeProcess($event)"
24
26
  v-else-if="typeCode == 'supervise'"
25
27
  />
26
28
  <reset
27
29
  style="height: 100%"
28
30
  :type="newTypeCode"
31
+ :simpleTips="simpleTips"
29
32
  :appId="resetAppId"
30
33
  @cancel="closeProcess($event)"
31
34
  :flowParams="param"
@@ -67,6 +70,7 @@
67
70
  @change="(val) => (value = val)"
68
71
  :opinion="value"
69
72
  :rows="rows"
73
+ :required="isOpinionRequired == 1"
70
74
  :isBanInputOpinion="isBanInputOpinion"
71
75
  :nodeFixedOpinionSelectList="nodeFixedOpinionSelectList"
72
76
  />
@@ -713,6 +717,24 @@
713
717
  >
714
718
  </div>
715
719
  <!-- 弹窗内容 -->
720
+ <es-dialog
721
+ v-if="circulateVisible"
722
+ append-to-body
723
+ height="400"
724
+ ref="circulateVisible"
725
+ title="发起传阅"
726
+ :close-on-click-modal="false"
727
+ :visible.sync="circulateVisible"
728
+ :closeParent="closeParent"
729
+ >
730
+ <circulate
731
+ :businessId="businessId"
732
+ :processDefinitionId="nodeInfo.nextNode"
733
+ :simpleTips="simpleTips"
734
+ :oldOption="value"
735
+ @cancel="closeProcess($event, 'circulateVisible')"
736
+ />
737
+ </es-dialog>
716
738
  <es-dialog
717
739
  v-if="handleVisible"
718
740
  append-to-body
@@ -726,6 +748,7 @@
726
748
  >
727
749
  <ProcessForm
728
750
  :id="freeStartFlowParams.startFlowBusinessId || businessIds"
751
+ :simpleTips="simpleTips"
729
752
  :is-free-start-flow="
730
753
  freeStartFlowParams.useScene === 'multiInsMidwayWithSubmitScene'
731
754
  "
@@ -764,6 +787,7 @@
764
787
  <ProcessReject
765
788
  :pending-id="pendingId"
766
789
  :option="value"
790
+ :simpleTips="simpleTips"
767
791
  :show-reject="showReject"
768
792
  :news-info="nextNode.notificationMsg"
769
793
  @cancel="closeProcess(true, 'showReject')"
@@ -783,6 +807,7 @@
783
807
  :pending-id="pendingId"
784
808
  :opinion="value"
785
809
  :type="taskReadType"
810
+ :simpleTips="simpleTips"
786
811
  :taskExamine="taskExamineInfo"
787
812
  :news-info="nextNode.notificationMsg"
788
813
  @cancel="closeProcess($event, 'showTaskRead')"
@@ -814,6 +839,7 @@
814
839
  >
815
840
  <SendMsg
816
841
  @cancel="closeProcess($event, 'showSendMsg')"
842
+ :simpleTips="simpleTips"
817
843
  :pendingId="pendingId"
818
844
  :newsList="newsList"
819
845
  />
@@ -830,6 +856,7 @@
830
856
  >
831
857
  <TaskUnionExamine
832
858
  @cancel="closeProcess($event, 'showTaskUnionExamine')"
859
+ :simpleTips="simpleTips"
833
860
  :pendingId="pendingId"
834
861
  :defaultOpinion="nodeDefaultSubmitOpinion"
835
862
  :oldOption="value"
@@ -851,6 +878,7 @@
851
878
  v-if="showFreeStartFlow"
852
879
  isStartFlow
853
880
  v-bind="freeStartFlowParams"
881
+ :simpleTips="simpleTips"
854
882
  @close="showFreeStartFlow = false"
855
883
  @success="freeStartFlowSuccess"
856
884
  :btnList="[{ text: '提交', event: 'sub', type: 'primary' }]"
@@ -878,6 +906,7 @@ import TaskUnionExamine from './component/taskUnionExamine.vue';
878
906
  import FreeStartFlow from './freeStartFlow.vue';
879
907
  import SelectUser from './selectUser.vue';
880
908
  import Supervise from './supervise.vue';
909
+ import circulate from './component/Circulate.vue';
881
910
  import {
882
911
  findSysCodes,
883
912
  getHandleInfoHtml,
@@ -896,9 +925,11 @@ import {
896
925
  isCanStartSubFlow,
897
926
  checkForeignOrgStartedCircularRead,
898
927
  checkBusinessIdStartedReadTransferHandle,
899
- taskHandleHtml
928
+ taskHandleHtml,
929
+ getNodeInfoForStart
900
930
  } from 'eoss-ui/src/config/api';
901
931
  import util from 'eoss-ui/src/utils/util';
932
+ import Circulate from './component/Circulate.vue';
902
933
  export default {
903
934
  name: 'EsFlow',
904
935
  componentName: 'EsFlow',
@@ -914,6 +945,7 @@ export default {
914
945
  [SelectUser.name]: SelectUser,
915
946
  [TaskUnionExamine.name]: TaskUnionExamine,
916
947
  [FreeStartFlow.name]: FreeStartFlow,
948
+ circulate,
917
949
  Preset,
918
950
  Reset,
919
951
  Supervise
@@ -928,6 +960,7 @@ export default {
928
960
  flowTypeCode: { type: String, default: '' },
929
961
  defaultProcessKey: { type: String, default: '' },
930
962
  hideBtn: { type: Boolean, default: false },
963
+
931
964
  btnList: {
932
965
  type: Array,
933
966
  default: () => [
@@ -964,6 +997,7 @@ export default {
964
997
  return {
965
998
  styles: {},
966
999
  userModel: {},
1000
+ simpleTips: true,
967
1001
  showFreeStartFlow: false, //自由发起流程弹窗
968
1002
  freeStartFlowParams: {}, //自由发起流程参数
969
1003
  freeStartFlowNextNode: undefined,
@@ -1056,6 +1090,7 @@ export default {
1056
1090
  isChooseNextNode: 1, //是否展示下步操作
1057
1091
  isHandleExplain: 0, //是否展示办理说明
1058
1092
  handleVisible: false,
1093
+ circulateVisible: false,
1059
1094
  defaultNextNode: '', //默认节点
1060
1095
  showFlowChart: false, // 展示流程图弹窗
1061
1096
  isReject: false, // 是否驳回
@@ -1099,6 +1134,7 @@ export default {
1099
1134
  handleMode: '',
1100
1135
  countersignaturetypeCode: 0, //是否展示处理方式
1101
1136
  presetEdit: 0,
1137
+ directCreateCircularReadWhenFlowStarted: false,
1102
1138
  isShowNextUser: true, //是否展示下步办理人
1103
1139
  nextUserTypes: ['employee', 'persongroup'], //下步办理人类型配置
1104
1140
  nextUserTabs: {}, //下步办理人权限配置
@@ -1251,6 +1287,20 @@ export default {
1251
1287
  }
1252
1288
  },
1253
1289
  methods: {
1290
+ getNodeInfoForStartFlow(processDefinitionId) {
1291
+ let params = {
1292
+ url: getNodeInfoForStart,
1293
+ params: { processDefinitionId }
1294
+ };
1295
+ util.ajax(params).then((res) => {
1296
+ if (res.status == 'success') {
1297
+ this.isBanInputOpinion = res.data.nodeExtAttr.isBanInputOpinion;
1298
+ this.directCreateCircularReadWhenFlowStarted =
1299
+ res.data.nodeExtAttr.directCreateCircularReadWhenFlowStarted == 1;
1300
+ this.isOpinionRequired = res.data.nodeExtAttr.isOpinionRequired == 1;
1301
+ }
1302
+ });
1303
+ },
1254
1304
  changeCustomLimitTime(val) {
1255
1305
  if (!Number(val) || val.indexOf('.') != -1 || Number(val) < 0) {
1256
1306
  this.$message.warning('请输入正确的天数');
@@ -1287,9 +1337,11 @@ export default {
1287
1337
  },
1288
1338
  freeStartFlowSuccess() {
1289
1339
  this.showFreeStartFlow = false;
1290
- this.$emit('success');
1340
+ this.flowSuccess(true);
1341
+ // this.$emit('success');
1291
1342
  },
1292
1343
  handleChange(val) {
1344
+ this.getNodeInfoForStartFlow(val);
1293
1345
  this.$parent.$emit('flowChange', val);
1294
1346
  },
1295
1347
  getsubProcessColumns() {
@@ -1458,8 +1510,9 @@ export default {
1458
1510
  const { status, message } = res;
1459
1511
  this.loading.close();
1460
1512
  if (status === 'success') {
1461
- this.$message.success('提交成功');
1462
- this.$emit('success');
1513
+ this.flowSuccess();
1514
+ // this.$message.success('提交成功');
1515
+ // this.$emit('success');
1463
1516
  } else {
1464
1517
  this.$message.error(message || '系统错误,请联系管理员!');
1465
1518
  this.$emit('error');
@@ -1504,12 +1557,15 @@ export default {
1504
1557
  isCanFenyue,
1505
1558
  taskExamine,
1506
1559
  taskReadOpinionRequired,
1507
- isCanReadTransferHandle
1560
+ isCanReadTransferHandle,
1561
+ defaultNotificationMessage
1508
1562
  }
1509
1563
  } = res;
1510
1564
  if (status === 'success') {
1511
1565
  this.taskExamineInfo = taskExamine;
1566
+ this.nodeName = this.nodename || taskExamine.nodeName || '分阅';
1512
1567
  this.taskReadOpinionRequired = taskReadOpinionRequired;
1568
+ this.nextNode.notificationMsg = defaultNotificationMessage
1513
1569
  this.isCanReadTransferHandle = isCanReadTransferHandle;
1514
1570
  this.isCanFenyue = isCanFenyue;
1515
1571
  if (this.nodeName) {
@@ -1833,8 +1889,9 @@ export default {
1833
1889
  const { status, message } = res;
1834
1890
  this.loading.close();
1835
1891
  if (status === 'success') {
1836
- this.$message.success('提交成功');
1837
- this.$emit('success');
1892
+ this.flowSuccess();
1893
+ // this.$message.success('提交成功');
1894
+ // this.$emit('success');
1838
1895
  } else {
1839
1896
  this.$message.error(message || '系统错误,请联系管理员!');
1840
1897
  this.$emit('error');
@@ -2081,8 +2138,9 @@ export default {
2081
2138
  const { status, message } = res;
2082
2139
  this.loading.close();
2083
2140
  if (status === 'success') {
2084
- this.$message.success('提交成功');
2085
- this.$emit('success');
2141
+ this.flowSuccess();
2142
+ // this.$message.success('提交成功');
2143
+ // this.$emit('success');
2086
2144
  } else {
2087
2145
  this.$message.error(message || '系统错误,请联系管理员!');
2088
2146
  this.$emit('error');
@@ -2272,7 +2330,6 @@ export default {
2272
2330
  **/
2273
2331
  selecNext(val, type, isDef) {
2274
2332
  this.loading = util.loading(this.$loading, '加载中...');
2275
- console.log(val, type, isDef);
2276
2333
  if (this.multiple) {
2277
2334
  this.nextNode.nextUserId = [];
2278
2335
  } else {
@@ -2459,9 +2516,13 @@ export default {
2459
2516
  canPresetRead,
2460
2517
  isCdjxjTaskHandle,
2461
2518
  taskButtonList,
2519
+ simpleTips,
2462
2520
  isCanPreAddSign
2463
2521
  }
2464
2522
  } = res;
2523
+ if (simpleTips != undefined) {
2524
+ this.simpleTips = simpleTips;
2525
+ }
2465
2526
  this.$emit('startTaskRead', res);
2466
2527
  this.$emit('start-task-read', res);
2467
2528
  this.circularReadParamsMap = circularReadParamsMap || {};
@@ -2706,7 +2767,8 @@ export default {
2706
2767
  (val == true && type != 'taskRead') ||
2707
2768
  val == 'transfer'
2708
2769
  ) {
2709
- this.$emit('success');
2770
+ this.flowSuccess(true);
2771
+ // this.$emit('success');
2710
2772
  }
2711
2773
  },
2712
2774
  /**
@@ -2754,6 +2816,9 @@ export default {
2754
2816
  const { status, message, data } = res;
2755
2817
  this.loading.close();
2756
2818
  if (status === 'success') {
2819
+ if (data.simpleTips != undefined) {
2820
+ this.simpleTips = data.simpleTips;
2821
+ }
2757
2822
  this.isStartFlowChartView = data.isStartFlowChartView;
2758
2823
  if (
2759
2824
  !Object.keys(data).length ||
@@ -2956,25 +3021,50 @@ export default {
2956
3021
  this.$message.warning('请选择输入审批意见');
2957
3022
  return false;
2958
3023
  }
2959
- if (this.isHideCurrentOrg && !this.nextNode.nextCurrentOrgObjJson) {
2960
- this.$message.warning(`请选择${this.currentOrgName || '本单位'}`);
2961
- return false;
2962
- }
3024
+ // if (this.isHideCurrentOrg && !this.nextNode.nextCurrentOrgObjJson) {
3025
+ // this.$message.warning(`请选择${this.currentOrgName || '本单位'}`);
3026
+ // return false;
3027
+ // }
2963
3028
 
2964
3029
  if (
2965
- this.currentNodeIsCircularReadNode &&
3030
+ (this.currentNodeIsCircularReadNode ||
3031
+ (this.isHideOtherOrg && this.isHideCurrentOrg)) &&
2966
3032
  this.nextNode.nextCurrentOrgObj.length == 0 &&
2967
3033
  this.nextNode.nextOtherOrgObj.length == 0
2968
3034
  ) {
2969
- this.$message.warning(`请选择处理对象!`);
3035
+ this.$message.warning(`请选择下步办理对象!`);
2970
3036
  return false;
2971
3037
  }
2972
3038
  return true;
2973
3039
  },
3040
+ flowSuccess(hideMessage) {
3041
+ if (!this.simpleTips) {
3042
+ this.$alert('提交成功', '', {
3043
+ confirmButtonText: '确定',
3044
+ type: 'success',
3045
+ callback: (action) => {
3046
+ this.$emit('success');
3047
+ }
3048
+ });
3049
+ } else {
3050
+ if (!hideMessage) {
3051
+ this.$message.success('提交成功');
3052
+ }
3053
+ this.$emit('success');
3054
+ }
3055
+ },
3056
+
2974
3057
  sendData(freetype) {
2975
3058
  this.$refs['nextNode'].validate(async (valid) => {
2976
3059
  if (valid) {
2977
- if (this.isFlow) return (this.handleVisible = true);
3060
+ if (this.isFlow) {
3061
+ if (this.directCreateCircularReadWhenFlowStarted) {
3062
+ this.circulateVisible = true;
3063
+ } else {
3064
+ this.handleVisible = true;
3065
+ }
3066
+ return;
3067
+ }
2978
3068
  let nextUserId = [];
2979
3069
  if (this.multiple) {
2980
3070
  this.nextNode.nextUserId &&
@@ -3105,8 +3195,7 @@ export default {
3105
3195
  const { status, message } = res;
3106
3196
  this.loading.close();
3107
3197
  if (status === 'success') {
3108
- this.$message.success('提交成功');
3109
- this.$emit('success');
3198
+ this.flowSuccess();
3110
3199
  } else {
3111
3200
  this.$message.error(message || '系统错误,请联系管理员!');
3112
3201
  this.$emit('error');
@@ -351,6 +351,10 @@ export default {
351
351
  type: String,
352
352
  default: ''
353
353
  },
354
+ simpleTips:{
355
+ type:Boolean,
356
+ default: true
357
+ },
354
358
  formType: {
355
359
  type: String,
356
360
  default: 'freeStart'
@@ -755,7 +759,7 @@ export default {
755
759
  this.loading = false;
756
760
  if (status === 'success' || res.rCode == 0) {
757
761
  this.quit(true);
758
- this.$message.success('操作成功');
762
+ this.simpleTips && this.$message.success('操作成功');
759
763
  } else {
760
764
  this.$message.error(message || '系统错误,请联系管理员!');
761
765
  }
@@ -97,7 +97,8 @@ export default {
97
97
  pendingId: { type: String, default: '' },
98
98
  newsInfo: { type: String, default: '' },
99
99
  showReject: { type: Boolean },
100
- option: { type: String, default: '' }
100
+ option: { type: String, default: '' },
101
+ simpleTips:{type:Boolean,default:true}
101
102
  },
102
103
  data() {
103
104
  return {
@@ -186,7 +187,7 @@ export default {
186
187
  this.loading = false;
187
188
  if (status === 'success') {
188
189
  this.quit(true);
189
- this.$message.success('操作成功');
190
+ this.simpleTips && this.$message.success('操作成功');
190
191
  } else {
191
192
  this.$message.error(message || '系统错误,请联系管理员!');
192
193
  }
@@ -185,6 +185,7 @@ export default {
185
185
  },
186
186
  props: {
187
187
  pendingId: { type: String, default: '' },
188
+ simpleTips:{type:Boolean,default:true},
188
189
  newsInfo: { type: String, default: '' },
189
190
  type: { type: String, default: '' },
190
191
  option: { type: String, default: '' },
@@ -510,7 +511,7 @@ export default {
510
511
  .then((res) => {
511
512
  const { message, status } = res;
512
513
  if (status === 'success') {
513
- this.$message.success('操作成功');
514
+ this.simpleTips && this.$message.success('操作成功');
514
515
  this.quit(true);
515
516
  } else {
516
517
  this.$message.error(message || '系统错误,请联系管理员!');
@@ -597,7 +598,7 @@ export default {
597
598
  const { message, status } = res;
598
599
  this.loading = false;
599
600
  if (status === 'success') {
600
- this.$message.success('操作成功');
601
+ this.simpleTips && this.$message.success('操作成功');
601
602
  this.quit(true);
602
603
  } else {
603
604
  this.$message.error(message || '系统错误,请联系管理员!');