eoss-ui 0.7.13 → 0.7.15

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
@@ -4492,7 +4492,7 @@ var component = Object(componentNormalizer["a" /* default */])(
4492
4492
  // ESM COMPAT FLAG
4493
4493
  __webpack_require__.r(__webpack_exports__);
4494
4494
 
4495
- // 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=f8b78648&
4495
+ // 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=416e8ccb&
4496
4496
  var render = function () {
4497
4497
  var _vm = this
4498
4498
  var _h = _vm.$createElement
@@ -4585,34 +4585,36 @@ var render = function () {
4585
4585
  ]
4586
4586
  ),
4587
4587
  ]),
4588
- _c("CommonOpinions", {
4589
- directives: [
4590
- {
4591
- name: "show",
4592
- rawName: "v-show",
4593
- value: !_vm.shrink,
4594
- expression: "!shrink",
4595
- },
4596
- ],
4597
- ref: "commonOpinions",
4598
- staticClass: "es-common-opinions",
4599
- attrs: {
4600
- opinion: _vm.value,
4601
- rows: _vm.rows,
4602
- placeholder: _vm.pendingItemHandleDescription,
4603
- pendingItemHandleDescription:
4604
- _vm.pendingItemHandleDescription,
4605
- required: _vm.isOpinionRequired == 1,
4606
- isBanInputOpinion: _vm.isBanInputOpinion,
4607
- nodeFixedOpinionSelectList:
4608
- _vm.nodeFixedOpinionSelectList,
4609
- },
4610
- on: {
4611
- change: function (val) {
4612
- return (_vm.value = val)
4613
- },
4614
- },
4615
- }),
4588
+ _vm.showOpinion
4589
+ ? _c("CommonOpinions", {
4590
+ directives: [
4591
+ {
4592
+ name: "show",
4593
+ rawName: "v-show",
4594
+ value: !_vm.shrink,
4595
+ expression: "!shrink",
4596
+ },
4597
+ ],
4598
+ ref: "commonOpinions",
4599
+ staticClass: "es-common-opinions",
4600
+ attrs: {
4601
+ opinion: _vm.value,
4602
+ rows: _vm.rows,
4603
+ placeholder: _vm.pendingItemHandleDescription,
4604
+ pendingItemHandleDescription:
4605
+ _vm.pendingItemHandleDescription,
4606
+ required: _vm.isOpinionRequired == 1,
4607
+ isBanInputOpinion: _vm.isBanInputOpinion,
4608
+ nodeFixedOpinionSelectList:
4609
+ _vm.nodeFixedOpinionSelectList,
4610
+ },
4611
+ on: {
4612
+ change: function (val) {
4613
+ return (_vm.value = val)
4614
+ },
4615
+ },
4616
+ })
4617
+ : _vm._e(),
4616
4618
  _c(
4617
4619
  "div",
4618
4620
  {
@@ -4763,6 +4765,7 @@ var render = function () {
4763
4765
  attrs: {
4764
4766
  appId: _vm.resetAppId,
4765
4767
  params: _vm.param,
4768
+ showOther: _vm.showOther,
4766
4769
  formLabelPosition: _vm.formLabelPosition,
4767
4770
  simpleTips: _vm.simpleTips,
4768
4771
  },
@@ -4910,34 +4913,36 @@ var render = function () {
4910
4913
  ),
4911
4914
  ]
4912
4915
  ),
4913
- _c("CommonOpinions", {
4914
- directives: [
4915
- {
4916
- name: "show",
4917
- rawName: "v-show",
4918
- value: !_vm.shrink,
4919
- expression: "!shrink",
4920
- },
4921
- ],
4922
- ref: "commonOpinions",
4923
- staticClass: "es-common-opinions",
4924
- attrs: {
4925
- opinion: _vm.value,
4926
- rows: _vm.rows,
4927
- pendingItemHandleDescription:
4928
- _vm.pendingItemHandleDescription,
4929
- placeholder: _vm.pendingItemHandleDescription,
4930
- required: _vm.isOpinionRequired == 1,
4931
- isBanInputOpinion: _vm.isBanInputOpinion,
4932
- nodeFixedOpinionSelectList:
4933
- _vm.nodeFixedOpinionSelectList,
4934
- },
4935
- on: {
4936
- change: function (val) {
4937
- return (_vm.value = val)
4938
- },
4939
- },
4940
- }),
4916
+ _vm.showOpinion
4917
+ ? _c("CommonOpinions", {
4918
+ directives: [
4919
+ {
4920
+ name: "show",
4921
+ rawName: "v-show",
4922
+ value: !_vm.shrink,
4923
+ expression: "!shrink",
4924
+ },
4925
+ ],
4926
+ ref: "commonOpinions",
4927
+ staticClass: "es-common-opinions",
4928
+ attrs: {
4929
+ opinion: _vm.value,
4930
+ rows: _vm.rows,
4931
+ pendingItemHandleDescription:
4932
+ _vm.pendingItemHandleDescription,
4933
+ placeholder: _vm.pendingItemHandleDescription,
4934
+ required: _vm.isOpinionRequired == 1,
4935
+ isBanInputOpinion: _vm.isBanInputOpinion,
4936
+ nodeFixedOpinionSelectList:
4937
+ _vm.nodeFixedOpinionSelectList,
4938
+ },
4939
+ on: {
4940
+ change: function (val) {
4941
+ return (_vm.value = val)
4942
+ },
4943
+ },
4944
+ })
4945
+ : _vm._e(),
4941
4946
  ],
