eoss-ui 0.7.66 → 0.7.67

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.
@@ -17,7 +17,7 @@
17
17
  <div
18
18
  :style="`height:${
19
19
  showBtn ? '430px' : 'auto'
20
- }; overflow-y: auto; margin-bottom: 10px`"
20
+ }; overflow-y:${showBtn ? 'auto' : 'hidden'} ; margin-bottom: 10px`"
21
21
  >
22
22
  <el-form-item
23
23
  v-show="showBtn"
@@ -136,7 +136,38 @@
136
136
  :params="params"
137
137
  />
138
138
  </el-form-item> -->
139
+ <el-form-item
140
+ v-if="isHideCurrentOrg"
141
+ prop="nextCurrentOrgObj"
142
+ label="本单位"
143
+ >
144
+ <SelectUser
145
+ :nextUser="nextCurrentOrgObjSelect"
146
+ multiple
147
+ mix
148
+ @change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
149
+ :showTooltip="showTooltip"
150
+ :types="['employee', 'persongroup']"
151
+ :params="currentOrgSelectorParams"
152
+ />
153
+ </el-form-item>
154
+ <el-form-item
155
+ v-if="isHideOtherOrg"
156
+ label="外单位"
157
+ >
158
+ <SelectUser
159
+ :nextUser="nextOtherOrgObjSelect"
160
+ multiple
161
+ :showTooltip="showTooltip"
162
+ mix
163
+ :where="{ filid: 'other' }"
164
+ @change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
165
+ :types="['enterprise', 'filgroup']"
166
+ :params="foreignOrgSelectorParams"
167
+ />
168
+ </el-form-item>
139
169
  <el-form-item
170
+ v-if="!isHideOtherOrg && !isHideCurrentOrg"
140
171
  :prop="isShowNextUser ? 'nextUser' : 'nextOrgId'"
141
172
  :label="isShowNextUser ? '下步办理人' : '办理对象'"
142
173
  >
@@ -474,7 +505,8 @@ export default {
474
505
  keyCount: {
475
506
  type: [Number, String],
476
507
  default: 0
477
- }
508
+ },
509
+ selectorParams:{type:Object,default:()=>{}}
478
510
  },
