eoss-ui 0.6.38 → 0.6.40

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 (90) hide show
  1. package/lib/button-group.js +572 -374
  2. package/lib/button.js +572 -374
  3. package/lib/checkbox-group.js +573 -375
  4. package/lib/config/api.js +31 -19
  5. package/lib/data-table-form.js +584 -386
  6. package/lib/data-table.js +597 -392
  7. package/lib/date-picker.js +572 -374
  8. package/lib/dialog.js +572 -374
  9. package/lib/eoss-ui.common.js +10749 -3855
  10. package/lib/error-page.js +4 -4
  11. package/lib/flow-group.js +590 -377
  12. package/lib/flow-list.js +577 -379
  13. package/lib/flow.js +9723 -2852
  14. package/lib/form.js +577 -379
  15. package/lib/handle-user.js +573 -375
  16. package/lib/handler.js +573 -375
  17. package/lib/icon.js +573 -375
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +572 -374
  20. package/lib/input.js +572 -374
  21. package/lib/layout.js +2 -2
  22. package/lib/login.js +587 -389
  23. package/lib/main.js +609 -411
  24. package/lib/nav.js +572 -374
  25. package/lib/notify.js +127 -109
  26. package/lib/page.js +572 -374
  27. package/lib/pagination.js +572 -374
  28. package/lib/player.js +572 -374
  29. package/lib/qr-code.js +572 -374
  30. package/lib/radio-group.js +573 -375
  31. package/lib/retrial-auth.js +575 -377
  32. package/lib/select-ganged.js +573 -375
  33. package/lib/select.js +573 -375
  34. package/lib/selector-panel.js +595 -396
  35. package/lib/selector.js +576 -378
  36. package/lib/sizer.js +578 -380
  37. package/lib/steps.js +572 -374
  38. package/lib/switch.js +572 -374
  39. package/lib/table-form.js +572 -374
  40. package/lib/tabs.js +576 -378
  41. package/lib/theme-chalk/flow.css +1 -1
  42. package/lib/theme-chalk/index.css +1 -1
  43. package/lib/tips.js +573 -375
  44. package/lib/tree-group.js +572 -374
  45. package/lib/tree.js +573 -375
  46. package/lib/upload.js +582 -384
  47. package/lib/utils/util.js +448 -268
  48. package/lib/wujie.js +572 -374
  49. package/lib/wxlogin.js +572 -374
  50. package/package.json +2 -1
  51. package/packages/.DS_Store +0 -0
  52. package/packages/data-table/.DS_Store +0 -0
  53. package/packages/data-table/src/column.vue +9 -3
  54. package/packages/data-table/src/main.vue +5 -1
  55. package/packages/data-table-form/.DS_Store +0 -0
  56. package/packages/data-table-form/src/table.vue +6 -6
  57. package/packages/error-page/.DS_Store +0 -0
  58. package/packages/error-page/src/main.vue +2 -2
  59. package/packages/flow/.DS_Store +0 -0
  60. package/packages/flow/src/component/CommonOpinions.vue +5 -1
  61. package/packages/flow/src/component/taskUnionExamine.vue +83 -27
  62. package/packages/flow/src/freeStartFlow.vue +2843 -0
  63. package/packages/flow/src/main.vue +769 -636
  64. package/packages/flow/src/processForm.vue +62 -9
  65. package/packages/flow/src/reset.vue +901 -0
  66. package/packages/flow/src/selectUser.vue +5 -0
  67. package/packages/flow-group/src/main.vue +4 -0
  68. package/packages/form/.DS_Store +0 -0
  69. package/packages/form/src/main.vue +3 -3
  70. package/packages/login/.DS_Store +0 -0
  71. package/packages/login/src/main.vue +4 -6
  72. package/packages/main/.DS_Store +0 -0
  73. package/packages/main/src/.DS_Store +0 -0
  74. package/packages/selector/.DS_Store +0 -0
  75. package/packages/selector/src/main.vue +1 -1
  76. package/packages/selector-panel/.DS_Store +0 -0
  77. package/packages/selector-panel/src/main.vue +3 -2
  78. package/packages/sizer/.DS_Store +0 -0
  79. package/packages/sizer/src/main.vue +5 -5
  80. package/packages/tabs/.DS_Store +0 -0
  81. package/packages/tabs/src/main.vue +2 -2
  82. package/packages/theme-chalk/lib/flow.css +1 -1
  83. package/packages/theme-chalk/lib/index.css +1 -1
  84. package/packages/theme-chalk/src/.DS_Store +0 -0
  85. package/packages/theme-chalk/src/flow.scss +2 -0
  86. package/packages/upload/.DS_Store +0 -0
  87. package/src/.DS_Store +0 -0
  88. package/src/config/api.js +31 -19
  89. package/src/index.js +157 -157
  90. package/src/utils/util.js +433 -258
