eoss-mobiles 0.1.19 → 0.1.21

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-mobiles",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "eoss内部移动端业务组件",
5
5
  "main": "lib/eoss-mobile.common.js",
6
6
  "files": [
@@ -19,6 +19,7 @@
19
19
  @onInputOpintion="onInputOpintion"
20
20
  :isOpinionRequired="isOpinionRequired"
21
21
  :disabled="isBanInputOpinion != 0"
22
+ :baseUrl="baseUrl"
22
23
  :isHiddenOftenOpinion="isHiddenOftenOpinion == 1 ? false : true"
23
24
  ></Opinion>
24
25
  <!-- 审核内容 -->
@@ -95,10 +96,14 @@
95
96
  !isHiddenNextStepInfo
96
97
  "
97
98
  >
98
- <div @click="isNextBox = !isNextBox" class="shrink-btn">
99
+ <div
100
+ @click="isNextBox = !isNextBox"
101
+ v-if="!isReject"
102
+ class="shrink-btn"
103
+ >
99
104
  {{ isNextBox ? '收起下一步操作和节点' : '展开下一步操作和节点' }}
100
105
  </div>
101
- <div class="next-box" v-show="isNextBox">
106
+ <div class="next-box" v-show="isNextBox || isReject">
102
107
  <!-- 下一步操作 -->
103
108
  <div
104
109
  class="item"
@@ -118,7 +123,10 @@
118
123
  />
119
124
  </div>
120
125
  <!-- 下步节点 -->
121
- <div class="item" v-if="nodeList && nodeList.length > 0">
126
+ <div
127
+ class="item"
128
+ v-if="nodeList && nodeList.length > 0 && !isReject"
129
+ >
122
130
  <em-picker
123
131
  title="下步节点"
124
132
  label="下步节点"
@@ -397,6 +405,7 @@ export default {
397
405
  nextNodeDefault: 0,
398
406
  showAppUnit: false, // 弹窗单位
399
407
  handleFlow: true,
408
+ isReject: false,
400
409
  isChooseNextNode: 1, //是否展示下步操作
401
410
  pid: 'root', //树选中pid
402
411
  objType: 'enterprise', //树点击对象
@@ -447,6 +456,7 @@ export default {
447
456
  advanceNoticeHour: undefined, //限时办理 时
448
457
  advanceNoticeType: [] //催办通知方式
449
458
  },
459
+ isChooseNextNode: 1,
450
460
  isOpinionRequired: 0, // 意见是否必填
451
461
  isBanInputOpinion: 0, //意见是否禁用
452
462
  showTimeList: false, //选择限时办理弹出层
@@ -510,6 +520,7 @@ export default {
510
520
  choiceOrgId: '',
511
521
  choiceDeptId: '',
512
522
  taskExamineInfo: {},
523
+ nodeInfoMapInfo:{},
513
524
  pOrgId: ''
514
525
  };
515
526
  },
@@ -577,12 +588,12 @@ export default {
577
588
  this.isSpecial &&
578
589
  this.isNextUser &&
579
590
  !this.form.nextUserId &&
580
- idStr === ''
591
+ idStr === '' && !this.isReject
581
592
  ) {
582
593
  this.$toast('请选择办理人');
583
594
  return;
584
595
  }
585
- if (!this.form.nextNodeId && this.nodeList.length > 0 && this.isSpecial) {
596
+ if (!this.form.nextNodeId && this.nodeList.length > 0 && this.isSpecial && !this.isReject) {
586
597
  this.$toast('请选择流程节点');
587
598
  return;
588
599
  }
@@ -649,7 +660,8 @@ export default {
649
660
  choiceOrgId,
650
661
  choiceDeptId,
651
662
  pOrgId,
652
- taskExamineInfo
663
+ taskExamineInfo,
664
+ nodeInfoMapInfo
653
665
  } = this;
654
666
  _that.form.isEndUserTask = isEndUserTask;
655
667
  _that.form.choiceOrgId = choiceOrgId;
@@ -660,7 +672,8 @@ export default {
660
672
  _that.form.appId = taskExamineInfo.appId;
661
673
  _that.form.processDefinitionId = taskExamineInfo.processDefinitionId;
662
674
  _that.form.isSubFlow = taskExamineInfo.isSubFlow;
663
- _that.form.nodeId = taskExamineInfo.nodeId;
675
+ _that.form.nodeId = taskExamineInfo.nodeId ;
676
+ _that.form.nextNodeId = _that.form.nextNodeId || nodeInfoMapInfo.nodeExtAttr.defaultNextNode
664
677
  request({
665
678
  url: _that.baseUrl ? _that.baseUrl + taskHandleHtml : taskHandleHtml,
666
679
  params: {
@@ -724,6 +737,14 @@ export default {
724
737
  } else if (val == 7) {
725
738
  } else if (val == 8) {
726
739
  } else if (val == 9) {
740
+ } else {
741
+ }
742
+ if (val == 9) {
743
+ this.isNextUser = false;
744
+ this.isReject = true
745
+ } else {
746
+ this.isNextUser = true;
747
+ this.isReject = false;
727
748
  }
728
749
  this.form.nextOperate = val.key;
729
750
  this.form.nextOperateName = val.value;
@@ -823,6 +844,8 @@ export default {
823
844
  that.taskExamineInfo = taskExamine;
824
845
  that.form.notificationMsg = defaultNotificationMessage;
825
846
  that.defaultNotificationType = defaultNotificationType.split(',');
847
+ that.nodeInfoMapInfo = nodeInfoMap
848
+ // that.defaultNextNode = nodeInfoMap.nodeExtAttr.defaultNextNode;
826
849
  that.isCanAddSign = res.data.isCanAddSign;
827
850
  if (that.isCanAddSign) {
828
851
  that.form.isAddSign = '2';
@@ -846,8 +869,9 @@ export default {
846
869
  !that.taskOperations[0].taskNodeList ||
847
870
  that.taskOperations[0].taskNodeList.length === 0
848
871
  ) {
849
- that.form.nextNodeId = undefined;
872
+ that.form.nextNodeId =undefined;
850
873
  that.form.nextNodeName = undefined;
874
+ console.log(that.form.nextNodeId,'that.form.nextNodeId')
851
875
  } else {
852
876
  that.nodeList = that.taskOperations[0].taskNodeList;
853
877
  let info = [];
@@ -859,6 +883,7 @@ export default {
859
883
  that.nextNodeDefault = y;
860
884
  }
861
885
  });
886
+ if(info.length == 0 && that.nodeList.length !=0) info =[that.nodeList[0]]
862
887
  if (info.length > 0) {
863
888
  that.form.nextNodeId = info[0].nodeId;
864
889
  that.form.nextNodeName = info[0].nodeName;
@@ -883,6 +908,8 @@ export default {
883
908
  that.nextNodeDefault = y;
884
909
  }
885
910
  });
911
+ if(info.length == 0 && that.nodeList.length !=0) info =[that.nodeList[0]]
912
+ console.log(info,'infoinfo')
886
913
  if (info.length > 0) {
887
914
  that.form.nextNodeId = info[0].nodeId;
888
915
  that.form.nextNodeName = info[0].nodeName;
@@ -891,13 +918,14 @@ export default {
891
918
  // that.form.nextNodeName = that.nodeList[0].nodeName;
892
919
  }
893
920
  }
894
-
895
- // if (item.key == 9) {
896
- // that.isHiddenNextStepInfo = true;
897
- // }
921
+ console.log(that.taskOperations, that.form, 'asdsdsa');
922
+ if (item.key == 9) {
923
+ that.isReject = true;
924
+ }
898
925
  }
926
+ console.log(that.form, 'that.form');
899
927
  });
900
- if (isSelected) {
928
+ if (!isSelected) {
901
929
  that.form.nextOperate = that.taskOperations[0].key;
902
930
  that.form.nextOperateName = that.taskOperations[0].value;
903
931
  that.nodeList = that.taskOperations[0].taskNodeList || [];
@@ -916,7 +944,7 @@ export default {
916
944
  nodeInfoMap.nodeExtAttr.isSubmitButtonShowAgreeAndDisagree;
917
945
  that.isOpinionRequired =
918
946
  nodeInfoMap.nodeExtAttr.isOpinionRequired;
919
- that.isChooseNextNode = nodeInfoMap.nodeExtAttr.isChooseNextNode;
947
+ // that.isChooseNextNode = nodeInfoMap.nodeExtAttr.isChooseNextNode;
920
948
  that.isBanInputOpinion =
921
949
  nodeInfoMap.nodeExtAttr.isBanInputOpinion;
922
950
  }
@@ -11,6 +11,7 @@
11
11
  @onInputOpintion="onInputOpintion"
12
12
  :isOpinionRequired="isBanInputOpinion"
13
13
  :disabled="isBanInputOpinion != 0"
14
+ :baseUrl="baseUrl"
14
15
  :isHiddenOftenOpinion="isHiddenOftenOpinion == 1 ? false : true"
15
16
  ></Opinion>
16
17
  <div class="input-box">
@@ -13,6 +13,7 @@
13
13
  :code="processObj.attachedCode"
14
14
  :ownId="businessId"
15
15
  :isFile="false"
16
+ :baseUrl="baseUrl"
16
17
  @onInputOpintion="onInputOpintion"
17
18
  :isOpinionRequired="isOpinionRequired"
18
19
  :disabled="isBanInputOpinion != 0"
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ if (typeof window !== 'undefined' && window.Vue) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '0.1.19',
92
+ version: '0.1.21',
93
93
  install,
94
94
  Button,
95
95
  ButtonGroup,