eoss-ui 0.6.78 → 0.6.80

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.78",
3
+ "version": "0.6.80",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -6,7 +6,7 @@
6
6
  v-if="!shrinkAbled"
7
7
  >
8
8
  <div
9
- v-if="showCirculate"
9
+ v-if="showCirculate && newTypeCode != 'fenyue'"
10
10
  style="height: 100%; display: flex; flex-direction: column"
11
11
  >
12
12
  <div class="es-flow-top">
@@ -49,7 +49,7 @@
49
49
  :isBanInputOpinion="isBanInputOpinion"
50
50
  :nodeFixedOpinionSelectList="nodeFixedOpinionSelectList"
51
51
  />
52
- <div :class="`es-info ${formLabelPosition == 'left'?'form-left':''}`" >
52
+ <div :class="`es-info ${formLabelPosition == 'left' ? 'form-left' : ''}`">
53
53
  <el-form
54
54
  ref="form"
55
55
  :model="circulateForm"
@@ -219,17 +219,19 @@
219
219
  !shrink
220
220
  "
221
221
  ref="esContent"
222
- :class="`es-info ${formLabelPosition == 'left'?'form-left':''}`"
222
+ :class="`es-info ${formLabelPosition == 'left' ? 'form-left' : ''}`"
223
223
  >
224
224
  <el-form
225
225
  ref="nextNode"
226
226
  :model="isFlow ? nodeInfo : nextNode"
227
227
  class="demo-dynamic"
228
- :label-width="startFlowPageEmbeddedIntoStartFlowIndex?'100px' : '120px'"
228
+ :label-width="
229
+ startFlowPageEmbeddedIntoStartFlowIndex ? '100px' : '120px'
230
+ "
229
231
  :label-position="formLabelPosition"
230
232
  >
231
233
  <el-form-item
232
- v-if="isFlow && nodeInfo.option.length > 0"
234
+ v-if="isFlow && nodeInfo.option.length > 0 && !flowListDisabled"
233
235
  prop="nextNode"
234
236
  label="选择流程"
235
237
  :rules="[
@@ -253,7 +255,7 @@
253
255
  v-for="items in nodeInfo.option"
254
256
  :key="items.id"
255
257
  :label="items.name"
256
- :disabled="flowListDisabled || items.disabled"
258
+ :disabled="items.disabled"
257
259
  :value="items.processDefId"
258
260
  ></el-option>
259
261
  </el-select>
@@ -655,7 +657,8 @@
655
657
  v-if="
656
658
  isFlow &&
657
659
  nodeInfo.nextNode &&
658
- startFlowPageEmbeddedIntoStartFlowIndex && !directCreateCircularReadWhenFlowStarted
660
+ startFlowPageEmbeddedIntoStartFlowIndex &&
661
+ !directCreateCircularReadWhenFlowStarted
659
662
  "
660
663
  ref="processFormIndex"
661
664
  :id="freeStartFlowParams.startFlowBusinessId || businessIds"
@@ -674,13 +677,18 @@
674
677
  @cancel="closeProcess($event, 'handleVisible', closeParent)"
675
678
  />
676
679
  <circulate
677
- v-else-if="isFlow &&
680
+ v-else-if="
681
+ isFlow &&
678
682
  nodeInfo.nextNode &&
679
- startFlowPageEmbeddedIntoStartFlowIndex && directCreateCircularReadWhenFlowStarted"
683
+ startFlowPageEmbeddedIntoStartFlowIndex &&
684
+ directCreateCircularReadWhenFlowStarted
685
+ "
680
686
  ref="flowCirculate"
681
687
  :label-position="formLabelPosition"
682
688
  :businessId="businessId"
683
- :startFlowPageEmbeddedIntoStartFlowIndex="startFlowPageEmbeddedIntoStartFlowIndex"
689
+ :startFlowPageEmbeddedIntoStartFlowIndex="
690
+ startFlowPageEmbeddedIntoStartFlowIndex
691
+ "
684
692
  :processDefinitionId="nodeInfo.nextNode"
685
693
  :simpleTips="simpleTips"
686
694
  :showBtn="false"
@@ -1134,9 +1142,9 @@ export default {
1134
1142
  type: String,
1135
1143
  default: 'left'
1136
1144
  },
