eoss-mobiles 0.2.96 → 0.2.98

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
@@ -1673,7 +1673,6 @@ var getNodeInfoHtml = pending + '/task/taskHandle/getNodeInfo.dhtml';
1673
1673
  // export const taskHandleHtml = '/api/mecp/v1/mecpItask/taskHandleHtml.json';
1674
1674
  var taskHandleHtml = pending + '/task/taskHandle/taskHandle.dhtml';
1675
1675
  var taskHandleHtmlImg = pending + '/task/taskHandle/taskHandleWithHandwrittenOpinion.dhtml';
1676
-
1677
1676
  // 发起流程
1678
1677
  // export const registerNew = '/api/v1/mecpItask/registerNew.json';
1679
1678
  var registerNew = '/bpm/v1/mecpItask/registerNew.json';
@@ -6893,8 +6892,8 @@ var Handle_component = Object(componentNormalizer["a" /* default */])(
6893
6892
  )
6894
6893
 
6895
6894
  /* harmony default export */ var Handle = (Handle_component.exports);
6896
- // 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/TaskRead.vue?vue&type=template&id=5dd51b8b
6897
- var TaskReadvue_type_template_id_5dd51b8b_render = function () {
6895
+ // 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/TaskRead.vue?vue&type=template&id=161443d3
6896
+ var TaskReadvue_type_template_id_161443d3_render = function () {
6898
6897
  var _vm = this
6899
6898
  var _h = _vm.$createElement
6900
6899
  var _c = _vm._self._c || _h
@@ -7095,11 +7094,11 @@ var TaskReadvue_type_template_id_5dd51b8b_render = function () {
7095
7094
  ]),
7096
7095
  ])
7097
7096
  }
7098
- var TaskReadvue_type_template_id_5dd51b8b_staticRenderFns = []
7099
- TaskReadvue_type_template_id_5dd51b8b_render._withStripped = true
7097
+ var TaskReadvue_type_template_id_161443d3_staticRenderFns = []
7098
+ TaskReadvue_type_template_id_161443d3_render._withStripped = true
7100
7099
 
7101
7100
 
7102
- // CONCATENATED MODULE: ./packages/flow/src/components/TaskRead.vue?vue&type=template&id=5dd51b8b
7101
+ // CONCATENATED MODULE: ./packages/flow/src/components/TaskRead.vue?vue&type=template&id=161443d3
7103
7102
 
7104
7103
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/TaskRead.vue?vue&type=script&lang=js
7105
7104
  var TaskReadvue_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; };
@@ -7291,14 +7290,35 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
7291
7290
  this.getFind();
7292
7291
  if (!this.readParams) {
7293
7292
  this.getHandleInfoHtml();
7293
+ } else {
7294
+ this.getMessage();
7294
7295
  }
7295
7296
  },
7296
7297
 
7297
7298
 
