eoss-mobiles 0.2.99 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/flow.js CHANGED
@@ -2177,8 +2177,8 @@ render._withStripped = true
2177
2177
 
2178
2178
  // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=8558f576
2179
2179
 
2180
- // 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/StartFlow.vue?vue&type=template&id=20f21730
2181
- var StartFlowvue_type_template_id_20f21730_render = function () {
2180
+ // 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/StartFlow.vue?vue&type=template&id=a96be16e
2181
+ var StartFlowvue_type_template_id_a96be16e_render = function () {
2182
2182
  var _vm = this
2183
2183
  var _h = _vm.$createElement
2184
2184
  var _c = _vm._self._c || _h
@@ -2369,11 +2369,11 @@ var StartFlowvue_type_template_id_20f21730_render = function () {
2369
2369
  ]),
2370
2370
  ])
2371
2371
  }
2372
- var StartFlowvue_type_template_id_20f21730_staticRenderFns = []
2373
- StartFlowvue_type_template_id_20f21730_render._withStripped = true
2372
+ var StartFlowvue_type_template_id_a96be16e_staticRenderFns = []
2373
+ StartFlowvue_type_template_id_a96be16e_render._withStripped = true
2374
2374
 
2375
2375
 
2376
- // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=20f21730
2376
+ // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=a96be16e
2377
2377
 
2378
2378
  // EXTERNAL MODULE: ./src/config/api.js
2379
2379
  var api = __webpack_require__(2);
@@ -3188,12 +3188,125 @@ var Message_component = Object(componentNormalizer["a" /* default */])(
3188
3188
  // EXTERNAL MODULE: external "eoss-mobile-vant"
3189
3189
  var external_eoss_mobile_vant_ = __webpack_require__(4);
3190
3190
 
3191
- // EXTERNAL MODULE: ./src/utils/util.js
3192
- var util = __webpack_require__(0);
3191
+ // 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=56fbc1bf
3192
+ var ProcessSettingsvue_type_template_id_56fbc1bf_render = function () {
3193
+ var _vm = this
3194
+ var _h = _vm.$createElement
3195
+ var _c = _vm._self._c || _h
3196
+ return _c(
3197
+ "div",
3198
+ { staticClass: "em-flow-setting" },
3199
+ [
3200
+ _c(
3201
+ "van-collapse",
3202
+ {
3203
+ model: {
3204
+ value: _vm.active,
3205
+ callback: function ($$v) {
3206
+ _vm.active = $$v
3207
+ },
3208
+ expression: "active",
3209
+ },
3210
+ },
3211
+ [
3212
+ _c(
3213
+ "van-collapse-item",
3214
+ {
3215
+ attrs: { title: "预设自定义节点信息(折叠不作处理)", name: "1" },
3216
+ },
3217
+ _vm._l(_vm.flowList, function (item, index) {
3218
+ return _c(
3219
+ "div",
3220
+ { key: index, staticClass: "em-flow-setting-item" },
3221
+ [
3222
+ _c("em-picker", {
3223
+ attrs: {
3224
+ title: "节点" + (index + 1),
3225
+ label: "节点" + (index + 1),
3226
+ "show-toolbar": "",
3227
+ columns: item.nodeList,
3228
+ "value-key": "nodeId",
3229
+ "label-key": "nodeName",
3230
+ },
3231
+ on: {
3232
+ confirm: function ($event) {
3233
+ _vm.onConfirmNextNode($event, index)
3234
+ },
3235
+ },
3236
+ model: {
3237
+ value: item.nodeId,
3238
+ callback: function ($$v) {
3239
+ _vm.$set(item, "nodeId", $$v)
3240
+ },
3241
+ expression: "item.nodeId",
3242
+ },
3243
+ }),
3244
+ _c("em-selector", {
3245
+ directives: [
3246
+ {
3247
+ name: "show",
3248
+ rawName: "v-show",
3249
+ value: item.showSelectUser,
3250
+ expression: "item.showSelectUser",
3251
+ },
3252
+ ],
3253
+ attrs: {
3254
+ multiple: !item.isRadio,
3255
+ nextUserList: item.nextUserList,
3256
+ label: "办理人",
3257
+ objType: item.objType,
3258
+ param: {
3259
+ pid: item.pid,
3260
+ },
3261
+ required: item.nodeId != "",
3262
+ tabs: "employee,persongroup",
3263
+ baseUrl: _vm.apiBaseUrl,
3264
+ paddingTop: _vm.paddingTop,
3265
+ },
3266
+ model: {
3267
+ value: item.nextUserSelectList,
3268
+ callback: function ($$v) {
3269
+ _vm.$set(item, "nextUserSelectList", $$v)
3270
+ },
3271
+ expression: "item.nextUserSelectList",
3272
+ },
3273
+ }),
3274
+ _c("van-icon", {
3275
+ directives: [
3276
+ {
3277
+ name: "show",
3278
+ rawName: "v-show",
3279
+ value: index + 1 != _vm.flowList.length,
3280
+ expression: "index + 1 != flowList.length",
3281
+ },
3282
+ ],
3283
+ staticStyle: { "margin-top": "10px" },
3284
+ attrs: { name: "down" },
3285
+ }),
3286
+ ],
3287
+ 1
3288
+ )
3289
+ }),
3290
+ 0
3291
+ ),
3292
+ ],
3293
+ 1
3294
+ ),
3295
+ ],
3296
+ 1
3297
+ )
3298
+ }
3299
+ var ProcessSettingsvue_type_template_id_56fbc1bf_staticRenderFns = []
3300
+ ProcessSettingsvue_type_template_id_56fbc1bf_render._withStripped = true
3193
3301
 
3194
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/StartFlow.vue?vue&type=script&lang=js
3302
+
3303
+ // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue?vue&type=template&id=56fbc1bf
3304
+
3305
+ // 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
3195
3306
  var _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; };
3196
3307
 
3308
+ var _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; };
3309
+
3197
3310
  //
3198
3311
  //
3199
3312
  //
@@ -3238,270 +3351,175 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3238
3351
  //
3239
3352
  //
3240
3353
  //
3241
- //
3242
- //
3243
- //
3244
- //
3245
- //
3246
- //
3247
- //
3248
- //
3249
- //
3250
- //
3251
- //
3252
- //
3253
- //
3254
- //
3255
- //
3256
- //
3257
- //
3258
- //
3259
- //
3260
- //
3261
- //
3262
- //
3263
- //
3264
- //
3265
- //
3266
- //
3267
- //
3268
- //
3269
- //
3270
- //
3271
- //
3272
- //
3273
- //
3274
- //
3275
- //
3276
- //
3277
- //
3278
- //
3279
- //
3280
- //
3281
- //
3282
- //
3283
- //
3284
- //
3285
- //
3286
- //
3287
- //
3288
- //
3289
- //
3290
- //
3291
- //
3292
- //
3293
- //
3294
- //
3295
- //
3296
- //
3297
- //
3298
- //
3299
- //
3300
- //
3301
- //
3302
- //
3303
- //
3304
- //
3305
- //
3306
- //
3307
- //
3308
- //
3309
-
3310
-
3311
3354
 
3312
3355
 
3313
3356
 