479
511
  data() {
480
512
  return {
@@ -550,6 +582,13 @@ export default {
550
582
  isShowNextUser: true,
551
583
  oldMessage: '',
552
584
  mixOrgIdList: [], //办理对象混选
585
+ subProcessColumns: [],
586
+ nextOtherOrgObjSelect: [],
587
+ nextCurrentOrgObjSelect: [],
588
+ isHideCurrentOrg:false,
589
+ isHideOtherOrg:false,
590
+ currentOrgSelectorParams:{filid: JSON.parse(util.getStorage('mainConfig')).userModel.orgId,only_filid:true},
591
+ foreignOrgSelectorParams:{filid: 'all', nofilid: 1},
553
592
  nextNode: {
554
593
  nodeName: '',
555
594
  customLimitTime: '',
@@ -693,6 +732,8 @@ export default {
693
732
  let mainConfig = util.getStorage('mainConfig');
694
733
  if (mainConfig) {
695
734
  this.userModel = JSON.parse(mainConfig).userModel;
735
+ this.foreignOrgSelectorParams.nofilid = this.userModel.orgId
736
+ this.foreignOrgSelectorParams.roleid = this.currentOrgSelectorParams.roleid = this.selectorParams.roleid
696
737
  } else {
697
738
  util
698
739
  .ajax({ url: loginUserInfo })
@@ -700,6 +741,8 @@ export default {
700
741
  const { status, data } = res;
701
742
  if (status == 'success') {
702
743
  this.userModel = data;
744
+ this.foreignOrgSelectorParams.nofilid = this.userModel.orgId
745
+ this.foreignOrgSelectorParams.roleid = tthis.currentOrgSelectorParams.roleid = this.selectorParams.roleid
703
746
  } else {
704
747
  let msg = res.msg || '系统错误,请联系管理员!';
705
748
  this.$message.error(msg);
@@ -802,6 +845,95 @@ export default {
802
845
  this.nextNode[type] = nextUser;
803
846
  this.mixOrgIdList = mixList;
804
847
  },
848
+ getsubProcessColumns() {
849
+ let data = [];
850
+ let obj = { name: '[部门员工]-' };
851
+ if (this.nextCurrentOrgObjSelect.length > 0) {
852
+ this.nextCurrentOrgObjSelect.map((x) => {
853
+ if (x.stype == 'employee') {
854
+ obj.name = !obj.value
855
+ ? obj.name + x.showname
856
+ : obj.name + ',' + x.showname;
857
+ obj.value = obj.value
858
+ ? obj.value + ',' + x.showid
859
+ : 'employee-' + x.showid;
860
+ } else {
861
+ data.push({
862
+ name: '[部门]' + x.showname,
863
+ value: 'department-' + x.showid
864
+ });
865
+ }
866
+ });
867
+ }
868
+ obj.value && data.push(obj);
869
+ if (this.nextOtherOrgObjSelect.length > 0) {
870
+ this.nextOtherOrgObjSelect.map((x) => {
871
+ data.push({
872
+ name: '[企业]' + x.showname,
873
+ value: 'enterprise-' + x.showid
874
+ });
875
+ });
876
+ }
877
+ this.subProcessColumns = data;
878
+ // return data;
879
+ },
880
+ // 单位选择完回调
881
+ disposeAppUnit(res, type) {
882
+ let label = type.substring(0, type.lastIndexOf('Select'));
883
+ this.nextNode[label + 'Name'] = '';
884
+ res.options && (this[type] = res.options);
885
+ let obj = {};
886
+ // if (typeof res.mixList == 'array')
887
+ res.mixList && (this.nextNode[label] = res.mixList.join('|'));
888
+ res.options.map((item) => {
889
+ if (obj[item.stype]) {
890
+ obj[item.stype].push(item.showname);
891
+ } else {
892
+ obj[item.stype] = [item.showname];
893
+ }
894
+ });
895
+ for (let key in obj) {
896
+ if (
897
+ key === 'enterprise' &&
898
+ this.nextNode[label + 'Name'].indexOf('[企业]') == -1
899
+ ) {
900
+ this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
901
+ ? this.nextNode[label + 'Name'] +
902
+ '|' +
903
+ '[企业]-' +
904
+ obj[key].join(',')
905
+ : '' + '[企业]-' + obj[key].join(',');
906
+ }
907
+ if (
908
+ key === 'department' &&
909
+ this.nextNode[label + 'Name'].indexOf('[部门]') == -1
910
+ ) {
911
+ this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
912
+ ? this.nextNode[label + 'Name'] +
913
+ '|' +
914
+ '[部门]-' +
915
+ obj[key].join(',')
916
+ : '' + '[部门]-' + obj[key].join(',');
917
+ }
918
+ if (
919
+ key === 'employee' &&
920
+ this.nextNode[label + 'Name'].indexOf('[部门员工]') == -1
921
+ ) {
922
+ this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
923
+ ? this.nextNode[label + 'Name'] +
924
+ '|' +
925
+ '[部门员工]-' +
926
+ obj[key].join(',')
927
+ : '' + '[部门员工]-' + obj[key].join(',');
928
+ }
929
+ }
930
+ // this.nextNode[label + 'Name'] = obj.enterprise?;
931
+ if (!this.currentNodeIsCircularReadNode) {
932
+ this.nextNode[label + 'SerialId'] = res.nextUser.join(',');
933
+ this.nextNode[label + 'Json'] = JSON.stringify(res.options);
934
+ }
935
+ this.getsubProcessColumns();
936
+ },
805
937
  getNodeType() {
806
938
  util
807
939
  .ajax({
@@ -881,13 +1013,15 @@ export default {
881
1013
  nextReadUserId,
882
1014
  nextOrgId,
883
1015
  newOpinion,
884
- customLimitTime
1016
+ customLimitTime,
1017
+ nextOtherOrgObj,
1018
+ nextCurrentOrgObj
885
1019
  } = this.nextNode;
886
1020
  // if (noticeType.length === 0) {
887
1021
  // return this.$message.warning('请选择通知方式');
888
1022
  // }
889
1023
  if (this.isShowNextUser) {
890
- if (nextUser == '' || (this.multiple && nextUser.length == 0)) {
1024
+ if ((nextUser == '' || (this.multiple && nextUser.length == 0)) && !this.isHideCurrentOrg && !this.isHideOtherOrg) {
891
1025
  return this.$message.warning('请选择下步办理人');
892
1026
  }
893
1027
  } else {
@@ -895,6 +1029,9 @@ export default {
895
1029
  return this.$message.warning('请选择办理对象');
896
1030
  }
897
1031
  }
1032
+ if((this.isHideOtherOrg || this.isHideCurrentOrg) && !nextCurrentOrgObj && !nextOtherOrgObj){
1033
+ return this.$message.warning('请选择办理对象');
1034
+ }
898
1035
  if (this.showBtn) {
899
1036
  this.loading = true;
900
1037
  } else {
@@ -949,6 +1086,12 @@ export default {
949
1086
  return;
950
1087
  }
951
1088
  }
1089
+ if(this.isHideCurrentOrg){
1090
+ params.nextCurrentOrgObj = nextCurrentOrgObj
1091
+ }
1092
+ if(this.isHideOtherOrg){
1093
+ params.nextOtherOrgObj = nextOtherOrgObj
1094
+ }
952
1095
  if (this.activeNames != '1') delete params.customPresetUserJson;
953
1096
  if (this.isFreeStartFlow || this.formType === 'readTransfer') {
954
1097
  let newParm = {};
@@ -1083,7 +1226,15 @@ export default {
1083
1226
  this.params = params;
1084
1227
  }
1085
1228
  // this.isReadMultiple(nodeExtAttr.userSelectionType);
1086
-
1229
+ if (nodeExtAttr.nodeType === 1 || nodeExtAttr.nodeType === 2) {
1230
+
1231
+ this.isHideCurrentOrg =
1232
+ nodeExtAttr.isHideCurrentOrg == 1 ? false : true; //判断是否隐藏本单位
1233
+ this.isHideOtherOrg = nodeExtAttr.isHideOtherOrg == 1 ? false : true; //判断是否隐藏外单位
1234
+ } else {
1235
+ this.isHideCurrentOrg = false;
1236
+ this.isHideOtherOrg = false;
1237
+ }
1087
1238
  nextUserList.map((item) => {
1088
1239
  if (
1089
1240
  this.multiple &&
@@ -1237,6 +1388,9 @@ export default {
1237
1388
  userId: util.getStorage('userId'),
1238
1389
  businessId: this.businessId
1239
1390
  };
1391
+ if(!this.shwowBtn){
1392
+ params.taskAction = "toStartFlowWithoutTempSave"
1393
+ }
1240
1394
  // 获取节点
1241
1395
  util
1242
1396
  .ajax({ url: toStartFlow, params })
@@ -857,7 +857,7 @@ export default {
857
857
  num: 0
858
858
  },
859
859
  {
860
- badge: true,
860
+ badge: false,
861
861
  icon: 'es-icon-solid-yiban',
862
862
  id: '259600a64a6840a4952251fe0a7bd890',
863
863
  text: '已办事项',
@@ -898,18 +898,18 @@ export default {
898
898
  {
899
899
  badge: true,
900
900
  icon: 'es-icon-juqiangongwen',
901
- id: '1648d7d7a41d4e389eae002f0cf7270d',
901
+ id: 'bbc03189766441e6a46550c556d61f03',
902
902
  text: '拒签公文',
903
903
  icons: '',
904
- url: '/archives-ui/webpack/index.html#/receipt/rejectedList',
904
+ url: '/archives-ui/webpack/index.html#/dispatch/rejectedList',
905
905
  target: 'stage',
906
- sort: 7,
906
+ sort: 4,
907
907
  remindurl: '',
908
- pid: 'ec4a6e89b1b346a4a2e8f4245e315da3',
908
+ pid: '7fd13c86f596417b95d2b7622906f70f',
909
909
  level: 3,
910
910
  quickicons: '',
911
911
  appType: '0',
912
- appCode: 'recRejectedList',
912
+ appCode: 'rejectedList',
913
913
  urlopenmode: 0,
914
914
  hasPermission: false,
915
915
  appId: 'q291a124fc151se5b4b890191c65e485',
@@ -919,8 +919,7 @@ export default {
919
919
  },
920
920
  fourthTabs: [],
921
921
  children: [],
922
- method: 'wujie',
923
- num: 0
922
+ method: 'wujie'
924
923
  },
925
924
  {
926
925
  badge: true,
@@ -1303,6 +1302,7 @@ export default {
1303
1302
  mounted() {
1304
1303
  this.handleListener();
1305
1304
  this.getNums();
1305
+ window.top.jumpTopMenu = this.handleSelect;
1306
1306
  },
1307
1307
  methods: {
1308
1308
  //获取数量
@@ -2867,7 +2867,7 @@ export default {
2867
2867
  );
2868
2868
  },
2869
2869
  handleSelect(res, method) {
2870
- // console.log('res:', res);
2870
+ console.log(res, 'resss');
2871
2871
 
2872
2872
  if (method) {
2873
2873
  if (res.urlopenmode == 0) {
@@ -44,7 +44,7 @@ export default {
44
44
  type: String,
45
45
  default: 'es-icon-application'
46
46
  },
47
- icons: Object,
47
+ icons: [Object, Boolean],
48
48
  subIcon: {
49
49
  type: Boolean,
50
50
  default: true