7298
7299
  methods: {
7300
+ //获取通知信息
7301
+ getMessage: function getMessage() {
7302
+ var _this = this;
7303
+
7304
+ var params = {
7305
+ appId: this.readParams.appId
7306
+ };
7307
+ Object(http["a" /* default */])({ url: api["i" /* getNotificationMsg */], params: params, methods: 'post' }).then(function (res) {
7308
+ if (res.status === 'success') {
7309
+ _this.defaultNotificationMessage = res.message;
7310
+ _this.form.notificationMsg = res.message;
7311
+ }
7312
+ }).catch(function (err) {
7313
+ if (err.message && err.message !== 'canceled') {
7314
+ _this.$toast(err.message);
7315
+ }
7316
+ });
7317
+ },
7318
+
7299
7319
  // 转办提交
7300
7320
  subTaskTransfer: function subTaskTransfer() {
7301
- var _this = this;
7321
+ var _this2 = this;
7302
7322
 
7303
7323
  if (!this.nextReadUserSelectList || this.nextReadUserSelectList.length === 0) {
7304
7324
  this.$toast('请选择转办对象');
@@ -7337,25 +7357,25 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
7337
7357
  duration: 0
7338
7358
  });
7339
7359
  Object(http["a" /* default */])(params).then(function (res) {
7340
- _this.$toast.clear();
7360
+ _this2.$toast.clear();
7341
7361
  var message = res.message,
7342
7362
  status = res.status;
7343
7363
 
7344
7364
  if (status === 'success') {
7345
- _this.$toast('操作成功');
7346
- _this.$parent.$emit('success');
7365
+ _this2.$toast('操作成功');
7366
+ _this2.$parent.$emit('success');
7347
7367
  } else {
7348
- _this.$toast(message || '系统错误,请联系管理员!');
7368
+ _this2.$toast(message || '系统错误,请联系管理员!');
7349
7369
  }
7350
7370
  }).catch(function (err) {
7351
- _this.$toast.clear();
7371
+ _this2.$toast.clear();
7352
7372
  if (err.message && err.message !== 'canceled') {
7353
- _this.$toast(err.message);
7373
+ _this2.$toast(err.message);
7354
7374
  }
7355
7375
  });
7356
7376
  },
7357
7377
  getFind: function getFind() {
7358
- var _this2 = this;
7378
+ var _this3 = this;
7359
7379
 
7360
7380
  this.$toast.loading({
7361
7381
  message: '加载中...',
@@ -7368,37 +7388,40 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
7368
7388
  url: this.baseUrl ? this.baseUrl + api["d" /* findSysCodes */] : api["d" /* findSysCodes */]
7369
7389
  }).then(function (res) {
7370
7390
  var status = res.status,
7371
- message = res.message;
7391
+ message = res.message,
7392
+ data = res.data;
7372
7393
 
7373
- _this2.loading = false;
7374
7394
  if (status === 'success') {
7375
- _this2.form.notificationMsgType = message.split(',');
7376
- _this2.defaultNotificationType = message.split(',');
7395
+ _this3.form.notificationMsgType = message.split(',');
7396
+ _this3.defaultNotificationType = message.split(',');
7397
+ if (data) {
7398
+ _this3.notificationMessageReadOnly = data.notificationMessageReadOnly == 'true';
7399
+ _this3.readOnlyNotificationType = data.readOnlyNotificationType;
7400
+ }
7377
7401
  } else {
7378
7402
  setTimeout(function () {
7379
- _this2.goBack();
7403
+ _this3.goBack();
7380
7404
  }, 1000);
7381
- _this2.$toast.error(message || '系统错误,请联系管理员!');
7405
+ _this3.$toast.error(message || '系统错误,请联系管理员!');
7382
7406
  }
7383
- if (_this2.type === 'transfer') {
7384
- _this2.toTaskTransfer();
7407
+ if (_this3.type === 'transfer') {
7408
+ _this3.toTaskTransfer();
7385
7409
  } else {
7386
- if (!_this2.readParams) {
7387
- _this2.getProcessObjNew();
7410
+ if (!_this3.readParams) {
7411
+ _this3.getProcessObjNew();
7388
7412
  } else {
7389
- _this2.$toast.clear();
7413
+ _this3.$toast.clear();
7390
7414
  }
7391
7415
  // this.getProcessObjNew();
7392
7416
  }
7393
7417
  }).catch(function (err) {
7394
- _this2.loading = false;
7395
7418
  if (err.message && err.message !== 'canceled') {
7396
- _this2.$message.error(err.message);
7419
+ _this3.$message.error(err.message);
7397
7420
  }
7398
7421
  });
7399
7422
  },
7400
7423
  toTaskTransfer: function toTaskTransfer() {
7401
- var _this3 = this;
7424
+ var _this4 = this;
7402
7425
 
7403
7426
  var opinion = this.opinion,
7404
7427
  pendingId = this.pendingId,
@@ -7426,23 +7449,20 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
7426
7449
  readOnlyNotificationType = _res$data.readOnlyNotificationType,
7427
7450
  notificationMessageReadOnly = _res$data.notificationMessageReadOnly;
7428
7451
 
7429
- _this3.$toast.clear();
7452
+ _this4.$toast.clear();
7430
7453
  if (status == 'success') {
7431
- _this3.isMultipleTransfer(nodeInfoMap.nodeExtAttr.userSelectionType, choiceOrgId, choiceDeptId);
7432
- _this3.notificationMessageReadOnly = notificationMessageReadOnly == 'true';
7433
- _this3.readOnlyNotificationType = readOnlyNotificationType;
7434
- _this3.nextNode.nodeName = taskExamine.nodeName;
7435
- _this3.transferInfo = taskExamine;
7454
+ _this4.isMultipleTransfer(nodeInfoMap.nodeExtAttr.userSelectionType, choiceOrgId, choiceDeptId);
7455
+ _this4.nextNode.nodeName = taskExamine.nodeName;
7456
+ _this4.transferInfo = taskExamine;
7436
7457
  } else {
7437
- _this3.$toast(message || '系统错误,请联系管理员!');
7458
+ _this4.$toast(message || '系统错误,请联系管理员!');
7438
7459
  setTimeout(function () {
7439
- _this3.goBack();
7460
+ _this4.goBack();
7440
7461
  }, 1000);
7441
7462
  }
7442
7463
  }).catch(function (err) {
7443
- _this3.loading = false;
7444
7464
  if (err.message && err.message !== 'canceled') {
7445
- _this3.$toast(err.message);
7465
+ _this4.$toast(err.message);
7446
7466
  }
7447
7467
  });
7448
7468
  },
