eoss-ui 0.8.3 → 0.8.5

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 (52) hide show
  1. package/lib/button-group.js +46 -45
  2. package/lib/button.js +46 -45
  3. package/lib/calogin.js +89 -57
  4. package/lib/checkbox-group.js +46 -45
  5. package/lib/data-table-form.js +46 -45
  6. package/lib/data-table.js +95 -69
  7. package/lib/date-picker.js +46 -45
  8. package/lib/dialog.js +46 -45
  9. package/lib/eoss-ui.common.js +401 -333
  10. package/lib/flow-group.js +46 -45
  11. package/lib/flow-list.js +46 -45
  12. package/lib/flow.js +285 -270
  13. package/lib/form.js +46 -45
  14. package/lib/handle-user.js +46 -45
  15. package/lib/handler.js +46 -45
  16. package/lib/icon.js +46 -45
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +46 -45
  19. package/lib/input.js +46 -45
  20. package/lib/login.js +46 -45
  21. package/lib/main.js +63 -61
  22. package/lib/nav.js +46 -45
  23. package/lib/page.js +46 -45
  24. package/lib/pagination.js +46 -45
  25. package/lib/player.js +46 -45
  26. package/lib/qr-code.js +46 -45
  27. package/lib/radio-group.js +46 -45
  28. package/lib/retrial-auth.js +46 -45
  29. package/lib/select-ganged.js +46 -45
  30. package/lib/select.js +46 -45
  31. package/lib/selector-panel.js +46 -45
  32. package/lib/selector.js +46 -45
  33. package/lib/sizer.js +46 -45
  34. package/lib/steps.js +46 -45
  35. package/lib/switch.js +46 -45
  36. package/lib/table-form.js +46 -45
  37. package/lib/tabs.js +46 -45
  38. package/lib/tips.js +46 -45
  39. package/lib/tree-group.js +46 -45
  40. package/lib/tree.js +46 -45
  41. package/lib/upload.js +46 -45
  42. package/lib/utils/util.js +46 -45
  43. package/lib/wujie.js +46 -45
  44. package/lib/wxlogin.js +46 -45
  45. package/package.json +1 -1
  46. package/packages/calogin/src/plugin.js +3 -3
  47. package/packages/data-table/src/main.vue +49 -20
  48. package/packages/flow/src/processForm.vue +259 -228
  49. package/packages/main/src/main.vue +1 -1
  50. package/packages/main/src/simplicityTop/index.vue +6 -5
  51. package/src/index.js +1 -1
  52. package/src/utils/util.js +49 -48
package/lib/flow.js CHANGED
@@ -286,6 +286,7 @@ var lodash = __webpack_require__(12);
286
286
 
287
287
 
288
288
  var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
289
+ var winTop = getWinTop();
289
290
  var isIE = /MSIE|Trident/.test(navigator.userAgent);
290
291
  var parser = new external_ua_parser_js_["UAParser"]();
291
292
  var $hueStep = 2;
@@ -833,19 +834,19 @@ var busEmit = function busEmit(that, _ref3) {
833
834
  return;
834
835
  }
