eoss-mobiles 0.2.98 → 0.2.99

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.
@@ -3178,7 +3178,7 @@ var registerNew = '/bpm/v1/mecpItask/registerNew.json';
3178
3178
 
3179
3179
  // 获取节点信息(获取节点属性及办理人,发起)
3180
3180
  // export const getNodeInfo = '/api/mecp/v1/mecpItask/getNodeInfo.json';
3181
- var getNodeInfo = '/bpm/v1/mecpItask/getNodeInfoNew.json';
3181
+ var api_getNodeInfo = '/bpm/v1/mecpItask/getNodeInfoNew.json';
3182
3182
 
3183
3183
  // 获取发起流程信息
3184
3184
  var toStartFlow = '/bpm/v1/mecpItask/toStartFlowNew.json';
@@ -3232,6 +3232,8 @@ var api_toTwoOfficesDispatch = activiti + mecp + '/bpmBackend/toTwoOfficesDispat
3232
3232
  var api_twoOfficesDispatch = activiti + '/task/taskHandle/twoOfficesDispatch.dhtml';
3233
3233
  // 是否允许启动子流程(必经节点)
3234
3234
  var isCanStartSubFlow = activiti + '/task/taskHandle/isCanStartSubFlow.dhtml';
3235
+ // 流程预设获取
3236
+ var getPresetCustomInfo = activiti + '/task/taskHandle/getPresetCustomInfo.dhtml';
3235
3237
  // 流程列表
3236
3238
  var pendedhistoryList = '/api/v1/mecpIpending/pendedhistoryList.json';
3237
3239
  // 获取流程按钮
@@ -13581,8 +13583,8 @@ var Opinion_component = normalizeComponent(
13581
13583
  )
13582
13584
 
13583
13585
  /* harmony default export */ var Opinion = (Opinion_component.exports);