@@ -7504,7 +7524,7 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
7504
7524
  this.form.notificationMsg = obj.notificationMsg;
7505
7525
  },
7506
7526
  getProcessObjNew: function getProcessObjNew() {
7507
- var _this4 = this;
7527
+ var _this5 = this;
7508
7528
 
7509
7529
  var _that = this;
7510
7530
  var params = {
@@ -7521,16 +7541,14 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
7521
7541
  }).then(function (res) {
7522
7542
  _that.$toast.clear();
7523
7543
  if (res.status == 'success') {
7524
- _this4.processObj = res.data;
7525
- _this4.notificationMsgType = _this4.isMultiple();
7526
- _this4.notificationMessageReadOnly = res.data.notificationMessageReadOnly == 'true';
7527
- _this4.readOnlyNotificationType = res.data.readOnlyNotificationType;
7544
+ _this5.processObj = res.data;
7545
+ _this5.notificationMsgType = _this5.isMultiple();
7528
7546
  // this.taskExamine = res.data.taskExamine;
7529
7547
  // console.log(this.taskExamine, 'taskExaminetaskExaminetaskExamine');
7530
7548
  } else {
7531
7549
  _that.$toast(res.message);
7532
7550
  setTimeout(function () {
7533
- _this4.goBack();
7551
+ _this5.goBack();
7534
7552
  }, 1000);
7535
7553
  }
7536
7554
  });
@@ -7562,7 +7580,7 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
7562
7580
  // }
7563
7581
  },