4942
4947
  1
4943
4948
  ),
@@ -7396,14 +7401,14 @@ var staticRenderFns = []
7396
7401
  render._withStripped = true
7397
7402
 
7398
7403
 
7399
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=f8b78648&
7404
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=416e8ccb&
7400
7405
 
7401
7406
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
7402
7407
  var regenerator_ = __webpack_require__(4);
7403
7408
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
7404
7409
 
7405
- // 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/CommonOpinions.vue?vue&type=template&id=19364a89&
7406
- var CommonOpinionsvue_type_template_id_19364a89_render = function () {
7410
+ // 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/CommonOpinions.vue?vue&type=template&id=4b7ad280&
7411
+ var CommonOpinionsvue_type_template_id_4b7ad280_render = function () {
7407
7412
  var _vm = this
7408
7413
  var _h = _vm.$createElement
7409
7414
  var _c = _vm._self._c || _h
@@ -7415,11 +7420,7 @@ var CommonOpinionsvue_type_template_id_19364a89_render = function () {
7415
7420
  "el-form",
7416
7421
  {
7417
7422
  ref: "ruleForm",
7418
- attrs: {
7419
- model: _vm.form,
7420
- rules: _vm.required ? _vm.rules : {},
7421
- "label-width": "0",
7422
- },
7423
+ attrs: { model: _vm.form, rules: _vm.rules, "label-width": "0" },
7423
7424
  },
7424
7425
  [
7425
7426
  _c(
@@ -7614,11 +7615,11 @@ var CommonOpinionsvue_type_template_id_19364a89_render = function () {
7614
7615
  1
7615
7616
  )
7616
7617
  }
7617
- var CommonOpinionsvue_type_template_id_19364a89_staticRenderFns = []
7618
- CommonOpinionsvue_type_template_id_19364a89_render._withStripped = true
7618
+ var CommonOpinionsvue_type_template_id_4b7ad280_staticRenderFns = []
7619
+ CommonOpinionsvue_type_template_id_4b7ad280_render._withStripped = true
7619
7620
 
7620
7621
 
7621
- // CONCATENATED MODULE: ./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=19364a89&
7622
+ // CONCATENATED MODULE: ./packages/flow/src/component/CommonOpinions.vue?vue&type=template&id=4b7ad280&
7622
7623
 
7623
7624
  // EXTERNAL MODULE: ./src/config/api.js
7624
7625
  var api = __webpack_require__(1);
@@ -8160,8 +8161,6 @@ var _components;
8160
8161
  //
8161
8162
  //
8162
8163
  //
8163
- //
8164
- //
8165
8164
 
8166
8165
 
8167
8166
 
@@ -8177,9 +8176,6 @@ var _components;
8177
8176
  form: {
8178
8177
  value: ''
8179
8178
  },
8180
- rules: {
8181
- value: [{ required: true, message: '请输入意见', trigger: 'blur' }]
8182
- },
8183
8179
  input3: '',
8184
8180
  selectValue: '',
8185
8181
  optionList: [],
@@ -8217,6 +8213,17 @@ var _components;
8217
8213
  },
8218
8214
  required: { type: Boolean, default: false }
8219
8215
  },
8216
+ computed: {
8217
+ rules: function rules() {
8218
+ return {
8219
+ value: [{
8220
+ required: this.required,
8221
+ message: '请输入意见',
8222
+ trigger: 'blur'
8223
+ }]
8224
+ };
8225
+ }
8226
+ },
8220
8227
  mounted: function mounted() {
8221
8228
  if (this.nodeFixedOpinionSelectList.length > 0) {
8222
8229
  this.optionList = this.nodeFixedOpinionSelectList;
@@ -8439,8 +8446,8 @@ var _components;
8439
8446
 
8440
8447
  var CommonOpinions_component = Object(componentNormalizer["a" /* default */])(
8441
8448
  component_CommonOpinionsvue_type_script_lang_js_,
8442
- CommonOpinionsvue_type_template_id_19364a89_render,
8443
- CommonOpinionsvue_type_template_id_19364a89_staticRenderFns,
8449
+ CommonOpinionsvue_type_template_id_4b7ad280_render,
8450
+ CommonOpinionsvue_type_template_id_4b7ad280_staticRenderFns,
8444
8451
  false,
8445
8452
  null,
8446
8453
  null,
@@ -22623,8 +22630,8 @@ var Circulate_component = Object(componentNormalizer["a" /* default */])(
22623
22630
  )
22624
22631
 
22625
22632
  /* harmony default export */ var Circulate = (Circulate_component.exports);
22626
- // 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/FreeCirculation.vue?vue&type=template&id=521e2326&
22627
- var FreeCirculationvue_type_template_id_521e2326_render = function () {
22633
+ // 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/FreeCirculation.vue?vue&type=template&id=4ffe80dd&
22634
+ var FreeCirculationvue_type_template_id_4ffe80dd_render = function () {
22628
22635
  var _vm = this
22629
22636
  var _h = _vm.$createElement
22630
22637
  var _c = _vm._self._c || _h
@@ -22717,11 +22724,11 @@ var FreeCirculationvue_type_template_id_521e2326_render = function () {
22717
22724
  1
22718
22725
  )
22719
22726
  }
22720
- var FreeCirculationvue_type_template_id_521e2326_staticRenderFns = []
22721
- FreeCirculationvue_type_template_id_521e2326_render._withStripped = true
22727
+ var FreeCirculationvue_type_template_id_4ffe80dd_staticRenderFns = []
22728
+ FreeCirculationvue_type_template_id_4ffe80dd_render._withStripped = true
22722
22729
 
22723
22730
 
22724
- // CONCATENATED MODULE: ./packages/flow/src/component/FreeCirculation.vue?vue&type=template&id=521e2326&
22731
+ // CONCATENATED MODULE: ./packages/flow/src/component/FreeCirculation.vue?vue&type=template&id=4ffe80dd&
22725
22732
 
22726
22733
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/component/FreeCirculation.vue?vue&type=script&lang=js&
22727
22734
  //
@@ -22811,6 +22818,7 @@ FreeCirculationvue_type_template_id_521e2326_render._withStripped = true
22811
22818
  methods: {
22812
22819
  quit: function quit() {
22813
22820
  this.$emit('cancel');
22821
+ this.$parent.$emit('cancel');
22814
22822
  },
22815
22823
  subMit: function subMit() {
22816
22824
  var _this = this;
@@ -22827,8 +22835,9 @@ FreeCirculationvue_type_template_id_521e2326_render._withStripped = true
22827
22835
  };
22828
22836
  this.loading = util["a" /* default */].loading(this.$loading, '加载中...');
22829
22837
  util["a" /* default */].ajax(param).then(function (res) {
22838
+ _this.loading.close();
22830
22839
  if (res.rCode == 0 || res.status == 'success') {
22831
- _this.loading.close();
22840
+
22832
22841
  if (!_this.simpleTips) {
22833
22842
  _this.$alert('提交成功', '', {
22834
22843
  confirmButtonText: '确定',
@@ -22840,6 +22849,8 @@ FreeCirculationvue_type_template_id_521e2326_render._withStripped = true
22840
22849
  } else {
22841
22850
  _this.$parent.$emit('success');
22842
22851
  }
22852
+ } else {
22853
+ _this.$message.error(res.message || res.msg || '系统错误,请联系管理员!');
22843
22854
  }
22844
22855
  });
22845
22856
  },
@@ -22936,8 +22947,8 @@ FreeCirculationvue_type_template_id_521e2326_render._withStripped = true
22936
22947
 
22937
22948
  var FreeCirculation_component = Object(componentNormalizer["a" /* default */])(
22938
22949
  component_FreeCirculationvue_type_script_lang_js_,
22939
- FreeCirculationvue_type_template_id_521e2326_render,
22940
- FreeCirculationvue_type_template_id_521e2326_staticRenderFns,
22950
+ FreeCirculationvue_type_template_id_4ffe80dd_render,
22951
+ FreeCirculationvue_type_template_id_4ffe80dd_staticRenderFns,
22941
22952
  false,
22942
22953
  null,
22943
22954
  null,
@@ -24081,6 +24092,9 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
24081
24092
  //
24082
24093
  //
24083
24094
  //
24095
+ //
24096
+ //
24097
+ //
24084
24098
 
24085
24099
 
24086
24100
 
@@ -24163,6 +24177,10 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
24163
24177
  type: [String, Number],
24164
24178
  default: 10
24165
24179
  },
24180
+ showOther: {
24181
+ type: Boolean,
24182
+ default: true
24183
+ },
24166
24184
  isEndMessage: { type: Boolean, default: false }
24167
24185
  },
24168
24186
  data: function data() {
@@ -24174,6 +24192,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
24174
24192
  endMessage: '',
24175
24193
  isHideTemporarySave: false,
24176
24194
  oldNextOperate: '',
24195
+ showOpinion: true,
24177
24196
  taskOperationShiftedNodeList: null,
24178
24197
  currentNodeEnableItemHandleDescription: false,
24179
24198
  startFlowPageEmbeddedIntoStartFlowIndex: false,
@@ -24405,7 +24424,8 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
24405
24424
  }
24406
24425
  }
24407
24426
  if (this.nodeInfo.nextNode) {
24408
- this.handleChange(this.nodeInfo.nextNode);
24427
+
24428
+ this.handleChange(this.nodeInfo.nextNode, true);
24409
24429
  }
24410
24430
  }
24411
24431
  },
@@ -24533,6 +24553,10 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
24533
24553
  // }
24534
24554
  _this3.optionsKey++;
24535
24555
  _this3.isOpinionRequired = res.data.nodeExtAttr.isOpinionRequired == 1;
24556
+ _this3.showOpinion = false;
24557
+ setTimeout(function () {
24558
+ _this3.showOpinion = true;
24559
+ }, 0);
24536
24560
  }
24537
24561
  });
24538
24562
  },