@@ -58,6 +58,7 @@
58
58
  ]"
59
59
  >
60
60
  <el-select
61
+ v-if="nextNodeCheckType == 'select'"
61
62
  v-model="nextNode.nextNode"
62
63
  :placeholder="`请选择下步节点`"
63
64
  @change="changeSel"
@@ -69,6 +70,13 @@
69
70
  :value="items.nodeId"
70
71
  ></el-option>
71
72
  </el-select>
73
+ <es-radio-group
74
+ v-else-if="nextNodeCheckType == 'radio'"
75
+ v-model="nextNode.nextNode"
76
+ :data="nextNode.nodeInfo"
77
+ value-key="nodeId"
78
+ label-key="nodeName"
79
+ ></es-radio-group>
72
80
  </el-form-item>
73
81
  <el-form-item
74
82
  v-if="countersignaturetypeCode != 0"
@@ -190,9 +198,11 @@
190
198
  v-for="item of nextNode.noticeList"
191
199
  :key="item.cciValue"
192
200
  :label="item.cciValue"
193
- :disabled="readOnlyNotificationType
201
+ :disabled="
202
+ readOnlyNotificationType
194
203
  ? readOnlyNotificationType.indexOf(item.cciValue) != -1
195
- : false"
204
+ : false
205
+ "
196
206
  >
197
207
  {{ item.shortName }}
198
208
  </el-checkbox>
@@ -272,7 +282,8 @@ import {
272
282
  getNotificationMsg,
273
283
  findCodeValues,
274
284
  loginUserInfo,
275
- register
285
+ register,
286
+ freeStartFlowWithSubmitTask
276
287
  } from 'eoss-ui/src/config/api';
277
288
  import util from 'eoss-ui/src/utils/util';
278
289
  import SelectUser from './selectUser.vue';
@@ -294,6 +305,10 @@ export default {
294
305
  type: String,
295
306
  default: ''
296
307
  },