1137
- flowListDisabled:{
1138
- type:Boolean,
1139
- default:false
1145
+ flowListDisabled: {
1146
+ type: Boolean,
1147
+ default: false
1140
1148
  },
1141
1149
  btnList: {
1142
1150
  type: Array,
@@ -2563,6 +2571,12 @@ export default {
2563
2571
  * @date 2022年5月25日
2564
2572
  **/
2565
2573
  selecNext(val, type, isDef) {
2574
+ console.log(val, 'valvalval');
2575
+ let isNextNode = false;
2576
+ if (type) {
2577
+ isNextNode = this.operationList.filter((x) => x.key == val)[0]
2578
+ .isNextNode;
2579
+ }
2566
2580
  this.loading = util.loading(this.$loading, '加载中...');
2567
2581
  if (this.multiple) {
2568
2582
  this.nextNode.nextUserId = [];
@@ -2573,7 +2587,8 @@ export default {
2573
2587
  this.selectUserList = [];
2574
2588
  this.radioList = [];
2575
2589
 
2576
- if (type) {
2590
+ if (type && !isNextNode) {
2591
+ console.log('不是下一步节点');
2577
2592
  this.isNextUser = false;
2578
2593
  this.isShowNode = false;
2579
2594
  this.isMainSubProcess = false;
@@ -2590,12 +2605,30 @@ export default {
2590
2605
  this.nextNode.isReturnRejectNode = 0;
2591
2606
  this.nextNode.isSerialSubmit = 0;
2592
2607
  this.nodeInfos = [];
2608
+ let newOperationList = [];
2609
+ // this.operationList.map(x => {
2610
+
2611
+ // })
2593
2612
  this.operationList.forEach((item) => {
2594
2613
  if (item.key === val) {
2595
2614
  if (!item.taskNodeList) {
2596
2615
  this.nodeInfos = [];
2597
2616
  } else {
2598
- this.nodeInfos = item.taskNodeList;
2617
+ if (isDef) {
2618
+ item.taskNodeList.map((x) => {
2619
+ if (x.nodeName == '编号') {
2620
+ this.operationList.push({
2621
+ key: x.nodeId,
2622
+ value: x.nodeName,
2623
+ isNextNode: true
2624
+ });
2625
+ }
2626
+ });
2627
+ }
2628
+
2629
+ this.nodeInfos = item.taskNodeList.filter(
2630
+ (x) => x.nodeName != '编号'
2631
+ );
2599
2632
  }
2600
2633
  return;
2601
2634
  }
@@ -2613,7 +2646,10 @@ export default {
2613
2646
  this.nextNode.nextNodeId = this.nodeInfos[0].nodeId;
2614
2647
  }
2615
2648
  }
2616
-
2649
+ if(isNextNode){
2650
+ this.nodeInfos = [];
2651
+ this.nextNode.nextNodeId = val
2652
+ }
2617
2653
  if (val === 9) {
2618
2654
  this.isReject = true;
2619
2655
  } else {
@@ -3210,18 +3246,7 @@ export default {
3210
3246
  * @date 2022年5月25日
3211
3247
  **/
3212
3248
  subProcess(val, type) {
3213
- if (
3214
- this.isFlow &&
3215
- this.nodeInfo.nextNode &&
3216
- this.startFlowPageEmbeddedIntoStartFlowIndex
3217
- ) {
3218
- if(this.directCreateCircularReadWhenFlowStarted){
3219
- this.$refs.flowCirculate.subMit()
3220
- }else{
3221
- this.$refs.processFormIndex.subProcess('nextNode');
3222
- }
3223
- return;
3224
- }
3249
+
3225
3250
  return this.$refs['nextNode'].validate((valid) => {
3226
3251
  if (valid) {
3227
3252
  if (this.isSubmitButtonShowAgreeAndDisagree == 1) {
@@ -3341,6 +3366,18 @@ export default {
3341
3366
  },
3342
3367
 
3343
3368
  sendData(freetype) {
3369
+ if (
3370
+ this.isFlow &&
3371
+ this.nodeInfo.nextNode &&
3372
+ this.startFlowPageEmbeddedIntoStartFlowIndex
3373
+ ) {
3374
+ if (this.directCreateCircularReadWhenFlowStarted) {
3375
+ this.$refs.flowCirculate.subMit();
3376
+ } else {
3377
+ this.$refs.processFormIndex.subProcess('nextNode');
3378
+ }
3379
+ return;
3380
+ }
3344
3381
  this.$refs['nextNode'].validate(async (valid) => {
3345
3382
  if (valid) {
3346
3383
  if (this.isFlow) {
@@ -15,6 +15,7 @@
15
15
  >
16
16
  <div :style="`height:${showBtn? '430px': 'auto'}; overflow-y: auto; margin-bottom: 10px`">
17
17
  <el-form-item
18
+ v-show="showBtn"
18
19
  prop="nodeName"
19
20
  label="当前节点"
20
21
  :rules="[
@@ -243,7 +244,7 @@
243
244
  v-model="nextNode.handleExplain"
244
245
  />
245
246
  </el-form-item>
246
- <el-form-item prop="noticeType" label="通知方式">
247
+ <el-form-item prop="noticeType" label="通知方式" v-show="showBtn">
247
248
  <el-checkbox-group v-model="nextNode.noticeType">
248
249
  <el-checkbox
249
250
  v-for="item of nextNode.noticeList"
@@ -260,7 +261,7 @@
260
261
  </el-checkbox-group>
261
262
  </el-form-item>
262
263
  <el-form-item
263
- v-show="nextNode.noticeType.length != 0"
264
+ v-show="nextNode.noticeType.length != 0 && showBtn"
264
265
  prop="nextNode"
265
266
  label="通知消息"
266
267
  >
@@ -322,6 +323,41 @@
322
323
  </div>
323
324
  </el-form-item>
324
325
  </el-form>
326
+ <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>
325
361
  </div>
326
362
  </template>
327
363
 
@@ -406,6 +442,7 @@ export default {
406
442
  customPresetHintMessage: '', //流程预设标题
407
443
  nextNodeCheckType: 'select',
408
444
  nextOperateCheckType: 'select',
445
+ showNews: false, // 是否展示通知信息
409
446
  notificationMessageReadOnly: false,
410
447
  readOnlyNotificationType: '',
411
448
  show: true,
@@ -10,7 +10,8 @@
10
10
  ref="nextNode"
11
11
  :model="nextNode"
12
12
  class="demo-dynamic"
13
- label-width="110px"
13
+ label-width="100px"
14
+ label-align="left"
14
15
  >
15
16
  <div style="max-height: 290px; overflow-y: auto; margin-bottom: 10px">
16
17
  <el-form-item prop="nodeName" label="当前节点">
@@ -32,6 +32,7 @@
32
32
  ]"
33
33
  >
34
34
  <el-select
35
+ v-if="nextNodeCheckType == 'select'"
35
36
  v-model="nextNode.nextNode"
36
37
  :placeholder="`请选择下步节点`"
37
38
  @change="changeSel"
@@ -43,6 +44,14 @@
43
44
  :value="items.nodeId"
44
45
  ></el-option>
45
46
  </el-select>
47
+ <es-radio-group
48
+ v-else-if="nextNodeCheckType == 'radio'"
49
+ v-model="nextNode.nextNode"
50
+ :data="nextNode.nodeInfo"
51
+ @change="changeSel"
52
+ value-key="nodeId"
53
+ label-key="nodeName"
54
+ ></es-radio-group>
46
55
  </el-form-item>
47
56
  <el-form-item
48
57
  v-if="countersignaturetypeCode != 0"
@@ -253,6 +262,7 @@ export default {
253
262
  loading: false,
254
263
  isCustomUser: 0,
255
264
  selectUser: false,
265
+ nextNodeCheckType: 'select',
256
266
  multiple: false,
257
267
  showNoticeType: false,
258
268
  readMultiple: true,
@@ -824,6 +834,8 @@ export default {
824
834
  this.loading = false;
825
835
  const { status, message, data } = res;
826
836
  if (status == 'success') {
837
+ data.nextNodeCheckType &&
838
+ (this.nextNodeCheckType = data.nextNodeCheckType);
827
839
  this.pendtitle = data.pendtitle || data.taskExamine.businessName;
828
840
  this.customPresetHintMessage = data.customPresetHintMessage;
829
841
  this.readOnlyNotificationType = data.readOnlyNotificationType;
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.78',
128
+ version: '0.6.80',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,