eoss-ui 0.6.61 → 0.6.63

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 (75) 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/clients.js +3 -3
  5. package/lib/config/api.js +3 -1
  6. package/lib/data-table-form.js +120 -116
  7. package/lib/data-table.js +123 -119
  8. package/lib/date-picker.js +118 -114
  9. package/lib/dialog.js +118 -114
  10. package/lib/eoss-ui.common.js +1578 -857
  11. package/lib/flow-group.js +118 -114
  12. package/lib/flow-list.js +167 -128
  13. package/lib/flow.js +1372 -687
  14. package/lib/form.js +120 -116
  15. package/lib/handle-user.js +119 -115
  16. package/lib/handler.js +119 -115
  17. package/lib/icon.js +119 -115
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +118 -114
  20. package/lib/input.js +118 -114
  21. package/lib/login.js +131 -127
  22. package/lib/main.js +162 -157
  23. package/lib/nav.js +118 -114
  24. package/lib/notify.js +121 -117
  25. package/lib/page.js +118 -114
  26. package/lib/pagination.js +118 -114
  27. package/lib/player.js +118 -114
  28. package/lib/qr-code.js +118 -114
  29. package/lib/radio-group.js +120 -116
  30. package/lib/retrial-auth.js +121 -117
  31. package/lib/select-ganged.js +120 -116
  32. package/lib/select.js +120 -116
  33. package/lib/selector-panel.js +136 -132
  34. package/lib/selector.js +119 -115
  35. package/lib/sizer.js +120 -116
  36. package/lib/steps.js +118 -114
  37. package/lib/switch.js +118 -114
  38. package/lib/table-form.js +118 -114
  39. package/lib/tabs.js +118 -114
  40. package/lib/theme-chalk/base.css +1 -1
  41. package/lib/theme-chalk/index.css +1 -1
  42. package/lib/theme-chalk/main.css +1 -1
  43. package/lib/theme-chalk/menu.css +1 -1
  44. package/lib/theme-chalk/simplicity.css +1 -1
  45. package/lib/theme-chalk/sizer.css +1 -1
  46. package/lib/theme-chalk/upload.css +1 -1
  47. package/lib/tips.js +119 -115
  48. package/lib/tree-group.js +118 -114
  49. package/lib/tree.js +119 -115
  50. package/lib/upload.js +130 -126
  51. package/lib/wujie.js +118 -114
  52. package/lib/wxlogin.js +118 -114
  53. package/package.json +1 -1
  54. package/packages/clients/src/main.vue +1 -1
  55. package/packages/flow/src/component/Circulate.vue +322 -0
  56. package/packages/flow/src/component/CommonOpinions.vue +3 -2
  57. package/packages/flow/src/component/SendMsg.vue +39 -27
  58. package/packages/flow/src/component/taskUnionExamine.vue +7 -5
  59. package/packages/flow/src/main.vue +109 -20
  60. package/packages/flow/src/processForm.vue +5 -1
  61. package/packages/flow/src/processReject.vue +3 -2
  62. package/packages/flow/src/startTaskRead.vue +3 -2
  63. package/packages/flow/src/supervise.vue +77 -72
  64. package/packages/flow-list/src/main.vue +61 -32
  65. package/packages/main/src/simplicity/index.vue +1 -0
  66. package/packages/theme-chalk/lib/base.css +1 -1
  67. package/packages/theme-chalk/lib/index.css +1 -1
  68. package/packages/theme-chalk/lib/main.css +1 -1
  69. package/packages/theme-chalk/lib/menu.css +1 -1
  70. package/packages/theme-chalk/lib/simplicity.css +1 -1
  71. package/packages/theme-chalk/lib/sizer.css +1 -1
  72. package/packages/theme-chalk/lib/upload.css +1 -1
  73. package/packages/theme-chalk/src/base.scss +1 -0
  74. package/src/config/api.js +4 -0
  75. package/src/index.js +1 -1
@@ -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 || '系统错误,请联系管理员!');
@@ -8,48 +8,51 @@
8
8
  label-position="left"
9
9
  >
10
10
  <el-form-item prop="pendTitle" label="标题">
11
- <el-input v-model="nextNode.pendTitle" disabled type="textarea" autosize />
11
+ <el-input
12
+ v-model="nextNode.pendTitle"
13
+ disabled
14
+ type="textarea"
15
+ autosize
16
+ />
12
17
  </el-form-item>
13
18
  <el-form-item prop="currentHandleNode" label="当前办理节点">
14
19
  <el-input v-model="nextNode.currentHandleNode" disabled />
15
20
  </el-form-item>
16
21
  <el-form-item prop="pendingUserNames" label="当前办理人">
17
- <el-input type="textarea" autosize v-model="nextNode.pendingUserNames" disabled />
22
+ <el-input
23
+ type="textarea"
24
+ autosize
25
+ v-model="nextNode.pendingUserNames"
26
+ disabled
27
+ />
18
28
  </el-form-item>
19
29
  <el-form-item prop="noticeType" label="通知方式">
