eoss-ui 0.5.34 → 0.5.37

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.
Files changed (53) hide show
  1. package/lib/button-group.js +17 -0
  2. package/lib/button.js +17 -0
  3. package/lib/checkbox-group.js +17 -0
  4. package/lib/data-table-form.js +17 -0
  5. package/lib/data-table.js +17 -0
  6. package/lib/date-picker.js +17 -0
  7. package/lib/dialog.js +17 -0
  8. package/lib/eoss-ui.common.js +493 -368
  9. package/lib/flow-group.js +17 -0
  10. package/lib/flow-list.js +17 -0
  11. package/lib/flow.js +425 -305
  12. package/lib/form.js +17 -0
  13. package/lib/handle-user.js +17 -0
  14. package/lib/handler.js +17 -0
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +17 -0
  17. package/lib/input.js +17 -0
  18. package/lib/login.js +41 -15
  19. package/lib/main.js +35 -24
  20. package/lib/nav.js +17 -0
  21. package/lib/page.js +17 -0
  22. package/lib/player.js +17 -0
  23. package/lib/qr-code.js +17 -0
  24. package/lib/radio-group.js +17 -0
  25. package/lib/retrial-auth.js +17 -0
  26. package/lib/select-ganged.js +17 -0
  27. package/lib/select.js +17 -0
  28. package/lib/selector-panel.js +17 -0
  29. package/lib/selector.js +17 -0
  30. package/lib/sizer.js +17 -0
  31. package/lib/steps.js +17 -0
  32. package/lib/switch.js +17 -0
  33. package/lib/table-form.js +25 -6
  34. package/lib/tabs.js +17 -0
  35. package/lib/tips.js +17 -0
  36. package/lib/tree-group.js +17 -0
  37. package/lib/tree.js +17 -0
  38. package/lib/upload.js +17 -0
  39. package/lib/utils/util.js +17 -0
  40. package/lib/wujie.js +17 -0
  41. package/lib/wxlogin.js +17 -0
  42. package/package.json +1 -1
  43. package/packages/flow/src/main.vue +117 -23
  44. package/packages/flow/src/processForm.vue +7 -1
  45. package/packages/flow/src/processReject.vue +4 -1
  46. package/packages/form/src/table.vue +2 -1
  47. package/packages/login/src/main.vue +9 -2
  48. package/packages/login/src/resetPassword.vue +7 -5
  49. package/packages/main/src/main.vue +11 -20
  50. package/packages/main/src/userinfo.vue +1 -1
  51. package/src/index.js +1 -1
  52. package/src/utils/util.js +22 -2
  53. package/CHANGELOG.md +0 -929