835
836
  if (isIE) {
836
- if (win.top !== win.self) {
837
- win.top.postMessage({ method: method, query: args, args: args }, '*');
837
+ if (winTop !== win.self) {
838
+ winTop.postMessage({ method: method, query: args, args: args }, '*');
838
839
  return;
839
840
  }
840
841
  var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
841
842
  bus && (Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args));
842
843
  } else {
843
- if (win.top !== win.self) {
844
+ if (winTop !== win.self) {
844
845
  var _bus2 = win.$wujie ? win.$wujie.bus : null;
845
846
  if (_bus2) {
846
847
  Array.isArray(args) ? _bus2.$emit.apply(_bus2, [method].concat(args)) : _bus2.$emit(method, args);
847
848
  } else {
848
- win.top.postMessage({ method: method, query: args, args: args }, '*');
849
+ winTop.postMessage({ method: method, query: args, args: args }, '*');
849
850
  }
850
851
  return;
851
852
  }
@@ -1083,7 +1084,7 @@ var delUrlParam = function delUrlParam(_ref4) {
1083
1084
 
1084
1085
  var pUrl = '';
1085
1086
  try {
1086
- pUrl = win.top.location.href;
1087
+ pUrl = winTop.location.href;
1087
1088
  } catch (error) {
1088
1089
  pUrl = win.location.href;
1089
1090
  }
@@ -2537,7 +2538,7 @@ var isLogined = function () {
2537
2538
  pathname = '';
2538
2539
 
2539
2540
  try {
2540
- pathname = win.top.location.pathname;
2541
+ pathname = winTop.location.pathname;
2541
2542
  } catch (error) {
2542
2543
  pathname = win.location.pathname;
2543
2544
  }
@@ -2603,12 +2604,12 @@ var isLogined = function () {
2603
2604
  });
2604
2605
  try {
2605
2606
  var url = delUrlParam({
2606
- url: win.top.location.href,
2607
+ url: winTop.location.href,
2607
2608
  key: ['serverId', 'authType', 'code', 'sessionId']
2608
2609
  });
2609
- win.top.location.href = url;
2610
+ winTop.location.href = url;
2610
2611
  setTimeout(function () {
2611
- win.top.location.reload();
2612
+ winTop.location.reload();
2612
2613
  }, 200);
2613
2614
  } catch (error) {
2614
2615
  var _url2 = delUrlParam({
@@ -2627,8 +2628,8 @@ var isLogined = function () {
2627
2628
  break;
2628
2629
  case 3:
2629
2630
  try {
2630
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2631
- win.top.location.href = href;
2631
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(winTop.location.href));
2632
+ winTop.location.href = href;
2632
2633
  } catch (error) {
2633
2634
  var _href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.location.href));
2634
2635
  win.location.href = _href;
@@ -2642,18 +2643,18 @@ var isLogined = function () {
2642
2643
  sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2643
2644
  try {
2644
2645
  if (loginPage) {
2645
- win.top.location.replace(loginPage);
2646
+ winTop.location.replace(loginPage);
2646
2647
  } else if (document.referrer) {
2647
2648
  var referrerUrl = new URL(document.referrer);
2648
- if (referrerUrl.host !== win.top.location.host) {
2649
- win.top.location.replace(document.referrer);
2650
- } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2651
- win.top.location.href = './login.html';
2649
+ if (referrerUrl.host !== winTop.location.host) {
2650
+ winTop.location.replace(document.referrer);
2651
+ } else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2652
+ winTop.location.href = './login.html';
2652
2653
  } else {
2653
2654
  next('/login');
2654
2655
  }
2655
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2656
- win.top.location.href = './login.html';
2656
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
2657
+ winTop.location.href = './login.html';
2657
2658
  } else {
2658
2659
  next('/login');
2659
2660
  }
@@ -2672,18 +2673,18 @@ var isLogined = function () {
2672
2673
  callback: function callback() {
2673
2674
  try {
2674
2675
  if (loginPage) {
2675
- win.top.location.replace(loginPage);
2676
+ winTop.location.replace(loginPage);
2676
2677
  } else if (document.referrer) {
2677
2678
  var referrerUrl = new URL(document.referrer);
2678
- if (referrerUrl.host !== win.top.location.host) {
2679
- win.top.location.replace(document.referrer);
2680
- } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2681
- win.top.location.href = './login.html';
2679
+ if (referrerUrl.host !== winTop.location.host) {
2680
+ winTop.location.replace(document.referrer);
2681
+ } else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2682
+ winTop.location.href = './login.html';
2682
2683
  } else {
2683
2684
  next('/login');
2684
2685
  }
2685
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2686
- win.top.location.href = './login.html';
2686
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
2687
+ winTop.location.href = './login.html';
2687
2688
  } else {
2688
2689
  next('/login');
2689
2690
  }
@@ -2712,19 +2713,19 @@ var isLogined = function () {
2712
2713
  } else {
2713
2714
  try {
2714
2715
  if (loginPage) {
2715
- win.top.location.replace(loginPage);
2716
+ winTop.location.replace(loginPage);
2716
2717
  } else if (document.referrer) {
2717
2718
  referrerUrl = new URL(document.referrer);
2718
2719
 
2719
- if (referrerUrl.host !== win.top.location.host) {
2720
- win.top.location.replace(document.referrer);
2721
- } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2722
- win.top.location.href = './login.html';
2720
+ if (referrerUrl.host !== winTop.location.host) {
2721
+ winTop.location.replace(document.referrer);
2722
+ } else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2723
+ winTop.location.href = './login.html';
2723
2724
  } else {
2724
2725
  next('/login');
2725
2726
  }
2726
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2727
- win.top.location.href = './login.html';
2727
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
2728
+ winTop.location.href = './login.html';
2728
2729
  } else {
2729
2730
  next('/login');
2730
2731
  }
@@ -2856,7 +2857,7 @@ var util_loading = function loading($loading, res) {
2856
2857
  }
2857
2858
  if (isObject(res)) {
2858
2859
  var config = extend({}, {
2859
- target: win.top.document.body,
2860
+ target: winTop.document.body,
2860
2861
  fullscreen: true,
2861
2862
  background: 'rgba(0, 0, 0, 0.65)',
2862
2863
  spinner: 'el-icon-loading',
@@ -2865,7 +2866,7 @@ var util_loading = function loading($loading, res) {
2865
2866
  return $loading(config);
2866
2867
  } else {
2867
2868
  var _loading = $loading({
2868
- target: win.top.document.body,
2869
+ target: winTop.document.body,
2869
2870
  fullscreen: true,
2870
2871
  background: 'rgba(0, 0, 0, 0.65)',
2871
2872
  spinner: 'el-icon-loading',
@@ -3011,7 +3012,7 @@ var util_responses = function responses(data) {
3011
3012
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump', 'showLaunch']);
3012
3013
  var href = '';
3013
3014
  try {
3014
- href = win.top.location.href;
3015
+ href = winTop.location.href;
3015
3016
  } catch (error) {
3016
3017
  href = win.location.href;
3017
3018
  }
@@ -3036,7 +3037,7 @@ var util_responses = function responses(data) {
3036
3037
  if (loginPage) {
3037
3038
  var src = void 0;
3038
3039
  if (!startWith(loginPage, ['http', '/'], true)) {
3039
- var pathname = win.top.location.pathname;
3040
+ var pathname = winTop.location.pathname;
3040
3041
  if (pathname !== '/') {
3041
3042
  pathname = pathname.split('/');
3042
3043
  pathname.splice(pathname.length - 1);
@@ -3048,16 +3049,16 @@ var util_responses = function responses(data) {
3048
3049
  } else {
3049
3050
  src = loginPage;
3050
3051
  }
3051
- win.top.location.href = src;
3052
- } else if (win.top.location.href.indexOf('main.html') > -1) {
3053
- win.top.location.href = './login.html';
3052
+ winTop.location.href = src;
3053
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
3054
+ winTop.location.href = './login.html';
3054
3055
  } else {
3055
- var hash = win.top.location.hash;
3056
+ var hash = winTop.location.hash;
3056
3057
  if (hash) {
3057
- var len = win.top.location.href.indexOf(hash);
3058
- win.top.location.href = win.location.href.slice(0, len) + '#/login';
3058
+ var len = winTop.location.href.indexOf(hash);
3059
+ winTop.location.href = win.location.href.slice(0, len) + '#/login';
3059
3060
  } else {
3060
- win.top.location.href = '/login.html';
3061
+ winTop.location.href = '/login.html';
3061
3062
  }
3062
3063
  }
3063
3064
  } catch (error) {
@@ -3876,9 +3877,9 @@ var removeCookie = function removeCookie(key) {
3876
3877
 
3877
3878
  var winTopOpen = function winTopOpen(config) {
3878
3879
  if (isIE) {
3879
- if (win.top !== win.self) {
3880
+ if (winTop !== win.self) {
3880
3881
  try {
3881
- win.top.windowOpen(config);
3882
+ winTop.windowOpen(config);
3882
3883
  } catch (error) {
3883
3884
  win.postMessage({ method: 'windowOpen', query: config }, '*');
3884
3885
  }
@@ -8914,8 +8915,8 @@ var CommonOpinions_component = Object(componentNormalizer["a" /* default */])(
8914
8915
  )
8915
8916
 
8916
8917
  /* harmony default export */ var CommonOpinions = (CommonOpinions_component.exports);
8917
- // 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=80a2c5c2&
8918
- var processFormvue_type_template_id_80a2c5c2_render = function () {
8918
+ // 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=6df91879&
8919
+ var processFormvue_type_template_id_6df91879_render = function () {
8919
8920
  var _vm = this
8920
8921
  var _h = _vm.$createElement
8921
8922
  var _c = _vm._self._c || _h
@@ -9743,11 +9744,11 @@ var processFormvue_type_template_id_80a2c5c2_render = function () {
9743
9744
  1
9744
9745
  )
9745
9746
  }
9746
- var processFormvue_type_template_id_80a2c5c2_staticRenderFns = []
9747
- processFormvue_type_template_id_80a2c5c2_render._withStripped = true
9747
+ var processFormvue_type_template_id_6df91879_staticRenderFns = []
9748
+ processFormvue_type_template_id_6df91879_render._withStripped = true
9748
9749
 
9749
9750
 
9750
- // CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=80a2c5c2&
9751
+ // CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=6df91879&
9751
9752
 
9752
9753
  // 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=5424da0a&
9753
9754
  var selectUservue_type_template_id_5424da0a_render = function () {
@@ -11864,7 +11865,10 @@ var processFormvue_type_script_lang_js_components;
11864
11865
  nextCurrentOrgObjSelect: [],
11865
11866
  isHideCurrentOrg: false,
11866
11867
  isHideOtherOrg: false,
11867
- currentOrgSelectorParams: { filid: JSON.parse(util["a" /* default */].getStorage('mainConfig')).userModel.orgId, only_filid: true },
11868
+ currentOrgSelectorParams: {
11869
+ filid: JSON.parse(util["a" /* default */].getStorage('mainConfig')).userModel.orgId,
11870
+ only_filid: true
11871
+ },
11868
11872
  foreignOrgSelectorParams: { filid: 'all', nofilid: 1 },
11869
11873
  nextNode: {
11870
11874
  nodeName: '',
@@ -12099,6 +12103,8 @@ var processFormvue_type_script_lang_js_components;
12099
12103
  }
12100
12104
  },
12101
12105
  selecNext: function selecNext(val) {
12106
+ var _this3 = this;
12107
+
12102
12108
  this.nextNode.nextUser = [];
12103
12109
  this.options = [];
12104
12110
  this.selectUserList = [];
@@ -12110,7 +12116,11 @@ var processFormvue_type_script_lang_js_components;
12110
12116
  }
12111
12117
  this.nextNode.nodeInfo = this.operationList[val].list;
12112
12118
  if (this.nextNode.nodeInfo.length > 0) {
12113
- this.nextNode.nextNode = this.defaultNextNode || this.nextNode.nodeInfo[0].nodeId;
12119
+ var defaultNodeData = this.nextNode.nodeInfo.filter(function (x) {
12120
+ return x.nodeId == _this3.defaultNextNode;
12121
+ });
12122
+ length;
12123
+ this.nextNode.nextNode = defaultNodeData.length > 0 ? this.defaultNextNode : this.nextNode.nodeInfo[0].nodeId;
12114
12124
  }
12115
12125
  this.getNodeInfos();
12116
12126
  },
@@ -12185,7 +12195,7 @@ var processFormvue_type_script_lang_js_components;
12185
12195
  this.getsubProcessColumns();
12186
12196
  },
12187
12197
  getNodeType: function getNodeType() {
12188
- var _this3 = this;
12198
+ var _this4 = this;
12189
12199
 
12190
12200
  util["a" /* default */].ajax({
12191
12201
  url: api["B" /* findCodeValues */],
@@ -12198,23 +12208,23 @@ var processFormvue_type_script_lang_js_components;
12198
12208
  data = res.data;
12199
12209
 
12200
12210
  if (status === 'success') {
12201
- _this3.nextNode.noticeList = data;
12211
+ _this4.nextNode.noticeList = data;
12202
12212
  }
12203
12213
  }).catch(function (err) {
12204
- if (_this3.showBtn) {
12205
- _this3.loading = false;
12214
+ if (_this4.showBtn) {
12215
+ _this4.loading = false;
12206
12216
  } else {
12207
- _this3.allLoading.close();
12217
+ _this4.allLoading.close();
12208
12218
  }
12209
12219
  if (err.message && err.message !== 'canceled') {
12210
- _this3.$message.error(err.message);
12220
+ _this4.$message.error(err.message);
12211
12221
  }
12212
12222
  });
12213
12223
  },
12214
12224
 
12215
12225
  //获取通知信息
12216
12226
  getMessage: function getMessage() {
12217
- var _this4 = this;
12227
+ var _this5 = this;
12218
12228
 
12219
12229
  var params = {
12220
12230
  processDefinitionId: this.processDefinitionId,
@@ -12226,21 +12236,21 @@ var processFormvue_type_script_lang_js_components;
12226
12236
  }
12227
12237
  util["a" /* default */].ajax({ url: api["W" /* getNotificationMsg */], params: params, methods: 'post' }).then(function (res) {
12228
12238
  if (res.status === 'success') {
12229
- if (!_this4.showBtn) {
12230
- _this4.oldMessage = res.message;
12231
- _this4.nextNode.noticeInfo = res.message.replace('{title}', _this4.formTitle);
12239
+ if (!_this5.showBtn) {
12240
+ _this5.oldMessage = res.message;
12241
+ _this5.nextNode.noticeInfo = res.message.replace('{title}', _this5.formTitle);
12232
12242
  } else {
12233
- _this4.nextNode.noticeInfo = res.message;
12243
+ _this5.nextNode.noticeInfo = res.message;
12234
12244
  }
12235
12245
  }
12236
12246
  }).catch(function (err) {
12237
- if (_this4.showBtn) {
12238
- _this4.loading = false;
12247
+ if (_this5.showBtn) {
12248
+ _this5.loading = false;
12239
12249
  } else {
12240
- _this4.allLoading.close();
12250
+ _this5.allLoading.close();
12241
12251
  }
12242
12252
  if (err.message && err.message !== 'canceled') {
12243
- _this4.$message.error(err.message);
12253
+ _this5.$message.error(err.message);
12244
12254
  }
12245
12255
  });
12246
12256
  },
@@ -12250,11 +12260,11 @@ var processFormvue_type_script_lang_js_components;
12250
12260
  this.saveProcess(formName);
12251
12261
  },
12252
12262
  saveProcess: function saveProcess(formName) {
12253
- var _this5 = this;
12263
+ var _this6 = this;
12254
12264
 
12255
12265
  this.$refs[formName].validate(function (valid) {
12256
12266
  if (valid) {
12257
- var _nextNode = _this5.nextNode,
12267
+ var _nextNode = _this6.nextNode,
12258
12268
  nextNode = _nextNode.nextNode,
12259
12269
  nextUser = _nextNode.nextUser,
12260
12270
  noticeInfo = _nextNode.noticeInfo,
@@ -12271,31 +12281,31 @@ var processFormvue_type_script_lang_js_components;
12271
12281
  // return this.$message.warning('请选择通知方式');
12272
12282
  // }
12273
12283
 
12274
- if (_this5.isShowNextUser) {
12275
- if ((nextUser == '' || _this5.multiple && nextUser.length == 0) && !_this5.isHideCurrentOrg && !_this5.isHideOtherOrg) {
12276
- return _this5.$message.warning('请选择下步办理人');
12284
+ if (_this6.isShowNextUser) {
12285
+ if ((nextUser == '' || _this6.multiple && nextUser.length == 0) && !_this6.isHideCurrentOrg && !_this6.isHideOtherOrg) {
12286
+ return _this6.$message.warning('请选择下步办理人');
12277
12287
  }
12278
12288
  } else {
12279
- if (nextOrgId == '' || _this5.multiple && nextOrgId.length == 0) {
12280
- return _this5.$message.warning('请选择办理对象');
12289
+ if (nextOrgId == '' || _this6.multiple && nextOrgId.length == 0) {
12290
+ return _this6.$message.warning('请选择办理对象');
12281
12291
  }
12282
12292
  }
12283
- if ((_this5.isHideOtherOrg || _this5.isHideCurrentOrg) && !nextCurrentOrgObj && !nextOtherOrgObj) {
12284
- return _this5.$message.warning('请选择办理对象');
12293
+ if ((_this6.isHideOtherOrg || _this6.isHideCurrentOrg) && !nextCurrentOrgObj && !nextOtherOrgObj) {
12294
+ return _this6.$message.warning('请选择办理对象');
12285
12295
  }
12286
- if (_this5.isCancelSecondConfirmationType) {
12287
- _this5.$confirm('确认提交吗?', '提示', {
12296
+ if (_this6.isCancelSecondConfirmationType) {
12297
+ _this6.$confirm('确认提交吗?', '提示', {
12288
12298
  confirmButtonText: '确定',
12289
12299
  cancelButtonText: '取消',
12290
12300
  type: 'warning'
12291
12301
  }).then(function () {
12292
- if (_this5.showBtn) {
12293
- _this5.loading = true;
12302
+ if (_this6.showBtn) {
12303
+ _this6.loading = true;
12294
12304
  } else {
12295
- _this5.allLoading = util["a" /* default */].loading(_this5.$loading, '加载中...');
12305
+ _this6.allLoading = util["a" /* default */].loading(_this6.$loading, '加载中...');
12296
12306
  }
12297
12307
  var newNextUser = [];
12298
- if (_this5.multiple) {
12308
+ if (_this6.multiple) {
12299
12309
  nextUser && nextUser.map(function (item) {
12300
12310
  return newNextUser.push(item);
12301
12311
  });
@@ -12305,108 +12315,108 @@ var processFormvue_type_script_lang_js_components;
12305
12315
  newNoticeType = noticeType.join(',');
12306
12316
  }
12307
12317
  var params = {
12308
- processDefinitionId: _this5.processDefinitionId,
12309
- nextUserId: _this5.multiple ? newNextUser.join(',') : nextUser,
12318
+ processDefinitionId: _this6.processDefinitionId,
12319
+ nextUserId: _this6.multiple ? newNextUser.join(',') : nextUser,
12310
12320
  nextNodeId: nextNode,
12311
- businessId: _this5.businessId,
12321
+ businessId: _this6.businessId,
12312
12322
  notificationType: newNoticeType,
12313
12323
  userId: util["a" /* default */].getStorage('userId'),
12314
12324
  notificationMsg: noticeInfo,
12315
- customPresetUserJson: JSON.stringify(_this5.presetList),
12316
- presetUserJson: JSON.stringify(_this5.presetUserJson),
12317
- nextReadUserId: _this5.readMultiple ? _this5.mixReadList && _this5.mixReadList.join('|') : nextReadUserId,
12318
- nextOrgId: !_this5.isShowNextUser ? _this5.multiple ? _this5.mixOrgIdList && _this5.mixOrgIdList.join('|') : nextOrgId : '',
12325
+ customPresetUserJson: JSON.stringify(_this6.presetList),
12326
+ presetUserJson: JSON.stringify(_this6.presetUserJson),
12327
+ nextReadUserId: _this6.readMultiple ? _this6.mixReadList && _this6.mixReadList.join('|') : nextReadUserId,
12328
+ nextOrgId: !_this6.isShowNextUser ? _this6.multiple ? _this6.mixOrgIdList && _this6.mixOrgIdList.join('|') : nextOrgId : '',
12319
12329
  handleExplain: handleExplain,
12320
- presetReadUserId: _this5.mixPresetList && _this5.mixPresetList.length > 0 ? _this5.mixPresetList.join('|') : presetReadUserId.join(','),
12321
- opinion: _this5.newOpinion || newOpinion
12330
+ presetReadUserId: _this6.mixPresetList && _this6.mixPresetList.length > 0 ? _this6.mixPresetList.join('|') : presetReadUserId.join(','),
12331
+ opinion: _this6.newOpinion || newOpinion
12322
12332
  };
12323
- if (_this5.enableCustomLimitTimeSetting) {
12333
+ if (_this6.enableCustomLimitTimeSetting) {
12324
12334
  params.customLimitTime = customLimitTime;
12325
12335
  if (!customLimitTime) {
12326
- _this5.$message.warning('请选择或输入限时办理的天数');
12327
- _this5.nextNode.customLimitTime = '';
12336
+ _this6.$message.warning('请选择或输入限时办理的天数');
12337
+ _this6.nextNode.customLimitTime = '';
12328
12338
  return;
12329
12339
  } else if (!Number(customLimitTime) || customLimitTime.indexOf('.') != -1 || Number(customLimitTime) < 0) {
12330
- _this5.$message.warning('请输入正确的天数');
12331
- _this5.nextNode.customLimitTime = '';
12340
+ _this6.$message.warning('请输入正确的天数');
12341
+ _this6.nextNode.customLimitTime = '';
12332
12342
  return;
12333
12343
  }
12334
12344
  }
12335
- if (_this5.isHideCurrentOrg) {
12345
+ if (_this6.isHideCurrentOrg) {
12336
12346
  params.nextCurrentOrgObj = nextCurrentOrgObj;
12337
12347
  }
12338
- if (_this5.isHideOtherOrg) {
12348
+ if (_this6.isHideOtherOrg) {
12339
12349
  params.nextOtherOrgObj = nextOtherOrgObj;
12340
12350
  }
12341
- if (_this5.activeNames != '1') delete params.customPresetUserJson;
12342
- if (_this5.isFreeStartFlow || _this5.formType === 'readTransfer') {
12351
+ if (_this6.activeNames != '1') delete params.customPresetUserJson;
12352
+ if (_this6.isFreeStartFlow || _this6.formType === 'readTransfer') {
12343
12353
  var newParm = {};
12344
- newParm.copyHistory = _this5.copyHistory === 'needCopyPendedHistory';
12354
+ newParm.copyHistory = _this6.copyHistory === 'needCopyPendedHistory';
12345
12355
  newParm.startFlowParamJson = params;
12346
12356
  // newParm.startFlowParamJson.businessId = this.id; //this.id
12347
12357
  newParm.startFlowParamJson.taskExamineParam = {
12348
- startFlowFirstNodeName: _this5.taskExamineParam
12358
+ startFlowFirstNodeName: _this6.taskExamineParam
12349
12359
  };
12350
12360
  newParm.startFlowParamJson = JSON.stringify(newParm.startFlowParamJson);
12351
- for (var key in _this5.taskParams) {
12352
- if (Array.isArray(_this5.taskParams[key])) {
12353
- _this5.taskParams[key] = _this5.taskParams[key].length > 0 ? _this5.taskParams[key].join(',') : '';
12361
+ for (var key in _this6.taskParams) {
12362
+ if (Array.isArray(_this6.taskParams[key])) {
12363
+ _this6.taskParams[key] = _this6.taskParams[key].length > 0 ? _this6.taskParams[key].join(',') : '';
12354
12364
  }
12355
12365
  }
12356
12366
 
12357
- newParm.submitTaskParamJson = JSON.stringify(_this5.taskParams);
12358
- if (_this5.formType == 'readTransfer') {
12367
+ newParm.submitTaskParamJson = JSON.stringify(_this6.taskParams);
12368
+ if (_this6.formType == 'readTransfer') {
12359
12369
  newParm.readTransferHandleStartFlowParamJson = JSON.stringify(params);
12360
- newParm.taskReadEndParamJson = JSON.stringify(_this5.taskParams);
12370
+ newParm.taskReadEndParamJson = JSON.stringify(_this6.taskParams);
12361
12371
  delete newParm.copyHistory;
12362
12372
  delete newParm.startFlowParamJson;
12363
12373
  delete newParm.submitTaskParamJson;
12364
12374
  }
12365
12375
  params = newParm;
12366
12376
  }
12367
- if (_this5.copyHistory && !_this5.isFreeStartFlow) {
12368
- params.pendingId = _this5.pendingId;
12377
+ if (_this6.copyHistory && !_this6.isFreeStartFlow) {
12378
+ params.pendingId = _this6.pendingId;
12369
12379
  delete params.businessId;
12370
12380
  }
12371
12381
  util["a" /* default */].ajax({
12372
- url: _this5.isFreeStartFlow ? api["H" /* freeStartFlowWithSubmitTask */] : _this5.formType == 'readTransfer' ? api["Yb" /* startReadTransferHandleFlowWithTaskReadEnd */] : _this5.copyHistory ? api["G" /* freeStartFlow */] : api["Lb" /* register */],
12382
+ url: _this6.isFreeStartFlow ? api["H" /* freeStartFlowWithSubmitTask */] : _this6.formType == 'readTransfer' ? api["Yb" /* startReadTransferHandleFlowWithTaskReadEnd */] : _this6.copyHistory ? api["G" /* freeStartFlow */] : api["Lb" /* register */],
12373
12383
  method: 'post',
12374
12384
  data: params
12375
12385
  }).then(function (res) {
12376
12386
  var status = res.status,
12377
12387
  message = res.message;
12378
12388
 
12379
- if (_this5.showBtn) {
12380
- _this5.loading = false;
12389
+ if (_this6.showBtn) {
12390
+ _this6.loading = false;
12381
12391
  } else {
12382
- _this5.allLoading.close();
12392
+ _this6.allLoading.close();
12383
12393
  }
12384
12394
  if (status === 'success' || res.rCode == 0) {
12385
- _this5.quit(true);
12386
- _this5.simpleTips && _this5.$message.success('操作成功');
12395
+ _this6.quit(true);
12396
+ _this6.simpleTips && _this6.$message.success('操作成功');
12387
12397
  } else {
12388
- _this5.$message.error(message || '系统错误,请联系管理员!');
12398
+ _this6.$message.error(message || '系统错误,请联系管理员!');
12389
12399
  }
12390
12400
  }).catch(function (err) {
12391
- if (_this5.showBtn) {
12392
- _this5.loading = false;
12401
+ if (_this6.showBtn) {
12402
+ _this6.loading = false;
12393
12403
  } else {
12394
- _this5.allLoading.close();
12404
+ _this6.allLoading.close();
12395
12405
  }
12396
12406
  if (err.message && err.message !== 'canceled') {
12397
- _this5.$message.error(err.message);
12407
+ _this6.$message.error(err.message);
12398
12408
  }
12399
12409
  });
12400
12410
  });
12401
12411
  return;
12402
12412
  }
12403
- if (_this5.showBtn) {
12404
- _this5.loading = true;
12413
+ if (_this6.showBtn) {
12414
+ _this6.loading = true;
12405
12415
  } else {
12406
- _this5.allLoading = util["a" /* default */].loading(_this5.$loading, '加载中...');
12416
+ _this6.allLoading = util["a" /* default */].loading(_this6.$loading, '加载中...');
12407
12417
  }
12408
12418
  var newNextUser = [];
12409
- if (_this5.multiple) {
12419
+ if (_this6.multiple) {
12410
12420
  nextUser && nextUser.map(function (item) {
12411
12421
  return newNextUser.push(item);
12412
12422
  });
@@ -12416,96 +12426,96 @@ var processFormvue_type_script_lang_js_components;
12416
12426
  newNoticeType = noticeType.join(',');
12417
12427
  }
12418
12428
  var params = {
12419
- processDefinitionId: _this5.processDefinitionId,
12420
- nextUserId: _this5.multiple ? newNextUser.join(',') : nextUser,
12429
+ processDefinitionId: _this6.processDefinitionId,
12430
+ nextUserId: _this6.multiple ? newNextUser.join(',') : nextUser,
12421
12431
  nextNodeId: nextNode,
12422
- businessId: _this5.businessId,
12432
+ businessId: _this6.businessId,
12423
12433
  notificationType: newNoticeType,
12424
12434
  userId: util["a" /* default */].getStorage('userId'),
12425
12435
  notificationMsg: noticeInfo,
12426
- customPresetUserJson: JSON.stringify(_this5.presetList),
12427
- presetUserJson: JSON.stringify(_this5.presetUserJson),
12428
- nextReadUserId: _this5.readMultiple ? _this5.mixReadList && _this5.mixReadList.join('|') : nextReadUserId,
12429
- nextOrgId: !_this5.isShowNextUser ? _this5.multiple ? _this5.mixOrgIdList && _this5.mixOrgIdList.join('|') : nextOrgId : '',
12436
+ customPresetUserJson: JSON.stringify(_this6.presetList),
12437
+ presetUserJson: JSON.stringify(_this6.presetUserJson),
12438
+ nextReadUserId: _this6.readMultiple ? _this6.mixReadList && _this6.mixReadList.join('|') : nextReadUserId,
12439
+ nextOrgId: !_this6.isShowNextUser ? _this6.multiple ? _this6.mixOrgIdList && _this6.mixOrgIdList.join('|') : nextOrgId : '',
12430
12440
  handleExplain: handleExplain,
12431
- presetReadUserId: _this5.mixPresetList && _this5.mixPresetList.length > 0 ? _this5.mixPresetList.join('|') : presetReadUserId.join(','),
12432
- opinion: _this5.newOpinion || newOpinion
12441
+ presetReadUserId: _this6.mixPresetList && _this6.mixPresetList.length > 0 ? _this6.mixPresetList.join('|') : presetReadUserId.join(','),
12442
+ opinion: _this6.newOpinion || newOpinion
12433
12443
  };
12434
- if (_this5.enableCustomLimitTimeSetting) {
12444
+ if (_this6.enableCustomLimitTimeSetting) {
12435
12445
  params.customLimitTime = customLimitTime;
12436
12446
  if (!customLimitTime) {
12437
- _this5.$message.warning('请选择或输入限时办理的天数');
12438
- _this5.nextNode.customLimitTime = '';
12447
+ _this6.$message.warning('请选择或输入限时办理的天数');
12448
+ _this6.nextNode.customLimitTime = '';
12439
12449
  return;
12440
12450
  } else if (!Number(customLimitTime) || customLimitTime.indexOf('.') != -1 || Number(customLimitTime) < 0) {
12441
- _this5.$message.warning('请输入正确的天数');
12442
- _this5.nextNode.customLimitTime = '';
12451
+ _this6.$message.warning('请输入正确的天数');
12452
+ _this6.nextNode.customLimitTime = '';
12443
12453
  return;
12444
12454
  }
12445
12455
  }
12446
- if (_this5.isHideCurrentOrg) {
12456
+ if (_this6.isHideCurrentOrg) {
12447
12457
  params.nextCurrentOrgObj = nextCurrentOrgObj;
12448
12458
  }
12449
- if (_this5.isHideOtherOrg) {
12459
+ if (_this6.isHideOtherOrg) {
12450
12460
  params.nextOtherOrgObj = nextOtherOrgObj;
12451
12461
  }
12452
- if (_this5.activeNames != '1') delete params.customPresetUserJson;
12453
- if (_this5.isFreeStartFlow || _this5.formType === 'readTransfer') {
12462
+ if (_this6.activeNames != '1') delete params.customPresetUserJson;
12463
+ if (_this6.isFreeStartFlow || _this6.formType === 'readTransfer') {
12454
12464
  var newParm = {};
12455
- newParm.copyHistory = _this5.copyHistory === 'needCopyPendedHistory';
12465
+ newParm.copyHistory = _this6.copyHistory === 'needCopyPendedHistory';
12456
12466
  newParm.startFlowParamJson = params;
12457
12467
  // newParm.startFlowParamJson.businessId = this.id; //this.id
12458
12468
  newParm.startFlowParamJson.taskExamineParam = {
12459
- startFlowFirstNodeName: _this5.taskExamineParam
12469
+ startFlowFirstNodeName: _this6.taskExamineParam
12460
12470
  };
12461
12471
  newParm.startFlowParamJson = JSON.stringify(newParm.startFlowParamJson);
12462
- for (var key in _this5.taskParams) {
12463
- if (Array.isArray(_this5.taskParams[key])) {
12464
- _this5.taskParams[key] = _this5.taskParams[key].length > 0 ? _this5.taskParams[key].join(',') : '';
12472
+ for (var key in _this6.taskParams) {
12473
+ if (Array.isArray(_this6.taskParams[key])) {
12474
+ _this6.taskParams[key] = _this6.taskParams[key].length > 0 ? _this6.taskParams[key].join(',') : '';
12465
12475
  }
12466
12476
  }
12467
12477
 
12468
- newParm.submitTaskParamJson = JSON.stringify(_this5.taskParams);
12469
- if (_this5.formType == 'readTransfer') {
12478
+ newParm.submitTaskParamJson = JSON.stringify(_this6.taskParams);
12479
+ if (_this6.formType == 'readTransfer') {
12470
12480
  newParm.readTransferHandleStartFlowParamJson = JSON.stringify(params);
12471
- newParm.taskReadEndParamJson = JSON.stringify(_this5.taskParams);
12481
+ newParm.taskReadEndParamJson = JSON.stringify(_this6.taskParams);
12472
12482
  delete newParm.copyHistory;
12473
12483
  delete newParm.startFlowParamJson;
12474
12484
  delete newParm.submitTaskParamJson;
12475
12485
  }
12476
12486
  params = newParm;
12477
12487
  }
12478
- if (_this5.copyHistory && !_this5.isFreeStartFlow) {
12479
- params.pendingId = _this5.pendingId;
12488
+ if (_this6.copyHistory && !_this6.isFreeStartFlow) {
12489
+ params.pendingId = _this6.pendingId;
12480
12490
  delete params.businessId;
12481
12491
  }
12482
12492
  util["a" /* default */].ajax({
12483
- url: _this5.isFreeStartFlow ? api["H" /* freeStartFlowWithSubmitTask */] : _this5.formType == 'readTransfer' ? api["Yb" /* startReadTransferHandleFlowWithTaskReadEnd */] : _this5.copyHistory ? api["G" /* freeStartFlow */] : api["Lb" /* register */],
12493
+ url: _this6.isFreeStartFlow ? api["H" /* freeStartFlowWithSubmitTask */] : _this6.formType == 'readTransfer' ? api["Yb" /* startReadTransferHandleFlowWithTaskReadEnd */] : _this6.copyHistory ? api["G" /* freeStartFlow */] : api["Lb" /* register */],
12484
12494
  method: 'post',
12485
12495
  data: params
12486
12496
  }).then(function (res) {
12487
12497
  var status = res.status,
12488
12498
  message = res.message;
12489
12499
 
12490
- if (_this5.showBtn) {
12491
- _this5.loading = false;
12500
+ if (_this6.showBtn) {
12501
+ _this6.loading = false;
12492
12502
  } else {
12493
- _this5.allLoading.close();
12503
+ _this6.allLoading.close();
12494
12504
  }
12495
12505
  if (status === 'success' || res.rCode == 0) {
12496
- _this5.quit(true);
12497
- _this5.simpleTips && _this5.$message.success('操作成功');
12506
+ _this6.quit(true);
12507
+ _this6.simpleTips && _this6.$message.success('操作成功');
12498
12508
  } else {
12499
- _this5.$message.error(message || '系统错误,请联系管理员!');
12509
+ _this6.$message.error(message || '系统错误,请联系管理员!');
12500
12510
  }
12501
12511
  }).catch(function (err) {
12502
- if (_this5.showBtn) {
12503
- _this5.loading = false;
12512
+ if (_this6.showBtn) {
12513
+ _this6.loading = false;
12504
12514
  } else {
12505
- _this5.allLoading.close();
12515
+ _this6.allLoading.close();
12506
12516
  }
12507
12517
  if (err.message && err.message !== 'canceled') {
12508
- _this5.$message.error(err.message);
12518
+ _this6.$message.error(err.message);
12509
12519
  }
12510
12520
  });
12511
12521
  } else {
@@ -12514,7 +12524,7 @@ var processFormvue_type_script_lang_js_components;
12514
12524
  });
12515
12525
  },
12516
12526
  getNodeInfos: function getNodeInfos(nodeId, index) {
12517
- var _this6 = this;
12527
+ var _this7 = this;
12518
12528
 
12519
12529
  var params = {
12520
12530
  processDefinitionId: this.processDefinitionId,
@@ -12532,83 +12542,82 @@ var processFormvue_type_script_lang_js_components;
12532
12542
  countersignaturetypeText = _res$data.countersignaturetypeText,
12533
12543
  countersignaturetypeCode = _res$data.countersignaturetypeCode;
12534
12544
 
12535
- if (_this6.showBtn) {
12536
- _this6.loading = false;
12545
+ if (_this7.showBtn) {
12546
+ _this7.loading = false;
12537
12547
  } else {
12538
- _this6.allLoading.close();
12548
+ _this7.allLoading.close();
12539
12549
  }
12540
12550
  if (status === 'success') {
12541
- _this6.isCurrentNodeForbiddenChangeCandidate = nodeExtAttr.isCurrentNodeForbiddenChangeCandidate;
12542
- _this6.nextNode.userInfo = nextUserList;
12543
- _this6.countersignaturetypeCode = countersignaturetypeCode;
12544
- _this6.nextNode.countersignaturetypeText = countersignaturetypeText;
12545
- _this6.enableCustomLimitTimeSetting = nodeExtAttr.enableCustomLimitTimeSetting == 1;
12546
- if (_this6.enableCustomLimitTimeSetting && nodeMoreInfo.defaultCustomLimitDays) {
12547
- _this6.nextNode.customLimitTime = _this6.nextNode.customLimitTimeText = nodeMoreInfo.defaultCustomLimitDays + '';
12551
+ _this7.isCurrentNodeForbiddenChangeCandidate = nodeExtAttr.isCurrentNodeForbiddenChangeCandidate;
12552
+ _this7.nextNode.userInfo = nextUserList;
12553
+ _this7.countersignaturetypeCode = countersignaturetypeCode;
12554
+ _this7.nextNode.countersignaturetypeText = countersignaturetypeText;
12555
+ _this7.enableCustomLimitTimeSetting = nodeExtAttr.enableCustomLimitTimeSetting == 1;
12556
+ if (_this7.enableCustomLimitTimeSetting && nodeMoreInfo.defaultCustomLimitDays) {
12557
+ _this7.nextNode.customLimitTime = _this7.nextNode.customLimitTimeText = nodeMoreInfo.defaultCustomLimitDays + '';
12548
12558
  }
12549
- _this6.isTaskread = nodeExtAttr.isTaskread;
12550
- _this6.isHandleExplain = nodeExtAttr.isHandleExplain;
12551
- _this6.isCustomUser = nodeExtAttr.isCustomUser; //是否展示选人组件按钮
12552
- _this6.presetEdit = nodeExtAttr.presetEdit; //是否展示备选人
12553
- _this6.isDefSelectedObj = nodeExtAttr.isDefSelectedObj; //是否默认选中
12559
+ _this7.isTaskread = nodeExtAttr.isTaskread;
12560
+ _this7.isHandleExplain = nodeExtAttr.isHandleExplain;
12561
+ _this7.isCustomUser = nodeExtAttr.isCustomUser; //是否展示选人组件按钮
12562
+ _this7.presetEdit = nodeExtAttr.presetEdit; //是否展示备选人
12563
+ _this7.isDefSelectedObj = nodeExtAttr.isDefSelectedObj; //是否默认选中
12554
12564
  if (nodeExtAttr.userSelectionType == 7 || nodeExtAttr.userSelectionType == 8 || nodeExtAttr.userSelectionType == 9 || nodeExtAttr.userSelectionType == 10 || nodeExtAttr.userSelectionType == 11 || nodeExtAttr.userSelectionType == 12) {
12555
- _this6.getIsShowNextUser(nodeExtAttr && nodeExtAttr.userSelectionType);
12565
+ _this7.getIsShowNextUser(nodeExtAttr && nodeExtAttr.userSelectionType);
12556
12566
  } else {
12557
- var _isMultiple = _this6.isMultiple(nodeExtAttr.userSelectionType),
12567
+ var _isMultiple = _this7.isMultiple(nodeExtAttr.userSelectionType),
12558
12568
  multiple = _isMultiple.multiple,
12559
12569
  _params = _isMultiple.params;
12560
12570
 
12561
- _this6.multiple = multiple;
12562
- _this6.params = _params;
12571
+ _this7.multiple = multiple;
12572
+ _this7.params = _params;
12563
12573
  }
12564
12574
  // this.isReadMultiple(nodeExtAttr.userSelectionType);
12565
12575
  if (nodeExtAttr.nodeType === 1 || nodeExtAttr.nodeType === 2) {
12566
-
12567
- _this6.isHideCurrentOrg = nodeExtAttr.isHideCurrentOrg == 1 ? false : true; //判断是否隐藏本单位
12568
- _this6.isHideOtherOrg = nodeExtAttr.isHideOtherOrg == 1 ? false : true; //判断是否隐藏外单位
12576
+ _this7.isHideCurrentOrg = nodeExtAttr.isHideCurrentOrg == 1 ? false : true; //判断是否隐藏本单位
12577
+ _this7.isHideOtherOrg = nodeExtAttr.isHideOtherOrg == 1 ? false : true; //判断是否隐藏外单位
12569
12578
  } else {
12570
- _this6.isHideCurrentOrg = false;
12571
- _this6.isHideOtherOrg = false;
12579
+ _this7.isHideCurrentOrg = false;
12580
+ _this7.isHideOtherOrg = false;
12572
12581
  }
12573
12582
  nextUserList.map(function (item) {
12574
- if (_this6.multiple && nodeExtAttr.isDefSelectedObj == 1 && nextUserList !== undefined) {
12575
- _this6.nextNode.nextUser.push(item.userId);
12576
- _this6.selectUserList.push({
12583
+ if (_this7.multiple && nodeExtAttr.isDefSelectedObj == 1 && nextUserList !== undefined) {
12584
+ _this7.nextNode.nextUser.push(item.userId);
12585
+ _this7.selectUserList.push({
12577
12586
  showname: item.username,
12578
12587
  showid: item.userId
12579
12588
  });
12580
12589
  }
12581
12590
 
12582
- _this6.options.push({
12591
+ _this7.options.push({
12583
12592
  showname: item.username,
12584
12593
  showid: item.userId
12585
12594
  });
12586
12595
  });
12587
- if (_this6.multiple) {
12588
- _this6.nextNode.nextReadUserId = [];
12596
+ if (_this7.multiple) {
12597
+ _this7.nextNode.nextReadUserId = [];
12589
12598
  } else {
12590
- _this6.nextNode.nextReadUserId = '';
12599
+ _this7.nextNode.nextReadUserId = '';
12591
12600
  }
12592
- if (nextUserList.length > 0 && nodeExtAttr.isDefSelectedObj == 1 && !_this6.multiple) {
12593
- _this6.nextNode.nextUser = nextUserList[0].userId;
12594
- _this6.selectUserList.push({
12601
+ if (nextUserList.length > 0 && nodeExtAttr.isDefSelectedObj == 1 && !_this7.multiple) {
12602
+ _this7.nextNode.nextUser = nextUserList[0].userId;
12603
+ _this7.selectUserList.push({
12595
12604
  showname: nextUserList[0].username,
12596
12605
  showid: nextUserList[0].userId
12597
12606
  });
12598
12607
  }
12599
- _this6.radioList = _this6.options;
12608
+ _this7.radioList = _this7.options;
12600
12609
  } else {
12601
- _this6.$message.error(message || '系统错误,请联系管理员!');
12610
+ _this7.$message.error(message || '系统错误,请联系管理员!');
12602
12611
  }
12603
- nodeId && _this6.$refs.selectUser[index].changeInfo();
12612
+ nodeId && _this7.$refs.selectUser[index].changeInfo();
12604
12613
  }).catch(function (err) {
12605
- if (_this6.showBtn) {
12606
- _this6.loading = false;
12614
+ if (_this7.showBtn) {
12615
+ _this7.loading = false;
12607
12616
  } else {
12608
- _this6.allLoading.close();
12617
+ _this7.allLoading.close();
12609
12618
  }
12610
12619
  if (err.message && err.message !== 'canceled') {
12611
- _this6.$message.error(err.message);
12620
+ _this7.$message.error(err.message);
12612
12621
  }
12613
12622
  });
12614
12623
  },
@@ -12631,7 +12640,7 @@ var processFormvue_type_script_lang_js_components;
12631
12640
  this.$emit('cancel', false);
12632
12641
  },
12633
12642
  getFind: function getFind() {
12634
- var _this7 = this;
12643
+ var _this8 = this;
12635
12644
 
12636
12645
  util["a" /* default */].ajax({
12637
12646
  url: api["D" /* findSysCodes */]
@@ -12640,27 +12649,27 @@ var processFormvue_type_script_lang_js_components;
12640
12649
  message = res.message;
12641
12650
 
12642
12651
  if (status === 'success') {
12643
- _this7.nextNode.noticeType = message.split(',');
12652
+ _this8.nextNode.noticeType = message.split(',');
12644
12653
  var arr = [];
12645
- _this7.nextNode.noticeList.map(function (item) {
12646
- _this7.nextNode.noticeType.map(function (x) {
12654
+ _this8.nextNode.noticeList.map(function (item) {
12655
+ _this8.nextNode.noticeType.map(function (x) {
12647
12656
  if (x == item.cciValue) {
12648
12657
  arr.push(x);
12649
12658
  }
12650
12659
  });
12651
12660
  });
12652
- _this7.nextNode.noticeType = arr;
12661
+ _this8.nextNode.noticeType = arr;
12653
12662
  } else {
12654
- _this7.$message.error(message || '系统错误,请联系管理员!');
12663
+ _this8.$message.error(message || '系统错误,请联系管理员!');
12655
12664
  }
12656
12665
  }).catch(function (err) {
12657
- if (_this7.showBtn) {
12658
- _this7.loading = false;
12666
+ if (_this8.showBtn) {
12667
+ _this8.loading = false;
12659
12668
  } else {
12660
- _this7.allLoading.close();
12669
+ _this8.allLoading.close();
12661
12670
  }
12662
12671
  if (err.message && err.message !== 'canceled') {
12663
- _this7.$message.error(err.message);
12672
+ _this8.$message.error(err.message);
12664
12673
  }
12665
12674
  });
12666
12675
  },
@@ -12703,7 +12712,7 @@ var processFormvue_type_script_lang_js_components;
12703
12712
  return { multiple: multiple, params: params };
12704
12713
  },
12705
12714
  getStartFlow: function getStartFlow(processId) {
12706
- var _this8 = this;
12715
+ var _this9 = this;
12707
12716
 
12708
12717
  if (!processId) {
12709
12718
  return false;
@@ -12720,7 +12729,7 @@ var processFormvue_type_script_lang_js_components;
12720
12729
  businessId: this.businessId
12721
12730
  };
12722
12731
  if (!this.shwowBtn) {
12723
- params.taskAction = "toStartFlowWithoutTempSave";
12732
+ params.taskAction = 'toStartFlowWithoutTempSave';
12724
12733
  }
12725
12734
  // 获取节点
12726
12735
  util["a" /* default */].ajax({ url: api["sc" /* toStartFlow */], params: params }).then(function (res) {
@@ -12730,98 +12739,104 @@ var processFormvue_type_script_lang_js_components;
12730
12739
  data = res.data;
12731
12740
 
12732
12741
  if (status == 'success') {
12733
- data.nodeInfoMap.nodeExtAttr.submitTipsMsg && _this8.$confirm(data.nodeInfoMap.nodeExtAttr.submitTipsMsg, '提示', {
12742
+ data.nodeInfoMap.nodeExtAttr.submitTipsMsg && _this9.$confirm(data.nodeInfoMap.nodeExtAttr.submitTipsMsg, '提示', {
12734
12743
  confirmButtonText: '确定',
12735
12744
  cancelButtonText: '取消',
12736
12745
  type: 'warning'
12737
12746
  }).then(function () {}).catch(function () {
12738
- _this8.quit();
12747
+ _this9.quit();
12739
12748
  });
12740
- data.nextNodeCheckType && (_this8.nextNodeCheckType = data.nextNodeCheckType);
12741
- data.nextOperateCheckType && (_this8.nextOperateCheckType = data.nextOperateCheckType);
12742
- _this8.customPresetHintMessage = data.customPresetHintMessage;
12743
- _this8.readOnlyNotificationType = data.readOnlyNotificationType;
12744
- _this8.notificationMessageReadOnly = data.notificationMessageReadOnly == 'true';
12745
- _this8.nextNode.nodeInfo = data.nextNodeList;
12746
- _this8.nextNode.nextNode = data.nextNodeList[0].nodeId;
12747
- _this8.isPreset = data.isPreset;
12748
- _this8.isHideDefaultOperation = data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation;
12749
- _this8.defaultNextNode = data.nodeInfoMap.nodeExtAttr.defaultNextNode;
12750
- _this8.isChooseNextNode = data.nodeInfoMap.nodeExtAttr.isChooseNextNode;
12751
- _this8.isCdjxjTaskHandle = data.isCdjxjTaskHandle;
12752
- if (_this8.isChooseNextNode == 1) {
12753
- _this8.operationList = [
12749
+ data.nextNodeCheckType && (_this9.nextNodeCheckType = data.nextNodeCheckType);
12750
+ data.nextOperateCheckType && (_this9.nextOperateCheckType = data.nextOperateCheckType);
12751
+ _this9.customPresetHintMessage = data.customPresetHintMessage;
12752
+ _this9.readOnlyNotificationType = data.readOnlyNotificationType;
12753
+ _this9.notificationMessageReadOnly = data.notificationMessageReadOnly == 'true';
12754
+ _this9.nextNode.nodeInfo = data.nextNodeList;
12755
+ _this9.nextNode.nextNode = data.nextNodeList[0].nodeId;
12756
+ _this9.isPreset = data.isPreset;
12757
+ _this9.isHideDefaultOperation = data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation;
12758
+ _this9.defaultNextNode = data.nodeInfoMap.nodeExtAttr.defaultNextNode;
12759
+ _this9.isChooseNextNode = data.nodeInfoMap.nodeExtAttr.isChooseNextNode;
12760
+ _this9.isCdjxjTaskHandle = data.isCdjxjTaskHandle;
12761
+ if (_this9.isChooseNextNode == 1) {
12762
+ _this9.operationList = [
12754
12763
  // { key: 0, value: '默认', list: [] },
12755
12764
  { key: 1, value: '自定义', list: [] }];
12756
12765
  if (data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation != 1) {
12757
- _this8.operationList.unshift({ key: 0, value: '默认', list: [] });
12766
+ _this9.operationList.unshift({
12767
+ key: 0,
12768
+ value: '默认',
12769
+ list: data.nextNodeList
12770
+ });
12758
12771
  }
12759
12772
  var arr = [];
12760
12773
  for (var key in data.taskNodeMap) {
12761
12774
  arr.push({ nodeName: data.taskNodeMap[key], nodeId: key });
12762
12775
  }
12763
12776
  // this.operationList[0].list = data.nextNodeList;
12764
- _this8.operationList[0].list = arr;
12765
- if (_this8.isHideDefaultOperation != 1) {
12766
- _this8.nextNode.nextOperate = 0;
12767
- _this8.nextNode.nodeInfo = _this8.operationList[0].list;
12768
- if (_this8.nextNode.nodeInfo.length > 0) {
12777
+ _this9.operationList[data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation != 1 ? 1 : 0].list = arr;
12778
+ if (_this9.isHideDefaultOperation != 1) {
12779
+ _this9.nextNode.nextOperate = 0;
12780
+ _this9.nextNode.nodeInfo = _this9.operationList[0].list;
12781
+ if (_this9.nextNode.nodeInfo.length > 0) {
12769
12782
  var defaultNodeData = data.nextNodeList.filter(function (x) {
12770
- return x.nodeId == _this8.defaultNextNode;
12783
+ return x.nodeId == _this9.defaultNextNode;
12771
12784
  });
12772
- _this8.nextNode.nextNode = defaultNodeData.length > 0 ? _this8.defaultNextNode : data.nextNodeList[0].nodeId;
12785
+ _this9.nextNode.nextNode = defaultNodeData.length > 0 ? _this9.defaultNextNode : data.nextNodeList[0].nodeId;
12773
12786
  }
12774
- } else if (data.nodeInfoMap.nodeExtAttr.defaultNextOperate == 1 || data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation == 1) {
12787
+ }
12788
+ if (data.nodeInfoMap.nodeExtAttr.defaultNextOperate == 1 || data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation == 1) {
12775
12789
  // this.nextNode.nodeInfo = data.nextNodeList
12776
- _this8.nextNode.nextOperate = 1;
12777
- _this8.nextNode.nodeInfo = _this8.operationList[0].list;
12778
- if (_this8.nextNode.nodeInfo.length > 0) {
12779
- var _defaultNodeData = data.nextNodeList.filter(function (x) {
12780
- return x.nodeId == _this8.defaultNextNode;
12790
+ _this9.nextNode.nextOperate = 1;
12791
+ _this9.nextNode.nodeInfo = _this9.operationList[_this9.isHideDefaultOperation != 1 ? 1 : 0].list;
12792
+
12793
+ if (_this9.nextNode.nodeInfo.length > 0) {
12794
+ var _defaultNodeData = _this9.nextNode.nodeInfo.filter(function (x) {
12795
+ return x.nodeId == _this9.defaultNextNode;
12781
12796
  });
12782
- _this8.nextNode.nextNode = _defaultNodeData.length > 0 ? _this8.defaultNextNode : data.nextNodeList[0].nodeId;
12797
+ _this9.nextNode.nextNode = _defaultNodeData.length > 0 ? _this9.defaultNextNode : _this9.nextNode.nodeInfo[0].nodeId;
12783
12798
  }
12784
12799
  }
12785
12800
  }
12786
- _this8.isCustomPreset = data.isCustomPreset;
12787
- _this8.presetTaskNodeKeyStr = data.presetTaskNodeKeyStr;
12788
- _this8.presetTaskNodeMap = data.presetTaskNodeMap;
12789
- _this8.isSinglePage = data.taskExamine.isSinglePage;
12790
- _this8.isSinglePage && (_this8.nextNode.opinion = data.taskExamine.opinion);
12801
+ _this9.isCustomPreset = data.isCustomPreset;
12802
+ _this9.presetTaskNodeKeyStr = data.presetTaskNodeKeyStr;
12803
+ _this9.presetTaskNodeMap = data.presetTaskNodeMap;
12804
+ _this9.isSinglePage = data.taskExamine.isSinglePage;
12805
+ _this9.isSinglePage && (_this9.nextNode.opinion = data.taskExamine.opinion);
12791
12806
  // this.nextNode.noticeInfo = data.taskExamine.notificationMsg;
12792
- _this8.nextNode.nodeName = data.taskExamine.nodeName;
12793
- _this8.canPresetRead = data.canPresetRead;
12807
+ _this9.nextNode.nodeName = data.taskExamine.nodeName;
12808
+ _this9.canPresetRead = data.canPresetRead;
12794
12809
  if (data.canPresetRead) {
12795
12810
  var ids = data.nodeInfoMap.nodeExtAttr.presetReadCandinateIds.split(',');
12796
12811
  var names = data.nodeInfoMap.nodeExtAttr.presetReadCandinateNames.split(',');
12797
12812
  ids.map(function (item, index) {
12798
- _this8.presetReadUserId.push({
12813
+ _this9.presetReadUserId.push({
12799
12814
  showid: item,
12800
12815
  showname: names[index]
12801
12816
  });
12802
- _this8.selectPresetUserList.push({
12817
+ _this9.selectPresetUserList.push({
12803
12818
  showid: item,
12804
12819
  showname: names[index]
12805
12820
  });
12806
- _this8.nextNode.presetReadUserId.push(item);
12821
+ _this9.nextNode.presetReadUserId.push(item);
12807
12822
  });
12808
12823
  }
12809
- _this8.getNodeInfos();
12824
+ _this9.getNodeInfos();
12810
12825
  // this.getPresetFlowInfo();
12811
- _this8.isCustomPreset && _this8.$refs.customPreset.getPresetFlowInfo(_this8.nextNode.nextNode);
12812
- _this8.getFind();
12813
- _this8.getMessage();
12826
+ _this9.isCustomPreset && _this9.$refs.customPreset.getPresetFlowInfo(_this9.nextNode.nextNode);
12827
+ _this9.getFind();
12828
+ _this9.getMessage();
12814
12829
  } else {
12815
- _this8.$message.error(message || '系统错误,请联系管理员!');
12830
+ _this9.$message.error(message || '系统错误,请联系管理员!');
12816
12831
  }
12817
12832
  }).catch(function (err) {
12818
- if (_this8.showBtn) {
12819
- _this8.loading = false;
12833
+ if (_this9.showBtn) {
12834
+ _this9.loading = false;
12820
12835
  } else {
12821
- _this8.allLoading.close();
12836
+ _this9.allLoading.close();
12822
12837
  }
12823
12838
  if (err.message && err.message !== 'canceled') {
12824
- _this8.$message.error(err.message);
12839
+ _this9.$message.error(err.message);
12825
12840
  }
12826
12841
  });
12827
12842
  }
@@ -12839,8 +12854,8 @@ var processFormvue_type_script_lang_js_components;
12839
12854
 
12840
12855
  var processForm_component = Object(componentNormalizer["a" /* default */])(
12841
12856
  src_processFormvue_type_script_lang_js_,
12842
- processFormvue_type_template_id_80a2c5c2_render,
12843
- processFormvue_type_template_id_80a2c5c2_staticRenderFns,
12857
+ processFormvue_type_template_id_6df91879_render,
12858
+ processFormvue_type_template_id_6df91879_staticRenderFns,
12844
12859
  false,
12845
12860
  null,
12846
12861
  null,