20
- <el-checkbox-group v-model="nextNode.noticeType">
21
- <el-checkbox
22
- v-for="(item,index) of nextNode.notificationType"
23
- :key="index"
24
- :label="item.cciValue"
25
- >
26
- {{ item.shortName }}
27
- </el-checkbox>
28
- </el-checkbox-group>
29
- </el-form-item>
30
- <!-- v-show="nextNode.noticeType.length != 0" -->
31
- <el-form-item
32
- prop="notifyMessage"
33
- label="通知消息"
34
- >
35
- <es-input
36
- style="
37
- border-color: #ccc;
38
- padding: 5px;
39
- border-radius: 5px;
40
- font-size: 13px;
41
- "
42
- type="textarea"
43
- v-model="nextNode.notifyMessage"
44
- />
45
- </el-form-item>
46
- <el-form-item style="margin-bottom: 0px">
47
- <div style="text-align: right">
48
- <el-button
49
- type="primary"
50
- size="small"
51
- @click="subProcess()"
30
+ <el-checkbox-group v-model="nextNode.noticeType">
31
+ <el-checkbox
32
+ v-for="(item, index) of nextNode.notificationType"
33
+ :key="index"
34
+ :label="item.cciValue"
52
35
  >
36
+ {{ item.shortName }}
37
+ </el-checkbox>
38
+ </el-checkbox-group>
39
+ </el-form-item>
40
+ <!-- v-show="nextNode.noticeType.length != 0" -->
41
+ <el-form-item prop="notifyMessage" label="通知消息">
42
+ <es-input
43
+ style="
44
+ border-color: #ccc;
45
+ padding: 5px;
46
+ border-radius: 5px;
47
+ font-size: 13px;
48
+ "
49
+ type="textarea"
50
+ v-model="nextNode.notifyMessage"
51
+ />
52
+ </el-form-item>
53
+ <el-form-item style="margin-bottom: 0px">
54
+ <div style="text-align: right">
55
+ <el-button type="primary" size="small" @click="subProcess()">
53
56
  确认
54
57
  </el-button>
55
58
  </div>
@@ -62,18 +65,19 @@
62
65
  import { toTaskSupervise, toTaskSuperviseSub } from 'eoss-ui/src/config/api';
63
66
  import util from 'eoss-ui/src/utils/util';
64
67
  export default {
68
+ name:'supervise',
65
69
  props: {
66
70
  businessId: {
67
71
  type: String,
68
72
  default: ''
69
- }
73
+ },
70
74
  },
71
75
  data() {
72
76
  return {
73
77
  nextNode: {
74
- noticeType:[],
75
- notificationType:[],
76
- loading:undefined
78
+ noticeType: [],
79
+ notificationType: [],
80
+ loading: undefined
77
81
  }
78
82
  };
79
83
  },
@@ -81,39 +85,40 @@ export default {
81
85
  this.getFlowInfo();
82
86
  },
83
87
  methods: {
84
- subProcess(){
85
- if(this.nextNode.noticeType.length == 0){
86
- this.$message.warning('请选择通知方式');
87
- return
88
- }
89
- if(!this.nextNode.notifyMessage){
90
- this.$message.warning('请填写通知消息内容');
91
- return
92
- }
93
- let {noticeType,notifyMessage,pendingUserIds} = this.nextNode
94
- let params = {
95
- url:toTaskSuperviseSub,
96
- params:{
97
- userId:util.getStorage('userId'),
98
- urgeUserIds:pendingUserIds,
99
- notificationType:noticeType.join(','),notificationMessage:notifyMessage,
100
- businessId:this.businessId
101
- }
88
+ subProcess() {
89
+ if (this.nextNode.noticeType.length == 0) {
90
+ this.$message.warning('请选择通知方式');
91
+ return;
92
+ }
93
+ if (!this.nextNode.notifyMessage) {
94
+ this.$message.warning('请填写通知消息内容');
95
+ return;
96
+ }
97
+ let { noticeType, notifyMessage, pendingUserIds } = this.nextNode;
98
+ let params = {
99
+ url: toTaskSuperviseSub,
100
+ params: {
101
+ userId: util.getStorage('userId'),
102
+ urgeUserIds: pendingUserIds,
103
+ notificationType: noticeType.join(','),
104
+ notificationMessage: notifyMessage,
105
+ businessId: this.businessId
102
106
  }
103
- this.loading = util.loading(this.$loading, '提交中...');
104
- util.ajax(params).then(res => {
107
+ };
108
+ this.loading = util.loading(this.$loading, '提交中...');
109
+ util.ajax(params).then((res) => {
105
110
  this.loading.close();
106
- if(res.rCode == 0 || res.status=='success'){
107
- this.$message.success('操作成功');
108
- this.$parent.$emit('success')
109
- }else{
110
- this.$message.error(res.message || '系统错误,请联系管理员!');
111
+ if (res.rCode == 0 || res.status == 'success') {
112
+ this.$message.success('操作成功');
113
+ this.$parent.$emit('success');
114
+ } else {
115
+ this.$message.error(res.message || '系统错误,请联系管理员!');
111
116
  }
112
- })
117
+ });
113
118
  },
114
-
119
+
115
120
  getFlowInfo() {
116
- this.loading = util.loading(this.$loading, '加载中...');
121
+ this.loading = util.loading(this.$loading, '加载中...');
117
122
  util
118
123
  .ajax({
119
124
  url: toTaskSupervise,
@@ -123,12 +128,12 @@ export default {
123
128
  }
124
129
  })
125
130
  .then((res) => {
126
- this.loading.close();
127
- console.log(res);
128
- if(res.rCode == 0){
129
- this.nextNode = {...this.nextNode,...res.results};
130
- this.nextNode.noticeType = res.results.defaultNotificationType.split(',');
131
- }else{
131
+ this.loading.close();
132
+ if (res.rCode == 0) {
133
+ this.nextNode = { ...this.nextNode, ...res.results };
134
+ this.nextNode.noticeType =
135
+ res.results.defaultNotificationType.split(',');
136
+ } else {
132
137
  this.$message({
133
138
  message: res.rMsg,
134
139
  type: 'error'