eoss-ui 0.4.56 → 0.4.57

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 +4 -2
  2. package/lib/button.js +4 -2
  3. package/lib/checkbox-group.js +4 -2
  4. package/lib/data-table-form.js +4 -2
  5. package/lib/data-table.js +10 -7
  6. package/lib/date-picker.js +4 -2
  7. package/lib/dialog.js +4 -2
  8. package/lib/eoss-ui.common.js +330 -79
  9. package/lib/flow-group.js +4 -2
  10. package/lib/flow-list.js +4 -2
  11. package/lib/flow.js +274 -28
  12. package/lib/form.js +21 -20
  13. package/lib/handle-user.js +4 -2
  14. package/lib/handler.js +4 -2
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +4 -2
  17. package/lib/input.js +4 -2
  18. package/lib/login.js +7 -4
  19. package/lib/main.js +4 -2
  20. package/lib/mainComp.js +4 -2
  21. package/lib/nav.js +4 -2
  22. package/lib/page.js +4 -2
  23. package/lib/player.js +4 -2
  24. package/lib/qr-code.js +4 -2
  25. package/lib/radio-group.js +4 -2
  26. package/lib/retrial-auth.js +4 -2
  27. package/lib/select-ganged.js +4 -2
  28. package/lib/select.js +4 -2
  29. package/lib/selector-panel.js +4 -2
  30. package/lib/selector.js +4 -2
  31. package/lib/sizer.js +4 -2
  32. package/lib/steps.js +4 -2
  33. package/lib/switch.js +4 -2
  34. package/lib/table-form.js +4 -2
  35. package/lib/tabs.js +4 -2
  36. package/lib/tips.js +4 -2
  37. package/lib/toolbar.js +12 -8
  38. package/lib/tree-group.js +4 -2
  39. package/lib/tree.js +4 -2
  40. package/lib/upload.js +4 -2
  41. package/lib/utils/util.js +4 -2
  42. package/lib/wujie.js +4 -2
  43. package/lib/wxlogin.js +4 -2
  44. package/package.json +1 -1
  45. package/packages/data-table/src/main.vue +1 -0
  46. package/packages/flow/src/main.vue +148 -11
  47. package/packages/flow/src/startTaskRead.vue +12 -9
  48. package/packages/form/src/main.vue +13 -7
  49. package/packages/login/src/main.vue +1 -0
  50. package/packages/toolbar/src/main.vue +6 -1
  51. package/src/index.js +1 -1
  52. package/src/utils/util.js +4 -2
  53. package/CHANGELOG.md +0 -929
package/lib/flow-group.js CHANGED
@@ -249,7 +249,9 @@ var ajax = function ajax(_ref) {
249
249
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
250
250
  if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
251
251
  clearTimeout(loginMsg);
252
- loginMsg = setTimeout(function () {
252
+ var remind = sessionStorage.getItem('remind');
253
+ !remind && (loginMsg = setTimeout(function () {
254
+ sessionStorage.setItem('remind', 1);
253
255
  eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
254
256
  confirmButtonText: '确定',
255
257
  closeOnClickModal: false,
@@ -276,7 +278,7 @@ var ajax = function ajax(_ref) {
276
278
  }
277
279
  }
278
280
  }).catch(function (e) {});
279
- }, 1000);
281
+ }, 1000));
280
282
  }
281
283
  } else if (response.data.rCode === 61) {
282
284
  clearTimeout(initAuth);
package/lib/flow-list.js CHANGED
@@ -249,7 +249,9 @@ var ajax = function ajax(_ref) {
249
249
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
250
250
  if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
251
251
  clearTimeout(loginMsg);
252
- loginMsg = setTimeout(function () {
252
+ var remind = sessionStorage.getItem('remind');
253
+ !remind && (loginMsg = setTimeout(function () {
254
+ sessionStorage.setItem('remind', 1);
253
255
  eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
254
256
  confirmButtonText: '确定',
255
257
  closeOnClickModal: false,
@@ -276,7 +278,7 @@ var ajax = function ajax(_ref) {
276
278
  }
277
279
  }
278
280
  }).catch(function (e) {});
279
- }, 1000);
281
+ }, 1000));
280
282
  }
