eoss-ui 0.6.64 → 0.6.66

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
@@ -4421,7 +4421,7 @@ var component = Object(componentNormalizer["a" /* default */])(
4421
4421
  // ESM COMPAT FLAG
4422
4422
  __webpack_require__.r(__webpack_exports__);
4423
4423
 
4424
- // 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=fc4f395a&
4424
+ // 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=fe0ac130&
4425
4425
  var render = function () {
4426
4426
  var _vm = this
4427
4427
  var _h = _vm.$createElement
@@ -4435,7 +4435,133 @@ var render = function () {
4435
4435
  style: _vm.styles,
4436
4436
  },
4437
4437
  [
4438
- _vm.typeCode == "read"
4438
+ _vm.showCirculate
4439
+ ? _c(
4440
+ "div",
4441
+ [
4442
+ _c("CommonOpinions", {
4443
+ directives: [
4444
+ {
4445
+ name: "show",
4446
+ rawName: "v-show",
4447
+ value: !_vm.shrink,
4448
+ expression: "!shrink",
4449
+ },
4450
+ ],
4451
+ ref: "commonOpinions",
4452
+ staticClass: "es-common-opinions",
4453
+ attrs: {
4454
+ opinion: _vm.value,
4455
+ rows: _vm.rows,
4456
+ required: _vm.isOpinionRequired == 1,
4457
+ isBanInputOpinion: _vm.isBanInputOpinion,
4458
+ nodeFixedOpinionSelectList:
4459
+ _vm.nodeFixedOpinionSelectList,
4460
+ },
4461
+ on: {
4462
+ change: function (val) {
4463
+ return (_vm.value = val)
4464
+ },
4465
+ },
4466
+ }),
4467
+ _c(
4468
+ "el-form",
4469
+ {
4470
+ ref: "form",
4471
+ attrs: {
4472
+ model: _vm.circulateForm,
4473
+ "label-width": "120px",
4474
+ },
4475
+ },
4476
+ [
4477
+ _c(
4478
+ "el-form-item",
4479
+ { attrs: { prop: "nextNodeId", label: "下步节点" } },
4480
+ [
4481
+ _vm.nextNodeCheckType == "select"
4482
+ ? _c(
4483
+ "el-select",
4484
+ {
4485
+ attrs: { placeholder: "请选择下步节点" },
4486
+ model: {
4487
+ value: _vm.circulateForm.nextNodeId,
4488
+ callback: function ($$v) {
4489
+ _vm.$set(
4490
+ _vm.circulateForm,
4491
+ "nextNodeId",
4492
+ $$v
4493
+ )
4494
+ },
4495
+ expression: "circulateForm.nextNodeId",
4496
+ },
4497
+ },
4498
+ [
4499
+ _c("el-option", {
4500
+ attrs: { label: "传阅", value: "111" },
4501
+ }),
4502
+ ],
4503
+ 1
4504
+ )
4505
+ : _vm.nextNodeCheckType == "radio"
4506
+ ? _c("es-radio-group", {
4507
+ attrs: {
4508
+ data: [{ nodeId: "111", nodeName: "传阅" }],
4509
+ "value-key": "nodeId",
4510
+ "label-key": "nodeName",
4511
+ },
4512
+ model: {
4513
+ value: _vm.circulateForm.nextNodeId,
4514
+ callback: function ($$v) {
4515
+ _vm.$set(
4516
+ _vm.circulateForm,
4517
+ "nextNodeId",
4518
+ $$v
4519
+ )
4520
+ },
4521
+ expression: "circulateForm.nextNodeId",
4522
+ },
4523
+ })
4524
+ : _vm._e(),
4525
+ ],
4526
+ 1
4527
+ ),
4528
+ ],
4529
+ 1
4530
+ ),
4531
+ _c("circulate", {
4532
+ ref: "circulate",
4533
+ staticStyle: { "margin-top": "10px" },
4534
+ attrs: {
4535
+ businessId: _vm.businessId,
4536
+ selectorParams: _vm.params,
4537
+ showBtn: false,
4538
+ processDefinitionId: _vm.nodeInfo.nextNode,
4539
+ simpleTips: _vm.simpleTips,
4540
+ oldOption: _vm.value,
4541
+ },
4542
+ on: {
4543
+ cancel: function ($event) {
4544
+ _vm.closeProcess($event, "circulateVisible")
4545
+ },
4546
+ },
4547
+ }),
4548
+ _c(
4549
+ "el-button",
4550
+ {
4551
+ staticStyle: { width: "100%" },
4552
+ attrs: { type: "primary" },
4553
+ on: {
4554
+ click: function ($event) {
4555
+ _vm.handleClickCirculate()
4556
+ },
4557
+ },
4558
+ },
4559
+ [_vm._v("\n 提交\n ")]
4560
+ ),
4561
+ ],
4562
+ 1
4563
+ )
4564
+ : _vm.typeCode == "read"
4439
4565
  ? _c("StartTaskRead", {
4440
4566
  key: _vm.StartTaskReadKey,
4441
4567
  attrs: {
@@ -4777,6 +4903,7 @@ var render = function () {
4777
4903
  _c(
4778
4904
  "el-select",
4779
4905
  {
4906
+ key: _vm.optionsKey,
4780
4907
  staticStyle: {
4781
4908
  width: "calc(100% + 40px)",
4782
4909
  },
@@ -4805,6 +4932,7 @@ var render = function () {
4805
4932
  key: items.id,
4806
4933
  attrs: {
4807
4934
  label: items.name,
4935
+ disabled: items.disabled,
4808
4936
  value: items.processDefId,
4809
4937
  },
4810
4938
  })
@@ -5568,11 +5696,7 @@ var render = function () {
5568
5696
  "department",
5569
5697
  "employee",
5570
5698
  ],
5571
- params: {
5572
- filid:
5573
- _vm.userModel
5574
- .orgId,
5575
- },
5699
+ params: _vm.params,
5576
5700
  },
5577
5701
  on: {
5578
5702
  change: function (
@@ -6508,6 +6632,7 @@ var render = function () {
6508
6632
  businessId: _vm.businessId,
6509
6633
  processDefinitionId: _vm.nodeInfo.nextNode,
6510
6634
  simpleTips: _vm.simpleTips,
6635
+ selectorParams: _vm.params,
6511
6636
  oldOption: _vm.value,
6512
6637
  },
6513
6638
  on: {
@@ -6855,7 +6980,7 @@ var staticRenderFns = []
6855
6980
  render._withStripped = true
6856
6981
 
6857
6982
 
6858
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=fc4f395a&
6983
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=fe0ac130&
6859
6984
 
6860
6985
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
6861
6986
  var regenerator_ = __webpack_require__(4);
@@ -20809,8 +20934,8 @@ var supervise_component = Object(componentNormalizer["a" /* default */])(
20809
20934
  )
20810
20935
 
20811
20936
  /* harmony default export */ var supervise = (supervise_component.exports);
20812
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/Circulate.vue?vue&type=template&id=4f5020b6&
20813
- var Circulatevue_type_template_id_4f5020b6_render = function () {
20937
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/Circulate.vue?vue&type=template&id=1012ba25&
20938
+ var Circulatevue_type_template_id_1012ba25_render = function () {
20814
20939
  var _vm = this
20815
20940
  var _h = _vm.$createElement
20816
20941
  var _c = _vm._self._c || _h
@@ -20972,35 +21097,37 @@ var Circulatevue_type_template_id_4f5020b6_render = function () {
20972
21097
  ],
20973
21098
  1
20974
21099
  ),
20975
- _c(
20976
- "div",
20977
- { staticStyle: { "text-align": "right" } },
20978
- [
20979
- _c(
20980
- "el-button",
20981
- {
20982
- attrs: { type: "primary", size: "small" },
20983
- on: { click: _vm.subMit },
20984
- },
20985
- [_vm._v(" 确定 ")]
20986
- ),
20987
- _c(
20988
- "el-button",
20989
- { attrs: { size: "small" }, on: { click: _vm.quit } },
20990
- [_vm._v(" 取消 ")]
20991
- ),
20992
- ],
20993
- 1
20994
- ),
21100
+ _vm.showBtn
21101
+ ? _c(
21102
+ "div",
21103
+ { staticStyle: { "text-align": "right" } },
21104
+ [
21105
+ _c(
21106
+ "el-button",
21107
+ {
21108
+ attrs: { type: "primary", size: "small" },
21109
+ on: { click: _vm.subMit },
21110
+ },
21111
+ [_vm._v(" 确定 ")]
21112
+ ),
21113
+ _c(
21114
+ "el-button",
21115
+ { attrs: { size: "small" }, on: { click: _vm.quit } },
21116
+ [_vm._v(" 取消 ")]
21117
+ ),
21118
+ ],
21119
+ 1
21120
+ )
21121
+ : _vm._e(),
20995
21122
  ],
20996
21123
  1
20997
21124
  )
20998
21125
  }
20999
- var Circulatevue_type_template_id_4f5020b6_staticRenderFns = []
21000
- Circulatevue_type_template_id_4f5020b6_render._withStripped = true
21126
+ var Circulatevue_type_template_id_1012ba25_staticRenderFns = []
21127
+ Circulatevue_type_template_id_1012ba25_render._withStripped = true
21001
21128
 
21002
21129
 
21003
- // CONCATENATED MODULE: ./packages/flow/src/component/Circulate.vue?vue&type=template&id=4f5020b6&
21130
+ // CONCATENATED MODULE: ./packages/flow/src/component/Circulate.vue?vue&type=template&id=1012ba25&
21004
21131
 
21005
21132
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/Circulate.vue?vue&type=script&lang=js&
21006
21133
  var Circulatevue_type_script_lang_js_components;
@@ -21105,7 +21232,9 @@ var Circulatevue_type_script_lang_js_components;
21105
21232
  oldOption: { type: String, default: '' },
21106
21233
  disabled: { type: Boolean, default: false },
21107
21234
  simpleTips: { type: Boolean, default: true },
21108
- multiple: { type: Boolean, default: true }
21235
+ showBtn: { type: Boolean, default: true },
21236
+ multiple: { type: Boolean, default: true },
21237
+ selectorParams: { type: Object, default: function _default() {} }
21109
21238
  },
21110
21239
  inheritAttrs: false,
21111
21240
  data: function data() {
@@ -21139,10 +21268,35 @@ var Circulatevue_type_script_lang_js_components;
21139
21268
  isHideCurrentOrg: 0,
21140
21269
  isOpinionRequired: 0,
21141
21270
  otherParams: { filid: 'other' },
21142
- loading: false
21271
+ loading: false,
21272
+ userModel: {}
21143
21273
  };
21144
21274
  },
21275
+
21276
+ watch: {
21277
+ selectorParams: {
21278
+ handler: function handler(val) {
21279
+ this.params = val;
21280
+ },
21281
+
21282
+ deep: true,
21283
+ immediate: true
21284
+ },
21285
+ oldOption: {
21286
+ handler: function handler(val) {
21287
+ this.opinion = val;
21288
+ },
21289
+
21290
+ deep: true,
21291
+ immediate: true
21292
+ }
21293
+ },
21145
21294
  mounted: function mounted() {
21295
+ var mainConfig = util["a" /* default */].getStorage('mainConfig');
21296
+ if (mainConfig) {
21297
+ this.userModel = JSON.parse(mainConfig).userModel;
21298
+ this.params.filid = this.userModel.orgId;
21299
+ }
21146
21300
  this.loading = true;
21147
21301
  this.newMultiple = this.multiple;
21148
21302
  this.opinion = this.oldOption;
@@ -21325,8 +21479,8 @@ var Circulatevue_type_script_lang_js_components;
21325
21479
 
21326
21480
  var Circulate_component = Object(componentNormalizer["a" /* default */])(
21327
21481
  component_Circulatevue_type_script_lang_js_,
21328
- Circulatevue_type_template_id_4f5020b6_render,
21329
- Circulatevue_type_template_id_4f5020b6_staticRenderFns,
21482
+ Circulatevue_type_template_id_1012ba25_render,
21483
+ Circulatevue_type_template_id_1012ba25_staticRenderFns,
21330
21484
  false,
21331
21485
  null,
21332
21486
  null,
@@ -22237,7 +22391,58 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
22237
22391
  //
22238
22392
  //
22239
22393
  //
22240
-
22394
+ //
22395
+ //
22396
+ //
22397
+ //
22398
+ //
22399
+ //
22400
+ //
22401
+ //
22402
+ //
22403
+ //
22404
+ //
22405
+ //
22406
+ //
22407
+ //
22408
+ //
22409
+ //
22410
+ //
22411
+ //
22412
+ //
22413
+ //
22414
+ //
22415
+ //
22416
+ //
22417
+ //
22418
+ //
22419
+ //
22420
+ //
22421
+ //
22422
+ //
22423
+ //
22424
+ //
22425
+ //
22426
+ //
22427
+ //
22428
+ //
22429
+ //
22430
+ //
22431
+ //
22432
+ //
22433
+ //
22434
+ //
22435
+ //
22436
+ //
22437
+ //
22438
+ //
22439
+ //
22440
+ //
22441
+ //
22442
+ //
22443
+ //
22444
+ //
22445
+ //
22241
22446
 
22242
22447
 
22243
22448
 
@@ -22270,7 +22475,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
22270
22475
  flowTypeCode: { type: String, default: '' },
22271
22476
  defaultProcessKey: { type: String, default: '' },
22272
22477
  hideBtn: { type: Boolean, default: false },
22273
-
22478
+ isCirculate: { type: Boolean, default: false },
22274
22479
  btnList: {
22275
22480
  type: Array,
22276
22481
  default: function _default() {
@@ -22307,6 +22512,9 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
22307
22512
 
22308
22513
  return _ref = {
22309
22514
  styles: {},
22515
+ optionsKey: 0,
22516
+ showCirculate: false,
22517
+ circulateForm: { nextNodeId: '111' },
22310
22518
  userModel: {},
22311
22519
  simpleTips: true,
22312
22520
  showFreeStartFlow: false, //自由发起流程弹窗
@@ -22454,19 +22662,21 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
22454
22662
  mounted: function mounted() {
22455
22663
  this.businessIds = this.businessId;
22456
22664
  this.nextNode.nextNodeId = this.nextNodeId;
22457
- if (this.typeCode == 'supervise' || this.typeCode == 'read') return;
22458
- this.getNodeType();
22459
- !this.isFlow && (this.newTypeCode = this.typeCode || this.$route.query.typecode);
22460
- if (this.isFlow) {
22461
- this.businessId && this.getProcess();
22462
- } else if (this.newTypeCode == 'fenyue') {
22463
- this.getTaskReadFlow();
22464
- } else if (this.newTypeCode != 'reset' && this.newTypeCode != 'continuation') {
22465
- this.getHedInfo();
22466
- }
22665
+ this.getInfo();
22467
22666
  },
22468
22667
 
22469
22668
  watch: {
22669
+ isCirculate: {
22670
+ handler: function handler(val) {
22671
+ this.showCirculate = val;
22672
+ if (!val) {
22673
+ this.getInfo();
22674
+ }
22675
+ },
22676
+
22677
+ deep: true,
22678
+ immediate: true
22679
+ },
22470
22680
  width: {
22471
22681
  immediate: true,
22472
22682
  handler: function handler(val) {
@@ -22560,6 +22770,21 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
22560
22770
  }
22561
22771
  },
22562
22772
  methods: {
22773
+ getInfo: function getInfo() {
22774
+ if (this.typeCode == 'supervise' || this.typeCode == 'read') return;
22775
+ this.getNodeType();
22776
+ !this.isFlow && (this.newTypeCode = this.typeCode || this.$route.query.typecode);
22777
+ if (this.isFlow) {
22778
+ this.businessId && this.getProcess();
22779
+ } else if (this.newTypeCode == 'fenyue') {
22780
+ this.getTaskReadFlow();
22781
+ } else if (this.newTypeCode != 'reset' && this.newTypeCode != 'continuation') {
22782
+ this.getHedInfo();
22783
+ }
22784
+ },
22785
+ handleClickCirculate: function handleClickCirculate() {
22786
+ this.$refs.circulate.subMit();
22787
+ },
22563
22788
  getNodeInfoForStartFlow: function getNodeInfoForStartFlow(processDefinitionId) {
22564
22789
  var _this = this;
22565
22790
 
@@ -22571,6 +22796,17 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
22571
22796
  if (res.status == 'success') {
22572
22797
  _this.isBanInputOpinion = res.data.nodeExtAttr.isBanInputOpinion;
22573
22798
  _this.directCreateCircularReadWhenFlowStarted = res.data.nodeExtAttr.directCreateCircularReadWhenFlowStarted == 1;
22799
+
22800
+ if (_this.directCreateCircularReadWhenFlowStarted) {
22801
+ _this.nodeInfo.option.map(function (item) {
22802
+ item.disabled = item.processDefId != processDefinitionId;
22803
+ });
22804
+ } else {
22805
+ _this.nodeInfo.option.map(function (item) {
22806
+ item.disabled = false;
22807
+ });
22808
+ }
22809
+ _this.optionsKey++;
22574
22810
  _this.isOpinionRequired = res.data.nodeExtAttr.isOpinionRequired == 1;
22575
22811
  }
22576
22812
  });
@@ -23528,7 +23764,10 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
23528
23764
  _this25.presetEdit = data.nodeExtAttr.presetEdit;
23529
23765
  _this25.countersignaturetypeCode = data.countersignaturetypeCode; //是否展示处理方式
23530
23766
  _this25.handleMode = data.countersignaturetypeText;
23531
- data.globalNodeType === 'endEvent' ? _this25.endFlow = true : '';
23767
+ if (data.globalNodeType === 'endEvent') {
23768
+ _this25.isNextUser = data.globalNodeType != 'endEvent';
23769
+ data.globalNodeType === 'endEvent' ? _this25.endFlow = true : '';
23770
+ }
23532
23771
  }
23533
23772
  _this25.isCustomPreset && _this25.$refs.customPreset.getPresetFlowInfo(_this25.nextNode.nextNodeId, _this25.nodeInfo.nextNode, true);
23534
23773
  } else {
@@ -23567,6 +23806,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
23567
23806
  this.isShowNode = false;
23568
23807
  this.isMainSubProcess = false;
23569
23808
  this.isNodeShowProcess = false;
23809
+ this.endFlow = false;
23570
23810
  this.nextNode.nextNodeId = '';
23571
23811
  this.nextNode.isReturnSubmitter = 0;
23572
23812
  this.nextNode.isUndertakeReply = 0;
package/lib/form.js CHANGED
@@ -4291,7 +4291,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
4291
4291
  // ESM COMPAT FLAG
4292
4292
  __webpack_require__.r(__webpack_exports__);
4293
4293
 
4294
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=2158e4f3&
4294
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=45a4048d&
4295
4295
  var render = function () {
4296
4296
  var _vm = this
4297
4297
  var _h = _vm.$createElement
@@ -4424,14 +4424,17 @@ var render = function () {
4424
4424
  ],
4425
4425
  key: indexs,
4426
4426
  staticClass: "es-collapse-item",
4427
- class: {
4428
- "es-collapse-readonly":
4429
- _vm.accordion
4430
- ? false
4431
- : !_vm.collapse,
4432
- "es-collapse-caption":
4433
- items.caption,
4434
- },
4427
+ class: [
4428
+ {
4429
+ "es-collapse-readonly":
4430
+ _vm.accordion
4431
+ ? false
4432
+ : !_vm.collapse,
4433
+ "es-collapse-caption":
4434
+ items.caption,
4435
+ },
4436
+ items.class,
4437
+ ],
4435
4438
  attrs: {
4436
4439
  "show-title": items.showTitle,
4437
4440
  name:
@@ -10306,7 +10309,7 @@ var staticRenderFns = []
10306
10309
  render._withStripped = true
10307
10310
 
10308
10311
 
10309
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=2158e4f3&
10312
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=45a4048d&
10310
10313
 
10311
10314
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
10312
10315
  var regenerator_ = __webpack_require__(4);