@@ -24582,8 +24606,8 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
24582
24606
  this.flowSuccess(true);
24583
24607
  // this.$emit('success');
24584
24608
  },
24585
- handleChange: function handleChange(val) {
24586
- this.getNodeInfoForStartFlow(val);
24609
+ handleChange: function handleChange(val, isForStartFlow) {
24610
+ this.getNodeInfoForStartFlow(val, isForStartFlow);
24587
24611
  this.$parent.$emit('flowChange', val);
24588
24612
  },
24589
24613
  getsubProcessColumns: function getsubProcessColumns() {
@@ -26077,7 +26101,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
26077
26101
  }
26078
26102
  }
26079
26103
  if (_this30.nodeInfo.nextNode) {
26080
- _this30.handleChange(_this30.nodeInfo.nextNode);
26104
+ _this30.handleChange(_this30.nodeInfo.nextNode, true);
26081
26105
  }
26082
26106
  if (_this30.showCirculate != undefined && !_this30.showCirculate && _this30.urgencyLevel) {
26083
26107
  _this30.getAdminMsgType();
@@ -26285,15 +26309,23 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
26285
26309
  switch (_context.prev = _context.next) {
26286
26310
  case 0:
26287
26311
  if (!valid) {
26288
- _context.next = 53;
26312
+ _context.next = 55;
26289
26313
  break;
26290
26314
  }
26291
26315
 
26292
26316
  if (!_this35.isFlow) {
26317
+ _context.next = 6;
26318
+ break;
26319
+ }
26320
+
26321
+ if (!(_this35.isOpinionRequired && !_this35.$refs.commonOpinions.validate())) {
26293
26322
  _context.next = 4;
26294
26323
  break;
26295
26324
  }
26296
26325
 
26326
+ return _context.abrupt('return');
26327
+
26328
+ case 4:
26297
26329
  if (_this35.directCreateCircularReadWhenFlowStarted) {
26298
26330
  _this35.circulateVisible = true;
26299
26331
  } else {
@@ -26301,7 +26333,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
26301
26333
  }
26302
26334
  return _context.abrupt('return');
26303
26335
 
26304
- case 4:
26336
+ case 6:
26305
26337
  nextUserId = [];
26306
26338
 
26307
26339
  if (_this35.multiple) {
@@ -26344,17 +26376,17 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
26344
26376
  }
26345
26377
 
26346
26378
  if (!(freetype != 'multiInsMidwayWithSubmitScene')) {
26347
- _context.next = 20;
26379
+ _context.next = 22;
26348
26380
  break;
26349
26381
  }
26350
26382
 
26351
- _context.next = 19;
26383
+ _context.next = 21;
26352
26384
  return _this35.saveInfo('subMit');
26353
26385
 
26354
- case 19:
26386
+ case 21:
26355
26387
  _this35.loading = util["a" /* default */].loading(_this35.$loading, '加载中...');
26356
26388
 
26357
- case 20:
26389
+ case 22:
26358
26390
  notificationType = '';
26359
26391
 
26360
26392
  notificationType = _this35.nextNode.notificationType.join(',');
@@ -26392,7 +26424,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
26392
26424
  }
26393
26425
 
26394
26426
  if (!(freetype === 'multiInsMidwayWithSubmitScene')) {
26395
- _context.next = 34;
26427
+ _context.next = 36;
26396
26428
  break;
26397
26429
  }
26398
26430
 
@@ -26400,7 +26432,7 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
26400
26432
  _this35.taskParams = params;
26401
26433
  return _context.abrupt('return');
26402
26434
 
26403
- case 34:
26435
+ case 36:
26404
26436
  _this35.loading = util["a" /* default */].loading(_this35.$loading, '提交中...');
26405
26437
  isEndUserTask = _this35.isEndUserTask, choiceOrgId = _this35.choiceOrgId, choiceDeptId = _this35.choiceDeptId, pOrgId = _this35.pOrgId, taskExamineInfo = _this35.taskExamineInfo, currentNodeIsCircularReadNode = _this35.currentNodeIsCircularReadNode, needRetrialAuth = _this35.needRetrialAuth, circularReadParamsMap = _this35.circularReadParamsMap, currentNodeEnableItemHandleDescription = _this35.currentNodeEnableItemHandleDescription;
26406
26438
 
@@ -26440,10 +26472,10 @@ function mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () {
26440
26472
  }
26441
26473
  }));
26442
26474
 
26443
- case 53:
26475
+ case 55:
26444
26476
  return _context.abrupt('return', false);
26445
26477
 
26446
- case 54:
26478
+ case 56:
26447
26479
  case 'end':
26448
26480
  return _context.stop();
26449
26481
  }