7564
7582
  onSubmitReadEndNew: function onSubmitReadEndNew() {
7565
- var _this5 = this;
7583
+ var _this6 = this;
7566
7584
 
7567
7585
  var _that = this;
7568
7586
  var params = {
@@ -7594,17 +7612,17 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
7594
7612
 
7595
7613
  Object(http["a" /* default */])(params).then(function (res) {
7596
7614
  if (res.rCode == 0) {
7597
- _this5.$toast('操作成功');
7598
- _this5.$parent.$emit('success');
7615
+ _this6.$toast('操作成功');
7616
+ _this6.$parent.$emit('success');
7599
7617
  } else {
7600
- _this5.$toast(res.msg);
7618
+ _this6.$toast(res.msg);
7601
7619
  }
7602
7620
  }).catch(function (err) {
7603
- _this5.$toast('数据返回失败');
7621
+ _this6.$toast('数据返回失败');
7604
7622
  });
7605
7623
  },
7606
7624
  getHandleInfoHtml: function getHandleInfoHtml() {
7607
- var _this6 = this;
7625
+ var _this7 = this;
7608
7626
 
7609
7627
  Object(http["a" /* default */])({
7610
7628
  url: this.baseUrl ? this.baseUrl + api["f" /* getHandleInfoHtml */] : api["f" /* getHandleInfoHtml */],
@@ -7618,21 +7636,21 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
7618
7636
  defaultNotificationMessage = _res$data2.defaultNotificationMessage;
7619
7637
 
7620
7638
  if (status == 'success') {
7621
- _this6.defaultNotificationMessage = defaultNotificationMessage;
7622
- _this6.form.notificationMsg = defaultNotificationMessage;
7639
+ _this7.defaultNotificationMessage = defaultNotificationMessage;
7640
+ _this7.form.notificationMsg = defaultNotificationMessage;
7623
7641
  taskExamine.choiceDeptId = choiceDeptId;
7624
7642
  taskExamine.choiceOrgId = choiceOrgId;
7625
- _this6.taskExamine = taskExamine;
7643
+ _this7.taskExamine = taskExamine;
7626
7644
  } else {
7627
7645
  setTimeout(function () {
7628
- _this6.goBack();
7646
+ _this7.goBack();
7629
7647
  }, 1000);
7630
- _this6.$toast(res.message);
7648
+ _this7.$toast(res.message);
7631
7649
  }
7632
7650
  });
7633
7651
  },
7634
7652
  onSubmitReadNew: function onSubmitReadNew() {
7635
- var _this7 = this;
7653
+ var _this8 = this;
7636
7654
 
7637
7655
  var _that = this;
7638
7656
  if (!this.nextReadUserSelectList || this.nextReadUserSelectList.length === 0) {
@@ -7641,7 +7659,7 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
7641
7659
  }
7642
7660
  var ids = '';
7643
7661
  this.nextReadUserSelectList.map(function (r, i) {
7644
- ids = ids + r.showid + (i === _this7.nextReadUserSelectList.length - 1 ? '' : ',');
7662
+ ids = ids + r.showid + (i === _this8.nextReadUserSelectList.length - 1 ? '' : ',');
7645
7663
  });
7646
7664
  var _taskExamine2 = this.taskExamine,
7647
7665
  appId = _taskExamine2.appId,
@@ -7693,13 +7711,13 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
7693
7711
  });
7694
7712
  Object(http["a" /* default */])(params).then(function (res) {
7695
7713
  if (res.status == 'success') {
7696
- _this7.$toast('操作成功');
7697
- _this7.$parent.$emit('success');
7714
+ _this8.$toast('操作成功');
7715
+ _this8.$parent.$emit('success');
7698
7716
  } else {
7699
- _this7.$toast(res.message);
7717
+ _this8.$toast(res.message);
7700
7718
  }
7701
7719
  }).catch(function (err) {
7702
- _this7.$toast('数据返回失败');
7720
+ _this8.$toast('数据返回失败');
7703
7721
  });
7704
7722
  }
7705
7723
  }
@@ -7716,8 +7734,8 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
7716
7734
 
7717
7735
  var TaskRead_component = Object(componentNormalizer["a" /* default */])(
7718
7736
  components_TaskReadvue_type_script_lang_js,
7719
- TaskReadvue_type_template_id_5dd51b8b_render,
7720
- TaskReadvue_type_template_id_5dd51b8b_staticRenderFns,
7737
+ TaskReadvue_type_template_id_161443d3_render,
7738
+ TaskReadvue_type_template_id_161443d3_staticRenderFns,
7721
7739
  false,
7722
7740
  null,
7723
7741
  null,