3314
-
3315
-
3316
- /* harmony default export */ var StartFlowvue_type_script_lang_js = ({
3317
- name: 'StartFlow',
3318
- inheritAttrs: false,
3357
+ /* harmony default export */ var ProcessSettingsvue_type_script_lang_js = ({
3319
3358
  props: {
3320
- showPresentNode: {
3321
- type: Boolean,
3322
- default: true // 是否当前节点
3359
+ processDefinitionId: {
3360
+ type: String,
3361
+ default: ''
3362
+ },
3363
+ nodeId: {
3364
+ type: String,
3365
+ default: ''
3366
+ },
3367
+ businessId: {
3368
+ type: String,
3369
+ default: ''
3370
+ },
3371
+ taskId: {
3372
+ type: String,
3373
+ default: ''
3374
+ },
3375
+ pendingId: {
3376
+ type: String,
3377
+ default: ''
3378
+ },
3379
+ apiBaseUrl: {
3380
+ type: String,
3381
+ default: ''
3323
3382
  },
3324
- beforeSubmit: Function,
3325
- businessId: String, //提交意见附件所需id一般是业务id
3326
- defId: String, //流程id
3327
- baseUrl: String, //流程地址
3328
- apiBaseUrl: String,
3329
- orgId: String,
3330
- depId: String,
3331
3383
  paddingTop: {
3332
- type: [String, Number],
3384
+ type: Number,
3333
3385
  default: 0
3334
3386
  },
3335
- isAllCheck: {
3336
- type: Boolean,
3337
- default: false
3387
+ choiceOrgId: {
3388
+ type: String,
3389
+ default: ''
3338
3390
  },
3339
- esign: {
3340
- type: Boolean,
3341
- default: false
3391
+ pOrgId: {
3392
+ type: String,
3393
+ default: ''
3342
3394
  },
3343
- userId: {
3395
+ choiceDeptId: {
3344
3396
  type: String,
3345
3397
  default: ''
3346
3398
  }
3347
3399
  },
3348
3400
  data: function data() {
3349
3401
  return {
3350
- showOpinion: true,
3351
- readOnlyNotificationType: '',
3352
- notificationMessageReadOnly: false,
3353
- form: {
3354
- nextNodeId: undefined, // 流程节点id
3355
- nextNodeName: undefined, // 流程节点名称
3356
- nextUserName: undefined, // 办理人
3357
- nextUserId: undefined, // 办理人id
3358
- nextName: undefined, //下一步
3359
- opinion: undefined, // 审批意见
3360
- nodeId: undefined,
3361
- notificationMsg: undefined, //系统消息
3362
- notificationType: [],
3363
- isImageOpinion: 0
3364
- },
3365
- file: '',
3366
- nextUserList: [],
3367
- isChooseNextNode: 0,
3368
- isOpinionRequired: 0, //办理意见是否必填
3369
- isBanInputOpinion: 0, //是否禁用意见
3370
- isNextBox: true, // 是否展开隐藏下步操作
3371
- defaultNotificationType: [], //选中消息数组
3372
- // showAppUser: false, // 办理人遮罩层
3373
- showNextList: false, // 下一步遮罩层
3374
- showNextNodeList: false, // 流程节点遮罩层
3375
- nextList: [], //下一步列表
3376
- nodeList: [], // 流程节点列表
3377
- processObj: {}, //流程信息
3378
- peopleObj: {}, //办理人信息
3379
- isRadio: false, //办理人是否单选
3380
- treeType: undefined, //办理人选择类别
3381
- pid: undefined, // 办理人树选择pid
3382
- objType: 'enterprise', //办理人树选择objType
3383
- selectType: '', //办理人树选择selectType
3384
- nextUserSelectList: [], //选中人数组
3385
- flowObj: {} //流程参数信息
3386
- };
3387
- },
3388
-
3389
- components: {
3390
- Opinion: Opinion,
3391
- Message: Message
3392
- },
3393
- mounted: function mounted() {
3394
- var obj = {
3395
- processDefinitionId: this.defId,
3396
- // isOnly: true,
3397
- // hideTempSave: true,
3398
- businessId: this.businessId
3402
+ name: '',
3403
+ pid: 'root',
3404
+ objType: 'enterprise',
3405
+ selectType: 'employee',
3406
+ active: ['1'],
3407
+ flowList: [],
3408
+ selectList: [],
3409
+ isRadio: true,
3410
+ nodeList: []
3399
3411
  };
3400
- this.geAllData(obj);
3401
3412
  },
3402
3413
 
3414
+ watch: {
3415
+ nodeId: {
3416
+ handler: function handler(val) {
3417
+ if (val) {
3418
+ // this.getProList(val);
3419
+ this.getNodeInfo(val);
3420
+ }
3421
+ },
3403
3422
 
3423
+ immediate: true,
3424
+ deep: true
3425
+ }
3426
+ },
3404
3427
  methods: {
3405
- goBack: function goBack() {
3406
- this.$parent.$emit('close');
3407
- },
3408
- handleChange: function handleChange(val, selectLabel) {
3409
- // this[res.label] = res.list;
3410
- // this.showAppUser = false;
3411
- var label = selectLabel.substring(0, selectLabel.lastIndexOf('SelectList'));
3412
- var idStr = '';
3413
- val.list.map(function (r, i) {
3414
- idStr = idStr + r.showid + (i === val.list.length - 1 ? '' : ',');
3415
- });
3416
- this.form[label + 'Id'] = idStr;
3417
- },
3418
- geAllData: function geAllData(res) {
3428
+ getValue: function getValue() {
3419
3429
  var _this = this;
3420
3430
 
3421
- this.flowObj = res;
3422
- this.$toast.loading({
3423
- message: '加载中...',
3424
- forbidClick: true,
3425
- loadingType: 'spinner',
3426
- overlay: true,
3427
- duration: 0
3428
- });
3429
- //获取流程发起信息后去获取节点信息和办理人信息
3430
- Promise.all([this.getProcessObj(res)]).then(function () {
3431
- _this.getPeopleObj(_this.form.nextNodeId);
3431
+ var pass = true;
3432
+ var PresetData = [];
3433
+ var newFlowList = this.flowList.filter(function (x) {
3434
+ return x.nodeId;
3432
3435
  });
3436
+ for (var i = 0; i < newFlowList.length; i++) {
3437
+ if (newFlowList[i].nextUserSelectList.length == 0 && newFlowList[i].showSelectUser) {
3438
+ pass = false;
3439
+ this.$toast('\u8BF7\u9009\u62E9\u8282\u70B9' + (i + 1) + '\u7684\u529E\u7406\u4EBA');
3440
+ return false;
3441
+ }
3442
+ }
3443
+ if (pass) {
3444
+ newFlowList.map(function (x, i) {
3445
+ PresetData.push({
3446
+ name: _typeof(x.nodeId) == 'object' ? x.nodeId.nodeId : x.nodeId,
3447
+ value: x.nextUserSelectList.map(function (y) {
3448
+ return y.showid;
3449
+ }).join(','),
3450
+ lastName: i == 0 ? _this.nodeId : PresetData[i - 1].name,
3451
+ sequence: i + 1 + ''
3452
+ });
3453
+ });
3454
+ }
3455
+ return JSON.stringify(PresetData);
3433
3456
  },
3434
3457
 
3435
- // 通知消息回调
3436
- onInputMsg: function onInputMsg(obj) {
3437
- this.form.notificationType = obj.notificationType.join(',');
3438
- this.form.notificationMsg = obj.notificationMsg;
3439
- },
3440
-
3441
- // 删除.
3442
- delteList: function delteList(label, i) {
3443
- this[label].splice(i, 1);
3444
- },
3445
-
3446
- // 意见回调
3447
- onInputOpintion: function onInputOpintion(val) {
3448
- var opinion = val.opinion,
3449
- isImageOpinion = val.isImageOpinion,
3450
- file = val.file;
3451
-
3452
- this.form.opinion = opinion;
3453
- this.form.isImageOpinion = isImageOpinion;
3454
- this.file = file;
3458
+ // 根据返回的办理人类型来判断 选择人员树的范围
3459
+ changePidObjtype: function changePidObjtype(val, choiceOrgId, choiceDeptId, pOrgId, obj) {
3460
+ if (val === 1 || val === 2) {
3461
+ obj.pid = choiceOrgId || this.orgId;
3462
+ obj.objType = 'enterprise';
3463
+ obj.selectType = 'employee';
3464
+ } else if (val === 3 || val === 4) {
3465
+ obj.pid = 'root';
3466
+ obj.objType = 'employee';
3467
+ } else if (val === 5 || val === 6) {
3468
+ obj.pid = choiceDeptId || this.depId;
3469
+ obj.objType = 'department';
3470
+ } else if (val === 11 || val === 12) {
3471
+ obj.selectType = 'employee';
3472
+ obj.objType = 'enterprise';
3473
+ } else if (val === 13) {
3474
+ obj.pid = choiceDeptId || this.depId;
3475
+ obj.selectType = 'employee';
3476
+ obj.objType = 'department';
3477
+ } else if (val === 14) {
3478
+ obj.pid = pOrgId || this.orgId;
3479
+ obj.selectType = 'employee';
3480
+ } else if (val === 15 || val === 16) {
3481
+ obj.pid = pOrgId || this.orgId;
3482
+ obj.selectType = 'employee';
3483
+ }
3484
+ // userSelectionType 机构内单选人1,机构内多选人2,所有机构单选人3,所有部门多选人4,本部门单选人5,本部门多选人6,本单位单选部门7,本单位多选部门8,单选单位9,多选单位10,单选机构11,多选机构12,本部门角色13,本单位角色14
3485
+ val == 2 || val == 4 || val == 6 || val == 8 || val == 10 || val == 11 || val == 12 ? obj.isRadio = false : obj.isRadio = true; //判断办理人单选多选
3455
3486
  },
3456
3487
 
3457
- // 提交流程
3458
- onSubmit: function onSubmit() {
3488
+ // 修改默认办理人
3489
+ changeDefPeople: function changeDefPeople(def, all, data) {
3459
3490
  var _this2 = this;
3460
3491
 
3461
- if (!this.form.opinion && this.isOpinionRequired == 1 && this.form.isImageOpinion == 0 || !this.file && this.isOpinionRequired == 1 && this.form.isImageOpinion == 1) {
3462
- this.$toast('请选择输入审批意见');
3463
- return;
3464
- }
3465
- if (!this.form.nextUserId) {
3466
- this.$toast('请选择办理人');
3467
- return;
3492
+ data.nextUserSelectList = [];
3493
+ if (def == 1 && all == 1 || def == 0 && all == 1) {
3494
+ var ids = '';
3495
+ data.nextUserList.map(function (r, i) {
3496
+ r.showid = r.userId;
3497
+ r.showname = r.username;
3498
+ _this2.$set(r, 'checked', true);
3499
+ data.nextUserSelectList.push(r);
3500
+ ids += r.userId + (i === data.nextUserList.length - 1 ? '' : ',');
3501
+ });
3502
+ // this.form.nextUserId = ids;
3503
+ } else if (def == 1 && (!all || all == 0) && data.nextUserList.length > 0) {
3504
+ data.nextUserList[0].showid = data.nextUserList[0].userId;
3505
+ data.nextUserList[0].showname = data.nextUserList[0].username;
3506
+ this.$set(data.nextUserList[0], 'checked', true);
3507
+ data.nextUserSelectList.push(data.nextUserList[0]);
3508
+ // this.form.nextUserId = this.nextUserSelectList[0].userId;
3468
3509
  }
3469
- if (!this.form.nextNodeId) {
3470
- this.$toast('请选择流程节点');
3471
- return;
3510
+ },
3511
+ onConfirmNextNode: function onConfirmNextNode(val, i) {
3512
+ this.flowList = this.flowList.splice(0, i + 1);
3513
+ if (val.nodeId == '-2') {
3514
+ this.flowList[i].nextUserList = [];
3515
+ this.flowList[i].nextUserSelectList = [];
3516
+ } else {
3517
+ this.getNodeInfo(val.nodeId, i);
3472
3518
  }
3473
- // if (!this.form.notificationType) {
3474
- // this.$toast('请选择通知消息');
3475
- // return;
3476
- // }
3519
+ },
3520
+ getNodeInfo: function getNodeInfo(nodeId, i) {
3521
+ var _this3 = this;
3477
3522
 
3478
- var info = {
3479
- processDefinitionId: this.flowObj.processDefinitionId,
3480
- nextUserId: this.form.nextUserId,
3481
- nextNodeId: this.form.nextNodeId,
3482
- businessId: this.businessId,
3483
- notificationType: Array.isArray(this.form.notificationType) ? '' : this.form.notificationType,
3484
- opinion: this.form.opinion,
3485
- nodeId: this.form.nodeId,
3486
- notificationMsg: this.form.notificationMsg,
3487
- loginType: 2, //登录方式
3488
- isImageOpinion: this.form.isImageOpinion,
3489
- userId: this.userId || util["a" /* default */].getStorage('userId'),
3490
- mobileKey: util["a" /* default */].getStorage('deviceId') || '123'
3491
- };
3492
- if (this.beforeSubmit) {
3493
- this.beforeSubmit(info);
3494
- return;
3495
- }
3496
- var formData = new FormData();
3497
- // if (this.form.isImageOpinion == 1) {
3498
- // formData.append('file', this.file);
3499
- // }
3500
- // for (let key in info) {
3501
- // if (info[key] !== '' && info[key] !== undefined) {
3502
- // formData.append(key, info[key]);
3503
- // }
3504
- // }
3505
3523
  this.$toast.loading({
3506
3524
  message: '加载中...',
3507
3525
  forbidClick: true,
@@ -3509,230 +3527,81 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3509
3527
  overlay: true,
3510
3528
  duration: 0
3511
3529
  });
3512
- var _that = this;
3513
3530
  Object(http["a" /* default */])({
3514
- url: _that.apiBaseUrl ? _that.apiBaseUrl + api["q" /* registerNew */] : api["q" /* registerNew */],
3515
- type: 'get',
3516
- params: { params: info
3517
- // format: false
3518
- } }).then(function (res) {
3519
- _this2.$toast.clear();
3520
- if (res.rCode == 0) {
3521
- _this2.$toast('操作成功');
3522
- _this2.$parent.$emit('success');
3523
- } else {
3524
- _this2.$toast(res.msg);
3531
+ url: api["h" /* getNodeInfoHtml */],
3532
+ params: {
3533
+ processDefinitionId: this.processDefinitionId,
3534
+ nextNodeId: nodeId,
3535
+ businessId: this.businessId,
3536
+ taskId: this.taskId,
3537
+ pendingId: this.pendingId
3525
3538
  }
3526
- });
3527
- },
3539
+ }).then(function (res) {
3540
+ if (res.status == 'success') {
3541
+ // this.nodeList = res.data.taskNodeMap;
3542
+ var obj = {};
3543
+ if (i != undefined) {
3544
+ res.data.nextUserList.map(function (res) {
3545
+ res.checked = false;
3546
+ });
3528
3547
 
3529
- // 确认常用意见
3530
- onConfirmOpinion: function onConfirmOpinion(val) {
3531
- this.form.opinion = val.content;
3532
- this.showOpinion = false;
3533
- },
3534
-
3535
- // 选择办理人
3536
- onClickPeople: function onClickPeople(label) {
3537
- this.$nextTick(function () {
3538
- this.$refs.selectTree.getContent(label);
3539
- });
3540
- var obj = {
3541
- label: '请选择办理人',
3542
- show: true
3543
- };
3544
- this.$emit('informNav', obj);
3545
- this.showAppUser = true;
3546
- },
3547
-
3548
- // 获取树选择范围
3549
- getTreeChangeType: function getTreeChangeType() {
3550
- /**
3551
- * 办理人选择方式(1:机构内单选人;2:机构内多选;3:所有机构单选人;4:所有机构多选人;5:科室内单选人;6:科室内多选人;11:单选机构;12:多选机构;13:本部门角色;14:本单位角色;15:上级单位单选人;16:上级单位多选人;)
3552
- */
3553
- this.treeType % 2 == 0 ? this.isRadio = false : this.isRadio = true;
3554
- if (this.treeType === 1 || this.treeType === 2) {
3555
- this.pid = this.orgId;
3556
- this.objType = 'enterprise';
3557
- this.selectType = 'employee';
3558
- } else if (this.treeType === 3 || this.treeType === 4) {
3559
- this.pid = 'root';
3560
- this.selectType = 'employee';
3561
- this.objType = 'employee';
3562
- } else if (this.treeType === 5 || this.treeType === 6) {
3563
- this.pid = this.depId;
3564
- this.selectType = 'employee';
3565
- this.objType = 'employee';
3566
- } else if (this.treeType === 11 || this.treeType === 12) {
3567
- this.selectType = 'employee';
3568
- this.objType = 'enterprise';
3569
- this.pid = '';
3570
- } else if (this.treeType === 13) {
3571
- this.pid = this.depId;
3572
- this.selectType = 'employee';
3573
- } else if (this.treeType === 14) {
3574
- this.pid = this.orgId;
3575
- this.selectType = 'employee';
3576
- } else if (this.treeType === 15 || this.treeType === 16) {
3577
- this.pid = this.orgId;
3578
- this.selectType = 'employee';
3579
- } else if (this.treeType == 'department') {
3580
- this.pid = '';
3581
- this.selectType = 'department';
3582
- this.objType = 'department';
3583
- }
3584
- },
3585
-
3586
- // 确认下一步操作
3587
- onConfirmNext: function onConfirmNext(val) {
3588
- this.form.nextName = val.itemName;
3589
- this.nodeList = val.list;
3590
- this.form.nextNodeId = val.list[0].nodeId;
3591
- this.form.nextNodeName = val.list[0].nodeName;
3592
- val.list[0].transactorInfos && (this.nextUserList = val.list[0].transactorInfos);
3593
- this.showNextList = false;
3594
- this.getPeopleObj(this.form.nextNodeId);
3595
- },
3596
-
3597
- // 确认流程节点操作
3598
- onConfirmNextNode: function onConfirmNextNode(val) {
3599
- this.form.nextNodeId = val.nodeId;
3600
- this.form.nextNodeName = val.nodeName;
3601
- this.showNextNodeList = false;
3602
- this.getPeopleObj(this.form.nextNodeId);
3603
- },
3604
-
3605
- // 办理人选择完回调
3606
- disposeAppUser: function disposeAppUser(res) {
3607
- this[res.label] = res.list;
3608
- this.showAppUser = false;
3609
- var label = res.label.substring(0, res.label.lastIndexOf('SelectList'));
3610
- var idStr = '';
3611
- res.list.map(function (r, i) {
3612
- idStr = idStr + r.showid + (i === res.list.length - 1 ? '' : ',');
3613
- });
3614
- this.form[label + 'Id'] = idStr;
3615
- },
3616
-
3617
- // 获取发起流程信息
3618
- getProcessObj: function getProcessObj(res) {
3619
- var that = this;
3620
- return new Promise(function (resolve, reiect) {
3621
- Object(http["a" /* default */])({
3622
- url: that.apiBaseUrl ? that.apiBaseUrl + api["B" /* toStartFlow */] : api["B" /* toStartFlow */],
3623
- params: {
3624
- params: _extends({}, res, {
3625
- userId: that.userId || util["a" /* default */].getStorage('userId')
3626
- })
3627
- }
3628
- }).then(function (res) {
3629
- if (res.rCode == 0) {
3630
- res.results.nodeExtr.submitTipsMsg && external_eoss_mobile_vant_["Dialog"].confirm({
3631
- title: '提示',
3632
- message: res.results.nodeExtr.submitTipsMsg
3633
- }).then(function () {
3634
- // on confirm
3635
- }).catch(function () {
3636
- that.goBack();
3637
- // on cancel
3638
- });
3639
- if (res.results.extendData) {
3640
- that.notificationMessageReadOnly = res.results.extendData.notificationMessageReadOnly == 'true';
3641
- that.readOnlyNotificationType = res.results.extendData.readOnlyNotificationType;
3642
- }
3643
- that.processObj = res.results;
3644
- that.nextList = res.results.nodeList;
3645
- that.isOpinionRequired = res.results.nodeExtr.isOpinionRequired;
3646
- that.isBanInputOpinion = res.results.nodeExtr.isBanInputOpinion;
3647
- if (!that.isOpinionRequired) {
3648
- that.isOpinionRequired = 0;
3649
- }
3650
- if (!that.isBanInputOpinion) {
3651
- that.isBanInputOpinion = 0;
3652
- }
3653
- that.isChooseNextNode = res.results.nodeExtr.isChooseNextNode;
3654
- that.nodeList = res.results.nodeList[0].list;
3655
- that.form.nextName = that.nextList[0].itemName;
3656
- that.form.nextNodeId = that.nextList[0].list[0].nodeId;
3657
- that.form.nextNodeName = that.nextList[0].list[0].nodeName;
3658
- that.nextList[0].list[0].transactorInfos && (that.nextUserList = that.nextList[0].list[0].transactorInfos);
3659
- if (that.nextUserList) {
3660
- that.nextUserList.map(function (x) {
3661
- x.checked = false;
3662
- });
3663
- }
3664
- that.form.notificationMsg = res.results.notificationMsg;
3665
- that.form.nodeId = res.results.nodeId;
3666
- var defaultNotificationTypes = [];
3667
- if (res.results.notificationTypes && that.defaultNotificationType.length == 0) {
3668
- defaultNotificationTypes = res.results.notificationTypes.filter(function (x) {
3669
- return x.defaultSelected == 'true';
3670
- });
3671
- }
3672
- defaultNotificationTypes.map(function (x) {
3673
- that.defaultNotificationType.push(x.notificationCode);
3674
- });
3675
- resolve();
3548
+ _this3.flowList[i].nextUserList = res.data.nextUserList || [];
3549
+ _this3.flowList[i].nextUserSelectList = res.data.nextUserList || [];
3550
+ _this3.changeDefPeople(res.data.nodeExtAttr.isDefSelectedObj, res.data.nodeExtAttr.isSelectedAllObj, _this3.flowList[i]);
3551
+ _this3.changePidObjtype(res.data.nodeExtAttr.userSelectionType, _this3.choiceOrgId, _this3.choiceDeptId, _this3.pOrgId, _this3.flowList[i]);
3676
3552
  } else {
3677
- that.$toast(res.message);
3678
- reiect();
3553
+ obj.nextUserList = [];
3554
+ obj.nextUserSelectList = [];
3555
+ _this3.changeDefPeople(res.data.nodeExtAttr.isDefSelectedObj, res.data.nodeExtAttr.isSelectedAllObj, obj);
3556
+ _this3.changePidObjtype(res.data.nodeExtAttr.userSelectionType, _this3.choiceOrgId, _this3.choiceDeptId, _this3.pOrgId, obj);
3679
3557
  }
3680
- });
3558
+ _this3.getProList(nodeId, obj);
3559
+ }
3681
3560
  });
3682
3561
  },
3562
+ getProList: function getProList(nodeId, obj) {
3563
+ var _this4 = this;
3683
3564
 
3684
- // 获取节点信息(获取节点属性及办理人)
3685
- getPeopleObj: function getPeopleObj(res) {
3686
- var _this3 = this;
3687
-
3688
- var _that = this;
3689
3565
  Object(http["a" /* default */])({
3690
- url: _that.apiBaseUrl ? _that.apiBaseUrl + api["g" /* getNodeInfo */] : api["g" /* getNodeInfo */],
3566
+ url: api["j" /* getPresetCustomInfo */],
3691
3567
  params: {
3692
- params: {
3693
- processDefinitionId: this.flowObj.processDefinitionId,
3694
- nodeId: res,
3695
- // taskId: this.processObj.taskId,
3696
- userId: _that.userId
3697
- }
3568
+ processDefinitionId: this.processDefinitionId,
3569
+ nodeId: nodeId,
3570
+ taskAction: 'withExtendData'
3698
3571
  }
3699
3572
  }).then(function (res) {
3700
- _this3.$toast.clear();
3701
- if (res.rCode == 0) {
3702
- _this3.peopleObj = res.results.nodeExtr;
3703
- if (res.results.nodeExtr.userSelectionType) {
3704
- _this3.treeType = res.results.nodeExtr.userSelectionType;
3705
- if (res.results.nodeExtr) {
3706
- var idStr = '';
3707
- if (res.results.nodeExtr.isDefSelectedObj == 1 && _this3.nextUserList.length > 0) {
3708
- _this3.nextUserList[0].checked = true;
3709
- _this3.nextUserSelectList = [_this3.nextUserList[0]];
3710
- idStr = _this3.nextUserSelectList[0].showid;
3711
- }
3712
- if (res.results.nodeExtr.isSelectedAllObj == 1 && _this3.nextUserList.length > 0) {
3713
- _this3.nextUserSelectList = [];
3714
- idStr = '';
3715
- _this3.nextUserList.map(function (x) {
3716
- x.checked = true;
3717
- _this3.nextUserSelectList.push(x);
3718
- idStr = idStr ? idStr + ',' + x.showid : idStr;
3719
- });
3720
- }
3721
- _this3.form.nextUserId = idStr;
3573
+ _this4.$toast.clear();
3574
+ if (res.status == 'success') {
3575
+ var _extends2;
3576
+
3577
+ var arr = [{ nodeId: '-2', nodeName: '请选择' }];
3578
+ var isEnd = false;
3579
+ if (res.data.taskNodeMap) {
3580
+ for (var i in res.data.taskNodeMap || res.data || {}) {
3581
+ var _obj = {
3582
+ nodeId: i,
3583
+ nodeName: res.data.taskNodeMap[i]
3584
+ };
3585
+ isEnd = i == 'endEvent';
3586
+ arr.push(_obj);
3722
3587
  }
3723
- // this.nextUserSelectList = list.filter(x => x.showname && x.showid);
3724
- _this3.getTreeChangeType();
3725
3588
  }
3726
- } else {
3727
- _this3.$toast(res.message);
3589
+ if (isEnd) {
3590
+ arr = arr.slice(1);
3591
+ }
3592
+ obj = _extends({}, obj, (_extends2 = {
3593
+ nodeList: arr,
3594
+ nodeId: ''
3595
+ }, _extends2['nodeId'] = isEnd ? arr[0].nodeId : '', _extends2.showSelectUser = !isEnd, _extends2));
3596
+ _this4.flowList.push(obj);
3728
3597
  }
3729
3598
  });
3730
3599
  }
3731
3600
  }
3732
3601
  });
3733
- // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=script&lang=js
3734
- /* harmony default export */ var components_StartFlowvue_type_script_lang_js = (StartFlowvue_type_script_lang_js);
3735
- // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue
3602
+ // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue?vue&type=script&lang=js
3603
+ /* harmony default export */ var components_ProcessSettingsvue_type_script_lang_js = (ProcessSettingsvue_type_script_lang_js);
3604
+ // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue
3736
3605
 
3737
3606
 
3738
3607
 
@@ -3740,10 +3609,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3740
3609
 
3741
3610
  /* normalize component */
3742
3611
 
3743
- var StartFlow_component = Object(componentNormalizer["a" /* default */])(
3744
- components_StartFlowvue_type_script_lang_js,
3745
- StartFlowvue_type_template_id_20f21730_render,
3746
- StartFlowvue_type_template_id_20f21730_staticRenderFns,
3612
+ var ProcessSettings_component = Object(componentNormalizer["a" /* default */])(
3613
+ components_ProcessSettingsvue_type_script_lang_js,
3614
+ ProcessSettingsvue_type_template_id_56fbc1bf_render,
3615
+ ProcessSettingsvue_type_template_id_56fbc1bf_staticRenderFns,
3747
3616
  false,
3748
3617
  null,
3749
3618
  null,
@@ -3751,1230 +3620,12 @@ var StartFlow_component = Object(componentNormalizer["a" /* default */])(
3751
3620
 
3752
3621
  )
3753
3622
 
3754
- /* harmony default export */ var StartFlow = (StartFlow_component.exports);
3755
- // 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
3756
- var Handlevue_type_template_id_548395aa_render = function () {
3757
- var _vm = this
3758
- var _h = _vm.$createElement
3759
- var _c = _vm._self._c || _h
3760
- return _c(
3761
- "div",
3762
- { staticClass: "process-handle" },
3763
- [
3764
- _vm.handleFlow
3765
- ? _c(
3766
- "div",
3767
- {
3768
- staticStyle: {
3769
- display: "flex",
3770
- "flex-direction": "column",
3771
- height: "100%",
3772
- },
3773
- },
3774
- [
3775
- _c(
3776
- "div",
3777
- { staticClass: "process-content" },
3778
- [
3779
- _c("div", { staticClass: "present-node" }, [
3780
- _c("div", { staticClass: "label" }, [_vm._v("当前节点:")]),
3781
- _c("div", [
3782
- _vm._v(_vm._s(_vm.processObj.taskExamine.nodeName)),
3783
- ]),
3784
- ]),
3785
- _c("Opinion", {
3786
- attrs: {
3787
- code: _vm.processObj.attachedCode,
3788
- ownId: _vm.pendingId,
3789
- esign: _vm.esign,
3790
- esignLineWidth:
3791
- _vm.$attrs["esign-line-width"] ||
3792
- _vm.$attrs["esignLineWidth"],
3793
- isOpinionRequired: _vm.isOpinionRequired,
3794
- disabled: _vm.isBanInputOpinion != 0,
3795
- baseUrl: _vm.baseUrl,
3796
- isForceDisplayDefaultOptionForPrefix:
3797
- _vm.isForceDisplayDefaultOptionForPrefix,
3798
- placeholder: _vm.opinionHandleExplainText,
3799
- nodeDefaultSubmitOpinion: _vm.nodeDefaultSubmitOpinion,
3800
- nodeFixedOpinionSelectList:
3801
- _vm.nodeFixedOpinionSelectList,
3802
- isHiddenOftenOpinion:
3803
- _vm.isHiddenOftenOpinion == 1 ? false : true,
3804
- },
3805
- on: { onInputOpintion: _vm.onInputOpintion },
3806
- }),
3807
- _vm.typeCode != "fenyue"
3808
- ? _c("div", { staticClass: "special-box input-box" }, [
3809
- _vm.isCanAddSign
3810
- ? _c(
3811
- "div",
3812
- {
3813
- staticClass: "item",
3814
- class: {
3815
- itemRadio: _vm.form.isAddSign === "1",
3816
- },
3817
- },
3818
- [
3819
- _c(
3820
- "em-input",
3821
- {
3822
- attrs: {
3823
- name: "radio",
3824
- label: "是否增加本环节办理人",
3825
- required: true,
3826
- },
3827
- },
3828
- [
3829
- _c(
3830
- "template",
3831
- { slot: "input" },
3832
- [
3833
- _c("em-radio-group", {
3834
- attrs: {
3835
- data: _vm.isAddSignList,
3836
- direction: "horizontal",
3837
- },
3838
- model: {
3839
- value: _vm.form.isAddSign,
3840
- callback: function ($$v) {
3841
- _vm.$set(
3842
- _vm.form,
3843
- "isAddSign",
3844
- $$v
3845
- )
3846
- },
3847
- expression: "form.isAddSign",
3848
- },
3849
- }),
3850
- ],
3851
- 1
3852
- ),
3853
- ],
3854
- 2
3855
- ),
3856
- ],
3857
- 1
3858
- )
3859
- : _vm._e(),
3860
- _vm.form.isAddSign === "1"
3861
- ? _c(
3862
- "div",
3863
- {
3864
- staticClass: "item item-user",
3865
- attrs: { label: "增加办理人" },
3866
- },
3867
- [
3868
- _c("em-selector", {
3869
- attrs: {
3870
- label: "增加办理人",
3871
- required: "",
3872
- multiple: "",
3873
- isAllCheck: _vm.isAllCheck,
3874
- baseUrl: _vm.apiBaseUrl,
3875
- paddingTop: _vm.paddingTop,
3876
- objType: _vm.objType,
3877
- },
3878
- on: {
3879
- change: function ($event) {
3880
- _vm.disposeAppUser(
3881
- $event,
3882
- "addSignUserSelectList"
3883
- )
3884
- },
3885
- },
3886
- model: {
3887
- value: _vm.addSignUserSelectList,
3888
- callback: function ($$v) {
3889
- _vm.addSignUserSelectList = $$v
3890
- },
3891
- expression: "addSignUserSelectList",
3892
- },
3893
- }),
3894
- _vm.isCanPreAddSign
3895
- ? _c(
3896
- "em-input",
3897
- { attrs: { label: "加签模式" } },
3898
- [
3899
- _c(
3900
- "template",
3901
- { slot: "input" },
3902
- [
3903
- _c("em-radio-group", {
3904
- attrs: {
3905
- direction: "horizontal",
3906
- data: _vm.AddSignList,
3907
- },
3908
- model: {
3909
- value: _vm.form.addSignMode,
3910
- callback: function ($$v) {
3911
- _vm.$set(
3912
- _vm.form,
3913
- "addSignMode",
3914
- $$v
3915
- )
3916
- },
3917
- expression: "form.addSignMode",
3918
- },
3919
- }),
3920
- ],
3921
- 1
3922
- ),
3923
- ],
3924
- 2
3925
- )
3926
- : _vm._e(),
3927
- ],
3928
- 1
3929
- )
3930
- : _vm._e(),
3931
- _vm.isCanRemoveSign
3932
- ? _c(
3933
- "div",
3934
- {
3935
- staticClass: "item",
3936
- class: {
3937
- itemRadio: _vm.form.isRemoveSign === "1",
3938
- },
3939
- },
3940
- [
3941
- _c(
3942
- "em-input",
3943
- {
3944
- attrs: {
3945
- name: "radio",
3946
- label: "是否减签",
3947
- required: true,
3948
- },
3949
- },
3950
- [
3951
- _c(
3952
- "template",
3953
- { slot: "input" },
3954
- [
3955
- _c("em-radio-group", {
3956
- attrs: {
3957
- data: _vm.isAddSignList,
3958
- direction: "horizontal",
3959
- },
3960
- model: {
3961
- value: _vm.form.isRemoveSign,
3962
- callback: function ($$v) {
3963
- _vm.$set(
3964
- _vm.form,
3965
- "isRemoveSign",
3966
- $$v
3967
- )
3968
- },
3969
- expression: "form.isRemoveSign",
3970
- },
3971
- }),
3972
- ],
3973
- 1
3974
- ),
3975
- ],
3976
- 2
3977
- ),
3978
- ],
3979
- 1
3980
- )
3981
- : _vm._e(),
3982
- _vm.isSpecial && _vm.typeCode != "fenyue"
3983
- ? _c(
3984
- "div",
3985
- [
3986
- _vm.form.isRemoveSign === "1"
3987
- ? _c(
3988
- "div",
3989
- {
3990
- staticClass: "item item-user",
3991
- attrs: { label: "减少办理人" },
3992
- },
3993
- [
3994
- _c("em-selector", {
3995
- attrs: {
3996
- label: "减少办理人",
3997
- isAllCheck: _vm.isAllCheck,
3998
- required: "",
3999
- paddingTop: _vm.paddingTop,
4000
- multiple: "",
4001
- baseUrl: _vm.apiBaseUrl,
4002
- objType: _vm.objType,
4003
- },
4004
- on: {
4005
- change: function ($event) {
4006
- _vm.disposeAppUser(
4007
- $event,
4008
- "removeSignUserSelectList"
4009
- )
4010
- },
4011
- },
4012
- model: {
4013
- value: _vm.removeSignUserSelectList,
4014
- callback: function ($$v) {
4015
- _vm.removeSignUserSelectList = $$v
4016
- },
4017
- expression:
4018
- "removeSignUserSelectList",
4019
- },
4020
- }),
4021
- ],
4022
- 1
4023
- )
4024
- : _vm._e(),
4025
- _vm.form.isRemoveSign !== "1" &&
4026
- _vm.form.isAddSign !== "1" &&
4027
- !_vm.isHiddenNextStepInfo
4028
- ? _c("div", [
4029
- _c(
4030
- "div",
4031
- {
4032
- directives: [
4033
- {
4034
- name: "show",
4035
- rawName: "v-show",
4036
- value:
4037
- _vm.isNextBox || _vm.isReject,
4038
- expression:
4039
- "isNextBox || isReject",
4040
- },
4041
- ],
4042
- staticClass: "next-box",
4043
- },
4044
- [
4045
- !_vm.isHiddenNextStepInfo &&
4046
- _vm.isChooseNextNode == 1
4047
- ? _c(
4048
- "div",
4049
- {
4050
- staticClass: "item next-step",
4051
- },
4052
- [
4053
- _c(
4054
- "em-input",
4055
- {
4056
- staticClass:
4057
- "em-flow-next-steps",
4058
- attrs: {
4059
- value: "下步操作",
4060
- label: "下步操作",
4061
- required: "",
4062
- disabled: true,
4063
- "label-position": "top",
4064
- },
4065
- },
4066
- [
4067
- _c(
4068
- "template",
4069
- { slot: "input" },
4070
- _vm._l(
4071
- _vm.taskOperations,
4072
- function (item) {
4073
- return _c(
4074
- "span",
4075
- {
4076
- key: item.key,
4077
- staticClass:
4078
- "em-flow-tag",
4079
- class: {
4080
- "em-flow-tag-active":
4081
- _vm.tagKey ===
4082
- item.key,
4083
- },
4084
- on: {
4085
- click:
4086
- function (
4087
- $event
4088
- ) {
4089
- _vm.changeNextOperate(
4090
- item
4091
- )
4092
- },
4093
- },
4094
- },
4095
- [
4096
- _vm._v(
4097
- "\n " +
4098
- _vm._s(
4099
- item.value
4100
- ) +
4101
- "\n "
4102
- ),
4103
- ]
4104
- )
4105
- }
4106
- ),
4107
- 0
4108
- ),
4109
- ],
4110
- 2
4111
- ),
4112
- ],
4113
- 1
4114
- )
4115
- : _vm._e(),
4116
- _vm.nodeList &&
4117
- _vm.nodeList.length > 0 &&
4118
- !_vm.isReject &&
4119
- _vm.isShowNode
4120
- ? _c(
4121
- "div",
4122
- { staticClass: "item" },
4123
- [
4124
- _c("em-picker", {
4125
- attrs: {
4126
- title: "下步节点",
4127
- label: "下步节点",
4128
- required: "",
4129
- "show-toolbar": "",
4130
- "label-width": "100%",
4131
- columns: _vm.nodeList,
4132
- "value-key": "nodeId",
4133
- "label-key": "nodeName",
4134
- },
4135
- on: {
4136
- confirm:
4137
- _vm.onConfirmNextNode,
4138
- },
4139
- model: {
4140
- value:
4141
- _vm.form.nextNodeName,
4142
- callback: function ($$v) {
4143
- _vm.$set(
4144
- _vm.form,
4145
- "nextNodeName",
4146
- $$v
4147
- )
4148
- },
4149
- expression:
4150
- "form.nextNodeName",
4151
- },
4152
- }),
4153
- ],
4154
- 1
4155
- )
4156
- : _vm._e(),
4157
- ]
4158
- ),
4159
- _vm.countersignaturetypeCode
4160
- ? _c(
4161
- "div",
4162
- { staticClass: "item" },
4163
- [
4164
- _c("van-field", {
4165
- attrs: {
4166
- label: "处理方式",
4167
- disabled: true,
4168
- },
4169
- model: {
4170
- value:
4171
- _vm.countersignaturetypeText,
4172
- callback: function ($$v) {
4173
- _vm.countersignaturetypeText =
4174
- $$v
4175
- },
4176
- expression:
4177
- "countersignaturetypeText",
4178
- },
4179
- }),
4180
- ],
4181
- 1
4182
- )
4183
- : _vm._e(),
4184
- _vm.isNextUser
4185
- ? _c(
4186
- "div",
4187
- { staticClass: "item item-user" },
4188
- [
4189
- _c("em-selector", {
4190
- attrs: {
4191
- multiple: !_vm.isRadio,
4192
- objType: _vm.objType,
4193
- isAllCheck: _vm.isAllCheck,
4194
- required: "",
4195
- paddingTop: _vm.paddingTop,
4196
- nextUserList:
4197
- _vm.nextUserList,
4198
- baseUrl: _vm.apiBaseUrl,
4199
- tabs: "employee,persongroup",
4200
- disabled:
4201
- !_vm.isCustomUser ||
4202
- _vm.isCurrentNodeForbiddenChangeCandidate ==
4203
- 1,
4204
- selectDisabled:
4205
- _vm.isCurrentNodeForbiddenChangeCandidate ==
4206
- 1,
4207
- placeholder:
4208
- "请选择下步办理人",
4209
- param: {
4210
- pid: _vm.pid,
4211
- },
4212
- label: "下步办理人",
4213
- },
4214
- on: {
4215
- change: function ($event) {
4216
- _vm.disposeAppUser(
4217
- $event,
4218
- "nextUserSelectList"
4219
- )
4220
- },
4221
- },
4222
- model: {
4223
- value: _vm.nextUserSelectList,
4224
- callback: function ($$v) {
4225
- _vm.nextUserSelectList = $$v
4226
- },
4227
- expression:
4228
- "nextUserSelectList",
4229
- },
4230
- }),
4231
- ],
4232
- 1
4233
- )
4234
- : _vm._e(),
4235
- _vm.isDealRole
4236
- ? _c(
4237
- "div",
4238
- { staticClass: "item" },
4239
- [
4240
- _c("em-input", {
4241
- attrs: {
4242
- value: "办理角色",
4243
- label: "办理角色",
4244
- disabled: true,
4245
- placeholder: "请选择",
4246
- },
4247
- }),
4248
- ],
4249
- 1
4250
- )
4251
- : _vm._e(),
4252
- _vm.isDealObject
4253
- ? _c(
4254
- "div",
4255
- { staticClass: "item" },
4256
- [
4257
- _c("em-input", {
4258
- attrs: {
4259
- value: "办理对象",
4260
- label: "办理对象",
4261
- disabled: true,
4262
- placeholder: "请选择",
4263
- },
4264
- }),
4265
- ],
4266
- 1
4267
- )
4268
- : _vm._e(),
4269
- _vm.isHideCurrentOrg
4270
- ? _c(
4271
- "div",
4272
- { staticClass: "item" },
4273
- [
4274
- _c("em-selector", {
4275
- attrs: {
4276
- multiple: "",
4277
- isAllCheck: _vm.isAllCheck,
4278
- paddingTop: _vm.paddingTop,
4279
- objType: "enterprise",
4280
- tabs: "department,myemployee",
4281
- param: {
4282
- pid: _vm.orgId,
4283
- },
4284
- baseUrl: _vm.apiBaseUrl,
4285
- isOtherUnit: false,
4286
- label: _vm.currentOrgName
4287
- ? _vm.currentOrgName
4288
- : "本单位",
4289
- },
4290
- on: {
4291
- change: function ($event) {
4292
- _vm.disposeAppUnit(
4293
- $event,
4294
- "nextCurrentOrgObjSelect"
4295
- )
4296
- },
4297
- },
4298
- model: {
4299
- value:
4300
- _vm.nextCurrentOrgObjSelect,
4301
- callback: function ($$v) {
4302
- _vm.nextCurrentOrgObjSelect =
4303
- $$v
4304
- },
4305
- expression:
4306
- "nextCurrentOrgObjSelect",
4307
- },
4308
- }),
4309
- ],
4310
- 1
4311
- )
4312
- : _vm._e(),
4313
- _vm.isHideOtherOrg
4314
- ? _c(
4315
- "div",
4316
- { staticClass: "item" },
4317
- [
4318
- _c("em-selector", {
4319
- attrs: {
4320
- multiple: "",
4321
- isAllCheck: _vm.isAllCheck,
4322
- paddingTop: _vm.paddingTop,
4323
- objType: "enterprise",
4324
- param: {
4325
- pid: "root",
4326
- },
4327
- tabs: "enterprise",
4328
- baseUrl: _vm.apiBaseUrl,
4329
- isOtherUnit: true,
4330
- label: _vm.otherOrgName
4331
- ? _vm.otherOrgName
4332
- : "外单位",
4333
- },
4334
- on: {
4335
- change: function ($event) {
4336
- _vm.disposeAppUnit(
4337
- $event,
4338
- "nextOtherOrgObjSelect"
4339
- )
4340
- },
4341
- },
4342
- model: {
4343
- value:
4344
- _vm.nextOtherOrgObjSelect,
4345
- callback: function ($$v) {
4346
- _vm.nextOtherOrgObjSelect =
4347
- $$v
4348
- },
4349
- expression:
4350
- "nextOtherOrgObjSelect",
4351
- },
4352
- }),
4353
- ],
4354
- 1
4355
- )
4356
- : _vm._e(),
4357
- _vm.isMainSubProcess &&
4358
- _vm.isNodeShowProcess
4359
- ? _c(
4360
- "div",
4361
- { staticClass: "item" },
4362
- [
4363
- _c("em-picker", {
4364
- attrs: {
4365
- label: "主办",
4366
- title: "主办",
4367
- placeholder: "请选择主办",
4368
- "show-toolbar": "",
4369
- disabled:
4370
- _vm.subProcessColumns
4371
- .length == 0,
4372
- columns:
4373
- _vm.subProcessColumns,
4374
- },
4375
- model: {
4376
- value: _vm.form.mainSubId,
4377
- callback: function ($$v) {
4378
- _vm.$set(
4379
- _vm.form,
4380
- "mainSubId",
4381
- $$v
4382
- )
4383
- },
4384
- expression: "form.mainSubId",
4385
- },
4386
- }),
4387
- ],
4388
- 1
4389
- )
4390
- : _vm._e(),
4391
- _vm.isHandleExplain
4392
- ? _c(
4393
- "div",
4394
- { staticClass: "item" },
4395
- [
4396
- _c("van-field", {
4397
- attrs: {
4398
- value: "办理说明",
4399
- label: "办理说明",
4400
- disabled: true,
4401
- placeholder: "请选择",
4402
- },
4403
- }),
4404
- ],
4405
- 1
4406
- )
4407
- : _vm._e(),
4408
- ])
4409
- : _vm._e(),
4410
- _vm.form.isRemoveSign !== "1" &&
4411
- _vm.form.isAddSign !== "1" &&
4412
- _vm.isTaskread
4413
- ? _c("div", { staticClass: "item" }, [
4414
- _c(
4415
- "div",
4416
- { staticClass: "item item-user" },
4417
- [
4418
- _c("em-selector", {
4419
- attrs: {
4420
- multiple: "",
4421
- isAllCheck: _vm.isAllCheck,
4422
- objType: _vm.objType,
4423
- param: {
4424
- pid: _vm.pid,
4425
- },
4426
- paddingTop: _vm.paddingTop,
4427
- baseUrl: _vm.apiBaseUrl,
4428
- tabs: "employee,persongroup",
4429
- label: "分阅用户",
4430
- },
4431
- on: {
4432
- change: function ($event) {
4433
- _vm.disposeAppUser(
4434
- $event,
4435
- "nextReadUserSelectList"
4436
- )
4437
- },
4438
- },
4439
- model: {
4440
- value: _vm.nextReadUserSelectList,
4441
- callback: function ($$v) {
4442
- _vm.nextReadUserSelectList = $$v
4443
- },
4444
- expression:
4445
- "nextReadUserSelectList",
4446
- },
4447
- }),
4448
- ],
4449
- 1
4450
- ),
4451
- ])
4452
- : _vm._e(),
4453
- _vm.isLimitedTimeHandling
4454
- ? _c(
4455
- "div",
4456
- { staticClass: "item" },
4457
- [
4458
- _c(
4459
- "em-input",
4460
- {
4461
- attrs: {
4462
- name: "radio",
4463
- label: "是否限时办理",
4464
- required: true,
4465
- },
4466
- },
4467
- [
4468
- _c(
4469
- "template",
4470
- { slot: "input" },
4471
- [
4472
- _c("em-radio-group", {
4473
- attrs: {
4474
- data: _vm.isAddSignList,
4475
- direction: "horizontal",
4476
- },
4477
- model: {
4478
- value:
4479
- _vm.form.isLimitedTime,
4480
- callback: function ($$v) {
4481
- _vm.$set(
4482
- _vm.form,
4483
- "isLimitedTime",
4484
- $$v
4485
- )
4486
- },
4487
- expression:
4488
- "form.isLimitedTime",
4489
- },
4490
- }),
4491
- ],
4492
- 1
4493
- ),
4494
- ],
4495
- 2
4496
- ),
4497
- ],
4498
- 1
4499
- )
4500
- : _vm._e(),
4501
- _vm.form.isLimitedTime === "1"
4502
- ? _c(
4503
- "div",
4504
- { staticClass: "item item-limited-time" },
4505
- [
4506
- _c(
4507
- "em-input",
4508
- {
4509
- attrs: {
4510
- name: "radio",
4511
- label: "限时办理时间",
4512
- required: true,
4513
- },
4514
- },
4515
- [
4516
- _c("template", { slot: "input" }, [
4517
- _c(
4518
- "div",
4519
- {
4520
- staticClass:
4521
- "item-limited-time-content",
4522
- },
4523
- [
4524
- _c(
4525
- "div",
4526
- [
4527
- _c("em-input", {
4528
- attrs: {
4529
- placeholder:
4530
- "请输入天数",
4531
- type: "digit",
4532
- },
4533
- model: {
4534
- value:
4535
- _vm.form
4536
- .limitedTimeDay,
4537
- callback: function (
4538
- $$v
4539
- ) {
4540
- _vm.$set(
4541
- _vm.form,
4542
- "limitedTimeDay",
4543
- $$v
4544
- )
4545
- },
4546
- expression:
4547
- "form.limitedTimeDay",
4548
- },
4549
- }),
4550
- ],
4551
- 1
4552
- ),
4553
- _c(
4554
- "div",
4555
- { staticClass: "day-text" },
4556
- [_vm._v("天")]
4557
- ),
4558
- _c(
4559
- "div",
4560
- [
4561
- _c("em-input", {
4562
- attrs: {
4563
- value:
4564
- _vm.form
4565
- .limitedTimeHour,
4566
- clickable: "",
4567
- readonly: "",
4568
- placeholder:
4569
- "请选择小时",
4570
- },
4571
- on: {
4572
- click: function (
4573
- $event
4574
- ) {
4575
- _vm.openTimeList(
4576
- "limitedTimeHour"
4577
- )
4578
- },
4579
- },
4580
- }),
4581
- ],
4582
- 1
4583
- ),
4584
- _c(
4585
- "div",
4586
- { staticClass: "day-text" },
4587
- [_vm._v("时")]
4588
- ),
4589
- ]
4590
- ),
4591
- ]),
4592
- ],
4593
- 2
4594
- ),
4595
- ],
4596
- 1
4597
- )
4598
- : _vm._e(),
4599
- _vm.form.isLimitedTime === "1"
4600
- ? _c(
4601
- "div",
4602
- { staticClass: "item item-limited-time" },
4603
- [
4604
- _c(
4605
- "em-input",
4606
- {
4607
- attrs: {
4608
- name: "radio",
4609
- label: "提前通知时间",
4610
- required: true,
4611
- },
4612
- },
4613
- [
4614
- _c("template", { slot: "input" }, [
4615
- _c(
4616
- "div",
4617
- {
4618
- staticClass:
4619
- "item-limited-time-content",
4620
- },
4621
- [
4622
- _c(
4623
- "div",
4624
- [
4625
- _c("em-input", {
4626
- attrs: {
4627
- placeholder:
4628
- "请输入天数",
4629
- type: "digit",
4630
- },
4631
- model: {
4632
- value:
4633
- _vm.form
4634
- .advanceNoticeDay,
4635
- callback: function (
4636
- $$v
4637
- ) {
4638
- _vm.$set(
4639
- _vm.form,
4640
- "advanceNoticeDay",
4641
- $$v
4642
- )
4643
- },
4644
- expression:
4645
- "form.advanceNoticeDay",
4646
- },
4647
- }),
4648
- ],
4649
- 1
4650
- ),
4651
- _c(
4652
- "div",
4653
- { staticClass: "day-text" },
4654
- [_vm._v("天")]
4655
- ),
4656
- _c(
4657
- "div",
4658
- [
4659
- _c("em-input", {
4660
- attrs: {
4661
- value:
4662
- _vm.form
4663
- .advanceNoticeHour,
4664
- clickable: "",
4665
- placeholder:
4666
- "请选择小时",
4667
- readonly: "",
4668
- },
4669
- on: {
4670
- click: function (
4671
- $event
4672
- ) {
4673
- _vm.openTimeList(
4674
- "advanceNoticeHour"
4675
- )
4676
- },
4677
- },
4678
- }),
4679
- ],
4680
- 1
4681
- ),
4682
- _c(
4683
- "div",
4684
- { staticClass: "day-text" },
4685
- [_vm._v("时")]
4686
- ),
4687
- ]
4688
- ),
4689
- ]),
4690
- ],
4691
- 2
4692
- ),
4693
- ],
4694
- 1
4695
- )
4696
- : _vm._e(),
4697
- _c(
4698
- "van-popup",
4699
- {
4700
- attrs: { round: "", position: "bottom" },
4701
- model: {
4702
- value: _vm.showTimeList,
4703
- callback: function ($$v) {
4704
- _vm.showTimeList = $$v
4705
- },
4706
- expression: "showTimeList",
4707
- },
4708
- },
4709
- [
4710
- _c("van-picker", {
4711
- attrs: {
4712
- "show-toolbar": "",
4713
- columns: _vm.timeList,
4714
- },
4715
- on: {
4716
- cancel: function ($event) {
4717
- _vm.showTimeList = false
4718
- },
4719
- confirm: _vm.onConfirmTimeList,
4720
- },
4721
- }),
4722
- ],
4723
- 1
4724
- ),
4725
- _vm.isCustomPreset
4726
- ? _c("ProcessSetting", {
4727
- ref: "processSetting",
4728
- attrs: {
4729
- processDefinitionId:
4730
- _vm.taskExamineInfo
4731
- .processDefinitionId,
4732
- nodeId: _vm.form.nextNodeId,
4733
- taskId:
4734
- _vm.processObj.taskExamine.taskId,
4735
- pendingId: _vm.pendingId,
4736
- businessId:
4737
- _vm.taskExamineInfo.businessId,
4738
- apiBaseUrl: _vm.apiBaseUrl,
4739
- paddingTop: _vm.paddingTop,
4740
- choiceOrgId: _vm.choiceOrgId,
4741
- pOrgId: _vm.pOrgId,
4742
- choiceDeptId: _vm.choiceDeptId,
4743
- },
4744
- })
4745
- : _vm._e(),
4746
- _vm.isLimitedTimeHandling
4747
- ? _c(
4748
- "div",
4749
- { staticClass: "item-msg item-msg1" },
4750
- [
4751
- _c("Message", {
4752
- ref: "message",
4753
- attrs: {
4754
- label: "催办通知方式",
4755
- code: "notification_type",
4756
- baseUrl: _vm.baseUrl,
4757
- required: true,
4758
- },
4759
- on: {
4760
- onInputMsg: _vm.onInputMsgUrge,
4761
- },
4762
- }),
4763
- ],
4764
- 1
4765
- )
4766
- : _vm._e(),
4767
- _c(
4768
- "div",
4769
- { staticClass: "item-msg item-msg2" },
4770
- [
4771
- _c("Message", {
4772
- ref: "message",
4773
- attrs: {
4774
- code: "notification_type",
4775
- baseUrl: _vm.baseUrl,
4776
- readOnlyNotificationType:
4777
- _vm.readOnlyNotificationType,
4778
- notificationMessageReadOnly:
4779
- _vm.notificationMessageReadOnly,
4780
- defaultNotificationType:
4781
- _vm.defaultNotificationType,
4782
- defaultNotificationMsg:
4783
- _vm.form.notificationMsg,
4784
- },
4785
- on: { onInputMsg: _vm.onInputMsg },
4786
- }),
4787
- ],
4788
- 1
4789
- ),
4790
- ],
4791
- 1
4792
- )
4793
- : _vm._e(),
4794
- ])
4795
- : _vm._e(),
4796
- ],
4797
- 1
4798
- ),
4799
- _vm.isSubmitButtonShowAgreeAndDisagree
4800
- ? _c("div", { staticClass: "btn-list" }, [
4801
- _c(
4802
- "div",
4803
- {
4804
- staticClass: "btn",
4805
- on: {
4806
- click: function ($event) {
4807
- _vm.handleFlow = false
4808
- },
4809
- },
4810
- },
4811
- [_vm._v("不同意")]
4812
- ),
4813
- _c(
4814
- "div",
4815
- {
4816
- staticClass: "btn",
4817
- on: {
4818
- click: function ($event) {
4819
- _vm.onSubmit()
4820
- },
4821
- },
4822
- },
4823
- [_vm._v("同意")]
4824
- ),
4825
- ])
4826
- : _c("div", { staticClass: "btn-list" }, [
4827
- _c(
4828
- "div",
4829
- { staticClass: "btn", on: { click: _vm.navigateBack } },
4830
- [_vm._v("取消")]
4831
- ),
4832
- _c(
4833
- "div",
4834
- {
4835
- staticClass: "btn",
4836
- on: {
4837
- click: function ($event) {
4838
- _vm.onSubmit()
4839
- },
4840
- },
4841
- },
4842
- [_vm._v("确定")]
4843
- ),
4844
- ]),
4845
- ]
4846
- )
4847
- : _c("Reject", {
4848
- attrs: {
4849
- pendingId: _vm.pendingId,
4850
- "before-submit": _vm.beforeSubmit,
4851
- },
4852
- on: {
4853
- close: function ($event) {
4854
- _vm.handleFlow = true
4855
- },
4856
- },
4857
- }),
4858
- ],
4859
- 1
4860
- )
4861
- }
4862
- var Handlevue_type_template_id_548395aa_staticRenderFns = []
4863
- Handlevue_type_template_id_548395aa_render._withStripped = true
4864
-
4865
-
4866
- // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=548395aa
4867
-
4868
- // 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
4869
- var Rejectvue_type_template_id_4fdaf365_render = function () {
4870
- var _vm = this
4871
- var _h = _vm.$createElement
4872
- var _c = _vm._self._c || _h
4873
- return _c("div", { staticClass: "process-reject" }, [
4874
- _c(
4875
- "div",
4876
- { staticClass: "reject-content" },
4877
- [
4878
- _c("div", { staticClass: "present-node" }, [
4879
- _c("div", { staticClass: "label" }, [_vm._v("当前节点:")]),
4880
- _c("div", [_vm._v(_vm._s(_vm.processObj.taskExamine.nodeName))]),
4881
- ]),
4882
- _c("Opinion", {
4883
- attrs: {
4884
- code: _vm.processObj.attachedCode,
4885
- ownId: _vm.$route.query.pendingId,
4886
- esign: _vm.esign,
4887
- esignLineWidth:
4888
- _vm.$attrs["esign-line-width"] || _vm.$attrs["esignLineWidth"],
4889
- placeholder: _vm.opinionHandleExplainText,
4890
- isOpinionRequired: _vm.isBanInputOpinion,
4891
- disabled: _vm.isBanInputOpinion != 0,
4892
- baseUrl: _vm.baseUrl,
4893
- isHiddenOftenOpinion: _vm.isHiddenOftenOpinion == 1 ? false : true,
4894
- },
4895
- on: { onInputOpintion: _vm.onInputOpintion },
4896
- }),
4897
- _c(
4898
- "div",
4899
- { staticClass: "input-box" },
4900
- [
4901
- _c(
4902
- "div",
4903
- { staticClass: "item" },
4904
- [
4905
- _c(
4906
- "em-input",
4907
- { attrs: { label: "驳回对象" } },
4908
- [
4909
- _c(
4910
- "template",
4911
- { slot: "input" },
4912
- [
4913
- _c("em-radio-group", {
4914
- attrs: { data: _vm.rejectObj },
4915
- model: {
4916
- value: _vm.form.nextNodeId,
4917
- callback: function ($$v) {
4918
- _vm.$set(_vm.form, "nextNodeId", $$v)
4919
- },
4920
- expression: "form.nextNodeId",
4921
- },
4922
- }),
4923
- ],
4924
- 1
4925
- ),
4926
- ],
4927
- 2
4928
- ),
4929
- ],
4930
- 1
4931
- ),
4932
- _c("Message", {
4933
- ref: "message",
4934
- attrs: {
4935
- code: "notification_type",
4936
- baseUrl: _vm.baseUrl,
4937
- readOnlyNotificationType: _vm.readOnlyNotificationType,
4938
- notificationMessageReadOnly: _vm.notificationMessageReadOnly,
4939
- defaultNotificationType: _vm.defaultNotificationType,
4940
- defaultNotificationMsg: _vm.form.notificationMsg,
4941
- type: _vm.type,
4942
- },
4943
- on: { onInputMsg: _vm.onInputMsg },
4944
- }),
4945
- ],
4946
- 1
4947
- ),
4948
- ],
4949
- 1
4950
- ),
4951
- _c("div", { staticClass: "btn-list" }, [
4952
- _c("div", { staticClass: "btn", on: { click: _vm.goBack } }, [
4953
- _vm._v("取消"),
4954
- ]),
4955
- _c(
4956
- "div",
4957
- {
4958
- staticClass: "btn",
4959
- on: {
4960
- click: function ($event) {
4961
- _vm.onSubmit()
4962
- },
4963
- },
4964
- },
4965
- [_vm._v("确定")]
4966
- ),
4967
- ]),
4968
- ])
4969
- }
4970
- var Rejectvue_type_template_id_4fdaf365_staticRenderFns = []
4971
- Rejectvue_type_template_id_4fdaf365_render._withStripped = true
4972
-
4973
-
4974
- // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=template&id=4fdaf365
3623
+ /* harmony default export */ var ProcessSettings = (ProcessSettings_component.exports);
3624
+ // EXTERNAL MODULE: ./src/utils/util.js
3625
+ var util = __webpack_require__(0);
4975
3626
 
4976
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=script&lang=js
4977
- var Rejectvue_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; };
3627
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/StartFlow.vue?vue&type=script&lang=js
3628
+ var StartFlowvue_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; };
4978
3629
 
4979
3630
  //
4980
3631
  //
@@ -5022,20 +3673,117 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
5022
3673
  //
5023
3674
  //
5024
3675
  //
3676
+ //
3677
+ //
3678
+ //
3679
+ //
3680
+ //
3681
+ //
3682
+ //
3683
+ //
3684
+ //
3685
+ //
3686
+ //
3687
+ //
3688
+ //
3689
+ //
3690
+ //
3691
+ //
3692
+ //
3693
+ //
3694
+ //
3695
+ //
3696
+ //
3697
+ //
3698
+ //
3699
+ //
3700
+ //
3701
+ //
3702
+ //
3703
+ //
3704
+ //
3705
+ //
3706
+ //
3707
+ //
3708
+ //
3709
+ //
3710
+ //
3711
+ //
3712
+ //
3713
+ //
3714
+ //
3715
+ //
3716
+ //
3717
+ //
3718
+ //
3719
+ //
3720
+ //
3721
+ //
3722
+ //
3723
+ //
3724
+ //
3725
+ //
3726
+ //
3727
+ //
3728
+ //
3729
+ //
3730
+ //
3731
+ //
3732
+ //
3733
+ //
3734
+ //
3735
+ //
3736
+ //
3737
+ //
3738
+ //
3739
+ //
3740
+ //
3741
+ //
3742
+ //
3743
+ //
3744
+ //
3745
+ //
3746
+ //
3747
+ //
3748
+ //
3749
+ //
3750
+ //
3751
+ //
3752
+ //
3753
+ //
3754
+ //
3755
+ //
5025
3756
 
5026
3757
 
5027
3758
 
5028
3759
 
5029
3760
 
5030
3761
 
5031
- /* harmony default export */ var Rejectvue_type_script_lang_js = ({
5032
- name: 'Reject',
3762
+
3763
+
3764
+ /* harmony default export */ var StartFlowvue_type_script_lang_js = ({
3765
+ name: 'StartFlow',
3766
+ inheritAttrs: false,
5033
3767
  props: {
5034
- appId: String,
5035
- type: String,
5036
- pendingId: String,
3768
+ showPresentNode: {
3769
+ type: Boolean,
3770
+ default: true // 是否当前节点
3771
+ },
5037
3772
  beforeSubmit: Function,
5038
- baseUrl: String,
3773
+ businessId: String, //提交意见附件所需id一般是业务id
3774
+ defId: String, //流程id
3775
+ baseUrl: String, //流程地址
3776
+ apiBaseUrl: String,
3777
+ orgId: String,
3778
+ depId: String,
3779
+ paddingTop: {
3780
+ type: [String, Number],
3781
+ default: 0
3782
+ },
3783
+ isAllCheck: {
3784
+ type: Boolean,
3785
+ default: false
3786
+ },
5039
3787
  esign: {
5040
3788
  type: Boolean,
5041
3789
  default: false
@@ -5047,47 +3795,103 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
5047
3795
  },
5048
3796
  data: function data() {
5049
3797
  return {
5050
- showMsg: false, // 判断是否显示系统消息
5051
- opinionHandleExplainText: undefined,
5052
- showOpinion: false, // 常用意见弹框
3798
+ showOpinion: true,
5053
3799
  readOnlyNotificationType: '',
5054
3800
  notificationMessageReadOnly: false,
5055
3801
  form: {
3802
+ nextNodeId: undefined, // 流程节点id
3803
+ nextNodeName: undefined, // 流程节点名称
3804
+ nextUserName: undefined, // 办理人
3805
+ nextUserId: undefined, // 办理人id
3806
+ nextName: undefined, //下一步
5056
3807
  opinion: undefined, // 审批意见
3808
+ nodeId: undefined,
5057
3809
  notificationMsg: undefined, //系统消息
5058
- nextNodeId: undefined,
5059
- loginType: 2, //登录方式
3810
+ notificationType: [],
5060
3811
  isImageOpinion: 0
5061
3812
  },
5062
3813
  file: '',
5063
- processObj: {
5064
- taskExamine: { nodeName: undefined },
5065
- nodeInfoMap: { nextUserList: [] }
5066
- },
5067
- rejectObj: [], //
5068
- isHiddenOftenOpinion: undefined, //是否隐藏常用意见
5069
- nodeDefaultRejectOpinion: undefined, //默认提交意见
5070
- checked: true, // 系统消息是否选中
5071
- defaultNotificationType: undefined, ///默认选中通知类型
5072
- isBanInputOpinion: 0 //是否禁用意见
3814
+ nextUserList: [],
3815
+ isChooseNextNode: 0,
3816
+ isOpinionRequired: 0, //办理意见是否必填
3817
+ isBanInputOpinion: 0, //是否禁用意见
3818
+ isNextBox: true, // 是否展开隐藏下步操作
3819
+ defaultNotificationType: [], //选中消息数组
3820
+ // showAppUser: false, // 办理人遮罩层
3821
+ showNextList: false, // 下一步遮罩层
3822
+ showNextNodeList: false, // 流程节点遮罩层
3823
+ nextList: [], //下一步列表
3824
+ nodeList: [], // 流程节点列表
3825
+ processObj: {}, //流程信息
3826
+ peopleObj: {}, //办理人信息
3827
+ isRadio: false, //办理人是否单选
3828
+ treeType: undefined, //办理人选择类别
3829
+ pid: undefined, // 办理人树选择pid
3830
+ objType: 'enterprise', //办理人树选择objType
3831
+ selectType: '', //办理人树选择selectType
3832
+ nextUserSelectList: [], //选中人数组
3833
+ flowObj: {} //流程参数信息
5073
3834
  };
5074
3835
  },
5075
3836
 
5076
- components: { Opinion: Opinion, Message: Message },
5077
- created: function created() {
5078
- this.style = {
5079
- 'padding-top': sessionStorage.getItem('pt') ? sessionStorage.getItem('pt') + 'px' : '30px'
3837
+ components: {
3838
+ Opinion: Opinion,
3839
+ Message: Message,
3840
+ ProcessSetting: ProcessSettings
3841
+ },
3842
+ mounted: function mounted() {
3843
+ var obj = {
3844
+ processDefinitionId: this.defId,
3845
+ // isOnly: true,
3846
+ // hideTempSave: true,
3847
+ businessId: this.businessId
5080
3848
  };
5081
- this.getProcessObj();
3849
+ this.geAllData(obj);
5082
3850
  },
5083
3851
 
5084
- methods: {
3852
+
3853
+ methods: {
3854
+ goBack: function goBack() {
3855
+ this.$parent.$emit('close');
3856
+ },
3857
+ handleChange: function handleChange(val, selectLabel) {
3858
+ // this[res.label] = res.list;
3859
+ // this.showAppUser = false;
3860
+ var label = selectLabel.substring(0, selectLabel.lastIndexOf('SelectList'));
3861
+ var idStr = '';
3862
+ val.list.map(function (r, i) {
3863
+ idStr = idStr + r.showid + (i === val.list.length - 1 ? '' : ',');
3864
+ });
3865
+ this.form[label + 'Id'] = idStr;
3866
+ },
3867
+ geAllData: function geAllData(res) {
3868
+ var _this = this;
3869
+
3870
+ this.flowObj = res;
3871
+ this.$toast.loading({
3872
+ message: '加载中...',
3873
+ forbidClick: true,
3874
+ loadingType: 'spinner',
3875
+ overlay: true,
3876
+ duration: 0
3877
+ });
3878
+ //获取流程发起信息后去获取节点信息和办理人信息
3879
+ Promise.all([this.getProcessObj(res)]).then(function () {
3880
+ _this.getPeopleObj(_this.form.nextNodeId);
3881
+ });
3882
+ },
3883
+
5085
3884
  // 通知消息回调
5086
3885
  onInputMsg: function onInputMsg(obj) {
5087
3886
  this.form.notificationType = obj.notificationType.join(',');
5088
3887
  this.form.notificationMsg = obj.notificationMsg;
5089
3888
  },
5090
3889
 
3890
+ // 删除.
3891
+ delteList: function delteList(label, i) {
3892
+ this[label].splice(i, 1);
3893
+ },
3894
+
5091
3895
  // 意见回调
5092
3896
  onInputOpintion: function onInputOpintion(val) {
5093
3897
  var opinion = val.opinion,
@@ -5098,45 +3902,65 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
5098
3902
  this.form.isImageOpinion = isImageOpinion;
5099
3903
  this.file = file;
5100
3904
  },
5101
- goBack: function goBack() {
5102
- this.$parent.$emit('close');
5103
- this.$emit('close');
5104
- },
5105
3905
 
5106
3906
  // 提交流程
5107
3907
  onSubmit: function onSubmit() {
5108
- var _this = this;
3908
+ var _this2 = this;
5109
3909
 
5110
- if (!this.form.opinion && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 0 || !this.file && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 1) {
5111
- this.$toast('请输入审批意见');
3910
+ if (!this.form.opinion && this.isOpinionRequired == 1 && this.form.isImageOpinion == 0 || !this.file && this.isOpinionRequired == 1 && this.form.isImageOpinion == 1) {
3911
+ this.$toast('请选择输入审批意见');
5112
3912
  return;
5113
3913
  }
5114
- var str = '';
5115
- if (this.form.opinion) {
5116
- str = this.form.opinion.replace(/\s+/g, '');
3914
+ if (!this.form.nextUserId) {
3915
+ this.$toast('请选择办理人');
3916
+ return;
5117
3917
  }
5118
- if ((!this.form.opinion || str === '') && this.nodeDefaultRejectOpinion) {
5119
- this.form.opinion = this.nodeDefaultRejectOpinion;
3918
+ if (!this.form.nextNodeId) {
3919
+ this.$toast('请选择流程节点');
3920
+ return;
5120
3921
  }
3922
+ // if (!this.form.notificationType) {
3923
+ // this.$toast('请选择通知消息');
3924
+ // return;
3925
+ // }
3926
+
3927
+ var info = {
3928
+ processDefinitionId: this.flowObj.processDefinitionId,
3929
+ nextUserId: this.form.nextUserId,
3930
+ nextNodeId: this.form.nextNodeId,
3931
+ businessId: this.businessId,
3932
+ notificationType: Array.isArray(this.form.notificationType) ? '' : this.form.notificationType,
3933
+ opinion: this.form.opinion,
3934
+ nodeId: this.form.nodeId,
3935
+ notificationMsg: this.form.notificationMsg,
3936
+ loginType: 2, //登录方式
3937
+ isImageOpinion: this.form.isImageOpinion,
3938
+ userId: this.userId || util["a" /* default */].getStorage('userId'),
3939
+ mobileKey: util["a" /* default */].getStorage('deviceId') || '123'
3940
+ };
3941
+ // if (this.processObj.isCustomPreset ) {
3942
+ // if (this.$refs.processSetting.active.length != 0) {
3943
+ // if(!this.$refs.processSetting.getValue())return
3944
+ // info.customPresetUserJson = this.$refs.processSetting.getValue();
3945
+ // info.isCustomPreset = true;
3946
+ // } else {
3947
+ // delete info.customPresetUserJson;
3948
+ // delete info.isCustomPreset;
3949
+ // }
3950
+ // }
5121
3951
  if (this.beforeSubmit) {
5122
- this.beforeSubmit(Rejectvue_type_script_lang_js_extends({ pendingId: this.pendingId }, this.form));
3952
+ this.beforeSubmit(info);
5123
3953
  return;
5124
3954
  }
5125
- this.form.mobileKey = util["a" /* default */].getStorage('deviceId') || '123';
5126
3955
  var formData = new FormData();
5127
- if (this.form.isImageOpinion == 1) {
5128
- formData.append('file', this.file);
5129
- formData.append('pendingId', this.pendingId);
5130
- this.form.userId = this.userId || util["a" /* default */].getStorage('userId');
5131
- for (var key in this.form) {
5132
- if (this.form[key] !== '' && this.form[key] !== undefined) {
5133
- formData.append(key, this.form[key]);
5134
- }
5135
- }
5136
- } else {
5137
- this.form.pendingId = this.pendingId;
5138
- }
5139
-
3956
+ // if (this.form.isImageOpinion == 1) {
3957
+ // formData.append('file', this.file);
3958
+ // }
3959
+ // for (let key in info) {
3960
+ // if (info[key] !== '' && info[key] !== undefined) {
3961
+ // formData.append(key, info[key]);
3962
+ // }
3963
+ // }
5140
3964
  this.$toast.loading({
5141
3965
  message: '加载中...',
5142
3966
  forbidClick: true,
@@ -5146,237 +3970,1449 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
5146
3970
  });
5147
3971
  var _that = this;
5148
3972
  Object(http["a" /* default */])({
5149
- url: _that.baseUrl ? _that.baseUrl + api["v" /* taskRejectHtml */] : api["v" /* taskRejectHtml */],
5150
- type: 'post',
5151
- params: this.form.isImageOpinion == 1 ? formData : this.form,
5152
- format: false
5153
- }).then(function (res) {
5154
- if (res.status == 'success') {
5155
- _this.$toast('操作成功');
5156
- _this.$parent.$emit('success');
3973
+ url: _that.apiBaseUrl ? _that.apiBaseUrl + api["q" /* registerNew */] : api["q" /* registerNew */],
3974
+ type: 'get',
3975
+ params: { params: info
3976
+ // format: false
3977
+ } }).then(function (res) {
3978
+ _this2.$toast.clear();
3979
+ if (res.rCode == 0) {
3980
+ _this2.$toast('操作成功');
3981
+ _this2.$parent.$emit('success');
5157
3982
  } else {
5158
- _this.$toast(res.message);
3983
+ _this2.$toast(res.msg);
5159
3984
  }
5160
3985
  });
5161
3986
  },
5162
3987
 
5163
- // 确认常用意见
5164
- onConfirmOpinion: function onConfirmOpinion(val) {
5165
- this.form.opinion = val.content;
5166
- this.showOpinion = false;
5167
- },
5168
-
5169
- // 获取驳回信息
5170
- getProcessObj: function getProcessObj() {
5171
- var _this2 = this;
3988
+ // 确认常用意见
3989
+ onConfirmOpinion: function onConfirmOpinion(val) {
3990
+ this.form.opinion = val.content;
3991
+ this.showOpinion = false;
3992
+ },
3993
+
3994
+ // 选择办理人
3995
+ onClickPeople: function onClickPeople(label) {
3996
+ this.$nextTick(function () {
3997
+ this.$refs.selectTree.getContent(label);
3998
+ });
3999
+ var obj = {
4000
+ label: '请选择办理人',
4001
+ show: true
4002
+ };
4003
+ this.$emit('informNav', obj);
4004
+ this.showAppUser = true;
4005
+ },
4006
+
4007
+ // 获取树选择范围
4008
+ getTreeChangeType: function getTreeChangeType() {
4009
+ /**
4010
+ * 办理人选择方式(1:机构内单选人;2:机构内多选;3:所有机构单选人;4:所有机构多选人;5:科室内单选人;6:科室内多选人;11:单选机构;12:多选机构;13:本部门角色;14:本单位角色;15:上级单位单选人;16:上级单位多选人;)
4011
+ */
4012
+ this.treeType % 2 == 0 ? this.isRadio = false : this.isRadio = true;
4013
+ if (this.treeType === 1 || this.treeType === 2) {
4014
+ this.pid = this.orgId;
4015
+ this.objType = 'enterprise';
4016
+ this.selectType = 'employee';
4017
+ } else if (this.treeType === 3 || this.treeType === 4) {
4018
+ this.pid = 'root';
4019
+ this.selectType = 'employee';
4020
+ this.objType = 'employee';
4021
+ } else if (this.treeType === 5 || this.treeType === 6) {
4022
+ this.pid = this.depId;
4023
+ this.selectType = 'employee';
4024
+ this.objType = 'employee';
4025
+ } else if (this.treeType === 11 || this.treeType === 12) {
4026
+ this.selectType = 'employee';
4027
+ this.objType = 'enterprise';
4028
+ this.pid = '';
4029
+ } else if (this.treeType === 13) {
4030
+ this.pid = this.depId;
4031
+ this.selectType = 'employee';
4032
+ } else if (this.treeType === 14) {
4033
+ this.pid = this.orgId;
4034
+ this.selectType = 'employee';
4035
+ } else if (this.treeType === 15 || this.treeType === 16) {
4036
+ this.pid = this.orgId;
4037
+ this.selectType = 'employee';
4038
+ } else if (this.treeType == 'department') {
4039
+ this.pid = '';
4040
+ this.selectType = 'department';
4041
+ this.objType = 'department';
4042
+ }
4043
+ },
4044
+
4045
+ // 确认下一步操作
4046
+ onConfirmNext: function onConfirmNext(val) {
4047
+ this.form.nextName = val.itemName;
4048
+ this.nodeList = val.list;
4049
+ this.form.nextNodeId = val.list[0].nodeId;
4050
+ this.form.nextNodeName = val.list[0].nodeName;
4051
+ val.list[0].transactorInfos && (this.nextUserList = val.list[0].transactorInfos);
4052
+ this.showNextList = false;
4053
+ this.getPeopleObj(this.form.nextNodeId);
4054
+ },
4055
+
4056
+ // 确认流程节点操作
4057
+ onConfirmNextNode: function onConfirmNextNode(val) {
4058
+ this.form.nextNodeId = val.nodeId;
4059
+ this.form.nextNodeName = val.nodeName;
4060
+ this.showNextNodeList = false;
4061
+ this.getPeopleObj(this.form.nextNodeId);
4062
+ },
4063
+
4064
+ // 办理人选择完回调
4065
+ disposeAppUser: function disposeAppUser(res) {
4066
+ this[res.label] = res.list;
4067
+ this.showAppUser = false;
4068
+ var label = res.label.substring(0, res.label.lastIndexOf('SelectList'));
4069
+ var idStr = '';
4070
+ res.list.map(function (r, i) {
4071
+ idStr = idStr + r.showid + (i === res.list.length - 1 ? '' : ',');
4072
+ });
4073
+ this.form[label + 'Id'] = idStr;
4074
+ },
4075
+
4076
+ // 获取发起流程信息
4077
+ getProcessObj: function getProcessObj(res) {
4078
+ var that = this;
4079
+ return new Promise(function (resolve, reiect) {
4080
+ Object(http["a" /* default */])({
4081
+ url: that.apiBaseUrl ? that.apiBaseUrl + api["B" /* toStartFlow */] : api["B" /* toStartFlow */],
4082
+ params: {
4083
+ params: StartFlowvue_type_script_lang_js_extends({}, res, {
4084
+ userId: that.userId || util["a" /* default */].getStorage('userId')
4085
+ })
4086
+ }
4087
+ }).then(function (res) {
4088
+ if (res.rCode == 0) {
4089
+ res.results.nodeExtr.submitTipsMsg && external_eoss_mobile_vant_["Dialog"].confirm({
4090
+ title: '提示',
4091
+ message: res.results.nodeExtr.submitTipsMsg
4092
+ }).then(function () {
4093
+ // on confirm
4094
+ }).catch(function () {
4095
+ that.goBack();
4096
+ // on cancel
4097
+ });
4098
+ if (res.results.extendData) {
4099
+ that.notificationMessageReadOnly = res.results.extendData.notificationMessageReadOnly == 'true';
4100
+ that.readOnlyNotificationType = res.results.extendData.readOnlyNotificationType;
4101
+ }
4102
+ that.processObj = res.results;
4103
+ that.nextList = res.results.nodeList;
4104
+ that.isOpinionRequired = res.results.nodeExtr.isOpinionRequired;
4105
+ that.isBanInputOpinion = res.results.nodeExtr.isBanInputOpinion;
4106
+ if (!that.isOpinionRequired) {
4107
+ that.isOpinionRequired = 0;
4108
+ }
4109
+ if (!that.isBanInputOpinion) {
4110
+ that.isBanInputOpinion = 0;
4111
+ }
4112
+ that.isChooseNextNode = res.results.nodeExtr.isChooseNextNode;
4113
+ that.nodeList = res.results.nodeList[0].list;
4114
+ that.form.nextName = that.nextList[0].itemName;
4115
+ that.form.nextNodeId = that.nextList[0].list[0].nodeId;
4116
+ that.form.nextNodeName = that.nextList[0].list[0].nodeName;
4117
+ that.nextList[0].list[0].transactorInfos && (that.nextUserList = that.nextList[0].list[0].transactorInfos);
4118
+ if (that.nextUserList) {
4119
+ that.nextUserList.map(function (x) {
4120
+ x.checked = false;
4121
+ });
4122
+ }
4123
+ that.form.notificationMsg = res.results.notificationMsg;
4124
+ that.form.nodeId = res.results.nodeId;
4125
+ var defaultNotificationTypes = [];
4126
+ if (res.results.notificationTypes && that.defaultNotificationType.length == 0) {
4127
+ defaultNotificationTypes = res.results.notificationTypes.filter(function (x) {
4128
+ return x.defaultSelected == 'true';
4129
+ });
4130
+ }
4131
+ defaultNotificationTypes.map(function (x) {
4132
+ that.defaultNotificationType.push(x.notificationCode);
4133
+ });
4134
+ resolve();
4135
+ } else {
4136
+ that.$toast(res.message);
4137
+ reiect();
4138
+ }
4139
+ });
4140
+ });
4141
+ },
4142
+
4143
+ // 获取节点信息(获取节点属性及办理人)
4144
+ getPeopleObj: function getPeopleObj(res) {
4145
+ var _this3 = this;
5172
4146
 
5173
4147
  var _that = this;
5174
- this.$toast.loading({
5175
- message: '加载中...',
5176
- forbidClick: true,
5177
- loadingType: 'spinner',
5178
- overlay: true,
5179
- duration: 0
5180
- });
5181
4148
  Object(http["a" /* default */])({
5182
- url: _that.baseUrl ? _that.baseUrl + api["D" /* toTaskRejectHtml */] : api["D" /* toTaskRejectHtml */],
4149
+ url: _that.apiBaseUrl ? _that.apiBaseUrl + api["g" /* getNodeInfo */] : api["g" /* getNodeInfo */],
5183
4150
  params: {
5184
- pendingId: this.pendingId,
5185
- isSinglePage: false,
5186
- opinion: this.form.opinion,
5187
- userId: _that.userId
4151
+ params: {
4152
+ processDefinitionId: this.flowObj.processDefinitionId,
4153
+ nodeId: res,
4154
+ // taskId: this.processObj.taskId,
4155
+ userId: _that.userId
4156
+ }
5188
4157
  }
5189
4158
  }).then(function (res) {
5190
- if (res.status == 'success') {
5191
- var _res$data = res.data,
5192
- rejectTaskNodes = _res$data.rejectTaskNodes,
5193
- taskExamine = _res$data.taskExamine,
5194
- nodeInfoMap = _res$data.nodeInfoMap,
5195
- notificationMessageReadOnly = _res$data.notificationMessageReadOnly,
5196
- readOnlyNotificationType = _res$data.readOnlyNotificationType,
5197
- defaultNotificationMessage = _res$data.defaultNotificationMessage,
5198
- defaultNotificationType = _res$data.defaultNotificationType;
5199
-
5200
- _this2.$toast.clear();
5201
- _this2.notificationMessageReadOnly = notificationMessageReadOnly == 'true';
5202
- _this2.readOnlyNotificationType = readOnlyNotificationType;
5203
- _this2.isHiddenOftenOpinion = nodeInfoMap.nodeExtAttr.isHiddenOftenOpinion;
5204
- _this2.nodeDefaultRejectOpinion = nodeInfoMap.nodeExtAttr.nodeDefaultRejectOpinion;
5205
- _this2.isBanInputOpinion = nodeInfoMap.nodeExtAttr.isBanInputOpinion;
5206
- _this2.opinionHandleExplainText = nodeInfoMap.nodeExtAttr.opinionHandleExplainText;
5207
- if (!_this2.isBanInputOpinion) {
5208
- _this2.isBanInputOpinion = 0;
5209
- }
5210
- _this2.processObj = res.data;
5211
- _this2.form.notificationMsg = defaultNotificationMessage;
5212
- _this2.defaultNotificationType = defaultNotificationType.split(',');
5213
- var list = [];
5214
- if (rejectTaskNodes) {
5215
- for (var i in rejectTaskNodes) {
5216
- var obj = {
5217
- id: i,
5218
- name: rejectTaskNodes[i]
5219
- };
5220
- list.push(obj);
5221
- }
5222
- _this2.rejectObj = list;
5223
- if (_this2.rejectObj.length > 0) {
5224
- _this2.form.nextNodeId = _this2.rejectObj[0].id;
5225
- _this2.rejectObj.map(function (item) {
5226
- item.value = item.id;
5227
- });
4159
+ _this3.$toast.clear();
4160
+ if (res.rCode == 0) {
4161
+ _this3.peopleObj = res.results.nodeExtr;
4162
+ if (res.results.nodeExtr.userSelectionType) {
4163
+ _this3.treeType = res.results.nodeExtr.userSelectionType;
4164
+ if (res.results.nodeExtr) {
4165
+ var idStr = '';
4166
+ if (res.results.nodeExtr.isDefSelectedObj == 1 && _this3.nextUserList.length > 0) {
4167
+ _this3.nextUserList[0].checked = true;
4168
+ _this3.nextUserSelectList = [_this3.nextUserList[0]];
4169
+ idStr = _this3.nextUserSelectList[0].showid;
4170
+ }
4171
+ if (res.results.nodeExtr.isSelectedAllObj == 1 && _this3.nextUserList.length > 0) {
4172
+ _this3.nextUserSelectList = [];
4173
+ idStr = '';
4174
+ _this3.nextUserList.map(function (x) {
4175
+ x.checked = true;
4176
+ _this3.nextUserSelectList.push(x);
4177
+ idStr = idStr ? idStr + ',' + x.showid : idStr;
4178
+ });
4179
+ }
4180
+ _this3.form.nextUserId = idStr;
5228
4181
  }
4182
+ // this.nextUserSelectList = list.filter(x => x.showname && x.showid);
4183
+ _this3.getTreeChangeType();
5229
4184
  }
5230
4185
  } else {
5231
- _this2.$toast(message);
5232
- setTimeout(function () {
5233
- _this2.goBack;
5234
- }, 1000);
4186
+ _this3.$toast(res.message);
5235
4187
  }
5236
4188
  });
5237
4189
  }
5238
4190
  }
5239
4191
  });
5240
- // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=script&lang=js
5241
- /* harmony default export */ var components_Rejectvue_type_script_lang_js = (Rejectvue_type_script_lang_js);
5242
- // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue
4192
+ // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=script&lang=js
4193
+ /* harmony default export */ var components_StartFlowvue_type_script_lang_js = (StartFlowvue_type_script_lang_js);
4194
+ // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue
4195
+
4196
+
5243
4197
 
5244
4198
 
5245
4199
 
4200
+ /* normalize component */
4201
+
4202
+ var StartFlow_component = Object(componentNormalizer["a" /* default */])(
4203
+ components_StartFlowvue_type_script_lang_js,
4204
+ StartFlowvue_type_template_id_a96be16e_render,
4205
+ StartFlowvue_type_template_id_a96be16e_staticRenderFns,
4206
+ false,
4207
+ null,
4208
+ null,
4209
+ null
4210
+
4211
+ )
5246
4212
 
4213
+ /* harmony default export */ var StartFlow = (StartFlow_component.exports);
4214
+ // 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=681d0ef4
4215
+ var Handlevue_type_template_id_681d0ef4_render = function () {
4216
+ var _vm = this
4217
+ var _h = _vm.$createElement
4218
+ var _c = _vm._self._c || _h
4219
+ return _c(
4220
+ "div",
4221
+ { staticClass: "process-handle" },
4222
+ [
4223
+ _vm.handleFlow
4224
+ ? _c(
4225
+ "div",
4226
+ {
4227
+ staticStyle: {
4228
+ display: "flex",
4229
+ "flex-direction": "column",
4230
+ height: "100%",
4231
+ },
4232
+ },
4233
+ [
4234
+ _c(
4235
+ "div",
4236
+ { staticClass: "process-content" },
4237
+ [
4238
+ _c("div", { staticClass: "present-node" }, [
4239
+ _c("div", { staticClass: "label" }, [_vm._v("当前节点:")]),
4240
+ _c("div", [
4241
+ _vm._v(_vm._s(_vm.processObj.taskExamine.nodeName)),
4242
+ ]),
4243
+ ]),
4244
+ _c("Opinion", {
4245
+ attrs: {
4246
+ code: _vm.processObj.attachedCode,
4247
+ ownId: _vm.pendingId,
4248
+ esign: _vm.esign,
4249
+ esignLineWidth:
4250
+ _vm.$attrs["esign-line-width"] ||
4251
+ _vm.$attrs["esignLineWidth"],
4252
+ isOpinionRequired: _vm.isOpinionRequired,
4253
+ disabled: _vm.isBanInputOpinion != 0,
4254
+ baseUrl: _vm.baseUrl,
4255
+ isForceDisplayDefaultOptionForPrefix:
4256
+ _vm.isForceDisplayDefaultOptionForPrefix,
4257
+ placeholder: _vm.opinionHandleExplainText,
4258
+ nodeDefaultSubmitOpinion: _vm.nodeDefaultSubmitOpinion,
4259
+ nodeFixedOpinionSelectList:
4260
+ _vm.nodeFixedOpinionSelectList,
4261
+ isHiddenOftenOpinion:
4262
+ _vm.isHiddenOftenOpinion == 1 ? false : true,
4263
+ },
4264
+ on: { onInputOpintion: _vm.onInputOpintion },
4265
+ }),
4266
+ _vm.typeCode != "fenyue"
4267
+ ? _c("div", { staticClass: "special-box input-box" }, [
4268
+ _vm.isCanAddSign
4269
+ ? _c(
4270
+ "div",
4271
+ {
4272
+ staticClass: "item",
4273
+ class: {
4274
+ itemRadio: _vm.form.isAddSign === "1",
4275
+ },
4276
+ },
4277
+ [
4278
+ _c(
4279
+ "em-input",
4280
+ {
4281
+ attrs: {
4282
+ name: "radio",
4283
+ label: "是否增加本环节办理人",
4284
+ required: true,
4285
+ },
4286
+ },
4287
+ [
4288
+ _c(
4289
+ "template",
4290
+ { slot: "input" },
4291
+ [
4292
+ _c("em-radio-group", {
4293
+ attrs: {
4294
+ data: _vm.isAddSignList,
4295
+ direction: "horizontal",
4296
+ },
4297
+ model: {
4298
+ value: _vm.form.isAddSign,
4299
+ callback: function ($$v) {
4300
+ _vm.$set(
4301
+ _vm.form,
4302
+ "isAddSign",
4303
+ $$v
4304
+ )
4305
+ },
4306
+ expression: "form.isAddSign",
4307
+ },
4308
+ }),
4309
+ ],
4310
+ 1
4311
+ ),
4312
+ ],
4313
+ 2
4314
+ ),
4315
+ ],
4316
+ 1
4317
+ )
4318
+ : _vm._e(),
4319
+ _vm.form.isAddSign === "1"
4320
+ ? _c(
4321
+ "div",
4322
+ {
4323
+ staticClass: "item item-user",
4324
+ attrs: { label: "增加办理人" },
4325
+ },
4326
+ [
4327
+ _c("em-selector", {
4328
+ attrs: {
4329
+ label: "增加办理人",
4330
+ required: "",
4331
+ multiple: "",
4332
+ isAllCheck: _vm.isAllCheck,
4333
+ baseUrl: _vm.apiBaseUrl,
4334
+ paddingTop: _vm.paddingTop,
4335
+ objType: _vm.objType,
4336
+ },
4337
+ on: {
4338
+ change: function ($event) {
4339
+ _vm.disposeAppUser(
4340
+ $event,
4341
+ "addSignUserSelectList"
4342
+ )
4343
+ },
4344
+ },
4345
+ model: {
4346
+ value: _vm.addSignUserSelectList,
4347
+ callback: function ($$v) {
4348
+ _vm.addSignUserSelectList = $$v
4349
+ },
4350
+ expression: "addSignUserSelectList",
4351
+ },
4352
+ }),
4353
+ _vm.isCanPreAddSign
4354
+ ? _c(
4355
+ "em-input",
4356
+ { attrs: { label: "加签模式" } },
4357
+ [
4358
+ _c(
4359
+ "template",
4360
+ { slot: "input" },
4361
+ [
4362
+ _c("em-radio-group", {
4363
+ attrs: {
4364
+ direction: "horizontal",
4365
+ data: _vm.AddSignList,
4366
+ },
4367
+ model: {
4368
+ value: _vm.form.addSignMode,
4369
+ callback: function ($$v) {
4370
+ _vm.$set(
4371
+ _vm.form,
4372
+ "addSignMode",
4373
+ $$v
4374
+ )
4375
+ },
4376
+ expression: "form.addSignMode",
4377
+ },
4378
+ }),
4379
+ ],
4380
+ 1
4381
+ ),
4382
+ ],
4383
+ 2
4384
+ )
4385
+ : _vm._e(),
4386
+ ],
4387
+ 1
4388
+ )
4389
+ : _vm._e(),
4390
+ _vm.isCanRemoveSign
4391
+ ? _c(
4392
+ "div",
4393
+ {
4394
+ staticClass: "item",
4395
+ class: {
4396
+ itemRadio: _vm.form.isRemoveSign === "1",
4397
+ },
4398
+ },
4399
+ [
4400
+ _c(
4401
+ "em-input",
4402
+ {
4403
+ attrs: {
4404
+ name: "radio",
4405
+ label: "是否减签",
4406
+ required: true,
4407
+ },
4408
+ },
4409
+ [
4410
+ _c(
4411
+ "template",
4412
+ { slot: "input" },
4413
+ [
4414
+ _c("em-radio-group", {
4415
+ attrs: {
4416
+ data: _vm.isAddSignList,
4417
+ direction: "horizontal",
4418
+ },
4419
+ model: {
4420
+ value: _vm.form.isRemoveSign,
4421
+ callback: function ($$v) {
4422
+ _vm.$set(
4423
+ _vm.form,
4424
+ "isRemoveSign",
4425
+ $$v
4426
+ )
4427
+ },
4428
+ expression: "form.isRemoveSign",
4429
+ },
4430
+ }),
4431
+ ],
4432
+ 1
4433
+ ),
4434
+ ],
4435
+ 2
4436
+ ),
4437
+ ],
4438
+ 1
4439
+ )
4440
+ : _vm._e(),
4441
+ _vm.isSpecial && _vm.typeCode != "fenyue"
4442
+ ? _c(
4443
+ "div",
4444
+ [
4445
+ _vm.form.isRemoveSign === "1"
4446
+ ? _c(
4447
+ "div",
4448
+ {
4449
+ staticClass: "item item-user",
4450
+ attrs: { label: "减少办理人" },
4451
+ },
4452
+ [
4453
+ _c("em-selector", {
4454
+ attrs: {
4455
+ label: "减少办理人",
4456
+ isAllCheck: _vm.isAllCheck,
4457
+ required: "",
4458
+ paddingTop: _vm.paddingTop,
4459
+ multiple: "",
4460
+ baseUrl: _vm.apiBaseUrl,
4461
+ objType: _vm.objType,
4462
+ },
4463
+ on: {
4464
+ change: function ($event) {
4465
+ _vm.disposeAppUser(
4466
+ $event,
4467
+ "removeSignUserSelectList"
4468
+ )
4469
+ },
4470
+ },
4471
+ model: {
4472
+ value: _vm.removeSignUserSelectList,
4473
+ callback: function ($$v) {
4474
+ _vm.removeSignUserSelectList = $$v
4475
+ },
4476
+ expression:
4477
+ "removeSignUserSelectList",
4478
+ },
4479
+ }),
4480
+ ],
4481
+ 1
4482
+ )
4483
+ : _vm._e(),
4484
+ _vm.form.isRemoveSign !== "1" &&
4485
+ _vm.form.isAddSign !== "1" &&
4486
+ !_vm.isHiddenNextStepInfo
4487
+ ? _c("div", [
4488
+ _c(
4489
+ "div",
4490
+ {
4491
+ directives: [
4492
+ {
4493
+ name: "show",
4494
+ rawName: "v-show",
4495
+ value:
4496
+ _vm.isNextBox || _vm.isReject,
4497
+ expression:
4498
+ "isNextBox || isReject",
4499
+ },
4500
+ ],
4501
+ staticClass: "next-box",
4502
+ },
4503
+ [
4504
+ !_vm.isHiddenNextStepInfo &&
4505
+ _vm.isChooseNextNode == 1
4506
+ ? _c(
4507
+ "div",
4508
+ {
4509
+ staticClass: "item next-step",
4510
+ },
4511
+ [
4512
+ _c(
4513
+ "em-input",
4514
+ {
4515
+ staticClass:
4516
+ "em-flow-next-steps",
4517
+ attrs: {
4518
+ value: "下步操作",
4519
+ label: "下步操作",
4520
+ required: "",
4521
+ disabled: true,
4522
+ "label-position": "top",
4523
+ },
4524
+ },
4525
+ [
4526
+ _c(
4527
+ "template",
4528
+ { slot: "input" },
4529
+ _vm._l(
4530
+ _vm.taskOperations,
4531
+ function (item) {
4532
+ return _c(
4533
+ "span",
4534
+ {
4535
+ key: item.key,
4536
+ staticClass:
4537
+ "em-flow-tag",
4538
+ class: {
4539
+ "em-flow-tag-active":
4540
+ _vm.tagKey ===
4541
+ item.key,
4542
+ },
4543
+ on: {
4544
+ click:
4545
+ function (
4546
+ $event
4547
+ ) {
4548
+ _vm.changeNextOperate(
4549
+ item
4550
+ )
4551
+ },
4552
+ },
4553
+ },
4554
+ [
4555
+ _vm._v(
4556
+ "\n " +
4557
+ _vm._s(
4558
+ item.value
4559
+ ) +
4560
+ "\n "
4561
+ ),
4562
+ ]
4563
+ )
4564
+ }
4565
+ ),
4566
+ 0
4567
+ ),
4568
+ ],
4569
+ 2
4570
+ ),
4571
+ ],
4572
+ 1
4573
+ )
4574
+ : _vm._e(),
4575
+ _vm.nodeList &&
4576
+ _vm.nodeList.length > 0 &&
4577
+ !_vm.isReject &&
4578
+ _vm.isShowNode
4579
+ ? _c(
4580
+ "div",
4581
+ { staticClass: "item" },
4582
+ [
4583
+ _c("em-picker", {
4584
+ attrs: {
4585
+ title: "下步节点",
4586
+ label: "下步节点",
4587
+ required: "",
4588
+ "show-toolbar": "",
4589
+ "label-width": "100%",
4590
+ columns: _vm.nodeList,
4591
+ "value-key": "nodeId",
4592
+ "label-key": "nodeName",
4593
+ },
4594
+ on: {
4595
+ confirm:
4596
+ _vm.onConfirmNextNode,
4597
+ },
4598
+ model: {
4599
+ value:
4600
+ _vm.form.nextNodeName,
4601
+ callback: function ($$v) {
4602
+ _vm.$set(
4603
+ _vm.form,
4604
+ "nextNodeName",
4605
+ $$v
4606
+ )
4607
+ },
4608
+ expression:
4609
+ "form.nextNodeName",
4610
+ },
4611
+ }),
4612
+ ],
4613
+ 1
4614
+ )
4615
+ : _vm._e(),
4616
+ ]
4617
+ ),
4618
+ _vm.countersignaturetypeCode
4619
+ ? _c(
4620
+ "div",
4621
+ { staticClass: "item" },
4622
+ [
4623
+ _c("van-field", {
4624
+ attrs: {
4625
+ label: "处理方式",
4626
+ disabled: true,
4627
+ },
4628
+ model: {
4629
+ value:
4630
+ _vm.countersignaturetypeText,
4631
+ callback: function ($$v) {
4632
+ _vm.countersignaturetypeText =
4633
+ $$v
4634
+ },
4635
+ expression:
4636
+ "countersignaturetypeText",
4637
+ },
4638
+ }),
4639
+ ],
4640
+ 1
4641
+ )
4642
+ : _vm._e(),
4643
+ _vm.isNextUser
4644
+ ? _c(
4645
+ "div",
4646
+ { staticClass: "item item-user" },
4647
+ [
4648
+ _c("em-selector", {
4649
+ attrs: {
4650
+ multiple: !_vm.isRadio,
4651
+ objType: _vm.objType,
4652
+ isAllCheck: _vm.isAllCheck,
4653
+ required: "",
4654
+ paddingTop: _vm.paddingTop,
4655
+ nextUserList:
4656
+ _vm.nextUserList,
4657
+ baseUrl: _vm.apiBaseUrl,
4658
+ tabs: "employee,persongroup",
4659
+ disabled:
4660
+ !_vm.isCustomUser ||
4661
+ _vm.isCurrentNodeForbiddenChangeCandidate ==
4662
+ 1,
4663
+ selectDisabled:
4664
+ _vm.isCurrentNodeForbiddenChangeCandidate ==
4665
+ 1,
4666
+ placeholder:
4667
+ "请选择下步办理人",
4668
+ param: {
4669
+ pid: _vm.pid,
4670
+ },
4671
+ label: "下步办理人",
4672
+ },
4673
+ on: {
4674
+ change: function ($event) {
4675
+ _vm.disposeAppUser(
4676
+ $event,
4677
+ "nextUserSelectList"
4678
+ )
4679
+ },
4680
+ },
4681
+ model: {
4682
+ value: _vm.nextUserSelectList,
4683
+ callback: function ($$v) {
4684
+ _vm.nextUserSelectList = $$v
4685
+ },
4686
+ expression:
4687
+ "nextUserSelectList",
4688
+ },
4689
+ }),
4690
+ ],
4691
+ 1
4692
+ )
4693
+ : _vm._e(),
4694
+ _vm.isDealRole
4695
+ ? _c(
4696
+ "div",
4697
+ { staticClass: "item" },
4698
+ [
4699
+ _c("em-input", {
4700
+ attrs: {
4701
+ value: "办理角色",
4702
+ label: "办理角色",
4703
+ disabled: true,
4704
+ placeholder: "请选择",
4705
+ },
4706
+ }),
4707
+ ],
4708
+ 1
4709
+ )
4710
+ : _vm._e(),
4711
+ _vm.isDealObject
4712
+ ? _c(
4713
+ "div",
4714
+ { staticClass: "item" },
4715
+ [
4716
+ _c("em-input", {
4717
+ attrs: {
4718
+ value: "办理对象",
4719
+ label: "办理对象",
4720
+ disabled: true,
4721
+ placeholder: "请选择",
4722
+ },
4723
+ }),
4724
+ ],
4725
+ 1
4726
+ )
4727
+ : _vm._e(),
4728
+ _vm.isHideCurrentOrg
4729
+ ? _c(
4730
+ "div",
4731
+ { staticClass: "item" },
4732
+ [
4733
+ _c("em-selector", {
4734
+ attrs: {
4735
+ multiple: "",
4736
+ isAllCheck: _vm.isAllCheck,
4737
+ paddingTop: _vm.paddingTop,
4738
+ objType: "enterprise",
4739
+ tabs: "department,myemployee",
4740
+ param: {
4741
+ pid: _vm.orgId,
4742
+ },
4743
+ baseUrl: _vm.apiBaseUrl,
4744
+ isOtherUnit: false,
4745
+ label: _vm.currentOrgName
4746
+ ? _vm.currentOrgName
4747
+ : "本单位",
4748
+ },
4749
+ on: {
4750
+ change: function ($event) {
4751
+ _vm.disposeAppUnit(
4752
+ $event,
4753
+ "nextCurrentOrgObjSelect"
4754
+ )
4755
+ },
4756
+ },
4757
+ model: {
4758
+ value:
4759
+ _vm.nextCurrentOrgObjSelect,
4760
+ callback: function ($$v) {
4761
+ _vm.nextCurrentOrgObjSelect =
4762
+ $$v
4763
+ },
4764
+ expression:
4765
+ "nextCurrentOrgObjSelect",
4766
+ },
4767
+ }),
4768
+ ],
4769
+ 1
4770
+ )
4771
+ : _vm._e(),
4772
+ _vm.isHideOtherOrg
4773
+ ? _c(
4774
+ "div",
4775
+ { staticClass: "item" },
4776
+ [
4777
+ _c("em-selector", {
4778
+ attrs: {
4779
+ multiple: "",
4780
+ isAllCheck: _vm.isAllCheck,
4781
+ paddingTop: _vm.paddingTop,
4782
+ objType: "enterprise",
4783
+ param: {
4784
+ pid: "root",
4785
+ },
4786
+ tabs: "enterprise",
4787
+ baseUrl: _vm.apiBaseUrl,
4788
+ isOtherUnit: true,
4789
+ label: _vm.otherOrgName
4790
+ ? _vm.otherOrgName
4791
+ : "外单位",
4792
+ },
4793
+ on: {
4794
+ change: function ($event) {
4795
+ _vm.disposeAppUnit(
4796
+ $event,
4797
+ "nextOtherOrgObjSelect"
4798
+ )
4799
+ },
4800
+ },
4801
+ model: {
4802
+ value:
4803
+ _vm.nextOtherOrgObjSelect,
4804
+ callback: function ($$v) {
4805
+ _vm.nextOtherOrgObjSelect =
4806
+ $$v
4807
+ },
4808
+ expression:
4809
+ "nextOtherOrgObjSelect",
4810
+ },
4811
+ }),
4812
+ ],
4813
+ 1
4814
+ )
4815
+ : _vm._e(),
4816
+ _vm.isMainSubProcess &&
4817
+ _vm.isNodeShowProcess
4818
+ ? _c(
4819
+ "div",
4820
+ { staticClass: "item" },
4821
+ [
4822
+ _c("em-picker", {
4823
+ attrs: {
4824
+ label: "主办",
4825
+ title: "主办",
4826
+ placeholder: "请选择主办",
4827
+ "show-toolbar": "",
4828
+ disabled:
4829
+ _vm.subProcessColumns
4830
+ .length == 0,
4831
+ columns:
4832
+ _vm.subProcessColumns,
4833
+ },
4834
+ model: {
4835
+ value: _vm.form.mainSubId,
4836
+ callback: function ($$v) {
4837
+ _vm.$set(
4838
+ _vm.form,
4839
+ "mainSubId",
4840
+ $$v
4841
+ )
4842
+ },
4843
+ expression: "form.mainSubId",
4844
+ },
4845
+ }),
4846
+ ],
4847
+ 1
4848
+ )
4849
+ : _vm._e(),
4850
+ _vm.isHandleExplain
4851
+ ? _c(
4852
+ "div",
4853
+ { staticClass: "item" },
4854
+ [
4855
+ _c("van-field", {
4856
+ attrs: {
4857
+ value: "办理说明",
4858
+ label: "办理说明",
4859
+ disabled: true,
4860
+ placeholder: "请选择",
4861
+ },
4862
+ }),
4863
+ ],
4864
+ 1
4865
+ )
4866
+ : _vm._e(),
4867
+ ])
4868
+ : _vm._e(),
4869
+ _vm.form.isRemoveSign !== "1" &&
4870
+ _vm.form.isAddSign !== "1" &&
4871
+ _vm.isTaskread
4872
+ ? _c("div", { staticClass: "item" }, [
4873
+ _c(
4874
+ "div",
4875
+ { staticClass: "item item-user" },
4876
+ [
4877
+ _c("em-selector", {
4878
+ attrs: {
4879
+ multiple: "",
4880
+ isAllCheck: _vm.isAllCheck,
4881
+ objType: _vm.objType,
4882
+ param: {
4883
+ pid: _vm.pid,
4884
+ },
4885
+ paddingTop: _vm.paddingTop,
4886
+ baseUrl: _vm.apiBaseUrl,
4887
+ tabs: "employee,persongroup",
4888
+ label: "分阅用户",
4889
+ },
4890
+ on: {
4891
+ change: function ($event) {
4892
+ _vm.disposeAppUser(
4893
+ $event,
4894
+ "nextReadUserSelectList"
4895
+ )
4896
+ },
4897
+ },
4898
+ model: {
4899
+ value: _vm.nextReadUserSelectList,
4900
+ callback: function ($$v) {
4901
+ _vm.nextReadUserSelectList = $$v
4902
+ },
4903
+ expression:
4904
+ "nextReadUserSelectList",
4905
+ },
4906
+ }),
4907
+ ],
4908
+ 1
4909
+ ),
4910
+ ])
4911
+ : _vm._e(),
4912
+ _vm.isLimitedTimeHandling
4913
+ ? _c(
4914
+ "div",
4915
+ { staticClass: "item" },
4916
+ [
4917
+ _c(
4918
+ "em-input",
4919
+ {
4920
+ attrs: {
4921
+ name: "radio",
4922
+ label: "是否限时办理",
4923
+ required: true,
4924
+ },
4925
+ },
4926
+ [
4927
+ _c(
4928
+ "template",
4929
+ { slot: "input" },
4930
+ [
4931
+ _c("em-radio-group", {
4932
+ attrs: {
4933
+ data: _vm.isAddSignList,
4934
+ direction: "horizontal",
4935
+ },
4936
+ model: {
4937
+ value:
4938
+ _vm.form.isLimitedTime,
4939
+ callback: function ($$v) {
4940
+ _vm.$set(
4941
+ _vm.form,
4942
+ "isLimitedTime",
4943
+ $$v
4944
+ )
4945
+ },
4946
+ expression:
4947
+ "form.isLimitedTime",
4948
+ },
4949
+ }),
4950
+ ],
4951
+ 1
4952
+ ),
4953
+ ],
4954
+ 2
4955
+ ),
4956
+ ],
4957
+ 1
4958
+ )
4959
+ : _vm._e(),
4960
+ _vm.form.isLimitedTime === "1"
4961
+ ? _c(
4962
+ "div",
4963
+ { staticClass: "item item-limited-time" },
4964
+ [
4965
+ _c(
4966
+ "em-input",
4967
+ {
4968
+ attrs: {
4969
+ name: "radio",
4970
+ label: "限时办理时间",
4971
+ required: true,
4972
+ },
4973
+ },
4974
+ [
4975
+ _c("template", { slot: "input" }, [
4976
+ _c(
4977
+ "div",
4978
+ {
4979
+ staticClass:
4980
+ "item-limited-time-content",
4981
+ },
4982
+ [
4983
+ _c(
4984
+ "div",
4985
+ [
4986
+ _c("em-input", {
4987
+ attrs: {
4988
+ placeholder:
4989
+ "请输入天数",
4990
+ type: "digit",
4991
+ },
4992
+ model: {
4993
+ value:
4994
+ _vm.form
4995
+ .limitedTimeDay,
4996
+ callback: function (
4997
+ $$v
4998
+ ) {
4999
+ _vm.$set(
5000
+ _vm.form,
5001
+ "limitedTimeDay",
5002
+ $$v
5003
+ )
5004
+ },
5005
+ expression:
5006
+ "form.limitedTimeDay",
5007
+ },
5008
+ }),
5009
+ ],
5010
+ 1
5011
+ ),
5012
+ _c(
5013
+ "div",
5014
+ { staticClass: "day-text" },
5015
+ [_vm._v("天")]
5016
+ ),
5017
+ _c(
5018
+ "div",
5019
+ [
5020
+ _c("em-input", {
5021
+ attrs: {
5022
+ value:
5023
+ _vm.form
5024
+ .limitedTimeHour,
5025
+ clickable: "",
5026
+ readonly: "",
5027
+ placeholder:
5028
+ "请选择小时",
5029
+ },
5030
+ on: {
5031
+ click: function (
5032
+ $event
5033
+ ) {
5034
+ _vm.openTimeList(
5035
+ "limitedTimeHour"
5036
+ )
5037
+ },
5038
+ },
5039
+ }),
5040
+ ],
5041
+ 1
5042
+ ),
5043
+ _c(
5044
+ "div",
5045
+ { staticClass: "day-text" },
5046
+ [_vm._v("时")]
5047
+ ),
5048
+ ]
5049
+ ),
5050
+ ]),
5051
+ ],
5052
+ 2
5053
+ ),
5054
+ ],
5055
+ 1
5056
+ )
5057
+ : _vm._e(),
5058
+ _vm.form.isLimitedTime === "1"
5059
+ ? _c(
5060
+ "div",
5061
+ { staticClass: "item item-limited-time" },
5062
+ [
5063
+ _c(
5064
+ "em-input",
5065
+ {
5066
+ attrs: {
5067
+ name: "radio",
5068
+ label: "提前通知时间",
5069
+ required: true,
5070
+ },
5071
+ },
5072
+ [
5073
+ _c("template", { slot: "input" }, [
5074
+ _c(
5075
+ "div",
5076
+ {
5077
+ staticClass:
5078
+ "item-limited-time-content",
5079
+ },
5080
+ [
5081
+ _c(
5082
+ "div",
5083
+ [
5084
+ _c("em-input", {
5085
+ attrs: {
5086
+ placeholder:
5087
+ "请输入天数",
5088
+ type: "digit",
5089
+ },
5090
+ model: {
5091
+ value:
5092
+ _vm.form
5093
+ .advanceNoticeDay,
5094
+ callback: function (
5095
+ $$v
5096
+ ) {
5097
+ _vm.$set(
5098
+ _vm.form,
5099
+ "advanceNoticeDay",
5100
+ $$v
5101
+ )
5102
+ },
5103
+ expression:
5104
+ "form.advanceNoticeDay",
5105
+ },
5106
+ }),
5107
+ ],
5108
+ 1
5109
+ ),
5110
+ _c(
5111
+ "div",
5112
+ { staticClass: "day-text" },
5113
+ [_vm._v("天")]
5114
+ ),
5115
+ _c(
5116
+ "div",
5117
+ [
5118
+ _c("em-input", {
5119
+ attrs: {
5120
+ value:
5121
+ _vm.form
5122
+ .advanceNoticeHour,
5123
+ clickable: "",
5124
+ placeholder:
5125
+ "请选择小时",
5126
+ readonly: "",
5127
+ },
5128
+ on: {
5129
+ click: function (
5130
+ $event
5131
+ ) {
5132
+ _vm.openTimeList(
5133
+ "advanceNoticeHour"
5134
+ )
5135
+ },
5136
+ },
5137
+ }),
5138
+ ],
5139
+ 1
5140
+ ),
5141
+ _c(
5142
+ "div",
5143
+ { staticClass: "day-text" },
5144
+ [_vm._v("时")]
5145
+ ),
5146
+ ]
5147
+ ),
5148
+ ]),
5149
+ ],
5150
+ 2
5151
+ ),
5152
+ ],
5153
+ 1
5154
+ )
5155
+ : _vm._e(),
5156
+ _c(
5157
+ "van-popup",
5158
+ {
5159
+ attrs: { round: "", position: "bottom" },
5160
+ model: {
5161
+ value: _vm.showTimeList,
5162
+ callback: function ($$v) {
5163
+ _vm.showTimeList = $$v
5164
+ },
5165
+ expression: "showTimeList",
5166
+ },
5167
+ },
5168
+ [
5169
+ _c("van-picker", {
5170
+ attrs: {
5171
+ "show-toolbar": "",
5172
+ columns: _vm.timeList,
5173
+ },
5174
+ on: {
5175
+ cancel: function ($event) {
5176
+ _vm.showTimeList = false
5177
+ },
5178
+ confirm: _vm.onConfirmTimeList,
5179
+ },
5180
+ }),
5181
+ ],
5182
+ 1
5183
+ ),
5184
+ _vm.isLimitedTimeHandling
5185
+ ? _c(
5186
+ "div",
5187
+ { staticClass: "item-msg item-msg1" },
5188
+ [
5189
+ _c("Message", {
5190
+ ref: "message",
5191
+ attrs: {
5192
+ label: "催办通知方式",
5193
+ code: "notification_type",
5194
+ baseUrl: _vm.baseUrl,
5195
+ required: true,
5196
+ },
5197
+ on: {
5198
+ onInputMsg: _vm.onInputMsgUrge,
5199
+ },
5200
+ }),
5201
+ ],
5202
+ 1
5203
+ )
5204
+ : _vm._e(),
5205
+ _c(
5206
+ "div",
5207
+ { staticClass: "item-msg item-msg2" },
5208
+ [
5209
+ _c("Message", {
5210
+ ref: "message",
5211
+ attrs: {
5212
+ code: "notification_type",
5213
+ baseUrl: _vm.baseUrl,
5214
+ readOnlyNotificationType:
5215
+ _vm.readOnlyNotificationType,
5216
+ notificationMessageReadOnly:
5217
+ _vm.notificationMessageReadOnly,
5218
+ defaultNotificationType:
5219
+ _vm.defaultNotificationType,
5220
+ defaultNotificationMsg:
5221
+ _vm.form.notificationMsg,
5222
+ },
5223
+ on: { onInputMsg: _vm.onInputMsg },
5224
+ }),
5225
+ ],
5226
+ 1
5227
+ ),
5228
+ ],
5229
+ 1
5230
+ )
5231
+ : _vm._e(),
5232
+ ])
5233
+ : _vm._e(),
5234
+ ],
5235
+ 1
5236
+ ),
5237
+ _vm.isSubmitButtonShowAgreeAndDisagree
5238
+ ? _c("div", { staticClass: "btn-list" }, [
5239
+ _c(
5240
+ "div",
5241
+ {
5242
+ staticClass: "btn",
5243
+ on: {
5244
+ click: function ($event) {
5245
+ _vm.handleFlow = false
5246
+ },
5247
+ },
5248
+ },
5249
+ [_vm._v("不同意")]
5250
+ ),
5251
+ _c(
5252
+ "div",
5253
+ {
5254
+ staticClass: "btn",
5255
+ on: {
5256
+ click: function ($event) {
5257
+ _vm.onSubmit()
5258
+ },
5259
+ },
5260
+ },
5261
+ [_vm._v("同意")]
5262
+ ),
5263
+ ])
5264
+ : _c("div", { staticClass: "btn-list" }, [
5265
+ _c(
5266
+ "div",
5267
+ { staticClass: "btn", on: { click: _vm.navigateBack } },
5268
+ [_vm._v("取消")]
5269
+ ),
5270
+ _c(
5271
+ "div",
5272
+ {
5273
+ staticClass: "btn",
5274
+ on: {
5275
+ click: function ($event) {
5276
+ _vm.onSubmit()
5277
+ },
5278
+ },
5279
+ },
5280
+ [_vm._v("确定")]
5281
+ ),
5282
+ ]),
5283
+ ]
5284
+ )
5285
+ : _c("Reject", {
5286
+ attrs: {
5287
+ pendingId: _vm.pendingId,
5288
+ "before-submit": _vm.beforeSubmit,
5289
+ },
5290
+ on: {
5291
+ close: function ($event) {
5292
+ _vm.handleFlow = true
5293
+ },
5294
+ },
5295
+ }),
5296
+ ],
5297
+ 1
5298
+ )
5299
+ }
5300
+ var Handlevue_type_template_id_681d0ef4_staticRenderFns = []
5301
+ Handlevue_type_template_id_681d0ef4_render._withStripped = true
5247
5302
 
5248
- /* normalize component */
5249
5303
 
5250
- var Reject_component = Object(componentNormalizer["a" /* default */])(
5251
- components_Rejectvue_type_script_lang_js,
5252
- Rejectvue_type_template_id_4fdaf365_render,
5253
- Rejectvue_type_template_id_4fdaf365_staticRenderFns,
5254
- false,
5255
- null,
5256
- null,
5257
- null
5258
-
5259
- )
5304
+ // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=681d0ef4
5260
5305
 
5261
- /* harmony default export */ var Reject = (Reject_component.exports);
5262
- // 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
5263
- var ProcessSettingsvue_type_template_id_50a06dbd_render = function () {
5306
+ // 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
5307
+ var Rejectvue_type_template_id_4fdaf365_render = function () {
5264
5308
  var _vm = this
5265
5309
  var _h = _vm.$createElement
5266
5310
  var _c = _vm._self._c || _h
5267
- return _c(
5268
- "div",
5269
- { staticClass: "em-flow-setting" },
5270
- [
5311
+ return _c("div", { staticClass: "process-reject" }, [
5312
+ _c(
5313
+ "div",
5314
+ { staticClass: "reject-content" },
5315
+ [
5316
+ _c("div", { staticClass: "present-node" }, [
5317
+ _c("div", { staticClass: "label" }, [_vm._v("当前节点:")]),
5318
+ _c("div", [_vm._v(_vm._s(_vm.processObj.taskExamine.nodeName))]),
5319
+ ]),
5320
+ _c("Opinion", {
5321
+ attrs: {
5322
+ code: _vm.processObj.attachedCode,
5323
+ ownId: _vm.$route.query.pendingId,
5324
+ esign: _vm.esign,
5325
+ esignLineWidth:
5326
+ _vm.$attrs["esign-line-width"] || _vm.$attrs["esignLineWidth"],
5327
+ placeholder: _vm.opinionHandleExplainText,
5328
+ isOpinionRequired: _vm.isBanInputOpinion,
5329
+ disabled: _vm.isBanInputOpinion != 0,
5330
+ baseUrl: _vm.baseUrl,
5331
+ isHiddenOftenOpinion: _vm.isHiddenOftenOpinion == 1 ? false : true,
5332
+ },
5333
+ on: { onInputOpintion: _vm.onInputOpintion },
5334
+ }),
5335
+ _c(
5336
+ "div",
5337
+ { staticClass: "input-box" },
5338
+ [
5339
+ _c(
5340
+ "div",
5341
+ { staticClass: "item" },
5342
+ [
5343
+ _c(
5344
+ "em-input",
5345
+ { attrs: { label: "驳回对象" } },
5346
+ [
5347
+ _c(
5348
+ "template",
5349
+ { slot: "input" },
5350
+ [
5351
+ _c("em-radio-group", {
5352
+ attrs: { data: _vm.rejectObj },
5353
+ model: {
5354
+ value: _vm.form.nextNodeId,
5355
+ callback: function ($$v) {
5356
+ _vm.$set(_vm.form, "nextNodeId", $$v)
5357
+ },
5358
+ expression: "form.nextNodeId",
5359
+ },
5360
+ }),
5361
+ ],
5362
+ 1
5363
+ ),
5364
+ ],
5365
+ 2
5366
+ ),
5367
+ ],
5368
+ 1
5369
+ ),
5370
+ _c("Message", {
5371
+ ref: "message",
5372
+ attrs: {
5373
+ code: "notification_type",
5374
+ baseUrl: _vm.baseUrl,
5375
+ readOnlyNotificationType: _vm.readOnlyNotificationType,
5376
+ notificationMessageReadOnly: _vm.notificationMessageReadOnly,
5377
+ defaultNotificationType: _vm.defaultNotificationType,
5378
+ defaultNotificationMsg: _vm.form.notificationMsg,
5379
+ type: _vm.type,
5380
+ },
5381
+ on: { onInputMsg: _vm.onInputMsg },
5382
+ }),
5383
+ ],
5384
+ 1
5385
+ ),
5386
+ ],
5387
+ 1
5388
+ ),
5389
+ _c("div", { staticClass: "btn-list" }, [
5390
+ _c("div", { staticClass: "btn", on: { click: _vm.goBack } }, [
5391
+ _vm._v("取消"),
5392
+ ]),
5271
5393
  _c(
5272
- "van-collapse",
5394
+ "div",
5273
5395
  {
5274
- model: {
5275
- value: _vm.active,
5276
- callback: function ($$v) {
5277
- _vm.active = $$v
5396
+ staticClass: "btn",
5397
+ on: {
5398
+ click: function ($event) {
5399
+ _vm.onSubmit()
5278
5400
  },
5279
- expression: "active",
5280
5401
  },
5281
5402
  },
5282
- [
5283
- _c(
5284
- "van-collapse-item",
5285
- {
5286
- attrs: { title: "预设自定义节点信息(折叠不作处理)", name: "1" },
5287
- },
5288
- _vm._l(_vm.flowList, function (item, index) {
5289
- return _c(
5290
- "div",
5291
- { key: index, staticClass: "em-flow-setting-item" },
5292
- [
5293
- _c("em-picker", {
5294
- attrs: {
5295
- title: "节点" + (index + 1),
5296
- label: "节点" + (index + 1),
5297
- "show-toolbar": "",
5298
- columns: item.nodeList,
5299
- "value-key": "nodeId",
5300
- "label-key": "nodeName",
5301
- },
5302
- on: {
5303
- confirm: function ($event) {
5304
- _vm.onConfirmNextNode($event, index)
5305
- },
5306
- },
5307
- model: {
5308
- value: item.nodeId,
5309
- callback: function ($$v) {
5310
- _vm.$set(item, "nodeId", $$v)
5311
- },
5312
- expression: "item.nodeId",
5313
- },
5314
- }),
5315
- _c("em-selector", {
5316
- directives: [
5317
- {
5318
- name: "show",
5319
- rawName: "v-show",
5320
- value: item.showSelectUser,
5321
- expression: "item.showSelectUser",
5322
- },
5323
- ],
5324
- attrs: {
5325
- multiple: !item.isRadio,
5326
- nextUserList: item.nextUserList,
5327
- label: "办理人",
5328
- objType: item.objType,
5329
- param: {
5330
- pid: item.pid,
5331
- },
5332
- required: item.nodeId != "",
5333
- tabs: "employee,persongroup",
5334
- baseUrl: _vm.apiBaseUrl,
5335
- paddingTop: _vm.paddingTop,
5336
- },
5337
- model: {
5338
- value: item.nextUserSelectList,
5339
- callback: function ($$v) {
5340
- _vm.$set(item, "nextUserSelectList", $$v)
5341
- },
5342
- expression: "item.nextUserSelectList",
5343
- },
5344
- }),
5345
- _c("van-icon", {
5346
- directives: [
5347
- {
5348
- name: "show",
5349
- rawName: "v-show",
5350
- value: index + 1 != _vm.flowList.length,
5351
- expression: "index + 1 != flowList.length",
5352
- },
5353
- ],
5354
- staticStyle: { "margin-top": "10px" },
5355
- attrs: { name: "down" },
5356
- }),
5357
- ],
5358
- 1
5359
- )
5360
- }),
5361
- 0
5362
- ),
5363
- ],
5364
- 1
5403
+ [_vm._v("确定")]
5365
5404
  ),
5366
- ],
5367
- 1
5368
- )
5405
+ ]),
5406
+ ])
5369
5407
  }
5370
- var ProcessSettingsvue_type_template_id_50a06dbd_staticRenderFns = []
5371
- ProcessSettingsvue_type_template_id_50a06dbd_render._withStripped = true
5372
-
5408
+ var Rejectvue_type_template_id_4fdaf365_staticRenderFns = []
5409
+ Rejectvue_type_template_id_4fdaf365_render._withStripped = true
5373
5410
 
5374
- // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue?vue&type=template&id=50a06dbd
5375
5411
 
5376
- // 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
5377
- 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; };
5412
+ // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=template&id=4fdaf365
5378
5413
 
5379
- var _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; };
5414
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=script&lang=js
5415
+ var Rejectvue_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; };
5380
5416
 
5381
5417
  //
5382
5418
  //
@@ -5422,174 +5458,122 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5422
5458
  //
5423
5459
  //
5424
5460
  //
5461
+ //
5462
+ //
5425
5463
 
5426
5464
 
5427
5465
 
5428
- /* harmony default export */ var ProcessSettingsvue_type_script_lang_js = ({
5466
+
5467
+
5468
+
5469
+ /* harmony default export */ var Rejectvue_type_script_lang_js = ({
5470
+ name: 'Reject',
5429
5471
  props: {
5430
- processDefinitionId: {
5431
- type: String,
5432
- default: ''
5433
- },
5434
- nodeId: {
5435
- type: String,
5436
- default: ''
5437
- },
5438
- businessId: {
5439
- type: String,
5440
- default: ''
5441
- },
5442
- taskId: {
5443
- type: String,
5444
- default: ''
5445
- },
5446
- pendingId: {
5447
- type: String,
5448
- default: ''
5449
- },
5450
- apiBaseUrl: {
5451
- type: String,
5452
- default: ''
5453
- },
5454
- paddingTop: {
5455
- type: Number,
5456
- default: 0
5457
- },
5458
- choiceOrgId: {
5459
- type: String,
5460
- default: ''
5461
- },
5462
- pOrgId: {
5463
- type: String,
5464
- default: ''
5472
+ appId: String,
5473
+ type: String,
5474
+ pendingId: String,
5475
+ beforeSubmit: Function,
5476
+ baseUrl: String,
5477
+ esign: {
5478
+ type: Boolean,
5479
+ default: false
5465
5480
  },
5466
- choiceDeptId: {
5481
+ userId: {
5467
5482
  type: String,
5468
5483
  default: ''
5469
5484
  }
5470
5485
  },
5471
5486
  data: function data() {
5472
5487
  return {
5473
- name: '',
5474
- pid: 'root',
5475
- objType: 'enterprise',
5476
- selectType: 'employee',
5477
- active: ['1'],
5478
- flowList: [],
5479
- selectList: [],
5480
- isRadio: true,
5481
- nodeList: []
5488
+ showMsg: false, // 判断是否显示系统消息
5489
+ opinionHandleExplainText: undefined,
5490
+ showOpinion: false, // 常用意见弹框
5491
+ readOnlyNotificationType: '',
5492
+ notificationMessageReadOnly: false,
5493
+ form: {
5494
+ opinion: undefined, // 审批意见
5495
+ notificationMsg: undefined, //系统消息
5496
+ nextNodeId: undefined,
5497
+ loginType: 2, //登录方式
5498
+ isImageOpinion: 0
5499
+ },
5500
+ file: '',
5501
+ processObj: {
5502
+ taskExamine: { nodeName: undefined },
5503
+ nodeInfoMap: { nextUserList: [] }
5504
+ },
5505
+ rejectObj: [], //
5506
+ isHiddenOftenOpinion: undefined, //是否隐藏常用意见
5507
+ nodeDefaultRejectOpinion: undefined, //默认提交意见
5508
+ checked: true, // 系统消息是否选中
5509
+ defaultNotificationType: undefined, ///默认选中通知类型
5510
+ isBanInputOpinion: 0 //是否禁用意见
5482
5511
  };
5483
5512
  },
5484
5513
 
5485
- watch: {
5486
- nodeId: {
5487
- handler: function handler(val) {
5488
- if (val) {
5489
- // this.getProList(val);
5490
- this.getNodeInfo(val);
5491
- }
5492
- },
5514
+ components: { Opinion: Opinion, Message: Message },
5515
+ created: function created() {
5516
+ this.style = {
5517
+ 'padding-top': sessionStorage.getItem('pt') ? sessionStorage.getItem('pt') + 'px' : '30px'
5518
+ };
5519
+ this.getProcessObj();
5520
+ },
5521
+
5522
+ methods: {
5523
+ // 通知消息回调
5524
+ onInputMsg: function onInputMsg(obj) {
5525
+ this.form.notificationType = obj.notificationType.join(',');
5526
+ this.form.notificationMsg = obj.notificationMsg;
5527
+ },
5528
+
5529
+ // 意见回调
5530
+ onInputOpintion: function onInputOpintion(val) {
5531
+ var opinion = val.opinion,
5532
+ isImageOpinion = val.isImageOpinion,
5533
+ file = val.file;
5534
+
5535
+ this.form.opinion = opinion;
5536
+ this.form.isImageOpinion = isImageOpinion;
5537
+ this.file = file;
5538
+ },
5539
+ goBack: function goBack() {
5540
+ this.$parent.$emit('close');
5541
+ this.$emit('close');
5542
+ },
5493
5543
 
5494
- immediate: true,
5495
- deep: true
5496
- }
5497
- },
5498
- methods: {
5499
- getValue: function getValue() {
5544
+ // 提交流程
5545
+ onSubmit: function onSubmit() {
5500
5546
  var _this = this;
5501
5547
 
5502
- var pass = true;
5503
- var PresetData = [];
5504
- var newFlowList = this.flowList.filter(function (x) {
5505
- return x.nodeId;
5506
- });
5507
- for (var i = 0; i < newFlowList.length; i++) {
5508
- if (newFlowList[i].nextUserSelectList.length == 0 && newFlowList[i].showSelectUser) {
5509
- pass = false;
5510
- this.$toast('\u8BF7\u9009\u62E9\u8282\u70B9' + (i + 1) + '\u7684\u529E\u7406\u4EBA');
5511
- return false;
5512
- }
5548
+ if (!this.form.opinion && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 0 || !this.file && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 1) {
5549
+ this.$toast('请输入审批意见');
5550
+ return;
5513
5551
  }
5514
- if (pass) {
5515
- newFlowList.map(function (x, i) {
5516
- PresetData.push({
5517
- name: _typeof(x.nodeId) == 'object' ? x.nodeId.nodeId : x.nodeId,
5518
- value: x.nextUserSelectList.map(function (y) {
5519
- return y.showid;
5520
- }).join(','),
5521
- lastName: i == 0 ? _this.nodeId : PresetData[i - 1].name,
5522
- sequence: i + 1 + ''
5523
- });
5524
- });
5552
+ var str = '';
5553
+ if (this.form.opinion) {
5554
+ str = this.form.opinion.replace(/\s+/g, '');
5525
5555
  }
5526
- return JSON.stringify(PresetData);
5527
- },
5528
-
5529
- // 根据返回的办理人类型来判断 选择人员树的范围
5530
- changePidObjtype: function changePidObjtype(val, choiceOrgId, choiceDeptId, pOrgId, obj) {
5531
- if (val === 1 || val === 2) {
5532
- obj.pid = choiceOrgId || this.orgId;
5533
- obj.objType = 'enterprise';
5534
- obj.selectType = 'employee';
5535
- } else if (val === 3 || val === 4) {
5536
- obj.pid = 'root';
5537
- obj.objType = 'employee';
5538
- } else if (val === 5 || val === 6) {
5539
- obj.pid = choiceDeptId || this.depId;
5540
- obj.objType = 'department';
5541
- } else if (val === 11 || val === 12) {
5542
- obj.selectType = 'employee';
5543
- obj.objType = 'enterprise';
5544
- } else if (val === 13) {
5545
- obj.pid = choiceDeptId || this.depId;
5546
- obj.selectType = 'employee';
5547
- obj.objType = 'department';
5548
- } else if (val === 14) {
5549
- obj.pid = pOrgId || this.orgId;
5550
- obj.selectType = 'employee';
5551
- } else if (val === 15 || val === 16) {
5552
- obj.pid = pOrgId || this.orgId;
5553
- obj.selectType = 'employee';
5556
+ if ((!this.form.opinion || str === '') && this.nodeDefaultRejectOpinion) {
5557
+ this.form.opinion = this.nodeDefaultRejectOpinion;
5554
5558
  }
5555
- // userSelectionType 机构内单选人1,机构内多选人2,所有机构单选人3,所有部门多选人4,本部门单选人5,本部门多选人6,本单位单选部门7,本单位多选部门8,单选单位9,多选单位10,单选机构11,多选机构12,本部门角色13,本单位角色14
5556
- val == 2 || val == 4 || val == 6 || val == 8 || val == 10 || val == 11 || val == 12 ? obj.isRadio = false : obj.isRadio = true; //判断办理人单选多选
5557
- },
5558
-
5559
- // 修改默认办理人
5560
- changeDefPeople: function changeDefPeople(def, all, data) {
5561
- var _this2 = this;
5562
-
5563
- data.nextUserSelectList = [];
5564
- if (def == 1 && all == 1 || def == 0 && all == 1) {
5565
- var ids = '';
5566
- data.nextUserList.map(function (r, i) {
5567
- r.showid = r.userId;
5568
- r.showname = r.username;
5569
- _this2.$set(r, 'checked', true);
5570
- data.nextUserSelectList.push(r);
5571
- ids += r.userId + (i === data.nextUserList.length - 1 ? '' : ',');
5572
- });
5573
- // this.form.nextUserId = ids;
5574
- } else if (def == 1 && (!all || all == 0) && data.nextUserList.length > 0) {
5575
- data.nextUserList[0].showid = data.nextUserList[0].userId;
5576
- data.nextUserList[0].showname = data.nextUserList[0].username;
5577
- this.$set(data.nextUserList[0], 'checked', true);
5578
- data.nextUserSelectList.push(data.nextUserList[0]);
5579
- // this.form.nextUserId = this.nextUserSelectList[0].userId;
5559
+ if (this.beforeSubmit) {
5560
+ this.beforeSubmit(Rejectvue_type_script_lang_js_extends({ pendingId: this.pendingId }, this.form));
5561
+ return;
5580
5562
  }
5581
- },
5582
- onConfirmNextNode: function onConfirmNextNode(val, i) {
5583
- this.flowList = this.flowList.splice(0, i + 1);
5584
- if (val.nodeId == '-2') {
5585
- this.flowList[i].nextUserList = [];
5586
- this.flowList[i].nextUserSelectList = [];
5563
+ this.form.mobileKey = util["a" /* default */].getStorage('deviceId') || '123';
5564
+ var formData = new FormData();
5565
+ if (this.form.isImageOpinion == 1) {
5566
+ formData.append('file', this.file);
5567
+ formData.append('pendingId', this.pendingId);
5568
+ this.form.userId = this.userId || util["a" /* default */].getStorage('userId');
5569
+ for (var key in this.form) {
5570
+ if (this.form[key] !== '' && this.form[key] !== undefined) {
5571
+ formData.append(key, this.form[key]);
5572
+ }
5573
+ }
5587
5574
  } else {
5588
- this.getNodeInfo(val.nodeId, i);
5575
+ this.form.pendingId = this.pendingId;
5589
5576
  }
5590
- },
5591
- getNodeInfo: function getNodeInfo(nodeId, i) {
5592
- var _this3 = this;
5593
5577
 
5594
5578
  this.$toast.loading({
5595
5579
  message: '加载中...',
@@ -5598,81 +5582,102 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5598
5582
  overlay: true,
5599
5583
  duration: 0
5600
5584
  });
5585
+ var _that = this;
5601
5586
  Object(http["a" /* default */])({
5602
- url: api["h" /* getNodeInfoHtml */],
5603
- params: {
5604
- processDefinitionId: this.processDefinitionId,
5605
- nextNodeId: nodeId,
5606
- businessId: this.businessId,
5607
- taskId: this.taskId,
5608
- pendingId: this.pendingId
5609
- }
5587
+ url: _that.baseUrl ? _that.baseUrl + api["v" /* taskRejectHtml */] : api["v" /* taskRejectHtml */],
5588
+ type: 'post',
5589
+ params: this.form.isImageOpinion == 1 ? formData : this.form,
5590
+ format: false
5610
5591
  }).then(function (res) {
5611
5592
  if (res.status == 'success') {
5612
- // this.nodeList = res.data.taskNodeMap;
5613
- var obj = {};
5614
- if (i != undefined) {
5615
- res.data.nextUserList.map(function (res) {
5616
- res.checked = false;
5617
- });
5618
-
5619
- _this3.flowList[i].nextUserList = res.data.nextUserList || [];
5620
- _this3.flowList[i].nextUserSelectList = res.data.nextUserList || [];
5621
- _this3.changeDefPeople(res.data.nodeExtAttr.isDefSelectedObj, res.data.nodeExtAttr.isSelectedAllObj, _this3.flowList[i]);
5622
- _this3.changePidObjtype(res.data.nodeExtAttr.userSelectionType, _this3.choiceOrgId, _this3.choiceDeptId, _this3.pOrgId, _this3.flowList[i]);
5623
- } else {
5624
- obj.nextUserList = res.data.nextUserList || [];
5625
- obj.nextUserSelectList = res.data.nextUserList || [];
5626
- _this3.changeDefPeople(res.data.nodeExtAttr.isDefSelectedObj, res.data.nodeExtAttr.isSelectedAllObj, obj);
5627
- _this3.changePidObjtype(res.data.nodeExtAttr.userSelectionType, _this3.choiceOrgId, _this3.choiceDeptId, _this3.pOrgId, obj);
5628
- }
5629
- _this3.getProList(nodeId, obj);
5593
+ _this.$toast('操作成功');
5594
+ _this.$parent.$emit('success');
5595
+ } else {
5596
+ _this.$toast(res.message);
5630
5597
  }
5631
5598
  });
5632
5599
  },
5633
- getProList: function getProList(nodeId, obj) {
5634
- var _this4 = this;
5635
5600
 
5601
+ // 确认常用意见
5602
+ onConfirmOpinion: function onConfirmOpinion(val) {
5603
+ this.form.opinion = val.content;
5604
+ this.showOpinion = false;
5605
+ },
5606
+
5607
+ // 获取驳回信息
5608
+ getProcessObj: function getProcessObj() {
5609
+ var _this2 = this;
5610
+
5611
+ var _that = this;
5612
+ this.$toast.loading({
5613
+ message: '加载中...',
5614
+ forbidClick: true,
5615
+ loadingType: 'spinner',
5616
+ overlay: true,
5617
+ duration: 0
5618
+ });
5636
5619
  Object(http["a" /* default */])({
5637
- url: api["j" /* getPresetCustomInfo */],
5620
+ url: _that.baseUrl ? _that.baseUrl + api["D" /* toTaskRejectHtml */] : api["D" /* toTaskRejectHtml */],
5638
5621
  params: {
5639
- processDefinitionId: this.processDefinitionId,
5640
- nodeId: nodeId,
5641
- taskAction: 'withExtendData'
5622
+ pendingId: this.pendingId,
5623
+ isSinglePage: false,
5624
+ opinion: this.form.opinion,
5625
+ userId: _that.userId
5642
5626
  }
5643
5627
  }).then(function (res) {
5644
- _this4.$toast.clear();
5645
5628
  if (res.status == 'success') {
5646
- var _extends2;
5629
+ var _res$data = res.data,
5630
+ rejectTaskNodes = _res$data.rejectTaskNodes,
5631
+ taskExamine = _res$data.taskExamine,
5632
+ nodeInfoMap = _res$data.nodeInfoMap,
5633
+ notificationMessageReadOnly = _res$data.notificationMessageReadOnly,
5634
+ readOnlyNotificationType = _res$data.readOnlyNotificationType,
5635
+ defaultNotificationMessage = _res$data.defaultNotificationMessage,
5636
+ defaultNotificationType = _res$data.defaultNotificationType;
5647
5637
 
5648
- var arr = [{ nodeId: '-2', nodeName: '请选择' }];
5649
- var isEnd = false;
5650
- if (res.data.taskNodeMap) {
5651
- for (var i in res.data.taskNodeMap || res.data || {}) {
5652
- var _obj = {
5653
- nodeId: i,
5654
- nodeName: res.data.taskNodeMap[i]
5638
+ _this2.$toast.clear();
5639
+ _this2.notificationMessageReadOnly = notificationMessageReadOnly == 'true';
5640
+ _this2.readOnlyNotificationType = readOnlyNotificationType;
5641
+ _this2.isHiddenOftenOpinion = nodeInfoMap.nodeExtAttr.isHiddenOftenOpinion;
5642
+ _this2.nodeDefaultRejectOpinion = nodeInfoMap.nodeExtAttr.nodeDefaultRejectOpinion;
5643
+ _this2.isBanInputOpinion = nodeInfoMap.nodeExtAttr.isBanInputOpinion;
5644
+ _this2.opinionHandleExplainText = nodeInfoMap.nodeExtAttr.opinionHandleExplainText;
5645
+ if (!_this2.isBanInputOpinion) {
5646
+ _this2.isBanInputOpinion = 0;
5647
+ }
5648
+ _this2.processObj = res.data;
5649
+ _this2.form.notificationMsg = defaultNotificationMessage;
5650
+ _this2.defaultNotificationType = defaultNotificationType.split(',');
5651
+ var list = [];
5652
+ if (rejectTaskNodes) {
5653
+ for (var i in rejectTaskNodes) {
5654
+ var obj = {
5655
+ id: i,
5656
+ name: rejectTaskNodes[i]
5655
5657
  };
5656
- isEnd = i == 'endEvent';
5657
- arr.push(_obj);
5658
+ list.push(obj);
5659
+ }
5660
+ _this2.rejectObj = list;
5661
+ if (_this2.rejectObj.length > 0) {
5662
+ _this2.form.nextNodeId = _this2.rejectObj[0].id;
5663
+ _this2.rejectObj.map(function (item) {
5664
+ item.value = item.id;
5665
+ });
5658
5666
  }
5659
5667
  }
5660
- if (isEnd) {
5661
- arr = arr.slice(1);
5662
- }
5663
- obj = ProcessSettingsvue_type_script_lang_js_extends({}, obj, (_extends2 = {
5664
- nodeList: arr,
5665
- nodeId: ''
5666
- }, _extends2['nodeId'] = isEnd ? arr[0].nodeId : '', _extends2.showSelectUser = !isEnd, _extends2));
5667
- _this4.flowList.push(obj);
5668
+ } else {
5669
+ _this2.$toast(message);
5670
+ setTimeout(function () {
5671
+ _this2.goBack;
5672
+ }, 1000);
5668
5673
  }
5669
5674
  });
5670
5675
  }
5671
5676
  }
5672
5677
  });
5673
- // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue?vue&type=script&lang=js
5674
- /* harmony default export */ var components_ProcessSettingsvue_type_script_lang_js = (ProcessSettingsvue_type_script_lang_js);
5675
- // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue
5678
+ // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=script&lang=js
5679
+ /* harmony default export */ var components_Rejectvue_type_script_lang_js = (Rejectvue_type_script_lang_js);
5680
+ // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue
5676
5681
 
5677
5682
 
5678
5683
 
@@ -5680,10 +5685,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5680
5685
 
5681
5686
  /* normalize component */
5682
5687
 
5683
- var ProcessSettings_component = Object(componentNormalizer["a" /* default */])(
5684
- components_ProcessSettingsvue_type_script_lang_js,
5685
- ProcessSettingsvue_type_template_id_50a06dbd_render,
5686
- ProcessSettingsvue_type_template_id_50a06dbd_staticRenderFns,
5688
+ var Reject_component = Object(componentNormalizer["a" /* default */])(
5689
+ components_Rejectvue_type_script_lang_js,
5690
+ Rejectvue_type_template_id_4fdaf365_render,
5691
+ Rejectvue_type_template_id_4fdaf365_staticRenderFns,
5687
5692
  false,
5688
5693
  null,
5689
5694
  null,
@@ -5691,7 +5696,7 @@ var ProcessSettings_component = Object(componentNormalizer["a" /* default */])(
5691
5696
 
5692
5697
  )
5693
5698
 
5694
- /* harmony default export */ var ProcessSettings = (ProcessSettings_component.exports);
5699
+ /* harmony default export */ var Reject = (Reject_component.exports);
5695
5700
  // CONCATENATED MODULE: ./packages/flow/src/flowMix.js
5696
5701
 
5697
5702
 
@@ -6772,18 +6777,18 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
6772
6777
  if (this.isMainSubProcess && Handlevue_type_script_lang_js_typeof(this.form.mainSubId) == 'object') {
6773
6778
  this.form.mainSubId = this.form.mainSubId.value;
6774
6779
  }
6775
- if (this.isCustomPreset) {
6776
- if (this.$refs.processSetting.active.length != 0) {
6777
- if (!this.$refs.processSetting.getValue()) return;
6778
- this.form.customPresetUserJson = this.$refs.processSetting.getValue();
6779
- this.form.isCustomPreset = true;
6780
- this.form.presetUserJson = JSON.stringify([]);
6781
- } else {
6782
- delete this.form.customPresetUserJson;
6783
- delete this.form.isCustomPreset;
6784
- delete this.form.presetUserJson;
6785
- }
6786
- }
6780
+ // if (this.isCustomPreset ) {
6781
+ // if (this.$refs.processSetting.active.length != 0) {
6782
+ // if(!this.$refs.processSetting.getValue())return
6783
+ // this.form.customPresetUserJson = this.$refs.processSetting.getValue();
6784
+ // this.form.isCustomPreset = true;
6785
+ // this.form.presetUserJson = JSON.stringify([])
6786
+ // } else {
6787
+ // delete this.form.customPresetUserJson;
6788
+ // delete this.form.isCustomPreset;
6789
+ // delete this.form.presetUserJson;
6790
+ // }
6791
+ // }
6787
6792
  this.$toast.loading({
6788
6793
  message: '加载中...',
6789
6794
  forbidClick: true,
@@ -6952,7 +6957,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
6952
6957
  return;
6953
6958
  } else {}
6954
6959
  }
6955
- if (this.nodeList) {
6960
+ if (this.nodeList && this.nodeList.length > 0) {
6961
+ console.log(this.nodeList);
6956
6962
  this.form.nextNodeId = this.nodeList[this.nextNodeDefault].nodeId;
6957
6963
  this.form.nextNodeName = this.nodeList[this.nextNodeDefault].nodeName;
6958
6964
  this.$toast.loading({
@@ -7422,8 +7428,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
7422
7428
 
7423
7429
  var Handle_component = Object(componentNormalizer["a" /* default */])(
7424
7430
  components_Handlevue_type_script_lang_js,
7425
- Handlevue_type_template_id_548395aa_render,
7426
- Handlevue_type_template_id_548395aa_staticRenderFns,
7431
+ Handlevue_type_template_id_681d0ef4_render,
7432
+ Handlevue_type_template_id_681d0ef4_staticRenderFns,
7427
7433
  false,
7428
7434
  null,
7429
7435
  null,