308
+ copyHistory:{
309
+ type:String,
310
+ default: ''
311
+ },
297
312
  id: {
298
313
  type: String,
299
314
  default: ''
@@ -301,6 +316,14 @@ export default {
301
316
  opinion: {
302
317
  type: String,
303
318
  default: ''
319
+ },
320
+ isFreeStartFlow:{
321
+ type: Boolean,
322
+ default: false
323
+ },
324
+ taskParams:{
325
+ type: Object,
326
+ default: () => {}
304
327
  }
305
328
  },
306
329
  data() {
@@ -311,6 +334,7 @@ export default {
311
334
  multiple: false,
312
335
  readMultiple: true,
313
336
  customPresetHintMessage: '', //流程预设标题
337
+ nextNodeCheckType: 'select',
314
338
  notificationMessageReadOnly: false,
315
339
  readOnlyNotificationType: '',
316
340
  show: true,
@@ -407,6 +431,7 @@ export default {
407
431
  this.getUserInfo();
408
432
  },
409
433
  mounted() {
434
+ console.log('发起流程开始')
410
435
  this.getNodeType();
411
436
  this.getStartFlow(this.processDefinitionId);
412
437
  this.newOpinion = this.opinion;
@@ -631,12 +656,26 @@ export default {
631
656
  opinion: this.newOpinion || newOpinion
632
657
  };
633
658
  if (this.activeNames != '1') delete params.customPresetUserJson;
659
+ if(this.isFreeStartFlow){
660
+ let newParm = {}
661
+ newParm.copyHistory = this.copyHistory === 'needCopyPendedHistory'
662
+ newParm.startFlowParamJson = params
663
+ newParm.startFlowParamJson.businessId = '93f66a39a52c47deb7a9a25b6424f089' //this.id
664
+ newParm.startFlowParamJson = JSON.stringify( newParm.startFlowParamJson)
665
+ for(let key in this.taskParams){
666
+ if(Array.isArray(this.taskParams[key])){
667
+ this.taskParams[key] = this.taskParams[key].length>0?this.taskParams[key].join(',') : ''
668
+ }
669
+ }
670
+ newParm.submitTaskParamJson =JSON.stringify( this.taskParams)
671
+ params=newParm
672
+ }
634
673
  util
635
- .ajax({ url: register, method: 'post', data: params })
674
+ .ajax({ url:this.isFreeStartFlow?freeStartFlowWithSubmitTask : register, method: 'post', data: params })
636
675
  .then((res) => {
637
676
  const { status, message } = res;
638
677
  this.loading = false;
639
- if (status === 'success') {
678
+ if (status === 'success' || res.rCode == 0) {
640
679
  this.quit(true);
641
680
  this.$message.success('操作成功');
642
681
  } else {
@@ -658,7 +697,8 @@ export default {
658
697
  let params = {
659
698
  processDefinitionId: this.processDefinitionId,
660
699
  nextNodeId: nodeId ? nodeId : this.nextNode.nextNode,
661
- businessId: this.id
700
+ businessId: this.id,
701
+ userId: util.getStorage('userId')
662
702
  };
663
703
  util
664
704
  .ajax({ url: getNodeInfo, params })
@@ -861,9 +901,12 @@ export default {
861
901
  .catch(() => {
862
902
  this.quit();
863
903
  });
904
+ data.nextNodeCheckType &&
905
+ (this.nextNodeCheckType = data.nextNodeCheckType);
864
906
  this.customPresetHintMessage = data.customPresetHintMessage;
865
907
  this.readOnlyNotificationType = data.readOnlyNotificationType;
866
- this.notificationMessageReadOnly = data.notificationMessageReadOnly == 'true';
908
+ this.notificationMessageReadOnly =
909
+ data.notificationMessageReadOnly == 'true';
867
910
  this.nextNode.nodeInfo = data.nextNodeList;
868
911
  this.nextNode.nextNode = data.nextNodeList[0].nodeId;
869
912
  this.isPreset = data.isPreset;
@@ -888,8 +931,13 @@ export default {
888
931
  this.nextNode.nextOperate = 0;
889
932
  this.nextNode.nodeInfo = this.operationList[0].list;
890
933
  if (this.nextNode.nodeInfo.length > 0) {
934
+ let defaultNodeData = data.nextNodeList.filter(
935
+ (x) => x.nodeId == this.defaultNextNode
936
+ );
891
937
  this.nextNode.nextNode =
892
- this.defaultNextNode || data.nextNodeList[0].nodeId;
938
+ defaultNodeData.length > 0
939
+ ? this.defaultNextNode
940
+ : data.nextNodeList[0].nodeId;
893
941
  }
894
942
  } else if (
895
943
  data.nodeInfoMap.nodeExtAttr.defaultNextOperate == 1 ||
@@ -899,8 +947,13 @@ export default {
899
947
  this.nextNode.nextOperate = 1;
900
948
  this.nextNode.nodeInfo = this.operationList[1].list;
901
949
  if (this.nextNode.nodeInfo.length > 0) {
950
+ let defaultNodeData = data.nextNodeList.filter(
951
+ (x) => x.nodeId == this.defaultNextNode
952
+ );
902
953
  this.nextNode.nextNode =
903
- this.defaultNextNode || data.nextNodeList[0].nodeId;
954
+ defaultNodeData.length > 0
955
+ ? this.defaultNextNode
956
+ : data.nextNodeList[0].nodeId;
904
957
  }
905
958
  }
906
959
  }