package/lib/flow.js CHANGED
@@ -1294,6 +1294,7 @@ var getLength = function getLength(text) {
1294
1294
  * @desc:转换明度
1295
1295
  * @author huangbo
1296
1296
  * @date 2022年5月7日
1297
+ * @return {string,array} 元素类名或者id
1297
1298
  **/
1298
1299
  var getLightness = function getLightness($v, $i, $isLight) {
1299
1300
  var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
@@ -1301,6 +1302,21 @@ var getLightness = function getLightness($v, $i, $isLight) {
1301
1302
  return toFixed($value, 2);
1302
1303
  };
1303
1304
 
1305
+ /**
1306
+ * getMainConfig
1307
+ * @desc 获取系统配置
1308
+ * @author huangbo
1309
+ * @date 2022年5月7日
1310
+ * @param {function} callback - 回调函数
1311
+ **/
1312
+ var getMainConfig = function getMainConfig(callback) {
1313
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* mainConfig */ "db"] }).then(function (res) {
1314
+ if (res && res.rCode === 0) {
1315
+ callback(res.results);
1316
+ }
1317
+ }).catch(function () {});
1318
+ };
1319
+
1304
1320
  /**
1305
1321
  * getMinute
1306
1322
  * @desc 获取分钟
@@ -2931,6 +2947,7 @@ var watermark = function watermark(option) {
2931
2947
  getHour: getHour,
2932
2948
  getWeekNumber: getWeekNumber,
2933
2949
  getLength: getLength,
2950
+ getMainConfig: getMainConfig,
2934
2951
  getMinute: getMinute,
2935
2952
  getMonth: getMonth,
2936
2953
  getObjectType: getObjectType,
@@ -3813,7 +3830,7 @@ var component = Object(componentNormalizer["a" /* default */])(
3813
3830
  // ESM COMPAT FLAG
3814
3831
  __webpack_require__.r(__webpack_exports__);
3815
3832
 
3816
- // 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=2d625847&
3833
+ // 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=7620c3cc&
3817
3834
  var render = function () {
3818
3835
  var _vm = this
3819
3836
  var _h = _vm.$createElement
@@ -5029,7 +5046,7 @@ var render = function () {
5029
5046
  },
5030
5047
  [
5031
5048
  _vm._v(
5032
- "\n " +
5049
+ "\n " +
5033
5050
  _vm._s(
5034
5051
  _vm.rejectObj.value
5035
5052
  ) +
@@ -5537,7 +5554,7 @@ var staticRenderFns = []
5537
5554
  render._withStripped = true
5538
5555
 
5539
5556
 
5540
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=2d625847&
5557
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=7620c3cc&
5541
5558
 
5542
5559
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
5543
5560
  var regenerator_ = __webpack_require__(12);
@@ -6490,8 +6507,8 @@ var CommonOpinions_component = Object(componentNormalizer["a" /* default */])(
6490
6507
  )
6491
6508
 
6492
6509
  /* harmony default export */ var CommonOpinions = (CommonOpinions_component.exports);
6493
- // 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=b6491348&
6494
- var processFormvue_type_template_id_b6491348_render = function () {
6510
+ // 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=aaac09fe&
6511
+ var processFormvue_type_template_id_aaac09fe_render = function () {
6495
6512
  var _vm = this
6496
6513
  var _h = _vm.$createElement
6497
6514
  var _c = _vm._self._c || _h
@@ -6957,11 +6974,11 @@ var processFormvue_type_template_id_b6491348_render = function () {
6957
6974
  1
6958
6975
  )
6959
6976
  }
6960
- var processFormvue_type_template_id_b6491348_staticRenderFns = []
6961
- processFormvue_type_template_id_b6491348_render._withStripped = true
6977
+ var processFormvue_type_template_id_aaac09fe_staticRenderFns = []
6978
+ processFormvue_type_template_id_aaac09fe_render._withStripped = true
6962
6979
 
6963
6980
 
6964
- // CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=b6491348&
6981
+ // CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=aaac09fe&
6965
6982
 
6966
6983
  // 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=db651118&
6967
6984
  var selectUservue_type_template_id_db651118_render = function () {
@@ -8873,7 +8890,10 @@ var processFormvue_type_script_lang_js_components;
8873
8890
 
8874
8891
  util["a" /* default */].ajax({
8875
8892
  url: api["u" /* findCodeValues */],
8876
- params: { ccCode: 'notification_type', userId: util["a" /* default */].getStorage('userId') }
8893
+ params: {
8894
+ ccCode: 'notification_type',
8895
+ userId: util["a" /* default */].getStorage('userId')
8896
+ }
8877
8897
  }).then(function (res) {
8878
8898
  var status = res.status,
8879
8899
  data = res.data;
@@ -8912,6 +8932,9 @@ var processFormvue_type_script_lang_js_components;
8912
8932
 
8913
8933
  // 提交表单
8914
8934
  subProcess: function subProcess(formName) {
8935
+ this.saveProcess(formName);
8936
+ },
8937
+ saveProcess: function saveProcess(formName) {
8915
8938
  var _this3 = this;
8916
8939
 
8917
8940
  this.$refs[formName].validate(function (valid) {
@@ -9251,8 +9274,8 @@ var processFormvue_type_script_lang_js_components;
9251
9274
 
9252
9275
  var processForm_component = Object(componentNormalizer["a" /* default */])(
9253
9276
  src_processFormvue_type_script_lang_js_,
9254
- processFormvue_type_template_id_b6491348_render,
9255
- processFormvue_type_template_id_b6491348_staticRenderFns,
9277
+ processFormvue_type_template_id_aaac09fe_render,
9278
+ processFormvue_type_template_id_aaac09fe_staticRenderFns,
9256
9279
  false,
9257
9280
  null,
9258
9281
  null,
@@ -10110,8 +10133,8 @@ var TimeLimit_component = Object(componentNormalizer["a" /* default */])(
10110
10133
  )
10111
10134
 
10112
10135
  /* harmony default export */ var TimeLimit = (TimeLimit_component.exports);
10113
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processReject.vue?vue&type=template&id=b5a52fc0&
10114
- var processRejectvue_type_template_id_b5a52fc0_render = function () {
10136
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processReject.vue?vue&type=template&id=432cf815&
10137
+ var processRejectvue_type_template_id_432cf815_render = function () {
10115
10138
  var _vm = this
10116
10139
  var _h = _vm.$createElement
10117
10140
  var _c = _vm._self._c || _h
@@ -10302,11 +10325,11 @@ var processRejectvue_type_template_id_b5a52fc0_render = function () {
10302
10325
  1
10303
10326
  )
10304
10327
  }
10305
- var processRejectvue_type_template_id_b5a52fc0_staticRenderFns = []
10306
- processRejectvue_type_template_id_b5a52fc0_render._withStripped = true
10328
+ var processRejectvue_type_template_id_432cf815_staticRenderFns = []
10329
+ processRejectvue_type_template_id_432cf815_render._withStripped = true
10307
10330
 
10308
10331
 
10309
- // CONCATENATED MODULE: ./packages/flow/src/processReject.vue?vue&type=template&id=b5a52fc0&
10332
+ // CONCATENATED MODULE: ./packages/flow/src/processReject.vue?vue&type=template&id=432cf815&
10310
10333
 
10311
10334
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processReject.vue?vue&type=script&lang=js&
10312
10335
  //
@@ -10458,6 +10481,9 @@ processRejectvue_type_template_id_b5a52fc0_render._withStripped = true
10458
10481
 
10459
10482
  // 提交表单
10460
10483
  subProcess: function subProcess(formName) {
10484
+ this.saveProcess(formName);
10485
+ },
10486
+ saveProcess: function saveProcess(formName) {
10461
10487
  var _this2 = this;
10462
10488
 
10463
10489
  this.$refs[formName].validate(function (valid) {
@@ -10584,8 +10610,8 @@ processRejectvue_type_template_id_b5a52fc0_render._withStripped = true
10584
10610
 
10585
10611
  var processReject_component = Object(componentNormalizer["a" /* default */])(
10586
10612
  src_processRejectvue_type_script_lang_js_,
10587
- processRejectvue_type_template_id_b5a52fc0_render,
10588
- processRejectvue_type_template_id_b5a52fc0_staticRenderFns,
10613
+ processRejectvue_type_template_id_432cf815_render,
10614
+ processRejectvue_type_template_id_432cf815_staticRenderFns,
10589
10615
  false,
10590
10616
  null,
10591
10617
  null,
@@ -12960,6 +12986,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
12960
12986
  //
12961
12987
  //
12962
12988
  //
12989
+ //
12990
+ //
12991
+ //
12992
+ //
12963
12993
 
12964
12994
 
12965
12995
 
@@ -13443,7 +13473,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13443
13473
 
13444
13474
  util["a" /* default */].ajax({
13445
13475
  url: api["u" /* findCodeValues */],
13446
- params: { ccCode: 'notification_type', userId: util["a" /* default */].getStorage('userId') }
13476
+ params: {
13477
+ ccCode: 'notification_type',
13478
+ userId: util["a" /* default */].getStorage('userId')
13479
+ }
13447
13480
  }).then(function (res) {
13448
13481
  var status = res.status,
13449
13482
  data = res.data;
@@ -13531,11 +13564,22 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13531
13564
  * @date 2022年5月25日
13532
13565
  **/
13533
13566
  rejectBtn: function rejectBtn() {
13567
+ var _this8 = this;
13568
+
13534
13569
  if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
13535
- if (!this.value) {
13536
- return this.$message.warning('请填写意见');
13570
+ if (this.beforeSubmit != undefined) {
13571
+ this.beforeSubmit().then(function (next) {
13572
+ if (!_this8.value) {
13573
+ return _this8.$message.warning('请填写意见');
13574
+ }
13575
+ _this8.showReject = true;
13576
+ }).catch(function (e) {});
13577
+ } else {
13578
+ if (!this.value) {
13579
+ return this.$message.warning('请填写意见');
13580
+ }
13581
+ this.showReject = true;
13537
13582
  }
13538
- this.showReject = true;
13539
13583
  },
13540
13584
 
13541
13585
  /**
@@ -13545,10 +13589,20 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13545
13589
  * @date 2022年5月25日
13546
13590
  **/
13547
13591
  taskReadBtn: function taskReadBtn() {
13592
+ var _this9 = this;
13593
+
13548
13594
  // return this.$message.warning('暂未开放!敬请期待');
13549
- if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
13550
- this.taskReadType = 'create';
13551
- this.showTaskRead = true;
13595
+ if (this.beforeSubmit != undefined) {
13596
+ this.beforeSubmit().then(function (next) {
13597
+ if (_this9.value === '') _this9.value = _this9.nodeDefaultRejectOpinion;
13598
+ _this9.taskReadType = 'create';
13599
+ _this9.showTaskRead = true;
13600
+ }).catch(function (e) {});
13601
+ } else {
13602
+ if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
13603
+ this.taskReadType = 'create';
13604
+ this.showTaskRead = true;
13605
+ }
13552
13606
  },
13553
13607
 
13554
13608
  /**
@@ -13558,7 +13612,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13558
13612
  * @date 2022年5月25日
13559
13613
  **/
13560
13614
  getFind: function getFind() {
13561
- var _this8 = this;
13615
+ var _this10 = this;
13562
13616
 
13563
13617
  util["a" /* default */].ajax({
13564
13618
  url: api["w" /* findSysCodes */]
@@ -13567,11 +13621,11 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13567
13621
  message = res.message;
13568
13622
 
13569
13623
  if (status === 'success') {
13570
- _this8.nextNode.notificationType = message.split(',');
13624
+ _this10.nextNode.notificationType = message.split(',');
13571
13625
  }
13572
13626
  }).catch(function (err) {
13573
13627
  if (err.message && err.message !== 'canceled') {
13574
- _this8.$message.error(err.message);
13628
+ _this10.$message.error(err.message);
13575
13629
  }
13576
13630
  });
13577
13631
  },
@@ -13584,41 +13638,52 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13584
13638
  * @date 2022年5月25日
13585
13639
  **/
13586
13640
  endFlows: function endFlows(res) {
13587
- var _this9 = this;
13641
+ var _this11 = this;
13642
+
13643
+ if (this.beforeSubmit != undefined) {
13644
+ this.beforeSubmit().then(function (next) {
13645
+ _this11.saveEndFlows(res);
13646
+ }).catch(function (e) {});
13647
+ } else {
13648
+ this.saveEndFlows(res);
13649
+ }
13650
+ },
13651
+ saveEndFlows: function saveEndFlows(res) {
13652
+ var _this12 = this;
13588
13653
 
13589
13654
  this.$confirm('确认' + res.value + '?').then(function () {
13590
13655
  var params = {
13591
13656
  url: api["t" /* endFlowHtml */],
13592
13657
  headers: { Accept: 'application/json,text/plain' },
13593
13658
  method: 'post',
13594
- data: mainvue_type_script_lang_js_extends({}, _this9.endFlowInfo, _this9.nextNode, {
13595
- opinion: _this9.value,
13659
+ data: mainvue_type_script_lang_js_extends({}, _this12.endFlowInfo, _this12.nextNode, {
13660
+ opinion: _this12.value,
13596
13661
  userId: util["a" /* default */].getStorage('userId'),
13597
- nextUserId: _this9.multiple ? _this9.nextNode.nextUserId.join(',') : _this9.nextNode.nextUserId,
13598
- addSignUserId: _this9.nextNode.addSignUserId.join(','),
13599
- customPresetUserJson: JSON.stringify(_this9.presetList),
13600
- presetUserJson: JSON.stringify(_this9.presetUserJson),
13601
- removeSignUserId: _this9.nextNode.removeSignUserId.join(','),
13602
- notificationType: _this9.nextNode.notificationType.join(',')
13662
+ nextUserId: _this12.multiple ? _this12.nextNode.nextUserId.join(',') : _this12.nextNode.nextUserId,
13663
+ addSignUserId: _this12.nextNode.addSignUserId.join(','),
13664
+ customPresetUserJson: JSON.stringify(_this12.presetList),
13665
+ presetUserJson: JSON.stringify(_this12.presetUserJson),
13666
+ removeSignUserId: _this12.nextNode.removeSignUserId.join(','),
13667
+ notificationType: _this12.nextNode.notificationType.join(',')
13603
13668
  })
13604
13669
  };
13605
- _this9.loading = util["a" /* default */].loading(_this9.$loading, '加载中...');
13670
+ _this12.loading = util["a" /* default */].loading(_this12.$loading, '加载中...');
13606
13671
  util["a" /* default */].ajax(params).then(function (res) {
13607
13672
  var status = res.status,
13608
13673
  message = res.message;
13609
13674
 
13610
- _this9.loading.close();
13675
+ _this12.loading.close();
13611
13676
  if (status === 'success') {
13612
- _this9.$message.success('提交成功');
13613
- _this9.$emit('success');
13677
+ _this12.$message.success('提交成功');
13678
+ _this12.$emit('success');
13614
13679
  } else {
13615
- _this9.$message.error(message || '系统错误,请联系管理员!');
13616
- _this9.$emit('error');
13680
+ _this12.$message.error(message || '系统错误,请联系管理员!');
13681
+ _this12.$emit('error');
13617
13682
  }
13618
13683
  }).catch(function (err) {
13619
- _this9.loading.close();
13684
+ _this12.loading.close();
13620
13685
  if (err.message && err.message !== 'canceled') {
13621
- _this9.$message.error(err.message);
13686
+ _this12.$message.error(err.message);
13622
13687
  }
13623
13688
  });
13624
13689
  }).catch(function (e) {});
@@ -13713,7 +13778,19 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13713
13778
  * @date 2022年9月29日
13714
13779
  **/
13715
13780
  toTakeAdvice: function toTakeAdvice(res) {
13716
- var _this10 = this;
13781
+ var _this13 = this;
13782
+
13783
+ if (this.beforeSubmit != undefined) {
13784
+ this.beforeSubmit().then(function (next) {
13785
+ _this13.saveToTakeAdvice(res);
13786
+ }).catch(function (e) {});
13787
+ } else {
13788
+ this.saveToTakeAdvice(res);
13789
+ }
13790
+ // return this.$message.warning('暂未开放!敬请期待');
13791
+ },
13792
+ saveToTakeAdvice: function saveToTakeAdvice(res) {
13793
+ var _this14 = this;
13717
13794
 
13718
13795
  var params = {
13719
13796
  url: api["Z" /* isCanStartSubFlow */],
@@ -13728,19 +13805,18 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13728
13805
  util["a" /* default */].ajax(params).then(function (res) {
13729
13806
  var message = res.message;
13730
13807
 
13731
- _this10.loading.close();
13808
+ _this14.loading.close();
13732
13809
  if (message == 'success') {
13733
- _this10.showTaskUnionExamine = true;
13810
+ _this14.showTaskUnionExamine = true;
13734
13811
  } else {
13735
- _this10.$message.error(message || '系统错误,请联系管理员!');
13812
+ _this14.$message.error(message || '系统错误,请联系管理员!');
13736
13813
  }
13737
13814
  }).catch(function (err) {
13738
- _this10.loading.close();
13815
+ _this14.loading.close();
13739
13816
  if (err.message && err.message !== 'canceled') {
13740
- _this10.$message.error(err.message);
13817
+ _this14.$message.error(err.message);
13741
13818
  }
13742
13819
  });
13743
- // return this.$message.warning('暂未开放!敬请期待');
13744
13820
  },
13745
13821
 
13746
13822
  /**
@@ -13750,7 +13826,15 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13750
13826
  * @date 2022年9月29日
13751
13827
  **/
13752
13828
  toStartDraf: function toStartDraf(res) {
13753
- this.showTaskUnionExamine = true;
13829
+ var _this15 = this;
13830
+
13831
+ if (this.beforeSubmit != undefined) {
13832
+ this.beforeSubmit().then(function (next) {
13833
+ _this15.showTaskUnionExamine = true;
13834
+ }).catch(function (e) {});
13835
+ } else {
13836
+ this.showTaskUnionExamine = true;
13837
+ }
13754
13838
  },
13755
13839
 
13756
13840
  /**
@@ -13760,7 +13844,15 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13760
13844
  * @date 2022年9月29日
13761
13845
  **/
13762
13846
  toSendMsg: function toSendMsg(res) {
13763
- this.showSendMsg = true;
13847
+ var _this16 = this;
13848
+
13849
+ if (this.beforeSubmit != undefined) {
13850
+ this.beforeSubmit().then(function (next) {
13851
+ _this16.showSendMsg = true;
13852
+ }).catch(function (e) {});
13853
+ } else {
13854
+ this.showSendMsg = true;
13855
+ }
13764
13856
  },
13765
13857
 
13766
13858
  /**
@@ -13770,9 +13862,19 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13770
13862
  * @date 2022年9月29日
13771
13863
  **/
13772
13864
  toTaskReadAndEnd: function toTaskReadAndEnd(res) {
13773
- if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
13774
- this.taskReadType = 'taskReadAndEnd';
13775
- this.showTaskRead = true;
13865
+ var _this17 = this;
13866
+
13867
+ if (this.beforeSubmit != undefined) {
13868
+ this.beforeSubmit().then(function (next) {
13869
+ if (_this17.value === '') _this17.value = _this17.nodeDefaultRejectOpinion;
13870
+ _this17.taskReadType = 'taskReadAndEnd';
13871
+ _this17.showTaskRead = true;
13872
+ }).catch(function (e) {});
13873
+ } else {
13874
+ if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
13875
+ this.taskReadType = 'taskReadAndEnd';
13876
+ this.showTaskRead = true;
13877
+ }
13776
13878
  },
13777
13879
 
13778
13880
  /**
@@ -13782,43 +13884,53 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13782
13884
  * @date 2022年9月29日
13783
13885
  **/
13784
13886
  rejectAndEnd: function rejectAndEnd(res) {
13785
- var _this11 = this;
13887
+ var _this18 = this;
13888
+
13889
+ if (this.beforeSubmit != undefined) {
13890
+ this.beforeSubmit().then(function (next) {
13891
+ _this18.saveRejectAndEnd(res);
13892
+ }).catch(function (e) {});
13893
+ } else {
13894
+ this.saveRejectAndEnd(res);
13895
+ }
13896
+ },
13897
+ saveRejectAndEnd: function saveRejectAndEnd(res) {
13898
+ var _this19 = this;
13786
13899
 
13787
13900
  this.$confirm('确认' + res.value + '?').then(function () {
13788
- if (_this11.isOpinionRequired == 1 && (_this11.value == '' || !_this11.value)) return _this11.$message.warning('请填写意见');
13901
+ if (_this19.isOpinionRequired == 1 && (_this19.value == '' || !_this19.value)) return _this19.$message.warning('请填写意见');
13789
13902
  var params = {
13790
13903
  url: api["mb" /* rejectAndEnd */],
13791
13904
  headers: { Accept: 'application/json,text/plain' },
13792
13905
  method: 'post',
13793
13906
  data: {
13794
- opinion: _this11.value,
13795
- pendingId: _this11.pendingId,
13907
+ opinion: _this19.value,
13908
+ pendingId: _this19.pendingId,
13796
13909
  isSinglePage: false
13797
13910
  }
13798
13911
  };
13799
- _this11.loading = util["a" /* default */].loading(_this11.$loading, '加载中...');
13912
+ _this19.loading = util["a" /* default */].loading(_this19.$loading, '加载中...');
13800
13913
  util["a" /* default */].ajax(params).then(function (res) {
13801
13914
  var status = res.status,
13802
13915
  message = res.message;
13803
13916
 
13804
- _this11.loading.close();
13917
+ _this19.loading.close();
13805
13918
  if (status === 'success') {
13806
- _this11.$message.success('提交成功');
13807
- _this11.$emit('success');
13919
+ _this19.$message.success('提交成功');
13920
+ _this19.$emit('success');
13808
13921
  } else {
13809
- _this11.$message.error(message || '系统错误,请联系管理员!');
13810
- _this11.$emit('error');
13922
+ _this19.$message.error(message || '系统错误,请联系管理员!');
13923
+ _this19.$emit('error');
13811
13924
  }
13812
13925
  }).catch(function (err) {
13813
- _this11.loading.close();
13926
+ _this19.loading.close();
13814
13927
  if (err.message && err.message !== 'canceled') {
13815
- _this11.$message.error(err.message);
13928
+ _this19.$message.error(err.message);
13816
13929
  }
13817
13930
  });
13818
13931
  }).catch(function () {
13819
13932
  // on cancel
13820
13933
  });
13821
- // return this.$message.warning('暂未开放!敬请期待');
13822
13934
  },
13823
13935
 
13824
13936
  /**
@@ -13828,9 +13940,17 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13828
13940
  * @date 2022年9月29日
13829
13941
  **/
13830
13942
  toTransfer: function toTransfer(res) {
13831
- this.taskReadType = 'transfer';
13832
- this.showTaskRead = true;
13833
- // return this.$message.warning('暂未开放!敬请期待');
13943
+ var _this20 = this;
13944
+
13945
+ if (this.beforeSubmit != undefined) {
13946
+ this.beforeSubmit().then(function (next) {
13947
+ _this20.taskReadType = 'transfer';
13948
+ _this20.showTaskRead = true;
13949
+ }).catch(function (e) {});
13950
+ } else {
13951
+ this.taskReadType = 'transfer';
13952
+ this.showTaskRead = true;
13953
+ }
13834
13954
  },
13835
13955
 
13836
13956
  /**
@@ -13840,7 +13960,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13840
13960
  * @date 2022年5月25日
13841
13961
  **/
13842
13962
  getNodeInfo: function getNodeInfo() {
13843
- var _this12 = this;
13963
+ var _this21 = this;
13844
13964
 
13845
13965
  var params = {
13846
13966
  processDefinitionId: this.nodeInfo.nextNode,
@@ -13855,42 +13975,42 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13855
13975
  message = res.message,
13856
13976
  data = res.data;
13857
13977
 
13858
- _this12.loading.close();
13978
+ _this21.loading.close();
13859
13979
  if (status === 'success') {
13860
13980
  if (data != null) {
13861
13981
  if (data.nodeExtAttr.userSelectionType == 7 || data.nodeExtAttr.userSelectionType == 8 || data.nodeExtAttr.userSelectionType == 9 || data.nodeExtAttr.userSelectionType == 10 || data.nodeExtAttr.userSelectionType == 11 || data.nodeExtAttr.userSelectionType == 12) {
13862
- _this12.getIsShowNextUser(data.nodeExtAttr && data.nodeExtAttr.userSelectionType);
13982
+ _this21.getIsShowNextUser(data.nodeExtAttr && data.nodeExtAttr.userSelectionType);
13863
13983
  } else {
13864
- _this12.isMultiple(data.nodeExtAttr && data.nodeExtAttr.userSelectionType, _this12.choiceOrgId, _this12.choiceDeptId, _this12.pOrgId);
13984
+ _this21.isMultiple(data.nodeExtAttr && data.nodeExtAttr.userSelectionType, _this21.choiceOrgId, _this21.choiceDeptId, _this21.pOrgId);
13865
13985
  }
13866
- _this12.isReadMultiple(data.nodeExtAttr && data.nodeExtAttr.userSelectionType);
13867
- _this12.isTaskread = data.nodeExtAttr.isTaskread;
13868
- _this12.isHandleExplain = data.nodeExtAttr.isHandleExplain;
13869
- _this12.isLimitedTimeHandling = data.nodeExtAttr.isLimitedTimeHandling;
13870
- _this12.nodeType = data.nodeExtAttr.nodeType;
13986
+ _this21.isReadMultiple(data.nodeExtAttr && data.nodeExtAttr.userSelectionType);
13987
+ _this21.isTaskread = data.nodeExtAttr.isTaskread;
13988
+ _this21.isHandleExplain = data.nodeExtAttr.isHandleExplain;
13989
+ _this21.isLimitedTimeHandling = data.nodeExtAttr.isLimitedTimeHandling;
13990
+ _this21.nodeType = data.nodeExtAttr.nodeType;
13871
13991
  //如果当前为承办节点/会签节点,则展示本单位外单位办理人选择
13872
- if (_this12.nodeType === 1 || _this12.nodeType === 2) {
13873
- _this12.isMainSubProcess === true ? _this12.isNodeShowProcess = true : _this12.isNodeShowProcess = false;
13874
- _this12.isMainSubProcess === true ? _this12.isMainSubProcess = true : _this12.isMainSubProcess = false;
13875
- _this12.isNextUser = false;
13876
- _this12.isHideCurrentOrg = res.data.nodeExtAttr.isHideCurrentOrg == 1 ? false : true; //判断是否隐藏本单位
13877
- _this12.isHideOtherOrg = res.data.nodeExtAttr.isHideOtherOrg == 1 ? false : true; //判断是否隐藏外单位
13992
+ if (_this21.nodeType === 1 || _this21.nodeType === 2) {
13993
+ _this21.isMainSubProcess === true ? _this21.isNodeShowProcess = true : _this21.isNodeShowProcess = false;
13994
+ _this21.isMainSubProcess === true ? _this21.isMainSubProcess = true : _this21.isMainSubProcess = false;
13995
+ _this21.isNextUser = false;
13996
+ _this21.isHideCurrentOrg = res.data.nodeExtAttr.isHideCurrentOrg == 1 ? false : true; //判断是否隐藏本单位
13997
+ _this21.isHideOtherOrg = res.data.nodeExtAttr.isHideOtherOrg == 1 ? false : true; //判断是否隐藏外单位
13878
13998
  } else {
13879
- _this12.isHideCurrentOrg = false;
13880
- _this12.isHideOtherOrg = false;
13881
- _this12.isNodeShowProcess = false;
13882
- _this12.isMainSubProcess = false;
13883
- _this12.isNextUser = true;
13999
+ _this21.isHideCurrentOrg = false;
14000
+ _this21.isHideOtherOrg = false;
14001
+ _this21.isNodeShowProcess = false;
14002
+ _this21.isMainSubProcess = false;
14003
+ _this21.isNextUser = true;
13884
14004
  // this.isMainSubProcess === true
13885
14005
  // ? (this.isMainSubProcess = true)
13886
14006
  // : (this.isMainSubProcess = false);
13887
14007
  }
13888
- _this12.multiple ? _this12.nextNode.nextUserId = [] : _this12.nextNode.nextUserId = '';
13889
- if (_this12.multiple && data.nodeExtAttr.isDefSelectedObj == 1 && data.nextUserList !== undefined) {
14008
+ _this21.multiple ? _this21.nextNode.nextUserId = [] : _this21.nextNode.nextUserId = '';
14009
+ if (_this21.multiple && data.nodeExtAttr.isDefSelectedObj == 1 && data.nextUserList !== undefined) {
13890
14010
  data.nextUserList.map(function (item) {
13891
14011
  if (item.userId && item.username) {
13892
- _this12.nextNode.nextUserId.push(item.userId);
13893
- _this12.selectUserList.push({
14012
+ _this21.nextNode.nextUserId.push(item.userId);
14013
+ _this21.selectUserList.push({
13894
14014
  showname: item.username,
13895
14015
  showid: item.userId
13896
14016
  });
@@ -13899,37 +14019,37 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13899
14019
  }
13900
14020
  data.nextUserList.map(function (item) {
13901
14021
  if (item.userId && item.username) {
13902
- _this12.options.push({
14022
+ _this21.options.push({
13903
14023
  showname: item.username,
13904
14024
  showid: item.userId
13905
14025
  });
13906
14026
  }
13907
14027
  });
13908
14028
  if (data.nodeExtAttr.presetEdit != 0) {
13909
- _this12.radioList = _this12.options;
14029
+ _this21.radioList = _this21.options;
13910
14030
  }
13911
- if (!_this12.multiple && data.nextUserList.length > 0 && data.nodeExtAttr.isDefSelectedObj == 1) {
13912
- _this12.nextNode.nextUserId = data.nextUserList[0].userId;
13913
- _this12.selectUserList.push({
14031
+ if (!_this21.multiple && data.nextUserList.length > 0 && data.nodeExtAttr.isDefSelectedObj == 1) {
14032
+ _this21.nextNode.nextUserId = data.nextUserList[0].userId;
14033
+ _this21.selectUserList.push({
13914
14034
  showname: data.nextUserList[0].username,
13915
14035
  showid: data.nextUserList[0].userId
13916
14036
  });
13917
14037
  }
13918
- _this12.isLimitedTimeHandling = data.nodeExtAttr.isLimitedTimeHandling;
13919
- _this12.isCustomUser = data.nodeExtAttr.isCustomUser;
13920
- _this12.presetEdit = data.nodeExtAttr.presetEdit;
13921
- _this12.countersignaturetypeCode = data.countersignaturetypeCode; //是否展示处理方式
13922
- _this12.handleMode = data.countersignaturetypeText;
13923
- data.globalNodeType === 'endEvent' ? _this12.endFlow = true : '';
14038
+ _this21.isLimitedTimeHandling = data.nodeExtAttr.isLimitedTimeHandling;
14039
+ _this21.isCustomUser = data.nodeExtAttr.isCustomUser;
14040
+ _this21.presetEdit = data.nodeExtAttr.presetEdit;
14041
+ _this21.countersignaturetypeCode = data.countersignaturetypeCode; //是否展示处理方式
14042
+ _this21.handleMode = data.countersignaturetypeText;
14043
+ data.globalNodeType === 'endEvent' ? _this21.endFlow = true : '';
13924
14044
  }
13925
- _this12.isCustomPreset && _this12.$refs.customPreset.getPresetFlowInfo(_this12.nextNode.nextNodeId, _this12.nodeInfo.nextNode, true);
14045
+ _this21.isCustomPreset && _this21.$refs.customPreset.getPresetFlowInfo(_this21.nextNode.nextNodeId, _this21.nodeInfo.nextNode, true);
13926
14046
  } else {
13927
- _this12.$message.error(message || '系统错误,请联系管理员!');
14047
+ _this21.$message.error(message || '系统错误,请联系管理员!');
13928
14048
  }
13929
14049
  }).catch(function (err) {
13930
- _this12.loading.close();
14050
+ _this21.loading.close();
13931
14051
  if (err.message && err.message !== 'canceled') {
13932
- _this12.$message.error(err.message);
14052
+ _this21.$message.error(err.message);
13933
14053
  }
13934
14054
  });
13935
14055
  },
@@ -13942,7 +14062,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13942
14062
  * @date 2022年5月25日
13943
14063
  **/
13944
14064
  selecNext: function selecNext(val, type, isDef) {
13945
- var _this13 = this;
14065
+ var _this22 = this;
13946
14066
 
13947
14067
  this.loading = util["a" /* default */].loading(this.$loading, '加载中...');
13948
14068
  if (this.multiple) {
@@ -13973,16 +14093,16 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13973
14093
  this.operationList.forEach(function (item) {
13974
14094
  if (item.key === val) {
13975
14095
  if (!item.taskNodeList) {
13976
- _this13.nodeInfos = [];
14096
+ _this22.nodeInfos = [];
13977
14097
  } else {
13978
- _this13.nodeInfos = item.taskNodeList;
14098
+ _this22.nodeInfos = item.taskNodeList;
13979
14099
  }
13980
14100
  return;
13981
14101
  }
13982
14102
  });
13983
14103
  if (this.defaultNextNode) {
13984
14104
  var defaultNode = this.nodeInfos.filter(function (item) {
13985
- return item.nodeId == _this13.defaultNextNode;
14105
+ return item.nodeId == _this22.defaultNextNode;
13986
14106
  });
13987
14107
  if (this.nodeInfos.length > 0 && defaultNode.length == 0) {
13988
14108
  this.nextNode.nextNodeId = this.nodeInfos[0].nodeId;
@@ -14088,7 +14208,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14088
14208
  * @date 2022年5月25日
14089
14209
  **/
14090
14210
  getHedInfo: function getHedInfo() {
14091
- var _this14 = this;
14211
+ var _this23 = this;
14092
14212
 
14093
14213
  this.loading = util["a" /* default */].loading(this.$loading, '加载中...');
14094
14214
  var params = {
@@ -14098,7 +14218,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14098
14218
  util["a" /* default */].ajax({ url: api["D" /* getHandleInfoHtml */], params: params }).then(function (res) {
14099
14219
  //pc返回数据
14100
14220
 
14101
- _this14.loading.close();
14221
+ _this23.loading.close();
14102
14222
  if (res.status === 'success') {
14103
14223
  var _res$data2 = res.data,
14104
14224
  nextNodeList = _res$data2.nextNodeList,
@@ -14126,190 +14246,190 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14126
14246
  isCdjxjTaskHandle = _res$data2.isCdjxjTaskHandle,
14127
14247
  taskButtonList = _res$data2.taskButtonList;
14128
14248
 
14129
- _this14.$emit('startTaskRead', res);
14130
- _this14.currentOrgName = currentOrgName;
14131
- _this14.otherOrgName = otherOrgName;
14132
- _this14.endFlowInfo.choiceOrgId = choiceOrgId;
14133
- _this14.endFlowInfo.choiceDeptId = choiceDeptId;
14134
- _this14.endFlowInfo.pendingId = _this14.pendingId;
14135
- _this14.attachedCode = attachedCode;
14136
- _this14.endFlowInfo.pOrgId = pOrgId;
14137
- _this14.canPresetRead = canPresetRead;
14138
- _this14.isCdjxjTaskHandle = isCdjxjTaskHandle;
14139
- _this14.operationList = taskOperations || [];
14140
- _this14.customPresetHintMessage = customPresetHintMessage;
14249
+ _this23.$emit('startTaskRead', res);
14250
+ _this23.currentOrgName = currentOrgName;
14251
+ _this23.otherOrgName = otherOrgName;
14252
+ _this23.endFlowInfo.choiceOrgId = choiceOrgId;
14253
+ _this23.endFlowInfo.choiceDeptId = choiceDeptId;
14254
+ _this23.endFlowInfo.pendingId = _this23.pendingId;
14255
+ _this23.attachedCode = attachedCode;
14256
+ _this23.endFlowInfo.pOrgId = pOrgId;
14257
+ _this23.canPresetRead = canPresetRead;
14258
+ _this23.isCdjxjTaskHandle = isCdjxjTaskHandle;
14259
+ _this23.operationList = taskOperations || [];
14260
+ _this23.customPresetHintMessage = customPresetHintMessage;
14141
14261
  if (canPresetRead) {
14142
14262
  var ids = nodeInfoMap.nodeExtAttr.presetReadCandinateIds.split(',');
14143
14263
  var names = nodeInfoMap.nodeExtAttr.presetReadCandinateNames.split(',');
14144
14264
  ids.map(function (item, index) {
14145
- _this14.presetReadUserId.push({
14265
+ _this23.presetReadUserId.push({
14146
14266
  showid: item,
14147
14267
  showname: names[index]
14148
14268
  });
14149
- _this14.selectPresetUserList.push({
14269
+ _this23.selectPresetUserList.push({
14150
14270
  showid: item,
14151
14271
  showname: names[index]
14152
14272
  });
14153
- _this14.nextNode.presetReadUserId.push(item);
14273
+ _this23.nextNode.presetReadUserId.push(item);
14154
14274
  });
14155
14275
  }
14156
- if (!_this14.isFlow) _this14.getFile(_this14.pendingId, attachedCode);
14276
+ if (!_this23.isFlow) _this23.getFile(_this23.pendingId, attachedCode);
14157
14277
  if (nextNodeList && nextNodeList.length != 0) {
14158
- _this14.nextNodeList = nextNodeList;
14278
+ _this23.nextNodeList = nextNodeList;
14159
14279
  }
14160
- if (canRemoveSignUserList && canRemoveSignUserList.length != 0) _this14.removeUsers = canRemoveSignUserList;
14280
+ if (canRemoveSignUserList && canRemoveSignUserList.length != 0) _this23.removeUsers = canRemoveSignUserList;
14161
14281
  if (taskOperations && taskOperations.length != 0) {
14162
14282
  taskOperations.map(function (item) {
14163
- if (item.key === 9) _this14.isReject = true;
14283
+ if (item.key === 9) _this23.isReject = true;
14164
14284
  if (item.isSelected) {
14165
- _this14.nodeInfos = [];
14166
- _this14.nextNode.nextOperate = item.key;
14285
+ _this23.nodeInfos = [];
14286
+ _this23.nextNode.nextOperate = item.key;
14167
14287
  if (item.taskNodeList != null) {
14168
- _this14.nodeInfos = item.taskNodeList;
14288
+ _this23.nodeInfos = item.taskNodeList;
14169
14289
  }
14170
14290
  }
14171
14291
  if (taskOperations.length == 1) {
14172
- _this14.nodeInfos = [];
14173
- _this14.nextNode.nextOperate = taskOperations[0].key;
14292
+ _this23.nodeInfos = [];
14293
+ _this23.nextNode.nextOperate = taskOperations[0].key;
14174
14294
  if (taskOperations[0].taskNodeList != null) {
14175
- _this14.nodeInfos = taskOperations[0].taskNodeList;
14295
+ _this23.nodeInfos = taskOperations[0].taskNodeList;
14176
14296
  }
14177
14297
  }
14178
14298
  });
14179
- _this14.selecNext(_this14.nextNode.nextOperate, true, true);
14299
+ _this23.selecNext(_this23.nextNode.nextOperate, true, true);
14180
14300
  }
14181
14301
 
14182
14302
  if (nodeInfoMap && JSON.stringify(nodeInfoMap) != '{}') {
14183
- _this14.needRetrialAuth = !!nodeInfoMap.nodeExtAttr.isCurrentNodeSubmitNeedRetrialAuth;
14303
+ _this23.needRetrialAuth = !!nodeInfoMap.nodeExtAttr.isCurrentNodeSubmitNeedRetrialAuth;
14184
14304
  if (nodeInfoMap.nodeExtAttr.nodeFixedOpinionSelectList) {
14185
14305
  var notice = JSON.parse(nodeInfoMap.nodeExtAttr.nodeFixedOpinionSelectList);
14186
14306
  notice.map(function (x) {
14187
- _this14.nodeFixedOpinionSelectList.push({ content: x });
14307
+ _this23.nodeFixedOpinionSelectList.push({ content: x });
14188
14308
  });
14189
14309
  }
14190
- _this14.isCurrentNodeForbiddenChangeCandidate = nodeInfoMap.nodeExtAttr.isCurrentNodeForbiddenChangeCandidate;
14191
- _this14.nodeDefaultSubmitOpinion = nodeInfoMap.nodeExtAttr.nodeDefaultSubmitOpinion;
14192
- _this14.isSubmitButtonShowAgreeAndDisagree = nodeInfoMap.nodeExtAttr.isSubmitButtonShowAgreeAndDisagree;
14193
- _this14.isBanInputOpinion = nodeInfoMap.nodeExtAttr.isBanInputOpinion;
14194
- _this14.nodeDefaultRejectOpinion = nodeInfoMap.nodeExtAttr.nodeDefaultRejectOpinion;
14195
- _this14.isOpinionRequired = nodeInfoMap.nodeExtAttr.isOpinionRequired;
14310
+ _this23.isCurrentNodeForbiddenChangeCandidate = nodeInfoMap.nodeExtAttr.isCurrentNodeForbiddenChangeCandidate;
14311
+ _this23.nodeDefaultSubmitOpinion = nodeInfoMap.nodeExtAttr.nodeDefaultSubmitOpinion;
14312
+ _this23.isSubmitButtonShowAgreeAndDisagree = nodeInfoMap.nodeExtAttr.isSubmitButtonShowAgreeAndDisagree;
14313
+ _this23.isBanInputOpinion = nodeInfoMap.nodeExtAttr.isBanInputOpinion;
14314
+ _this23.nodeDefaultRejectOpinion = nodeInfoMap.nodeExtAttr.nodeDefaultRejectOpinion;
14315
+ _this23.isOpinionRequired = nodeInfoMap.nodeExtAttr.isOpinionRequired;
14196
14316
  // this.isChooseNextNode = nodeInfoMap.nodeExtAttr.isChooseNextNode;
14197
- _this14.defaultNextNode = nodeInfoMap.nodeExtAttr.defaultNextNode;
14317
+ _this23.defaultNextNode = nodeInfoMap.nodeExtAttr.defaultNextNode;
14198
14318
  if (nodeInfoMap.nodeExtAttr.defaultNextNode) {
14199
- var defaultNode = _this14.nodeInfos.filter(function (item) {
14319
+ var defaultNode = _this23.nodeInfos.filter(function (item) {
14200
14320
  return item.nodeId == nodeInfoMap.nodeExtAttr.defaultNextNode;
14201
14321
  });
14202
- if (_this14.nodeInfos.length > 0 && defaultNode.length == 0) {
14203
- _this14.nextNode.nextNodeId = _this14.nodeInfos[0].nodeId;
14322
+ if (_this23.nodeInfos.length > 0 && defaultNode.length == 0) {
14323
+ _this23.nextNode.nextNodeId = _this23.nodeInfos[0].nodeId;
14204
14324
  } else {
14205
- _this14.nextNode.nextNodeId = nodeInfoMap.nodeExtAttr.defaultNextNode;
14325
+ _this23.nextNode.nextNodeId = nodeInfoMap.nodeExtAttr.defaultNextNode;
14206
14326
  }
14207
- } else if (_this14.nodeInfos.length > 0) {
14208
- _this14.nextNode.nextNodeId = _this14.nodeInfos[0].nodeId;
14327
+ } else if (_this23.nodeInfos.length > 0) {
14328
+ _this23.nextNode.nextNodeId = _this23.nodeInfos[0].nodeId;
14209
14329
  }
14210
- _this14.isForceDisplayDefaultOptionForPrefix = nodeInfoMap.nodeExtAttr.isForceDisplayDefaultOptionForPrefix == 1;
14330
+ _this23.isForceDisplayDefaultOptionForPrefix = nodeInfoMap.nodeExtAttr.isForceDisplayDefaultOptionForPrefix == 1;
14211
14331
  if (nodeInfoMap.nodeExtAttr.submitText) {
14212
- _this14.btnList.map(function (x) {
14332
+ _this23.btnList.map(function (x) {
14213
14333
  if (x.event === 'sub') {
14214
14334
  x.text = nodeInfoMap.nodeExtAttr.submitText;
14215
14335
  }
14216
14336
  });
14217
14337
  }
14218
14338
  }
14219
- _this14.choiceOrgId = choiceOrgId;
14220
- _this14.choiceDeptId = choiceDeptId;
14221
- _this14.pOrgId = pOrgId;
14339
+ _this23.choiceOrgId = choiceOrgId;
14340
+ _this23.choiceDeptId = choiceDeptId;
14341
+ _this23.pOrgId = pOrgId;
14222
14342
  if (res.data && res.data.isEndUserTask != undefined) {
14223
- _this14.isEndUserTask = res.data.isEndUserTask;
14343
+ _this23.isEndUserTask = res.data.isEndUserTask;
14224
14344
  }
14225
14345
  if (JSON.stringify(taskExamine) != '{}' && taskExamine) {
14226
- _this14.nodeInfo.nextNode = taskExamine.processDefinitionId;
14227
- _this14.NodeName = taskExamine.nodeName;
14228
- _this14.taskId = taskExamine.taskId;
14229
- _this14.businessIds = taskExamine.businessId;
14230
- _this14.appId = taskExamine.appId;
14231
- _this14.taskExamineInfo = taskExamine;
14232
- _this14.taskExamineInfo.choiceOrgId = choiceOrgId;
14233
- _this14.taskExamineInfo.choiceDeptId = choiceDeptId;
14234
- _this14.endFlowInfo.processType = taskExamine.processType;
14235
- _this14.endFlowInfo.isReturnSubmitter = taskExamine.isReturnSubmitter;
14236
- _this14.nextNode.isReturnSubmitter = taskExamine.isReturnSubmitter;
14237
- _this14.nextNode.isUndertakeReply = taskExamine.isUndertakeReply;
14238
- _this14.nextNode.isTakeAdviceReply = taskExamine.isTakeAdviceReply;
14239
- _this14.nextNode.isUndertakeEnd = taskExamine.isUndertakeEnd;
14240
- _this14.nextNode.isTakeAdviceEnd = taskExamine.isTakeAdviceEnd;
14241
- _this14.nextNode.isReadDealReply = taskExamine.isReadDealReply;
14242
- _this14.nextNode.isReadDealEnd = taskExamine.isReadDealEnd;
14243
- _this14.nextNode.isReturnRejectNode = taskExamine.isReturnRejectNode;
14244
- _this14.nextNode.isSerialSubmit = taskExamine.isSerialSubmit;
14245
- _this14.endFlowInfo.isSubFlow = taskExamine.isSubFlow;
14246
- _this14.endFlowInfo.isUndertakeReply = taskExamine.isUndertakeReply;
14247
- _this14.endFlowInfo.isUndertakeEnd = taskExamine.isUndertakeEnd;
14248
- _this14.endFlowInfo.isTakeAdviceEnd = taskExamine.isTakeAdviceEnd;
14249
- _this14.endFlowInfo.isTakeAdviceReply = taskExamine.isTakeAdviceReply;
14250
- _this14.endFlowInfo.isReadDealEnd = taskExamine.isReadDealEnd;
14251
- _this14.endFlowInfo.isReadDealReply = taskExamine.isReadDealReply;
14252
- _this14.endFlowInfo.isReturnRejectNode = taskExamine.isReturnRejectNode;
14253
- _this14.endFlowInfo.isSerialSubmit = taskExamine.isSerialSubmit;
14346
+ _this23.nodeInfo.nextNode = taskExamine.processDefinitionId;
14347
+ _this23.NodeName = taskExamine.nodeName;
14348
+ _this23.taskId = taskExamine.taskId;
14349
+ _this23.businessIds = taskExamine.businessId;
14350
+ _this23.appId = taskExamine.appId;
14351
+ _this23.taskExamineInfo = taskExamine;
14352
+ _this23.taskExamineInfo.choiceOrgId = choiceOrgId;
14353
+ _this23.taskExamineInfo.choiceDeptId = choiceDeptId;
14354
+ _this23.endFlowInfo.processType = taskExamine.processType;
14355
+ _this23.endFlowInfo.isReturnSubmitter = taskExamine.isReturnSubmitter;
14356
+ _this23.nextNode.isReturnSubmitter = taskExamine.isReturnSubmitter;
14357
+ _this23.nextNode.isUndertakeReply = taskExamine.isUndertakeReply;
14358
+ _this23.nextNode.isTakeAdviceReply = taskExamine.isTakeAdviceReply;
14359
+ _this23.nextNode.isUndertakeEnd = taskExamine.isUndertakeEnd;
14360
+ _this23.nextNode.isTakeAdviceEnd = taskExamine.isTakeAdviceEnd;
14361
+ _this23.nextNode.isReadDealReply = taskExamine.isReadDealReply;
14362
+ _this23.nextNode.isReadDealEnd = taskExamine.isReadDealEnd;
14363
+ _this23.nextNode.isReturnRejectNode = taskExamine.isReturnRejectNode;
14364
+ _this23.nextNode.isSerialSubmit = taskExamine.isSerialSubmit;
14365
+ _this23.endFlowInfo.isSubFlow = taskExamine.isSubFlow;
14366
+ _this23.endFlowInfo.isUndertakeReply = taskExamine.isUndertakeReply;
14367
+ _this23.endFlowInfo.isUndertakeEnd = taskExamine.isUndertakeEnd;
14368
+ _this23.endFlowInfo.isTakeAdviceEnd = taskExamine.isTakeAdviceEnd;
14369
+ _this23.endFlowInfo.isTakeAdviceReply = taskExamine.isTakeAdviceReply;
14370
+ _this23.endFlowInfo.isReadDealEnd = taskExamine.isReadDealEnd;
14371
+ _this23.endFlowInfo.isReadDealReply = taskExamine.isReadDealReply;
14372
+ _this23.endFlowInfo.isReturnRejectNode = taskExamine.isReturnRejectNode;
14373
+ _this23.endFlowInfo.isSerialSubmit = taskExamine.isSerialSubmit;
14254
14374
  // this.endFlowInfo.isReadDealReply =
14255
14375
  // taskExamine.isReadDealReplybusinessId;
14256
- _this14.endFlowInfo.appId = taskExamine.appId;
14257
- _this14.endFlowInfo.businessId = taskExamine.businessId;
14258
- _this14.endFlowInfo.processDefinitionId = taskExamine.processDefinitionId;
14259
- _this14.endFlowInfo.nodeId = taskExamine.nodeId;
14376
+ _this23.endFlowInfo.appId = taskExamine.appId;
14377
+ _this23.endFlowInfo.businessId = taskExamine.businessId;
14378
+ _this23.endFlowInfo.processDefinitionId = taskExamine.processDefinitionId;
14379
+ _this23.endFlowInfo.nodeId = taskExamine.nodeId;
14260
14380
  }
14261
- if (_this14.nodeName) {
14262
- _this14.NodeName = _this14.nodeName;
14381
+ if (_this23.nodeName) {
14382
+ _this23.NodeName = _this23.nodeName;
14263
14383
  }
14264
- _this14.isCanAddSign = isCanAddSign;
14265
- _this14.processObj = res.data;
14266
- if (_this14.isCanAddSign) {
14267
- _this14.nextNode.isAddSign = '2';
14384
+ _this23.isCanAddSign = isCanAddSign;
14385
+ _this23.processObj = res.data;
14386
+ if (_this23.isCanAddSign) {
14387
+ _this23.nextNode.isAddSign = '2';
14268
14388
  }
14269
- _this14.isCanRemoveSign = isCanRemoveSign;
14270
- if (_this14.isCanRemoveSign) {
14271
- _this14.nextNode.isRemoveSign = '2';
14389
+ _this23.isCanRemoveSign = isCanRemoveSign;
14390
+ if (_this23.isCanRemoveSign) {
14391
+ _this23.nextNode.isRemoveSign = '2';
14272
14392
  }
14273
- _this14.isSpecial = isSpecial;
14393
+ _this23.isSpecial = isSpecial;
14274
14394
 
14275
- if (!_this14.isOpinionRequired) {
14276
- _this14.isOpinionRequired = 0;
14395
+ if (!_this23.isOpinionRequired) {
14396
+ _this23.isOpinionRequired = 0;
14277
14397
  }
14278
14398
  // opinion && (this.value = opinion);
14279
- _this14.nextNode.notificationMsg = defaultNotificationMessage;
14280
- _this14.moreList = [];
14399
+ _this23.nextNode.notificationMsg = defaultNotificationMessage;
14400
+ _this23.moreList = [];
14281
14401
  if (taskButtonList && taskButtonList.length != 0) {
14282
14402
  taskButtonList.map(function (item) {
14283
14403
  if (item.fun === 'reject()') {
14284
- _this14.rejectObj = item;
14404
+ _this23.rejectObj = item;
14285
14405
  } else if (item.fun === 'toStartTaskRead()') {
14286
- _this14.pointsReadingObj = item;
14406
+ _this23.pointsReadingObj = item;
14287
14407
  } else {
14288
- _this14.moreList.push(item);
14408
+ _this23.moreList.push(item);
14289
14409
  }
14290
14410
  });
14291
14411
  }
14292
- _this14.isMainSubProcess = res.data.isMainSubProcess == 'true';
14293
- _this14.isCustomPreset = isCustomPreset;
14294
- _this14.isPreset = isPreset;
14295
- _this14.presetTaskNodeMap = presetTaskNodeMap;
14296
- _this14.presetTaskNodeKeyStr = presetTaskNodeKeyStr;
14297
- _this14.getFind();
14298
- _this14.getNodeType();
14299
- _this14.getNodeInfo();
14412
+ _this23.isMainSubProcess = res.data.isMainSubProcess == 'true';
14413
+ _this23.isCustomPreset = isCustomPreset;
14414
+ _this23.isPreset = isPreset;
14415
+ _this23.presetTaskNodeMap = presetTaskNodeMap;
14416
+ _this23.presetTaskNodeKeyStr = presetTaskNodeKeyStr;
14417
+ _this23.getFind();
14418
+ _this23.getNodeType();
14419
+ _this23.getNodeInfo();
14300
14420
  } else {
14301
14421
  if (res.status === 'taskCompleted') {
14302
- _this14.$emit('shrink', true);
14303
- _this14.shrinkAbled = true;
14304
- _this14.$message.warning(res.message || '系统错误,请联系管理员!');
14422
+ _this23.$emit('shrink', true);
14423
+ _this23.shrinkAbled = true;
14424
+ _this23.$message.warning(res.message || '系统错误,请联系管理员!');
14305
14425
  } else {
14306
- _this14.$message.error(res.message || '系统错误,请联系管理员!');
14426
+ _this23.$message.error(res.message || '系统错误,请联系管理员!');
14307
14427
  }
14308
14428
  }
14309
14429
  }).catch(function (err) {
14310
- _this14.loading.close();
14430
+ _this23.loading.close();
14311
14431
  if (err.message && err.message !== 'canceled') {
14312
- _this14.$message.error(err.message);
14432
+ _this23.$message.error(err.message);
14313
14433
  }
14314
14434
  });
14315
14435
  },
@@ -14360,7 +14480,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14360
14480
  * @date 2022年5月25日
14361
14481
  **/
14362
14482
  getProcess: function getProcess() {
14363
- var _this15 = this;
14483
+ var _this24 = this;
14364
14484
 
14365
14485
  var params = {
14366
14486
  businessId: this.businessId,
@@ -14376,32 +14496,32 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14376
14496
  message = res.message,
14377
14497
  data = res.data;
14378
14498
 
14379
- _this15.loading.close();
14499
+ _this24.loading.close();
14380
14500
  if (status === 'success') {
14381
14501
  if (!Object.keys(data).length || data.definitionList && !data.definitionList.length) {
14382
- _this15.$message.error('流程不存在或未关联对应流程!');
14502
+ _this24.$message.error('流程不存在或未关联对应流程!');
14383
14503
  } else {
14384
- _this15.nodeInfo.option = data.definitionList;
14385
- _this15.nodeInfo.nextNode = data.definitionList.filter(function (item) {
14386
- return item.processDefKey == _this15.defaultProcessKey;
14504
+ _this24.nodeInfo.option = data.definitionList;
14505
+ _this24.nodeInfo.nextNode = data.definitionList.filter(function (item) {
14506
+ return item.processDefKey == _this24.defaultProcessKey;
14387
14507
  });
14388
- if (_this15.nodeInfo.nextNode.length) {
14389
- _this15.nodeInfo.nextNode = _this15.nodeInfo.nextNode[0].processDefId;
14508
+ if (_this24.nodeInfo.nextNode.length) {
14509
+ _this24.nodeInfo.nextNode = _this24.nodeInfo.nextNode[0].processDefId;
14390
14510
  } else {
14391
14511
  if (data.definitionList.length == 1) {
14392
- _this15.nodeInfo.nextNode = data.definitionList[0].processDefId;
14512
+ _this24.nodeInfo.nextNode = data.definitionList[0].processDefId;
14393
14513
  } else {
14394
- _this15.nodeInfo.nextNode = '';
14514
+ _this24.nodeInfo.nextNode = '';
14395
14515
  }
14396
14516
  }
14397
14517
  }
14398
14518
  } else {
14399
- _this15.$message.error(message || '系统错误,请联系管理员!');
14519
+ _this24.$message.error(message || '系统错误,请联系管理员!');
14400
14520
  }
14401
14521
  }).catch(function (err) {
14402
- _this15.loading.close();
14522
+ _this24.loading.close();
14403
14523
  if (err.message && err.message !== 'canceled') {
14404
- _this15.$message.error(err.message);
14524
+ _this24.$message.error(err.message);
14405
14525
  }
14406
14526
  });
14407
14527
  },
@@ -14413,7 +14533,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14413
14533
  * @date 2022年5月25日
14414
14534
  **/
14415
14535
  getPendedhistoryList: function getPendedhistoryList() {
14416
- var _this16 = this;
14536
+ var _this25 = this;
14417
14537
 
14418
14538
  var params = {
14419
14539
  apprecordId: this.businessIds,
@@ -14426,17 +14546,17 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14426
14546
  results = res.results;
14427
14547
 
14428
14548
  if (!rCode) {
14429
- _this16.nextNode.nextUserId = [];
14430
- _this16.showNews = false;
14431
- _this16.nextNode.notificationType = [];
14432
- _this16.pendingId = results[results.length - 1].attachId;
14433
- _this16.getHedInfo();
14549
+ _this25.nextNode.nextUserId = [];
14550
+ _this25.showNews = false;
14551
+ _this25.nextNode.notificationType = [];
14552
+ _this25.pendingId = results[results.length - 1].attachId;
14553
+ _this25.getHedInfo();
14434
14554
  } else {
14435
- _this16.$message.error(msg || '系统错误,请联系管理员!');
14555
+ _this25.$message.error(msg || '系统错误,请联系管理员!');
14436
14556
  }
14437
14557
  }).catch(function (err) {
14438
14558
  if (err.message && err.message !== 'canceled') {
14439
- _this16.$message.error(err.message);
14559
+ _this25.$message.error(err.message);
14440
14560
  }
14441
14561
  });
14442
14562
  },
@@ -14450,21 +14570,21 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14450
14570
  * @date 2022年5月25日
14451
14571
  **/
14452
14572
  subProcess: function subProcess(val) {
14453
- var _this17 = this;
14573
+ var _this26 = this;
14454
14574
 
14455
14575
  this.$refs['nextNode'].validate(function (valid) {
14456
14576
  if (valid) {
14457
- if (_this17.isSubmitButtonShowAgreeAndDisagree == 1) {
14458
- _this17.value = _this17.value.replace(RegExp('不同意。', 'g'), '');
14459
- _this17.value = _this17.value.replace(RegExp('同意。', 'g'), '');
14460
- _this17.value = val + _this17.value;
14577
+ if (_this26.isSubmitButtonShowAgreeAndDisagree == 1) {
14578
+ _this26.value = _this26.value.replace(RegExp('不同意。', 'g'), '');
14579
+ _this26.value = _this26.value.replace(RegExp('同意。', 'g'), '');
14580
+ _this26.value = val + _this26.value;
14461
14581
  }
14462
- if (!_this17.validInfo()) return;
14463
- if (_this17.beforeSubmit == undefined) {
14464
- _this17.subFun(_this17.sendData);
14582
+ if (!_this26.validInfo()) return;
14583
+ if (_this26.beforeSubmit == undefined) {
14584
+ _this26.subFun(_this26.sendData);
14465
14585
  } else {
14466
- _this17.beforeSubmit(1).then(function (next) {
14467
- _this17.sendData();
14586
+ _this26.beforeSubmit(1).then(function (next) {
14587
+ _this26.sendData();
14468
14588
  }).catch(function (e) {});
14469
14589
  }
14470
14590
  }
@@ -14504,7 +14624,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14504
14624
  return true;
14505
14625
  },
14506
14626
  sendData: function sendData() {
14507
- var _this18 = this;
14627
+ var _this27 = this;
14508
14628
 
14509
14629
  this.$refs['nextNode'].validate(function () {
14510
14630
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee(valid) {
@@ -14518,89 +14638,89 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14518
14638
  break;
14519
14639
  }
14520
14640
 
14521
- if (!_this18.isFlow) {
14641
+ if (!_this27.isFlow) {
14522
14642
  _context.next = 3;
14523
14643
  break;
14524
14644
  }
14525
14645
 
14526
- return _context.abrupt('return', _this18.handleVisible = true);
14646
+ return _context.abrupt('return', _this27.handleVisible = true);
14527
14647
 
14528
14648
  case 3:
14529
14649
  nextUserId = [];
14530
14650
 
14531
- if (_this18.multiple) {
14532
- _this18.nextNode.nextUserId && _this18.nextNode.nextUserId.map(function (item) {
14651
+ if (_this27.multiple) {
14652
+ _this27.nextNode.nextUserId && _this27.nextNode.nextUserId.map(function (item) {
14533
14653
  return nextUserId.push(item);
14534
14654
  });
14535
14655
  }
14536
14656
  addSignUserId = [];
14537
14657
 
14538
- if (_this18.isCanAddSign && _this18.nextNode.isAddSign == '1') {
14539
- _this18.nextNode.addSignUserId.map(function (item) {
14658
+ if (_this27.isCanAddSign && _this27.nextNode.isAddSign == '1') {
14659
+ _this27.nextNode.addSignUserId.map(function (item) {
14540
14660
  addSignUserId.push(item);
14541
14661
  });
14542
14662
  }
14543
14663
  removeSignUserId = [];
14544
14664
 
14545
- if (_this18.isCanRemoveSign && _this18.nextNode.isRemoveSign == '1') {
14546
- _this18.nextNode.removeSignUserId.map(function (item) {
14665
+ if (_this27.isCanRemoveSign && _this27.nextNode.isRemoveSign == '1') {
14666
+ _this27.nextNode.removeSignUserId.map(function (item) {
14547
14667
  removeSignUserId.push(item);
14548
14668
  });
14549
14669
  }
14550
14670
  str = '';
14551
14671
 
14552
- if (_this18.value) {
14553
- str = _this18.value.replace(/\s+/g, '');
14672
+ if (_this27.value) {
14673
+ str = _this27.value.replace(/\s+/g, '');
14554
14674
  }
14555
- if ((!_this18.value || str === '') && _this18.nodeDefaultSubmitOpinion) {
14556
- _this18.value = _this18.nodeDefaultSubmitOpinion;
14675
+ if ((!_this27.value || str === '') && _this27.nodeDefaultSubmitOpinion) {
14676
+ _this27.value = _this27.nodeDefaultSubmitOpinion;
14557
14677
  }
14558
- if (!_this18.isSpecial) {
14559
- delete _this18.nextNode.nextOperate;
14560
- delete _this18.nextNode.nextNodeId;
14678
+ if (!_this27.isSpecial) {
14679
+ delete _this27.nextNode.nextOperate;
14680
+ delete _this27.nextNode.nextNodeId;
14561
14681
  }
14562
- if (_this18.nextNode.nextOperate === 9) {
14563
- _this18.nextNode.isReturnRejectNode = 1;
14564
- _this18.nextNode.processDefinitionId = _this18.processObj.taskExamine.processDefinitionId;
14682
+ if (_this27.nextNode.nextOperate === 9) {
14683
+ _this27.nextNode.isReturnRejectNode = 1;
14684
+ _this27.nextNode.processDefinitionId = _this27.processObj.taskExamine.processDefinitionId;
14565
14685
  }
14566
- if (_this18.nextNode.nextOperate != 0 && _this18.nextNode.nextOperate != 1) {
14567
- delete _this18.nextNode.nextNodeId;
14686
+ if (_this27.nextNode.nextOperate != 0 && _this27.nextNode.nextOperate != 1) {
14687
+ delete _this27.nextNode.nextNodeId;
14568
14688
  }
14569
14689
  _context.next = 17;
14570
- return _this18.saveInfo('subMit');
14690
+ return _this27.saveInfo('subMit');
14571
14691
 
14572
14692
  case 17:
14573
- _this18.loading = util["a" /* default */].loading(_this18.$loading, '加载中...');
14693
+ _this27.loading = util["a" /* default */].loading(_this27.$loading, '加载中...');
14574
14694
 
14575
14695
  notificationType = '';
14576
14696
 
14577
- notificationType = _this18.nextNode.notificationType.join(',');
14697
+ notificationType = _this27.nextNode.notificationType.join(',');
14578
14698
  addSignUserId = addSignUserId.join(',');
14579
14699
  removeSignUserId = removeSignUserId.join(',');
14580
- params = mainvue_type_script_lang_js_extends({}, _this18.nextNode, {
14581
- pendingId: _this18.pendingId,
14582
- opinion: _this18.isForceDisplayDefaultOptionForPrefix && !_this18.value.startsWith(_this18.nodeDefaultSubmitOpinion) ? _this18.nodeDefaultSubmitOpinion + _this18.value : _this18.value,
14700
+ params = mainvue_type_script_lang_js_extends({}, _this27.nextNode, {
14701
+ pendingId: _this27.pendingId,
14702
+ opinion: _this27.isForceDisplayDefaultOptionForPrefix && !_this27.value.startsWith(_this27.nodeDefaultSubmitOpinion) ? _this27.nodeDefaultSubmitOpinion + _this27.value : _this27.value,
14583
14703
  userId: util["a" /* default */].getStorage('userId'),
14584
- nextUserId: _this18.multiple ? nextUserId.join(',') : _this18.nextNode.nextUserId,
14704
+ nextUserId: _this27.multiple ? nextUserId.join(',') : _this27.nextNode.nextUserId,
14585
14705
  addSignUserId: addSignUserId,
14586
- customPresetUserJson: JSON.stringify(_this18.presetList),
14587
- presetUserJson: JSON.stringify(_this18.presetUserJson),
14706
+ customPresetUserJson: JSON.stringify(_this27.presetList),
14707
+ presetUserJson: JSON.stringify(_this27.presetUserJson),
14588
14708
  removeSignUserId: removeSignUserId,
14589
- nextReadUserId: _this18.readMultiple ? _this18.mixReadList && _this18.mixReadList.join('|') : _this18.nextNode.nextReadUserId,
14590
- nextOrgId: !_this18.isShowNextUser ? _this18.multiple ? _this18.mixOrgIdList && _this18.mixOrgIdList.join('|') : _this18.nextNode.nextOrgId : '',
14591
- presetReadUserId: _this18.mixPresetList && _this18.mixPresetList.length > 0 ? _this18.mixPresetList.join('|') : _this18.nextNode.presetReadUserId.join(','),
14709
+ nextReadUserId: _this27.readMultiple ? _this27.mixReadList && _this27.mixReadList.join('|') : _this27.nextNode.nextReadUserId,
14710
+ nextOrgId: !_this27.isShowNextUser ? _this27.multiple ? _this27.mixOrgIdList && _this27.mixOrgIdList.join('|') : _this27.nextNode.nextOrgId : '',
14711
+ presetReadUserId: _this27.mixPresetList && _this27.mixPresetList.length > 0 ? _this27.mixPresetList.join('|') : _this27.nextNode.presetReadUserId.join(','),
14592
14712
  notificationType: notificationType
14593
14713
  });
14594
14714
 
14595
- if (_this18.activeNames != '1') delete params.customPresetUserJson;
14596
- if (_this18.nextNode.isRemoveSign != '1') {
14715
+ if (_this27.activeNames != '1') delete params.customPresetUserJson;
14716
+ if (_this27.nextNode.isRemoveSign != '1') {
14597
14717
  delete params.removeSignUserId;
14598
14718
  }
14599
- if (_this18.nextNode.isAddSign != '1') {
14719
+ if (_this27.nextNode.isAddSign != '1') {
14600
14720
  delete params.addSignUserId;
14601
14721
  }
14602
- _this18.loading = util["a" /* default */].loading(_this18.$loading, '提交中...');
14603
- isEndUserTask = _this18.isEndUserTask, choiceOrgId = _this18.choiceOrgId, choiceDeptId = _this18.choiceDeptId, pOrgId = _this18.pOrgId, taskExamineInfo = _this18.taskExamineInfo, needRetrialAuth = _this18.needRetrialAuth;
14722
+ _this27.loading = util["a" /* default */].loading(_this27.$loading, '提交中...');
14723
+ isEndUserTask = _this27.isEndUserTask, choiceOrgId = _this27.choiceOrgId, choiceDeptId = _this27.choiceDeptId, pOrgId = _this27.pOrgId, taskExamineInfo = _this27.taskExamineInfo, needRetrialAuth = _this27.needRetrialAuth;
14604
14724
 
14605
14725
  params.isEndUserTask = isEndUserTask;
14606
14726
  params.choiceOrgId = choiceOrgId;
@@ -14617,18 +14737,18 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14617
14737
  var status = res.status,
14618
14738
  message = res.message;
14619
14739
 
14620
- _this18.loading.close();
14740
+ _this27.loading.close();
14621
14741
  if (status === 'success') {
14622
- _this18.$message.success('提交成功');
14623
- _this18.$emit('success');
14742
+ _this27.$message.success('提交成功');
14743
+ _this27.$emit('success');
14624
14744
  } else {
14625
- _this18.$message.error(message || '系统错误,请联系管理员!');
14626
- _this18.$emit('error');
14745
+ _this27.$message.error(message || '系统错误,请联系管理员!');
14746
+ _this27.$emit('error');
14627
14747
  }
14628
14748
  }).catch(function (err) {
14629
- _this18.loading.close();
14749
+ _this27.loading.close();
14630
14750
  if (err.message && err.message !== 'canceled') {
14631
- _this18.$message.error(err.message);
14751
+ _this27.$message.error(err.message);
14632
14752
  }
14633
14753
  }));
14634
14754
 
@@ -14640,7 +14760,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
14640
14760
  return _context.stop();
14641
14761
  }
14642
14762
  }
14643
- }, _callee, _this18);
14763
+ }, _callee, _this27);
14644
14764
  }));
14645
14765
 
14646
14766
  return function (_x) {