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.
package/lib/flow.js CHANGED
@@ -4689,7 +4689,7 @@ var component = Object(componentNormalizer["a" /* default */])(
4689
4689
  // ESM COMPAT FLAG
4690
4690
  __webpack_require__.r(__webpack_exports__);
4691
4691
 
4692
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=a58e1888&
4692
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/main.vue?vue&type=template&id=389411fe&
4693
4693
  var render = function () {
4694
4694
  var _vm = this
4695
4695
  var _h = _vm.$createElement
@@ -6556,6 +6556,7 @@ var render = function () {
6556
6556
  taskExamineParam:
6557
6557
  _vm.freeStartFlowParams
6558
6558
  .newFlowStartNodeItemName,
6559
+ selectorParams: _vm.selectorParams,
6559
6560
  taskParams: _vm.taskParams,
6560
6561
  formType: _vm.processFormType,
6561
6562
  },
@@ -7313,6 +7314,7 @@ var render = function () {
7313
7314
  "pending-id": _vm.pendingId,
7314
7315
  showTooltip: _vm.showTooltip,
7315
7316
  simpleTips: _vm.simpleTips,
7317
+ selectorParams: _vm.selectorParams,
7316
7318
  "is-free-start-flow":
7317
7319
  _vm.freeStartFlowParams.useScene ===
7318
7320
  "multiInsMidwayWithSubmitScene",
@@ -7633,7 +7635,7 @@ var staticRenderFns = []
7633
7635
  render._withStripped = true
7634
7636
 
7635
7637
 
7636
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=a58e1888&
7638
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=389411fe&
7637
7639
 
7638
7640
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
7639
7641
  var regenerator_ = __webpack_require__(4);
@@ -8695,8 +8697,8 @@ var CommonOpinions_component = Object(componentNormalizer["a" /* default */])(
8695
8697
  )
8696
8698
 
8697
8699
  /* harmony default export */ var CommonOpinions = (CommonOpinions_component.exports);
8698
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=41ac875e&
8699
- var processFormvue_type_template_id_41ac875e_render = function () {
8700
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=9d5d2a78&
8701
+ var processFormvue_type_template_id_9d5d2a78_render = function () {
8700
8702
  var _vm = this
8701
8703
  var _h = _vm.$createElement
8702
8704
  var _c = _vm._self._c || _h
@@ -8738,7 +8740,9 @@ var processFormvue_type_template_id_41ac875e_render = function () {
8738
8740
  style:
8739
8741
  "height:" +
8740
8742
  (_vm.showBtn ? "430px" : "auto") +
8741
- "; overflow-y: auto; margin-bottom: 10px",
8743
+ "; overflow-y:" +
8744
+ (_vm.showBtn ? "auto" : "hidden") +
8745
+ " ; margin-bottom: 10px",
8742
8746
  },
8743
8747
  [
8744
8748
  _c(
@@ -8965,51 +8969,107 @@ var processFormvue_type_template_id_41ac875e_render = function () {
8965
8969
  1
8966
8970
  )
8967
8971
  : _vm._e(),
8968
- _c(
8969
- "el-form-item",
8970
- {
8971
- attrs: {
8972
- prop: _vm.isShowNextUser ? "nextUser" : "nextOrgId",
8973
- label: _vm.isShowNextUser ? "下步办理人" : "办理对象",
8974
- },
8975
- },
8976
- [
8977
- _c("SelectUser", {
8978
- attrs: {
8979
- nextUser: _vm.isShowNextUser
8980
- ? _vm.nextNode.nextUser
8981
- : _vm.nextNode.nextOrgId,
8982
- radioList: _vm.radioList,
8983
- multiple: _vm.multiple,
8984
- isCustomUser: !_vm.isShowNextUser ? 1 : _vm.isCustomUser,
8985
- showTooltip: _vm.showTooltip,
8986
- isCurrentNodeForbiddenChangeCandidate:
8987
- _vm.isCurrentNodeForbiddenChangeCandidate,
8988
- options: _vm.options,
8989
- presetEdit: _vm.presetEdit,
8990
- mix: _vm.multiple,
8991
- isDefSelectedObj: _vm.isDefSelectedObj,
8992
- selectUserList: _vm.selectUserList,
8993
- types: !_vm.isShowNextUser
8994
- ? _vm.nextUserTypes
8995
- : _vm.isCdjxjTaskHandle != "true"
8996
- ? ["employee", "persongroup"]
8997
- : ["employee"],
8998
- params: _vm.isShowNextUser ? _vm.params : {},
8999
- tabs: _vm.nextUserTabs,
9000
- },
9001
- on: {
9002
- change: function ($event) {
9003
- _vm.changeSelectUser(
9004
- $event,
9005
- _vm.isShowNextUser ? "nextUser" : "nextOrgId"
9006
- )
8972
+ _vm.isHideCurrentOrg
8973
+ ? _c(
8974
+ "el-form-item",
8975
+ { attrs: { prop: "nextCurrentOrgObj", label: "本单位" } },
8976
+ [
8977
+ _c("SelectUser", {
8978
+ attrs: {
8979
+ nextUser: _vm.nextCurrentOrgObjSelect,
8980
+ multiple: "",
8981
+ mix: "",
8982
+ showTooltip: _vm.showTooltip,
8983
+ types: ["employee", "persongroup"],
8984
+ params: _vm.currentOrgSelectorParams,
8985
+ },
8986
+ on: {
8987
+ change: function ($event) {
8988
+ _vm.disposeAppUnit(
8989
+ $event,
8990
+ "nextCurrentOrgObjSelect"
8991
+ )
8992
+ },
8993
+ },
8994
+ }),
8995
+ ],
8996
+ 1
8997
+ )
8998
+ : _vm._e(),
8999
+ _vm.isHideOtherOrg
9000
+ ? _c(
9001
+ "el-form-item",
9002
+ { attrs: { label: "外单位" } },
9003
+ [
9004
+ _c("SelectUser", {
9005
+ attrs: {
9006
+ nextUser: _vm.nextOtherOrgObjSelect,
9007
+ multiple: "",
9008
+ showTooltip: _vm.showTooltip,
9009
+ mix: "",
9010
+ where: { filid: "other" },
9011
+ types: ["enterprise", "filgroup"],
9012
+ params: _vm.foreignOrgSelectorParams,
9013
+ },
9014
+ on: {
9015
+ change: function ($event) {
9016
+ _vm.disposeAppUnit($event, "nextOtherOrgObjSelect")
9017
+ },
9018
+ },
9019
+ }),
9020
+ ],
9021
+ 1
9022
+ )
9023
+ : _vm._e(),
9024
+ !_vm.isHideOtherOrg && !_vm.isHideCurrentOrg
9025
+ ? _c(
9026
+ "el-form-item",
9027
+ {
9028
+ attrs: {
9029
+ prop: _vm.isShowNextUser ? "nextUser" : "nextOrgId",
9030
+ label: _vm.isShowNextUser ? "下步办理人" : "办理对象",
9007
9031
  },
9008
9032
  },
9009
- }),
9010
- ],
9011
- 1
9012
- ),
9033
+ [
9034
+ _c("SelectUser", {
9035
+ attrs: {
9036
+ nextUser: _vm.isShowNextUser
9037
+ ? _vm.nextNode.nextUser
9038
+ : _vm.nextNode.nextOrgId,
9039
+ radioList: _vm.radioList,
9040
+ multiple: _vm.multiple,
9041
+ isCustomUser: !_vm.isShowNextUser
9042
+ ? 1
9043
+ : _vm.isCustomUser,
9044
+ showTooltip: _vm.showTooltip,
9045
+ isCurrentNodeForbiddenChangeCandidate:
9046
+ _vm.isCurrentNodeForbiddenChangeCandidate,
9047
+ options: _vm.options,
9048
+ presetEdit: _vm.presetEdit,
9049
+ mix: _vm.multiple,
9050
+ isDefSelectedObj: _vm.isDefSelectedObj,
9051
+ selectUserList: _vm.selectUserList,
9052
+ types: !_vm.isShowNextUser
9053
+ ? _vm.nextUserTypes
9054
+ : _vm.isCdjxjTaskHandle != "true"
9055
+ ? ["employee", "persongroup"]
9056
+ : ["employee"],
9057
+ params: _vm.isShowNextUser ? _vm.params : {},
9058
+ tabs: _vm.nextUserTabs,
9059
+ },
9060
+ on: {
9061
+ change: function ($event) {
9062
+ _vm.changeSelectUser(
9063
+ $event,
9064
+ _vm.isShowNextUser ? "nextUser" : "nextOrgId"
9065
+ )
9066
+ },
9067
+ },
9068
+ }),
9069
+ ],
9070
+ 1
9071
+ )
9072
+ : _vm._e(),
9013
9073
  _vm.isTaskread == 1
9014
9074
  ? _c(
9015
9075
  "el-form-item",
@@ -9468,11 +9528,11 @@ var processFormvue_type_template_id_41ac875e_render = function () {
9468
9528
  1
9469
9529
  )
9470
9530
  }
9471
- var processFormvue_type_template_id_41ac875e_staticRenderFns = []
9472
- processFormvue_type_template_id_41ac875e_render._withStripped = true
9531
+ var processFormvue_type_template_id_9d5d2a78_staticRenderFns = []
9532
+ processFormvue_type_template_id_9d5d2a78_render._withStripped = true
9473
9533
 
9474
9534
 
9475
- // CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=41ac875e&
9535
+ // CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=9d5d2a78&
9476
9536
 
9477
9537
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/selectUser.vue?vue&type=template&id=f9652492&
9478
9538
  var selectUservue_type_template_id_f9652492_render = function () {
@@ -11371,6 +11431,37 @@ var processFormvue_type_script_lang_js_components;
11371
11431
  //
11372
11432
  //
11373
11433
  //
11434
+ //
11435
+ //
11436
+ //
11437
+ //
11438
+ //
11439
+ //
11440
+ //
11441
+ //
11442
+ //
11443
+ //
11444
+ //
11445
+ //
11446
+ //
11447
+ //
11448
+ //
11449
+ //
11450
+ //
11451
+ //
11452
+ //
11453
+ //
11454
+ //
11455
+ //
11456
+ //
11457
+ //
11458
+ //
11459
+ //
11460
+ //
11461
+ //
11462
+ //
11463
+ //
11464
+ //
11374
11465
 
11375
11466
 
11376
11467
 
@@ -11446,7 +11537,8 @@ var processFormvue_type_script_lang_js_components;
11446
11537
  keyCount: {
11447
11538
  type: [Number, String],
11448
11539
  default: 0
11449
- }
11540
+ },
11541
+ selectorParams: { type: Object, default: function _default() {} }
11450
11542
  },
11451
11543
  data: function data() {
11452
11544
  return {
@@ -11522,6 +11614,13 @@ var processFormvue_type_script_lang_js_components;
11522
11614
  isShowNextUser: true,
11523
11615
  oldMessage: '',
11524
11616
  mixOrgIdList: [], //办理对象混选
11617
+ subProcessColumns: [],
11618
+ nextOtherOrgObjSelect: [],
11619
+ nextCurrentOrgObjSelect: [],
11620
+ isHideCurrentOrg: false,
11621
+ isHideOtherOrg: false,
11622
+ currentOrgSelectorParams: { filid: JSON.parse(util["a" /* default */].getStorage('mainConfig')).userModel.orgId, only_filid: true },
11623
+ foreignOrgSelectorParams: { filid: 'all', nofilid: 1 },
11525
11624
  nextNode: {
11526
11625
  nodeName: '',
11527
11626
  customLimitTime: '',
@@ -11668,6 +11767,8 @@ var processFormvue_type_script_lang_js_components;
11668
11767
  var mainConfig = util["a" /* default */].getStorage('mainConfig');
11669
11768
  if (mainConfig) {
11670
11769
  this.userModel = JSON.parse(mainConfig).userModel;
11770
+ this.foreignOrgSelectorParams.nofilid = this.userModel.orgId;
11771
+ this.foreignOrgSelectorParams.roleid = this.currentOrgSelectorParams.roleid = this.selectorParams.roleid;
11671
11772
  } else {
11672
11773
  util["a" /* default */].ajax({ url: api["ub" /* loginUserInfo */] }).then(function (res) {
11673
11774
  var status = res.status,
@@ -11675,6 +11776,8 @@ var processFormvue_type_script_lang_js_components;
11675
11776
 
11676
11777
  if (status == 'success') {
11677
11778
  _this2.userModel = data;
11779
+ _this2.foreignOrgSelectorParams.nofilid = _this2.userModel.orgId;
11780
+ _this2.foreignOrgSelectorParams.roleid = tthis.currentOrgSelectorParams.roleid = _this2.selectorParams.roleid;
11678
11781
  } else {
11679
11782
  var msg = res.msg || '系统错误,请联系管理员!';
11680
11783
  _this2.$message.error(msg);
@@ -11774,6 +11877,68 @@ var processFormvue_type_script_lang_js_components;
11774
11877
  this.nextNode[type] = nextUser;
11775
11878
  this.mixOrgIdList = mixList;
11776
11879
  },
11880
+ getsubProcessColumns: function getsubProcessColumns() {
11881
+ var data = [];
11882
+ var obj = { name: '[部门员工]-' };
11883
+ if (this.nextCurrentOrgObjSelect.length > 0) {
11884
+ this.nextCurrentOrgObjSelect.map(function (x) {
11885
+ if (x.stype == 'employee') {
11886
+ obj.name = !obj.value ? obj.name + x.showname : obj.name + ',' + x.showname;
11887
+ obj.value = obj.value ? obj.value + ',' + x.showid : 'employee-' + x.showid;
11888
+ } else {
11889
+ data.push({
11890
+ name: '[部门]' + x.showname,
11891
+ value: 'department-' + x.showid
11892
+ });
11893
+ }
11894
+ });
11895
+ }
11896
+ obj.value && data.push(obj);
11897
+ if (this.nextOtherOrgObjSelect.length > 0) {
11898
+ this.nextOtherOrgObjSelect.map(function (x) {
11899
+ data.push({
11900
+ name: '[企业]' + x.showname,
11901
+ value: 'enterprise-' + x.showid
11902
+ });
11903
+ });
11904
+ }
11905
+ this.subProcessColumns = data;
11906
+ // return data;
11907
+ },
11908
+
11909
+ // 单位选择完回调
11910
+ disposeAppUnit: function disposeAppUnit(res, type) {
11911
+ var label = type.substring(0, type.lastIndexOf('Select'));
11912
+ this.nextNode[label + 'Name'] = '';
11913
+ res.options && (this[type] = res.options);
11914
+ var obj = {};
11915
+ // if (typeof res.mixList == 'array')
11916
+ res.mixList && (this.nextNode[label] = res.mixList.join('|'));
11917
+ res.options.map(function (item) {
11918
+ if (obj[item.stype]) {
11919
+ obj[item.stype].push(item.showname);
11920
+ } else {
11921
+ obj[item.stype] = [item.showname];
11922
+ }
11923
+ });
11924
+ for (var key in obj) {
11925
+ if (key === 'enterprise' && this.nextNode[label + 'Name'].indexOf('[企业]') == -1) {
11926
+ this.nextNode[label + 'Name'] = this.nextNode[label + 'Name'] ? this.nextNode[label + 'Name'] + '|' + '[企业]-' + obj[key].join(',') : '' + '[企业]-' + obj[key].join(',');
11927
+ }
11928
+ if (key === 'department' && this.nextNode[label + 'Name'].indexOf('[部门]') == -1) {
11929
+ this.nextNode[label + 'Name'] = this.nextNode[label + 'Name'] ? this.nextNode[label + 'Name'] + '|' + '[部门]-' + obj[key].join(',') : '' + '[部门]-' + obj[key].join(',');
11930
+ }
11931
+ if (key === 'employee' && this.nextNode[label + 'Name'].indexOf('[部门员工]') == -1) {
11932
+ this.nextNode[label + 'Name'] = this.nextNode[label + 'Name'] ? this.nextNode[label + 'Name'] + '|' + '[部门员工]-' + obj[key].join(',') : '' + '[部门员工]-' + obj[key].join(',');
11933
+ }
11934
+ }
11935
+ // this.nextNode[label + 'Name'] = obj.enterprise?;
11936
+ if (!this.currentNodeIsCircularReadNode) {
11937
+ this.nextNode[label + 'SerialId'] = res.nextUser.join(',');
11938
+ this.nextNode[label + 'Json'] = JSON.stringify(res.options);
11939
+ }
11940
+ this.getsubProcessColumns();
11941
+ },
11777
11942
  getNodeType: function getNodeType() {
11778
11943
  var _this3 = this;
11779
11944
 
@@ -11854,13 +12019,15 @@ var processFormvue_type_script_lang_js_components;
11854
12019
  nextReadUserId = _nextNode.nextReadUserId,
11855
12020
  nextOrgId = _nextNode.nextOrgId,
11856
12021
  newOpinion = _nextNode.newOpinion,
11857
- customLimitTime = _nextNode.customLimitTime;
12022
+ customLimitTime = _nextNode.customLimitTime,
12023
+ nextOtherOrgObj = _nextNode.nextOtherOrgObj,
12024
+ nextCurrentOrgObj = _nextNode.nextCurrentOrgObj;
11858
12025
  // if (noticeType.length === 0) {
11859
12026
  // return this.$message.warning('请选择通知方式');
11860
12027
  // }
11861
12028
 
11862
12029
  if (_this5.isShowNextUser) {
11863
- if (nextUser == '' || _this5.multiple && nextUser.length == 0) {
12030
+ if ((nextUser == '' || _this5.multiple && nextUser.length == 0) && !_this5.isHideCurrentOrg && !_this5.isHideOtherOrg) {
11864
12031
  return _this5.$message.warning('请选择下步办理人');
11865
12032
  }
11866
12033
  } else {
@@ -11868,6 +12035,9 @@ var processFormvue_type_script_lang_js_components;
11868
12035
  return _this5.$message.warning('请选择办理对象');
11869
12036
  }
11870
12037
  }
12038
+ if ((_this5.isHideOtherOrg || _this5.isHideCurrentOrg) && !nextCurrentOrgObj && !nextOtherOrgObj) {
12039
+ return _this5.$message.warning('请选择办理对象');
12040
+ }
11871
12041
  if (_this5.showBtn) {
11872
12042
  _this5.loading = true;
11873
12043
  } else {
@@ -11911,6 +12081,12 @@ var processFormvue_type_script_lang_js_components;
11911
12081
  return;
11912
12082
  }
11913
12083
  }
12084
+ if (_this5.isHideCurrentOrg) {
12085
+ params.nextCurrentOrgObj = nextCurrentOrgObj;
12086
+ }
12087
+ if (_this5.isHideOtherOrg) {
12088
+ params.nextOtherOrgObj = nextOtherOrgObj;
12089
+ }
11914
12090
  if (_this5.activeNames != '1') delete params.customPresetUserJson;
11915
12091
  if (_this5.isFreeStartFlow || _this5.formType === 'readTransfer') {
11916
12092
  var newParm = {};
@@ -12020,7 +12196,14 @@ var processFormvue_type_script_lang_js_components;
12020
12196
  _this6.params = _params;
12021
12197
  }
12022
12198
  // this.isReadMultiple(nodeExtAttr.userSelectionType);
12199
+ if (nodeExtAttr.nodeType === 1 || nodeExtAttr.nodeType === 2) {
12023
12200
 
12201
+ _this6.isHideCurrentOrg = nodeExtAttr.isHideCurrentOrg == 1 ? false : true; //判断是否隐藏本单位
12202
+ _this6.isHideOtherOrg = nodeExtAttr.isHideOtherOrg == 1 ? false : true; //判断是否隐藏外单位
12203
+ } else {
12204
+ _this6.isHideCurrentOrg = false;
12205
+ _this6.isHideOtherOrg = false;
12206
+ }
12024
12207
  nextUserList.map(function (item) {
12025
12208
  if (_this6.multiple && nodeExtAttr.isDefSelectedObj == 1 && nextUserList !== undefined) {
12026
12209
  _this6.nextNode.nextUser.push(item.userId);
@@ -12170,6 +12353,9 @@ var processFormvue_type_script_lang_js_components;
12170
12353
  userId: util["a" /* default */].getStorage('userId'),
12171
12354
  businessId: this.businessId
12172
12355
  };
12356
+ if (!this.shwowBtn) {
12357
+ params.taskAction = "toStartFlowWithoutTempSave";
12358
+ }
12173
12359
  // 获取节点
12174
12360
  util["a" /* default */].ajax({ url: api["kc" /* toStartFlow */], params: params }).then(function (res) {
12175
12361
  //pc接口返回数据处理
@@ -12282,8 +12468,8 @@ var processFormvue_type_script_lang_js_components;
12282
12468
 
12283
12469
  var processForm_component = Object(componentNormalizer["a" /* default */])(
12284
12470
  src_processFormvue_type_script_lang_js_,
12285
- processFormvue_type_template_id_41ac875e_render,
12286
- processFormvue_type_template_id_41ac875e_staticRenderFns,
12471
+ processFormvue_type_template_id_9d5d2a78_render,
12472
+ processFormvue_type_template_id_9d5d2a78_staticRenderFns,
12287
12473
  false,
12288
12474
  null,
12289
12475
  null,
@@ -24689,6 +24875,8 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
24689
24875
  //
24690
24876
  //
24691
24877
  //
24878
+ //
24879
+ //
24692
24880
 
24693
24881
 
24694
24882