281
283
  } else if (response.data.rCode === 61) {
282
284
  clearTimeout(initAuth);
package/lib/flow.js CHANGED
@@ -248,7 +248,9 @@ var ajax = function ajax(_ref) {
248
248
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
249
249
  if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1) {
250
250
  clearTimeout(loginMsg);
251
- loginMsg = setTimeout(function () {
251
+ var remind = sessionStorage.getItem('remind');
252
+ !remind && (loginMsg = setTimeout(function () {
253
+ sessionStorage.setItem('remind', 1);
252
254
  eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
253
255
  confirmButtonText: '确定',
254
256
  closeOnClickModal: false,
@@ -275,7 +277,7 @@ var ajax = function ajax(_ref) {
275
277
  }
276
278
  }
277
279
  }).catch(function (e) {});
278
- }, 1000);
280
+ }, 1000));
279
281
  }
280
282
  } else if (response.data.rCode === 61) {
281
283
  clearTimeout(initAuth);
@@ -3046,7 +3048,7 @@ var component = Object(componentNormalizer["a" /* default */])(
3046
3048
  // ESM COMPAT FLAG
3047
3049
  __webpack_require__.r(__webpack_exports__);
3048
3050
 
3049
- // 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=88cb49c6&
3051
+ // 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=fd0d2338&
3050
3052
  var render = function () {
3051
3053
  var _vm = this
3052
3054
  var _h = _vm.$createElement
@@ -3528,6 +3530,9 @@ var render = function () {
3528
3530
  {
3529
3531
  attrs: {
3530
3532
  placeholder: "请选择下步操作",
3533
+ disabled:
3534
+ _vm.operationList &&
3535
+ _vm.operationList.length == 1,
3531
3536
  },
3532
3537
  on: {
3533
3538
  change: function ($event) {
@@ -3593,6 +3598,9 @@ var render = function () {
3593
3598
  attrs: {
3594
3599
  placeholder:
3595
3600
  "请选择下步节点",
3601
+ disabled:
3602
+ _vm.nodeInfos &&
3603
+ _vm.nodeInfos.length == 1,
3596
3604
  },
3597
3605
  on: {
3598
3606
  change: function ($event) {
@@ -3715,6 +3723,127 @@ var render = function () {
3715
3723
  1
3716
3724
  )
3717
3725
  : _vm._e(),
3726
+ _vm.isHideCurrentOrg
3727
+ ? _c(
3728
+ "el-form-item",
3729
+ {
3730
+ attrs: {
3731
+ prop: "nextCurrentOrgObj",
3732
+ label: _vm.currentOrgName
3733
+ ? _vm.currentOrgName
3734
+ : "本单位",
3735
+ },
3736
+ },
3737
+ [
3738
+ _c("SelectUser", {
3739
+ attrs: {
3740
+ nextUser:
3741
+ _vm.nextCurrentOrgObjSelect,
3742
+ multiple: "",
3743
+ mix: "",
3744
+ types: [
3745
+ "department",
3746
+ "employee",
3747
+ ],
3748
+ params: {
3749
+ filid: _vm.userModel.orgId,
3750
+ },
3751
+ },
3752
+ on: {
3753
+ change: function ($event) {
3754
+ _vm.disposeAppUnit(
3755
+ $event,
3756
+ "nextCurrentOrgObjSelect"
3757
+ )
3758
+ },
3759
+ },
3760
+ }),
3761
+ ],
3762
+ 1
3763
+ )
3764
+ : _vm._e(),
3765
+ _vm.isHideOtherOrg
3766
+ ? _c(
3767
+ "el-form-item",
3768
+ {
3769
+ attrs: {
3770
+ prop: "nextOtherOrgObj",
3771
+ label: _vm.otherOrgName
3772
+ ? _vm.otherOrgName
3773
+ : "外单位",
3774
+ },
3775
+ },
3776
+ [
3777
+ _c("SelectUser", {
3778
+ attrs: {
3779
+ nextUser:
3780
+ _vm.nextOtherOrgObjSelect,
3781
+ multiple: "",
3782
+ mix: "",
3783
+ types: ["enterprise"],
3784
+ params: { filid: "all" },
3785
+ },
3786
+ on: {
3787
+ change: function ($event) {
3788
+ _vm.disposeAppUnit(
3789
+ $event,
3790
+ "nextOtherOrgObjSelect"
3791
+ )
3792
+ },
3793
+ },
3794
+ }),
3795
+ ],
3796
+ 1
3797
+ )
3798
+ : _vm._e(),
3799
+ _vm.isMainSubProcess
3800
+ ? _c(
3801
+ "el-form-item",
3802
+ {
3803
+ attrs: {
3804
+ prop: "mainSubId",
3805
+ label: "主办",
3806
+ },
3807
+ },
3808
+ [
3809
+ _c(
3810
+ "el-select",
3811
+ {
3812
+ attrs: {
3813
+ placeholder: "请选择主办",
3814
+ },
3815
+ model: {
3816
+ value:
3817
+ _vm.nextNode.mainSubId,
3818
+ callback: function ($$v) {
3819
+ _vm.$set(
3820
+ _vm.nextNode,
3821
+ "mainSubId",
3822
+ $$v
3823
+ )
3824
+ },
3825
+ expression:
3826
+ "nextNode.mainSubId",
3827
+ },
3828
+ },
3829
+ _vm._l(
3830
+ _vm.subProcessColumns,
3831
+ function (items) {
3832
+ return _c("el-option", {
3833
+ key: items.id,
3834
+ attrs: {
3835
+ label: items.name,
3836
+ value: items.value,
3837
+ },
3838
+ })
3839
+ }
3840
+ ),
3841
+ 1
3842
+ ),
3843
+ ],
3844
+ 1
3845
+ )
3846
+ : _vm._e(),
3718
3847
  _vm.nodeType !== 0 &&
3719
3848
  _vm.isLimitedTimeHandling === 1
3720
3849
  ? _c("TimeLimit", {
@@ -4423,7 +4552,7 @@ var staticRenderFns = []
4423
4552
  render._withStripped = true
4424
4553
 
4425
4554
 
4426
- // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=88cb49c6&
4555
+ // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=fd0d2338&
4427
4556
 
4428
4557
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
4429
4558
  var regenerator_ = __webpack_require__(9);
@@ -9482,8 +9611,8 @@ var processReject_component = Object(componentNormalizer["a" /* default */])(
9482
9611
  )
9483
9612
 
9484
9613
  /* harmony default export */ var processReject = (processReject_component.exports);
9485
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=template&id=31232218&
9486
- var startTaskReadvue_type_template_id_31232218_render = function () {
9614
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=template&id=503131e8&
9615
+ var startTaskReadvue_type_template_id_503131e8_render = function () {
9487
9616
  var _vm = this
9488
9617
  var _h = _vm.$createElement
9489
9618
  var _c = _vm._self._c || _h
@@ -9858,11 +9987,11 @@ var startTaskReadvue_type_template_id_31232218_render = function () {
9858
9987
  1
9859
9988
  )
9860
9989
  }
9861
- var startTaskReadvue_type_template_id_31232218_staticRenderFns = []
9862
- startTaskReadvue_type_template_id_31232218_render._withStripped = true
9990
+ var startTaskReadvue_type_template_id_503131e8_staticRenderFns = []
9991
+ startTaskReadvue_type_template_id_503131e8_render._withStripped = true
9863
9992
 
9864
9993
 
9865
- // CONCATENATED MODULE: ./packages/flow/src/startTaskRead.vue?vue&type=template&id=31232218&
9994
+ // CONCATENATED MODULE: ./packages/flow/src/startTaskRead.vue?vue&type=template&id=503131e8&
9866
9995
 
9867
9996
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/startTaskRead.vue?vue&type=script&lang=js&
9868
9997
  var startTaskReadvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -10040,7 +10169,7 @@ var startTaskReadvue_type_script_lang_js_components;
10040
10169
  },
10041
10170
  mixList: [],
10042
10171
  newSelectUserList: [],
10043
- orgId: 3,
10172
+ orgId: '',
10044
10173
  noticeList: [],
10045
10174
  userOptions: [],
10046
10175
  selectCheck: [],
@@ -10059,18 +10188,18 @@ var startTaskReadvue_type_script_lang_js_components;
10059
10188
  tab = {
10060
10189
  employee: {
10061
10190
  param: {
10062
- filid: sessionStorage.getItem('orgId'),
10191
+ filid: this.orgId,
10063
10192
  name: '本单位用户'
10064
10193
  }
10065
10194
  },
10066
- department: { param: { filid: sessionStorage.getItem('orgId') } },
10195
+ department: { param: { filid: this.orgId } },
10067
10196
  enterprise: {}
10068
10197
  };
10069
10198
  } else {
10070
10199
  tab = {
10071
10200
  employee: {
10072
10201
  param: {
10073
- filid: sessionStorage.getItem('orgId')
10202
+ filid: this.orgId
10074
10203
  }
10075
10204
  }
10076
10205
  };
@@ -10080,6 +10209,9 @@ var startTaskReadvue_type_script_lang_js_components;
10080
10209
  },
10081
10210
  mounted: function mounted() {
10082
10211
  this.getFind();
10212
+ if (util["a" /* default */].getStorage('mainConfig')) {
10213
+ this.orgId = JSON.parse(util["a" /* default */].getStorage('mainConfig')).userModel.orgId;
10214
+ }
10083
10215
  },
10084
10216
 
10085
10217
  methods: {
@@ -10129,14 +10261,14 @@ var startTaskReadvue_type_script_lang_js_components;
10129
10261
  this.multiple = false;
10130
10262
  }
10131
10263
  if (val == 1 || val == 2 || val == 5) {
10132
- this.params.filid = util["a" /* default */].getStorage('orgId');
10264
+ this.params.filid = this.orgId;
10133
10265
  if (choiceOrgId) {
10134
10266
  this.params.filid = choiceOrgId;
10135
10267
  }
10136
10268
  }
10137
10269
  if (val == 5 || val == 6) {
10138
- this.params.filid = util["a" /* default */].getStorage('orgId');
10139
- this.params.deptid = util["a" /* default */].getStorage('orgId');
10270
+ this.params.filid = this.orgId;
10271
+ this.params.deptid = this.orgId;
10140
10272
  if (choiceDeptId) {
10141
10273
  this.params.deptid = choiceDeptId;
10142
10274
  }
@@ -10145,14 +10277,14 @@ var startTaskReadvue_type_script_lang_js_components;
10145
10277
  }
10146
10278
  }
10147
10279
  if (val == 15 || val == 16) {
10148
- this.params.filid = util["a" /* default */].getStorage('orgId');
10280
+ this.params.filid = this.orgId;
10149
10281
  if (pOrgId) {
10150
10282
  this.params.filid = pOrgId;
10151
10283
  }
10152
10284
  }
10153
10285
  },
10154
10286
  isMultiple: function isMultiple() {
10155
- var orgId = sessionStorage.getItem('orgId');
10287
+ var orgId = this.orgId;
10156
10288
  if (this.configInfo.selectPersonValue == 1) {
10157
10289
  this.multiple = false;
10158
10290
  this.params.filid = orgId;
@@ -10459,8 +10591,8 @@ var startTaskReadvue_type_script_lang_js_components;
10459
10591
 
10460
10592
  var startTaskRead_component = Object(componentNormalizer["a" /* default */])(
10461
10593
  src_startTaskReadvue_type_script_lang_js_,
10462
- startTaskReadvue_type_template_id_31232218_render,
10463
- startTaskReadvue_type_template_id_31232218_staticRenderFns,
10594
+ startTaskReadvue_type_template_id_503131e8_render,
10595
+ startTaskReadvue_type_template_id_503131e8_staticRenderFns,
10464
10596
  false,
10465
10597
  null,
10466
10598
  null,
@@ -11758,6 +11890,38 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
11758
11890
  //
11759
11891
  //
11760
11892
  //
11893
+ //
11894
+ //
11895
+ //
11896
+ //
11897
+ //
11898
+ //
11899
+ //
11900
+ //
11901
+ //
11902
+ //
11903
+ //
11904
+ //
11905
+ //
11906
+ //
11907
+ //
11908
+ //
11909
+ //
11910
+ //
11911
+ //
11912
+ //
11913
+ //
11914
+ //
11915
+ //
11916
+ //
11917
+ //
11918
+ //
11919
+ //
11920
+ //
11921
+ //
11922
+ //
11923
+ //
11924
+ //
11761
11925
 
11762
11926
 
11763
11927
 
@@ -11805,6 +11969,9 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
11805
11969
 
11806
11970
  return _ref = {
11807
11971
  userModel: {},
11972
+ nextOtherOrgObjSelect: [],
11973
+ subProcessColumns: [],
11974
+ nextCurrentOrgObjSelect: [],
11808
11975
  loading: null, // 加载中
11809
11976
  newTypeCode: '',
11810
11977
  NodeName: '', // 当前节点值
@@ -11897,13 +12064,16 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
11897
12064
  removeSignUserId: [], // 减签办理人
11898
12065
  nextUserId: [], // 下步办理人
11899
12066
  nextOrgId: [], //办理对象
12067
+ nextCurrentOrgObj: [],
11900
12068
  nextCurrentOrgObjSerialId: [], //本单位用户
12069
+ nextOtherOrgObj: [], //外单位
11901
12070
  nextReadUserId: [], //分阅用户
11902
12071
  presetReadUserId: [], //自动分阅
11903
12072
  handleExplain: '', //办理意见
11904
12073
  notificationType: [], // 通知方式
11905
- isLimitedTime: '2' // 是否限时办理
11906
- }, _ref.nodeInfos = [], _ref.nextFlowNode = '', _ref.nodeInfo = {
12074
+ isLimitedTime: '2', // 是否限时办理
12075
+ mainSubId: ''
12076
+ }, _ref.nodeInfos = [], _ref.nextFlowNode = '', _ref.currentOrgName = '', _ref.otherOrgName = '', _ref.nodeInfo = {
11907
12077
  nextNode: '',
11908
12078
  nextUser: '',
11909
12079
  option: []
@@ -11981,6 +12151,36 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
11981
12151
  }
11982
12152
  },
11983
12153
  methods: {
12154
+ getsubProcessColumns: function getsubProcessColumns() {
12155
+ if (!this.isMainSubProcess) return [];
12156
+ var data = [];
12157
+ var obj = { name: '[部门员工]-' };
12158
+ if (this.nextCurrentOrgObjSelect.length > 0) {
12159
+ this.nextCurrentOrgObjSelect.map(function (x) {
12160
+ if (x.stype == 'employee') {
12161
+ obj.name = !obj.value ? obj.name + x.showname : obj.name + ',' + x.showname;
12162
+ obj.value = obj.value ? obj.value + ',' + x.showid : 'employee-' + x.showid;
12163
+ } else {
12164
+ data.push({
12165
+ name: '[部门]' + x.showname,
12166
+ value: 'department-' + x.showid
12167
+ });
12168
+ }
12169
+ });
12170
+ }
12171
+ obj.value && data.push(obj);
12172
+ if (this.nextOtherOrgObjSelect.length > 0) {
12173
+ this.nextOtherOrgObjSelect.map(function (x) {
12174
+ data.push({
12175
+ name: '[企业]' + x.showname,
12176
+ value: 'enterprise-' + x.showid
12177
+ });
12178
+ });
12179
+ }
12180
+ this.subProcessColumns = data;
12181
+ // return data;
12182
+ },
12183
+
11984
12184
  // 分阅是否多选
11985
12185
  isReadMultiple: function isReadMultiple(nextReadUserSelectType) {
11986
12186
  if (nextReadUserSelectType == 1) {
@@ -12713,6 +12913,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
12713
12913
  if (type) {
12714
12914
  this.isNextUser = false;
12715
12915
  this.isShowNode = false;
12916
+ this.isMainSubProcess = false;
12716
12917
  this.nextNode.nextNodeId = '';
12717
12918
  this.nextNode.isReturnSubmitter = 0;
12718
12919
  this.nextNode.isUndertakeReply = 0;
@@ -12863,6 +13064,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
12863
13064
  choiceOrgId = _res$data2.choiceOrgId,
12864
13065
  choiceDeptId = _res$data2.choiceDeptId,
12865
13066
  pOrgId = _res$data2.pOrgId,
13067
+ currentOrgName = _res$data2.currentOrgName,
13068
+ otherOrgName = _res$data2.otherOrgName,
12866
13069
  taskExamine = _res$data2.taskExamine,
12867
13070
  nodeInfoMap = _res$data2.nodeInfoMap,
12868
13071
  canRemoveSignUserList = _res$data2.canRemoveSignUserList,
@@ -12878,6 +13081,8 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
12878
13081
  taskButtonList = _res$data2.taskButtonList;
12879
13082
 
12880
13083
  _this14.$emit('startTaskRead', res);
13084
+ _this14.currentOrgName = currentOrgName;
13085
+ _this14.otherOrgName = otherOrgName;
12881
13086
  _this14.endFlowInfo.choiceOrgId = choiceOrgId;
12882
13087
  _this14.endFlowInfo.choiceDeptId = choiceDeptId;
12883
13088
  _this14.endFlowInfo.pendingId = _this14.pendingId;
@@ -13029,7 +13234,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13029
13234
  }
13030
13235
  });
13031
13236
  }
13032
- _this14.isMainSubProcess = res.data.isMainSubProcess === true;
13237
+ _this14.isMainSubProcess = res.data.isMainSubProcess == 'true';
13033
13238
  _this14.isCustomPreset = isCustomPreset;
13034
13239
  _this14.isPreset = isPreset;
13035
13240
  _this14.presetTaskNodeMap = presetTaskNodeMap;
@@ -13221,7 +13426,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13221
13426
  switch (_context.prev = _context.next) {
13222
13427
  case 0:
13223
13428
  if (!valid) {
13224
- _context.next = 56;
13429
+ _context.next = 59;
13225
13430
  break;
13226
13431
  }
13227
13432
 
@@ -13311,6 +13516,15 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13311
13516
  return _context.abrupt('return');
13312
13517
 
13313
13518
  case 24:
13519
+ if (!(_this18.isHideCurrentOrg && !_this18.nextNode.nextCurrentOrgObjJson)) {
13520
+ _context.next = 27;
13521
+ break;
13522
+ }
13523
+
13524
+ _this18.$message.warning('\u8BF7\u9009\u62E9' + (_this18.currentOrgName || '本单位'));
13525
+ return _context.abrupt('return');
13526
+
13527
+ case 27:
13314
13528
  str = '';
13315
13529
 
13316
13530
  if (_this18.value) {
@@ -13330,10 +13544,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13330
13544
  if (_this18.nextNode.nextOperate != 0 && _this18.nextNode.nextOperate != 1) {
13331
13545
  delete _this18.nextNode.nextNodeId;
13332
13546
  }
13333
- _context.next = 32;
13547
+ _context.next = 35;
13334
13548
  return _this18.saveInfo('subMit');
13335
13549
 
13336
- case 32:
13550
+ case 35:
13337
13551
  _this18.loading = util["a" /* default */].loading(_this18.$loading, '加载中...');
13338
13552
 
13339
13553
  notificationType = '';
@@ -13395,10 +13609,10 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13395
13609
  }
13396
13610
  }));
13397
13611
 
13398
- case 56:
13612
+ case 59:
13399
13613
  return _context.abrupt('return', false);
13400
13614
 
13401
- case 57:
13615
+ case 60:
13402
13616
  case 'end':
13403
13617
  return _context.stop();
13404
13618
  }
@@ -13410,6 +13624,38 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
13410
13624
  return _ref2.apply(this, arguments);
13411
13625
  };
13412
13626
  }());
13627
+ },
13628
+
13629
+ // 单位选择完回调
13630
+ disposeAppUnit: function disposeAppUnit(res, type) {
13631
+ var label = type.substring(0, type.lastIndexOf('Select'));
13632
+ this.nextNode[label + 'Name'] = '';
13633
+ res.options && (this[type] = res.options);
13634
+ var obj = {};
13635
+ // if (typeof res.mixList == 'array')
13636
+ res.mixList && (this.nextNode[label] = res.mixList.join('|'));
13637
+ res.options.map(function (item) {
13638
+ if (obj[item.stype]) {
13639
+ obj[item.stype].push(item.showname);
13640
+ } else {
13641
+ obj[item.stype] = [item.showname];
13642
+ }
13643
+ });
13644
+ for (var key in obj) {
13645
+ if (key === 'enterprise' && this.nextNode[label + 'Name'].indexOf('[企业]') == -1) {
13646
+ this.nextNode[label + 'Name'] = this.nextNode[label + 'Name'] ? this.nextNode[label + 'Name'] + '|' + '[企业]-' + obj[key].join(',') : '' + '[企业]-' + obj[key].join(',');
13647
+ }
13648
+ if (key === 'department' && this.nextNode[label + 'Name'].indexOf('[部门]') == -1) {
13649
+ this.nextNode[label + 'Name'] = this.nextNode[label + 'Name'] ? this.nextNode[label + 'Name'] + '|' + '[部门]-' + obj[key].join(',') : '' + '[部门]-' + obj[key].join(',');
13650
+ }
13651
+ if (key === 'employee' && this.nextNode[label + 'Name'].indexOf('[部门员工]') == -1) {
13652
+ this.nextNode[label + 'Name'] = this.nextNode[label + 'Name'] ? this.nextNode[label + 'Name'] + '|' + '[部门员工]-' + obj[key].join(',') : '' + '[部门员工]-' + obj[key].join(',');
13653
+ }
13654
+ }
13655
+ // this.nextNode[label + 'Name'] = obj.enterprise?;
13656
+ this.nextNode[label + 'SerialId'] = res.nextUser.join(',');
13657
+ this.nextNode[label + 'Json'] = JSON.stringify(res.options);
13658
+ this.getsubProcessColumns();
13413
13659
  }
13414
13660
  }
13415
13661
  });