13584
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Message.vue?vue&type=template&id=434d110c
13585
- var Messagevue_type_template_id_434d110c_render = function () {
13586
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Message.vue?vue&type=template&id=50bf1a6c
13587
+ var Messagevue_type_template_id_50bf1a6c_render = function () {
13586
13588
  var _vm = this
13587
13589
  var _h = _vm.$createElement
13588
13590
  var _c = _vm._self._c || _h
@@ -13605,8 +13607,7 @@ var Messagevue_type_template_id_434d110c_render = function () {
13605
13607
  _c("em-checkbox-group", {
13606
13608
  attrs: {
13607
13609
  direction: "horizontal",
13608
- sysAppCode: _vm.code,
13609
- baseUrl: _vm.baseUrl,
13610
+ data: _vm.newList,
13610
13611
  disabledValue: _vm.readOnlyNotificationType,
13611
13612
  labelKey: "shortName",
13612
13613
  valueKey: "cciValue",
@@ -13632,7 +13633,7 @@ var Messagevue_type_template_id_434d110c_render = function () {
13632
13633
  _vm.form.notificationType &&
13633
13634
  _vm.form.notificationType.length > 0,
13634
13635
  expression:
13635
- "\n showMsg &&\n form.notificationType &&\n form.notificationType.length > 0\n ",
13636
+ "\n showMsg &&\n form.notificationType &&\n form.notificationType.length > 0\n ",
13636
13637
  },
13637
13638
  ],
13638
13639
  staticClass: "msg",
@@ -13669,11 +13670,11 @@ var Messagevue_type_template_id_434d110c_render = function () {
13669
13670
  1
13670
13671
  )
13671
13672
  }
13672
- var Messagevue_type_template_id_434d110c_staticRenderFns = []
13673
- Messagevue_type_template_id_434d110c_render._withStripped = true
13673
+ var Messagevue_type_template_id_50bf1a6c_staticRenderFns = []
13674
+ Messagevue_type_template_id_50bf1a6c_render._withStripped = true
13674
13675
 
13675
13676
 
13676
- // CONCATENATED MODULE: ./packages/flow/src/components/Message.vue?vue&type=template&id=434d110c
13677
+ // CONCATENATED MODULE: ./packages/flow/src/components/Message.vue?vue&type=template&id=50bf1a6c
13677
13678
 
13678
13679
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Message.vue?vue&type=script&lang=js
13679
13680
  //
@@ -13714,7 +13715,8 @@ Messagevue_type_template_id_434d110c_render._withStripped = true
13714
13715
  //
13715
13716
  //
13716
13717
  //
13717
- //
13718
+
13719
+
13718
13720
 
13719
13721
  /* harmony default export */ var Messagevue_type_script_lang_js = ({
13720
13722
  name: 'Message',
@@ -13731,7 +13733,7 @@ Messagevue_type_template_id_434d110c_render._withStripped = true
13731
13733
  },
13732
13734
  code: {
13733
13735
  type: String,
13734
- default: "notification_type" // 代码表默认参数
13736
+ default: 'notification_type' // 代码表默认参数
13735
13737
  },
13736
13738
  defaultNotificationMsg: String, //通知消息默认值
13737
13739
  defaultNotificationType: {
@@ -13740,7 +13742,7 @@ Messagevue_type_template_id_434d110c_render._withStripped = true
13740
13742
  }, //通知消息默认值
13741
13743
  label: {
13742
13744
  type: String,
13743
- default: "通知方式" // 代码表默认参数
13745
+ default: '通知方式' // 代码表默认参数
13744
13746
  },
13745
13747
  required: {
13746
13748
  type: Boolean,
@@ -13757,6 +13759,9 @@ Messagevue_type_template_id_434d110c_render._withStripped = true
13757
13759
  default: ''
13758
13760
  }
13759
13761
  },
13762
+ mounted: function mounted() {
13763
+ this.getSysCode();
13764
+ },
13760
13765
  data: function data() {
13761
13766
  return {
13762
13767
  form: {
@@ -13781,13 +13786,66 @@ Messagevue_type_template_id_434d110c_render._withStripped = true
13781
13786
  // 监听默认消息类型
13782
13787
  defaultNotificationType: function defaultNotificationType(val) {
13783
13788
  if (val) {
13784
- this.form.notificationType = val;
13789
+ var arr = [];
13790
+ this.newList.map(function (item) {
13791
+ val.map(function (x) {
13792
+ if (x == item.cciValue) {
13793
+ arr.push(x);
13794
+ }
13795
+ });
13796
+ });
13797
+ this.form.notificationType = arr;
13798
+ this.$emit('onInputMsg', this.form);
13785
13799
  }
13786
13800
  }
13787
13801
  },
13788
13802
  methods: {
13803
+ getSysCode: function getSysCode() {
13804
+ var _this = this;
13805
+
13806
+ var params = {
13807
+ url: this.baseUrl ? this.baseUrl + findSysCode : findSysCode,
13808
+ type: 'get',
13809
+ params: {
13810
+ ccCode: this.code
13811
+ }
13812
+ };
13813
+ utils_http(params).then(function (res) {
13814
+ var status = res.status,
13815
+ data = res.data,
13816
+ message = res.message,
13817
+ rCode = res.rCode,
13818
+ results = res.results;
13819
+
13820
+ if (status == 'success' || rCode === 0 || status === true) {
13821
+ [].concat(data || results).map(function (item) {
13822
+ item.name = item['shortName'];
13823
+
13824
+ item.value = item['cciValue'];
13825
+ item.disabled = _this.readOnlyNotificationType.indexOf(item.value) != -1;
13826
+ });
13827
+ _this.newList = data || results;
13828
+ if (_this.defaultNotificationType && _this.defaultNotificationType.length > 0) {
13829
+ var arr = [];
13830
+ _this.newList.map(function (item) {
13831
+ _this.defaultNotificationType.map(function (x) {
13832
+ if (x == item.cciValue) {
13833
+ arr.push(x);
13834
+ }
13835
+ });
13836
+ });
13837
+ _this.form.notificationType = arr;
13838
+ _this.$emit('onInputMsg', _this.form);
13839
+ }
13840
+ } else {
13841
+ _this.$toast(message);
13842
+ }
13843
+ }).catch(function (err) {
13844
+ _this.$toast(err.message);
13845
+ });
13846
+ },
13789
13847
  onInput: function onInput() {
13790
- this.$emit("onInputMsg", this.form);
13848
+ this.$emit('onInputMsg', this.form);
13791
13849
  }
13792
13850
  }
13793
13851
  });
@@ -13803,8 +13861,8 @@ Messagevue_type_template_id_434d110c_render._withStripped = true
13803
13861
 
13804
13862
  var Message_component = normalizeComponent(
13805
13863
  components_Messagevue_type_script_lang_js,
13806
- Messagevue_type_template_id_434d110c_render,
13807
- Messagevue_type_template_id_434d110c_staticRenderFns,
13864
+ Messagevue_type_template_id_50bf1a6c_render,
13865
+ Messagevue_type_template_id_50bf1a6c_staticRenderFns,
13808
13866
  false,
13809
13867
  null,
13810
13868
  null,
@@ -14309,7 +14367,7 @@ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target
14309
14367
 
14310
14368
  var _that = this;
14311
14369
  utils_http({
14312
- url: _that.apiBaseUrl ? _that.apiBaseUrl + getNodeInfo : getNodeInfo,
14370
+ url: _that.apiBaseUrl ? _that.apiBaseUrl + api_getNodeInfo : api_getNodeInfo,
14313
14371
  params: {
14314
14372
  params: {
14315
14373
  processDefinitionId: this.flowObj.processDefinitionId,
@@ -14374,8 +14432,8 @@ var StartFlow_component = normalizeComponent(
14374
14432
  )
14375
14433
 
14376
14434
  /* harmony default export */ var StartFlow = (StartFlow_component.exports);
14377
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Handle.vue?vue&type=template&id=21e4c619
14378
- var Handlevue_type_template_id_21e4c619_render = function () {
14435
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Handle.vue?vue&type=template&id=548395aa
14436
+ var Handlevue_type_template_id_548395aa_render = function () {
14379
14437
  var _vm = this
14380
14438
  var _h = _vm.$createElement
14381
14439
  var _c = _vm._self._c || _h
@@ -15344,6 +15402,27 @@ var Handlevue_type_template_id_21e4c619_render = function () {
15344
15402
  ],
15345
15403
  1
15346
15404
  ),
15405
+ _vm.isCustomPreset
15406
+ ? _c("ProcessSetting", {
15407
+ ref: "processSetting",
15408
+ attrs: {
15409
+ processDefinitionId:
15410
+ _vm.taskExamineInfo
15411
+ .processDefinitionId,
15412
+ nodeId: _vm.form.nextNodeId,
15413
+ taskId:
15414
+ _vm.processObj.taskExamine.taskId,
15415
+ pendingId: _vm.pendingId,
15416
+ businessId:
15417
+ _vm.taskExamineInfo.businessId,
15418
+ apiBaseUrl: _vm.apiBaseUrl,
15419
+ paddingTop: _vm.paddingTop,
15420
+ choiceOrgId: _vm.choiceOrgId,
15421
+ pOrgId: _vm.pOrgId,
15422
+ choiceDeptId: _vm.choiceDeptId,
15423
+ },
15424
+ })
15425
+ : _vm._e(),
15347
15426
  _vm.isLimitedTimeHandling
15348
15427
  ? _c(
15349
15428
  "div",
@@ -15460,11 +15539,11 @@ var Handlevue_type_template_id_21e4c619_render = function () {
15460
15539
  1
15461
15540
  )
15462
15541
  }
15463
- var Handlevue_type_template_id_21e4c619_staticRenderFns = []
15464
- Handlevue_type_template_id_21e4c619_render._withStripped = true
15542
+ var Handlevue_type_template_id_548395aa_staticRenderFns = []
15543
+ Handlevue_type_template_id_548395aa_render._withStripped = true
15465
15544
 
15466
15545
 
15467
- // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=21e4c619
15546
+ // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=548395aa
15468
15547
 
15469
15548
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=template&id=4fdaf365
15470
15549
  var Rejectvue_type_template_id_4fdaf365_render = function () {
@@ -15860,6 +15939,439 @@ var Reject_component = normalizeComponent(
15860
15939
  )
15861
15940
 
15862
15941
  /* harmony default export */ var Reject = (Reject_component.exports);
15942
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/ProcessSettings.vue?vue&type=template&id=50a06dbd
15943
+ var ProcessSettingsvue_type_template_id_50a06dbd_render = function () {
15944
+ var _vm = this
15945
+ var _h = _vm.$createElement
15946
+ var _c = _vm._self._c || _h
15947
+ return _c(
15948
+ "div",
15949
+ { staticClass: "em-flow-setting" },
15950
+ [
15951
+ _c(
15952
+ "van-collapse",
15953
+ {
15954
+ model: {
15955
+ value: _vm.active,
15956
+ callback: function ($$v) {
15957
+ _vm.active = $$v
15958
+ },
15959
+ expression: "active",
15960
+ },
15961
+ },
15962
+ [
15963
+ _c(
15964
+ "van-collapse-item",
15965
+ {
15966
+ attrs: { title: "预设自定义节点信息(折叠不作处理)", name: "1" },
15967
+ },
15968
+ _vm._l(_vm.flowList, function (item, index) {
15969
+ return _c(
15970
+ "div",
15971
+ { key: index, staticClass: "em-flow-setting-item" },
15972
+ [
15973
+ _c("em-picker", {
15974
+ attrs: {
15975
+ title: "节点" + (index + 1),
15976
+ label: "节点" + (index + 1),
15977
+ "show-toolbar": "",
15978
+ columns: item.nodeList,
15979
+ "value-key": "nodeId",
15980
+ "label-key": "nodeName",
15981
+ },
15982
+ on: {
15983
+ confirm: function ($event) {
15984
+ _vm.onConfirmNextNode($event, index)
15985
+ },
15986
+ },
15987
+ model: {
15988
+ value: item.nodeId,
15989
+ callback: function ($$v) {
15990
+ _vm.$set(item, "nodeId", $$v)
15991
+ },
15992
+ expression: "item.nodeId",
15993
+ },
15994
+ }),
15995
+ _c("em-selector", {
15996
+ directives: [
15997
+ {
15998
+ name: "show",
15999
+ rawName: "v-show",
16000
+ value: item.showSelectUser,
16001
+ expression: "item.showSelectUser",
16002
+ },
16003
+ ],
16004
+ attrs: {
16005
+ multiple: !item.isRadio,
16006
+ nextUserList: item.nextUserList,
16007
+ label: "办理人",
16008
+ objType: item.objType,
16009
+ param: {
16010
+ pid: item.pid,
16011
+ },
16012
+ required: item.nodeId != "",
16013
+ tabs: "employee,persongroup",
16014
+ baseUrl: _vm.apiBaseUrl,
16015
+ paddingTop: _vm.paddingTop,
16016
+ },
16017
+ model: {
16018
+ value: item.nextUserSelectList,
16019
+ callback: function ($$v) {
16020
+ _vm.$set(item, "nextUserSelectList", $$v)
16021
+ },
16022
+ expression: "item.nextUserSelectList",
16023
+ },
16024
+ }),
16025
+ _c("van-icon", {
16026
+ directives: [
16027
+ {
16028
+ name: "show",
16029
+ rawName: "v-show",
16030
+ value: index + 1 != _vm.flowList.length,
16031
+ expression: "index + 1 != flowList.length",
16032
+ },
16033
+ ],
16034
+ staticStyle: { "margin-top": "10px" },
16035
+ attrs: { name: "down" },
16036
+ }),
16037
+ ],
16038
+ 1
16039
+ )
16040
+ }),
16041
+ 0
16042
+ ),
16043
+ ],
16044
+ 1
16045
+ ),
16046
+ ],
16047
+ 1
16048
+ )
16049
+ }
16050
+ var ProcessSettingsvue_type_template_id_50a06dbd_staticRenderFns = []
16051
+ ProcessSettingsvue_type_template_id_50a06dbd_render._withStripped = true
16052
+
16053
+
16054
+ // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue?vue&type=template&id=50a06dbd
16055
+
16056
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/ProcessSettings.vue?vue&type=script&lang=js
16057
+ var ProcessSettingsvue_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; };
16058
+
16059
+ var ProcessSettingsvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
16060
+
16061
+ //
16062
+ //
16063
+ //
16064
+ //
16065
+ //
16066
+ //
16067
+ //
16068
+ //
16069
+ //
16070
+ //
16071
+ //
16072
+ //
16073
+ //
16074
+ //
16075
+ //
16076
+ //
16077
+ //
16078
+ //
16079
+ //
16080
+ //
16081
+ //
16082
+ //
16083
+ //
16084
+ //
16085
+ //
16086
+ //
16087
+ //
16088
+ //
16089
+ //
16090
+ //
16091
+ //
16092
+ //
16093
+ //
16094
+ //
16095
+ //
16096
+ //
16097
+ //
16098
+ //
16099
+ //
16100
+ //
16101
+ //
16102
+ //
16103
+ //
16104
+ //
16105
+
16106
+
16107
+
16108
+ /* harmony default export */ var ProcessSettingsvue_type_script_lang_js = ({
16109
+ props: {
16110
+ processDefinitionId: {
16111
+ type: String,
16112
+ default: ''
16113
+ },
16114
+ nodeId: {
16115
+ type: String,
16116
+ default: ''
16117
+ },
16118
+ businessId: {
16119
+ type: String,
16120
+ default: ''
16121
+ },
16122
+ taskId: {
16123
+ type: String,
16124
+ default: ''
16125
+ },
16126
+ pendingId: {
16127
+ type: String,
16128
+ default: ''
16129
+ },
16130
+ apiBaseUrl: {
16131
+ type: String,
16132
+ default: ''
16133
+ },
16134
+ paddingTop: {
16135
+ type: Number,
16136
+ default: 0
16137
+ },
16138
+ choiceOrgId: {
16139
+ type: String,
16140
+ default: ''
16141
+ },
16142
+ pOrgId: {
16143
+ type: String,
16144
+ default: ''
16145
+ },
16146
+ choiceDeptId: {
16147
+ type: String,
16148
+ default: ''
16149
+ }
16150
+ },
16151
+ data: function data() {
16152
+ return {
16153
+ name: '',
16154
+ pid: 'root',
16155
+ objType: 'enterprise',
16156
+ selectType: 'employee',
16157
+ active: ['1'],
16158
+ flowList: [],
16159
+ selectList: [],
16160
+ isRadio: true,
16161
+ nodeList: []
16162
+ };
16163
+ },
16164
+
16165
+ watch: {
16166
+ nodeId: {
16167
+ handler: function handler(val) {
16168
+ if (val) {
16169
+ // this.getProList(val);
16170
+ this.getNodeInfo(val);
16171
+ }
16172
+ },
16173
+
16174
+ immediate: true,
16175
+ deep: true
16176
+ }
16177
+ },
16178
+ methods: {
16179
+ getValue: function getValue() {
16180
+ var _this = this;
16181
+
16182
+ var pass = true;
16183
+ var PresetData = [];
16184
+ var newFlowList = this.flowList.filter(function (x) {
16185
+ return x.nodeId;
16186
+ });
16187
+ for (var i = 0; i < newFlowList.length; i++) {
16188
+ if (newFlowList[i].nextUserSelectList.length == 0 && newFlowList[i].showSelectUser) {
16189
+ pass = false;
16190
+ this.$toast('\u8BF7\u9009\u62E9\u8282\u70B9' + (i + 1) + '\u7684\u529E\u7406\u4EBA');
16191
+ return false;
16192
+ }
16193
+ }
16194
+ if (pass) {
16195
+ newFlowList.map(function (x, i) {
16196
+ PresetData.push({
16197
+ name: ProcessSettingsvue_type_script_lang_js_typeof(x.nodeId) == 'object' ? x.nodeId.nodeId : x.nodeId,
16198
+ value: x.nextUserSelectList.map(function (y) {
16199
+ return y.showid;
16200
+ }).join(','),
16201
+ lastName: i == 0 ? _this.nodeId : PresetData[i - 1].name,
16202
+ sequence: i + 1 + ''
16203
+ });
16204
+ });
16205
+ }
16206
+ return JSON.stringify(PresetData);
16207
+ },
16208
+
16209
+ // 根据返回的办理人类型来判断 选择人员树的范围
16210
+ changePidObjtype: function changePidObjtype(val, choiceOrgId, choiceDeptId, pOrgId, obj) {
16211
+ if (val === 1 || val === 2) {
16212
+ obj.pid = choiceOrgId || this.orgId;
16213
+ obj.objType = 'enterprise';
16214
+ obj.selectType = 'employee';
16215
+ } else if (val === 3 || val === 4) {
16216
+ obj.pid = 'root';
16217
+ obj.objType = 'employee';
16218
+ } else if (val === 5 || val === 6) {
16219
+ obj.pid = choiceDeptId || this.depId;
16220
+ obj.objType = 'department';
16221
+ } else if (val === 11 || val === 12) {
16222
+ obj.selectType = 'employee';
16223
+ obj.objType = 'enterprise';
16224
+ } else if (val === 13) {
16225
+ obj.pid = choiceDeptId || this.depId;
16226
+ obj.selectType = 'employee';
16227
+ obj.objType = 'department';
16228
+ } else if (val === 14) {
16229
+ obj.pid = pOrgId || this.orgId;
16230
+ obj.selectType = 'employee';
16231
+ } else if (val === 15 || val === 16) {
16232
+ obj.pid = pOrgId || this.orgId;
16233
+ obj.selectType = 'employee';
16234
+ }
16235
+ // userSelectionType 机构内单选人1,机构内多选人2,所有机构单选人3,所有部门多选人4,本部门单选人5,本部门多选人6,本单位单选部门7,本单位多选部门8,单选单位9,多选单位10,单选机构11,多选机构12,本部门角色13,本单位角色14
16236
+ val == 2 || val == 4 || val == 6 || val == 8 || val == 10 || val == 11 || val == 12 ? obj.isRadio = false : obj.isRadio = true; //判断办理人单选多选
16237
+ },
16238
+
16239
+ // 修改默认办理人
16240
+ changeDefPeople: function changeDefPeople(def, all, data) {
16241
+ var _this2 = this;
16242
+
16243
+ data.nextUserSelectList = [];
16244
+ if (def == 1 && all == 1 || def == 0 && all == 1) {
16245
+ var ids = '';
16246
+ data.nextUserList.map(function (r, i) {
16247
+ r.showid = r.userId;
16248
+ r.showname = r.username;
16249
+ _this2.$set(r, 'checked', true);
16250
+ data.nextUserSelectList.push(r);
16251
+ ids += r.userId + (i === data.nextUserList.length - 1 ? '' : ',');
16252
+ });
16253
+ // this.form.nextUserId = ids;
16254
+ } else if (def == 1 && (!all || all == 0) && data.nextUserList.length > 0) {
16255
+ data.nextUserList[0].showid = data.nextUserList[0].userId;
16256
+ data.nextUserList[0].showname = data.nextUserList[0].username;
16257
+ this.$set(data.nextUserList[0], 'checked', true);
16258
+ data.nextUserSelectList.push(data.nextUserList[0]);
16259
+ // this.form.nextUserId = this.nextUserSelectList[0].userId;
16260
+ }
16261
+ },
16262
+ onConfirmNextNode: function onConfirmNextNode(val, i) {
16263
+ this.flowList = this.flowList.splice(0, i + 1);
16264
+ if (val.nodeId == '-2') {
16265
+ this.flowList[i].nextUserList = [];
16266
+ this.flowList[i].nextUserSelectList = [];
16267
+ } else {
16268
+ this.getNodeInfo(val.nodeId, i);
16269
+ }
16270
+ },
16271
+ getNodeInfo: function getNodeInfo(nodeId, i) {
16272
+ var _this3 = this;
16273
+
16274
+ this.$toast.loading({
16275
+ message: '加载中...',
16276
+ forbidClick: true,
16277
+ loadingType: 'spinner',
16278
+ overlay: true,
16279
+ duration: 0
16280
+ });
16281
+ utils_http({
16282
+ url: getNodeInfoHtml,
16283
+ params: {
16284
+ processDefinitionId: this.processDefinitionId,
16285
+ nextNodeId: nodeId,
16286
+ businessId: this.businessId,
16287
+ taskId: this.taskId,
16288
+ pendingId: this.pendingId
16289
+ }
16290
+ }).then(function (res) {
16291
+ if (res.status == 'success') {
16292
+ // this.nodeList = res.data.taskNodeMap;
16293
+ var obj = {};
16294
+ if (i != undefined) {
16295
+ res.data.nextUserList.map(function (res) {
16296
+ res.checked = false;
16297
+ });
16298
+
16299
+ _this3.flowList[i].nextUserList = res.data.nextUserList || [];
16300
+ _this3.flowList[i].nextUserSelectList = res.data.nextUserList || [];
16301
+ _this3.changeDefPeople(res.data.nodeExtAttr.isDefSelectedObj, res.data.nodeExtAttr.isSelectedAllObj, _this3.flowList[i]);
16302
+ _this3.changePidObjtype(res.data.nodeExtAttr.userSelectionType, _this3.choiceOrgId, _this3.choiceDeptId, _this3.pOrgId, _this3.flowList[i]);
16303
+ } else {
16304
+ obj.nextUserList = res.data.nextUserList || [];
16305
+ obj.nextUserSelectList = res.data.nextUserList || [];
16306
+ _this3.changeDefPeople(res.data.nodeExtAttr.isDefSelectedObj, res.data.nodeExtAttr.isSelectedAllObj, obj);
16307
+ _this3.changePidObjtype(res.data.nodeExtAttr.userSelectionType, _this3.choiceOrgId, _this3.choiceDeptId, _this3.pOrgId, obj);
16308
+ }
16309
+ _this3.getProList(nodeId, obj);
16310
+ }
16311
+ });
16312
+ },
16313
+ getProList: function getProList(nodeId, obj) {
16314
+ var _this4 = this;
16315
+
16316
+ utils_http({
16317
+ url: getPresetCustomInfo,
16318
+ params: {
16319
+ processDefinitionId: this.processDefinitionId,
16320
+ nodeId: nodeId,
16321
+ taskAction: 'withExtendData'
16322
+ }
16323
+ }).then(function (res) {
16324
+ _this4.$toast.clear();
16325
+ if (res.status == 'success') {
16326
+ var _extends2;
16327
+
16328
+ var arr = [{ nodeId: '-2', nodeName: '请选择' }];
16329
+ var isEnd = false;
16330
+ if (res.data.taskNodeMap) {
16331
+ for (var i in res.data.taskNodeMap || res.data || {}) {
16332
+ var _obj = {
16333
+ nodeId: i,
16334
+ nodeName: res.data.taskNodeMap[i]
16335
+ };
16336
+ isEnd = i == 'endEvent';
16337
+ arr.push(_obj);
16338
+ }
16339
+ }
16340
+ if (isEnd) {
16341
+ arr = arr.slice(1);
16342
+ }
16343
+ obj = ProcessSettingsvue_type_script_lang_js_extends({}, obj, (_extends2 = {
16344
+ nodeList: arr,
16345
+ nodeId: ''
16346
+ }, _extends2['nodeId'] = isEnd ? arr[0].nodeId : '', _extends2.showSelectUser = !isEnd, _extends2));
16347
+ _this4.flowList.push(obj);
16348
+ }
16349
+ });
16350
+ }
16351
+ }
16352
+ });
16353
+ // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue?vue&type=script&lang=js
16354
+ /* harmony default export */ var components_ProcessSettingsvue_type_script_lang_js = (ProcessSettingsvue_type_script_lang_js);
16355
+ // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue
16356
+
16357
+
16358
+
16359
+
16360
+
16361
+ /* normalize component */
16362
+
16363
+ var ProcessSettings_component = normalizeComponent(
16364
+ components_ProcessSettingsvue_type_script_lang_js,
16365
+ ProcessSettingsvue_type_template_id_50a06dbd_render,
16366
+ ProcessSettingsvue_type_template_id_50a06dbd_staticRenderFns,
16367
+ false,
16368
+ null,
16369
+ null,
16370
+ null
16371
+
16372
+ )
16373
+
16374
+ /* harmony default export */ var ProcessSettings = (ProcessSettings_component.exports);
15863
16375
  // CONCATENATED MODULE: ./packages/flow/src/flowMix.js
15864
16376
 
15865
16377
 
@@ -16581,6 +17093,20 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
16581
17093
  //
16582
17094
  //
16583
17095
  //
17096
+ //
17097
+ //
17098
+ //
17099
+ //
17100
+ //
17101
+ //
17102
+ //
17103
+ //
17104
+ //
17105
+ //
17106
+ //
17107
+ //
17108
+ //
17109
+
16584
17110
 
16585
17111
 
16586
17112
 
@@ -16595,6 +17121,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
16595
17121
  components: {
16596
17122
  Opinion: Opinion,
16597
17123
  Reject: Reject,
17124
+ ProcessSetting: ProcessSettings,
16598
17125
  Message: Message
16599
17126
  },
16600
17127
  mixins: [flowMix],
@@ -16697,7 +17224,7 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
16697
17224
  advanceNoticeType: [] //催办通知方式
16698
17225
  },
16699
17226
  isCanFenyue: '0'
16700
- }, _ref['isChooseNextNode'] = 1, _ref.isOpinionRequired = 0, _ref.isBanInputOpinion = 0, _ref.showTimeList = false, _ref.timeList = [], _ref.nextUserList = [], _ref.nextCurrentOrgObjSelect = [], _ref.nextOtherOrgObjSelect = [], _ref.nextReadUserSelectList = [], _ref.addSignUserSelectList = [], _ref.removeSignUserSelectList = [], _ref.nextUserSelectList = [], _ref.showAppUser = false, _ref.showNextOperate = false, _ref.showNextNodeList = false, _ref.nodeList = [], _ref.selectList = [], _ref.opinionList = [], _ref.processObj = { taskExamine: { nodeName: undefined } }, _ref.peopleObj = {}, _ref.userInfo = {}, _ref.isCanAddSign = false, _ref.isCanRemoveSign = false, _ref.isSpecial = true, _ref.taskOperations = [], _ref.countersignaturetypeCode = false, _ref.countersignaturetypeText = undefined, _ref.isCustomPreset = true, _ref.isHideCurrentOrg = false, _ref.isHideOtherOrg = false, _ref.isHandleExplain = false, _ref.isTaskread = false, _ref.defaultNotificationType = undefined, _ref.selectUnitType = 'department', _ref.isHiddenNextStepInfo = false, _ref.presetEdit = true, _ref.isLimitedTimeHandling = false, _ref.userSelectionType = undefined, _ref.orgSelectionType = undefined, _ref.notificationType = undefined, _ref.nodeType = undefined, _ref.deptRoleCode = undefined, _ref.orgRoleCode = undefined, _ref.appointNotUserIds = undefined, _ref.handleRoleId = undefined, _ref.nextRole = undefined, _ref.filterCandinateIds = undefined, _ref.selectorDefShowDeptId = undefined, _ref.isRadio = true, _ref.otherOrgName = undefined, _ref.currentOrgName = undefined, _ref.isMainSubProcess = false, _ref.isNextUser = false, _ref.isDealObject = false, _ref.isDealRole = false, _ref.nextUserflag = false, _ref.isSubmitButtonShowAgreeAndDisagree = 0, _ref.isCustomUserClick = false, _ref.timeListLable = undefined, _ref.nodeDefaultSubmitOpinion = undefined, _ref.isCustomUser = 0, _ref.choiceOrgId = '', _ref.choiceDeptId = '', _ref.taskExamineInfo = {}, _ref.nodeInfoMapInfo = {}, _ref.file = '', _ref.isEndUserTask = '', _ref.tagKey = '', _ref.pOrgId = '', _ref.needRetrialAuth = false, _ref;
17227
+ }, _ref['isChooseNextNode'] = 1, _ref.isOpinionRequired = 0, _ref.isBanInputOpinion = 0, _ref.showTimeList = false, _ref.timeList = [], _ref.nextUserList = [], _ref.nextCurrentOrgObjSelect = [], _ref.nextOtherOrgObjSelect = [], _ref.nextReadUserSelectList = [], _ref.addSignUserSelectList = [], _ref.removeSignUserSelectList = [], _ref.nextUserSelectList = [], _ref.showAppUser = false, _ref.showNextOperate = false, _ref.showNextNodeList = false, _ref.nodeList = [], _ref.selectList = [], _ref.opinionList = [], _ref.processObj = { taskExamine: { nodeName: undefined } }, _ref.peopleObj = {}, _ref.userInfo = {}, _ref.isCanAddSign = false, _ref.isCanRemoveSign = false, _ref.isSpecial = true, _ref.taskOperations = [], _ref.countersignaturetypeCode = false, _ref.countersignaturetypeText = undefined, _ref.isCustomPreset = false, _ref.isHideCurrentOrg = false, _ref.isHideOtherOrg = false, _ref.isHandleExplain = false, _ref.isTaskread = false, _ref.defaultNotificationType = undefined, _ref.selectUnitType = 'department', _ref.isHiddenNextStepInfo = false, _ref.presetEdit = true, _ref.isLimitedTimeHandling = false, _ref.userSelectionType = undefined, _ref.orgSelectionType = undefined, _ref.notificationType = undefined, _ref.nodeType = undefined, _ref.deptRoleCode = undefined, _ref.orgRoleCode = undefined, _ref.appointNotUserIds = undefined, _ref.handleRoleId = undefined, _ref.nextRole = undefined, _ref.filterCandinateIds = undefined, _ref.selectorDefShowDeptId = undefined, _ref.isRadio = true, _ref.otherOrgName = undefined, _ref.currentOrgName = undefined, _ref.isMainSubProcess = false, _ref.isNextUser = false, _ref.isDealObject = false, _ref.isDealRole = false, _ref.nextUserflag = false, _ref.isSubmitButtonShowAgreeAndDisagree = 0, _ref.isCustomUserClick = false, _ref.timeListLable = undefined, _ref.nodeDefaultSubmitOpinion = undefined, _ref.isCustomUser = 0, _ref.choiceOrgId = '', _ref.choiceDeptId = '', _ref.taskExamineInfo = {}, _ref.nodeInfoMapInfo = {}, _ref.file = '', _ref.isEndUserTask = '', _ref.tagKey = '', _ref.pOrgId = '', _ref.needRetrialAuth = false, _ref;
16701
17228
  },
16702
17229
  created: function created() {
16703
17230
  var _this2 = this;
@@ -16925,6 +17452,18 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
16925
17452
  if (this.isMainSubProcess && Handlevue_type_script_lang_js_typeof(this.form.mainSubId) == 'object') {
16926
17453
  this.form.mainSubId = this.form.mainSubId.value;
16927
17454
  }
17455
+ if (this.isCustomPreset) {
17456
+ if (this.$refs.processSetting.active.length != 0) {
17457
+ if (!this.$refs.processSetting.getValue()) return;
17458
+ this.form.customPresetUserJson = this.$refs.processSetting.getValue();
17459
+ this.form.isCustomPreset = true;
17460
+ this.form.presetUserJson = JSON.stringify([]);
17461
+ } else {
17462
+ delete this.form.customPresetUserJson;
17463
+ delete this.form.isCustomPreset;
17464
+ delete this.form.presetUserJson;
17465
+ }
17466
+ }
16928
17467
  this.$toast.loading({
16929
17468
  message: '加载中...',
16930
17469
  forbidClick: true,
@@ -17563,8 +18102,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
17563
18102
 
17564
18103
  var Handle_component = normalizeComponent(
17565
18104
  components_Handlevue_type_script_lang_js,
17566
- Handlevue_type_template_id_21e4c619_render,
17567
- Handlevue_type_template_id_21e4c619_staticRenderFns,
18105
+ Handlevue_type_template_id_548395aa_render,
18106
+ Handlevue_type_template_id_548395aa_staticRenderFns,
17568
18107
  false,
17569
18108
  null,
17570
18109
  null,
@@ -24687,7 +25226,7 @@ if (typeof window !== 'undefined' && window.Vue) {
24687
25226
  }
24688
25227
 
24689
25228
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
24690
- version: '0.2.98',
25229
+ version: '0.2.99',
24691
25230
  install: install,
24692
25231
  Button: packages_button,
24693
25232
  ButtonGroup: button_group,