eoss-ui 0.6.81 → 0.6.83

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.6.81",
3
+ "version": "0.6.83",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -215,7 +215,7 @@
215
215
  </el-form>
216
216
  <div
217
217
  v-show="
218
- (!endFlow || nodeInfos.length > 1) &&
218
+ (!endFlow || nodeInfos.length > 1 || taskOperationShiftedNodeList) &&
219
219
  newTypeCode != 'fenyue' &&
220
220
  !shrink
221
221
  "
@@ -669,6 +669,7 @@
669
669
  "
670
670
  :label-position="formLabelPosition"
671
671
  :showBtn="false"
672
+ :formTitle="formTitle"
672
673
  :copy-history="freeStartFlowParams.pendedHistoryHandle"
673
674
  :process-definition-id="freeStartFlowNextNode || nodeInfo.nextNode"
674
675
  :opinion="value"
@@ -1162,6 +1163,7 @@ export default {
1162
1163
  },
1163
1164
  beforeSubmit: Function,
1164
1165
  title: { type: String, default: '流程办理' },
1166
+ formTitle: { type: String, default: '' },
1165
1167
  closeParent: Boolean,
1166
1168
  param: {
1167
1169
  type: Object,
@@ -1187,6 +1189,7 @@ export default {
1187
1189
  return {
1188
1190
  styles: {},
1189
1191
  optionsKey: 0,
1192
+ taskOperationShiftedNodeList:null,
1190
1193
  currentNodeEnableItemHandleDescription: false,
1191
1194
  startFlowPageEmbeddedIntoStartFlowIndex: false,
1192
1195
  pendingItemHandleDescription: '',
@@ -2572,7 +2575,6 @@ export default {
2572
2575
  * @date 2022年5月25日
2573
2576
  **/
2574
2577
  selecNext(val, type, isDef) {
2575
- console.log(val, 'valvalval');
2576
2578
  let isNextNode = false;
2577
2579
  if (type) {
2578
2580
  isNextNode = this.operationList.filter((x) => x.key == val)[0]
@@ -2588,8 +2590,7 @@ export default {
2588
2590
  this.selectUserList = [];
2589
2591
  this.radioList = [];
2590
2592
 
2591
- if (type && !isNextNode) {
2592
- console.log('不是下一步节点');
2593
+ if (type) {
2593
2594
  this.isNextUser = false;
2594
2595
  this.isShowNode = false;
2595
2596
  this.isMainSubProcess = false;
@@ -2606,30 +2607,18 @@ export default {
2606
2607
  this.nextNode.isReturnRejectNode = 0;
2607
2608
  this.nextNode.isSerialSubmit = 0;
2608
2609
  this.nodeInfos = [];
2609
- let newOperationList = [];
2610
- // this.operationList.map(x => {
2611
-
2612
- // })
2613
2610
  this.operationList.forEach((item) => {
2614
2611
  if (item.key === val) {
2615
2612
  if (!item.taskNodeList) {
2616
2613
  this.nodeInfos = [];
2617
2614
  } else {
2618
- // if (isDef) {
2619
- // item.taskNodeList.map((x) => {
2620
- // if (x.nodeName == '编号') {
2621
- // this.operationList.push({
2622
- // key: x.nodeId,
2623
- // value: x.nodeName,
2624
- // isNextNode: true
2625
- // });
2626
- // }
2627
- // });
2628
- // }
2615
+ this.nodeInfos = item.taskNodeList;
2629
2616
 
2630
- // this.nodeInfos = item.taskNodeList.filter(
2631
- // (x) => x.nodeName != '编号'
2632
- // );
2617
+ if(this.taskOperationShiftedNodeList){
2618
+ this.nodeInfos = item.taskNodeList.filter(
2619
+ (x) =>this.taskOperationShiftedNodeList.indexOf(x.nodeId) == -1
2620
+ );
2621
+ }
2633
2622
  }
2634
2623
  return;
2635
2624
  }
@@ -2790,6 +2779,7 @@ export default {
2790
2779
  isSpecial,
2791
2780
  canPresetRead,
2792
2781
  isCdjxjTaskHandle,
2782
+ taskOperationShiftedNodeList,
2793
2783
  taskButtonList,
2794
2784
  simpleTips,
2795
2785
  isCanPreAddSign
@@ -2800,6 +2790,13 @@ export default {
2800
2790
  }
2801
2791
  this.$emit('startTaskRead', res);
2802
2792
  this.$emit('start-task-read', res);
2793
+ if(taskOperationShiftedNodeList && taskOperationShiftedNodeList.length>0){
2794
+ this.taskOperationShiftedNodeList = []
2795
+ taskOperationShiftedNodeList.map(x =>{
2796
+ this.taskOperationShiftedNodeList.push(x.nodeId)
2797
+ taskOperations.push({key: x.nodeId, value: x.nodeName,isNextNode: true})
2798
+ })
2799
+ }
2803
2800
  this.pendingItemHandleDescription = pendingItemHandleDescription;
2804
2801
  if (currentOrgSelectorParams.enableCurrentOrgConfig == 'true') {
2805
2802
  this.currentOrgSelectorTabs =
@@ -3072,7 +3069,7 @@ export default {
3072
3069
  if (
3073
3070
  val == 'taskReadAndEnd' ||
3074
3071
  (val == true && type != 'taskRead') ||
3075
- val == 'transfer'
3072
+ val == 'transfer' || this.typeCode == 'read'
3076
3073
  ) {
3077
3074
  this.flowSuccess(true);
3078
3075
  // this.$emit('success');
@@ -13,9 +13,13 @@
13
13
  label-width="100px"
14
14
  :label-position="labelPosition"
15
15
  >
16
- <div :style="`height:${showBtn? '430px': 'auto'}; overflow-y: auto; margin-bottom: 10px`">
16
+ <div
17
+ :style="`height:${
18
+ showBtn ? '430px' : 'auto'
19
+ }; overflow-y: auto; margin-bottom: 10px`"
20
+ >
17
21
  <el-form-item
18
- v-show="showBtn"
22
+ v-show="showBtn"
19
23
  prop="nodeName"
20
24
  label="当前节点"
21
25
  :rules="[
@@ -324,40 +328,41 @@
324
328
  </el-form-item>
325
329
  </el-form>
326
330
  <div v-if="!showBtn" style="padding: 5px; background: #fff">
327
- <div class="news" @click="showNews = !showNews">
328
- <span class="news-item">消息通知</span>
329
- <span :class="showNews ? 'show' : 'sj'"></span>
330
- </div>
331
- <div v-if="showNews" ref="messagebox" style="transition: 1s">
332
- <el-checkbox-group v-model="nextNode.noticeType">
333
- <el-checkbox
334
- v-for="item of nextNode.noticeList"
335
- :key="item.cciValue"
336
- :label="item.cciValue"
337
- :disabled="
338
- readOnlyNotificationType
339
- ? readOnlyNotificationType.indexOf(item.cciValue) != -1
340
- : false
341
- "
342
- >
343
- {{ item.shortName }}
344
- </el-checkbox>
345
- </el-checkbox-group>
346
- <es-input
347
- style="
348
- border-color: #ccc;
349
- padding: 5px;
350
- border-radius: 5px;
351
- font-size: 13px;
352
- "
353
- autosize
354
- v-show="showNews"
355
- type="textarea"
356
- v-model="nextNode.noticeInfo"
357
- :readonly="notificationMessageReadOnly"
358
- />
359
- </div>
360
- </div>
331
+ <div class="news" @click="showNews = !showNews">
332
+ <span class="news-item">消息通知</span>
333
+ <span :class="showNews ? 'show' : 'sj'"></span>
334
+ </div>
335
+ <div v-if="showNews" ref="messagebox" style="transition: 1s">
336
+ <el-checkbox-group v-model="nextNode.noticeType">
337
+ <el-checkbox
338
+ v-for="item of nextNode.noticeList"
339
+ :key="item.cciValue"
340
+ :label="item.cciValue"
341
+ :disabled="
342
+ readOnlyNotificationType
343
+ ? readOnlyNotificationType.indexOf(item.cciValue) != -1
344
+ : false
345
+ "
346
+ >
347
+ {{ item.shortName }}
348
+ </el-checkbox>
349
+ </el-checkbox-group>
350
+ <es-input
351
+ style="
352
+ border-color: #ccc;
353
+ padding: 5px;
354
+ border-radius: 5px;
355
+ font-size: 13px;
356
+ "
357
+ autosize
358
+ v-show="showNews"
359
+ type="textarea"
360
+ v-model="nextNode.noticeInfo"
361
+ @change="handleChange"
362
+ :readonly="notificationMessageReadOnly"
363
+ />
364
+ </div>
365
+ </div>
361
366
  </div>
362
367
  </template>
363
368
 
@@ -429,6 +434,10 @@ export default {
429
434
  type: String,
430
435
  default: 'left'
431
436
  },
437
+ formTitle: {
438
+ type: String,
439
+ default: ''
440
+ },
432
441
  showBtn: { type: Boolean, default: true }
433
442
  },
434
443
  data() {
@@ -444,6 +453,7 @@ export default {
444
453
  nextOperateCheckType: 'select',
445
454
  showNews: false, // 是否展示通知信息
446
455
  notificationMessageReadOnly: false,
456
+ isChangeMessage: false,
447
457
  readOnlyNotificationType: '',
448
458
  show: true,
449
459
  enableCustomLimitTimeSetting: false,
@@ -501,6 +511,7 @@ export default {
501
511
  mixPresetList: [],
502
512
  isCdjxjTaskHandle: '',
503
513
  isShowNextUser: true,
514
+ oldMessage: '',
504
515
  mixOrgIdList: [], //办理对象混选
505
516
  nextNode: {
506
517
  nodeName: '',
@@ -535,9 +546,18 @@ export default {
535
546
  }
536
547
  // this.getStartFlow(val);
537
548
  },
538
- opinion(val){
549
+ opinion(val) {
539
550
  this.newOpinion = this.opinion;
540
551
  },
552
+ formTitle: {
553
+ handler(val) {
554
+ if (!this.showBtn && !this.isChangeMessage) {
555
+ this.nextNode.noticeInfo = this.oldMessage.replace('{title}', val);
556
+ }
557
+ },
558
+ deep: true,
559
+ immediate: true
560
+ }
541
561
  },
542
562
  computed: {
543
563
  types() {
@@ -561,6 +581,9 @@ export default {
561
581
  }
562
582
  },
563
583
  methods: {
584
+ handleChange() {
585
+ this.isChangeMessage = true
586
+ },
564
587
  changeCustomLimitTime(val) {
565
588
  if (!Number(val) || val.indexOf('.') != -1 || Number(val) < 0) {
566
589
  this.$message.warning('请输入正确的天数');
@@ -713,11 +736,19 @@ export default {
713
736
  nodeId: this.nextNode.nextNode,
714
737
  businessId: this.id
715
738
  };
739
+ if (!this.showBtn) {
740
+ params.openMode = 'samepage';
741
+ }
716
742
  util
717
743
  .ajax({ url: getNotificationMsg, params, methods: 'post' })
718
744
  .then((res) => {
719
745
  if (res.status === 'success') {
720
- this.nextNode.noticeInfo = res.message;
746
+ if (!this.showBtn) {
747
+ this.oldMessage = res.message;
748
+ this.nextNode.noticeInfo = res.message.replace('{title}', '');
749
+ } else {
750
+ this.nextNode.noticeInfo = res.message;
751
+ }
721
752
  }
722
753
  })
723
754
  .catch((err) => {
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.6.81',
128
+ version: '0.6.83',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,