eoss-mobiles 0.3.97 → 0.3.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/lib/checkbox.js +21 -0
  2. package/lib/eoss-mobile.common.js +284 -123
  3. package/lib/flow-btn.js +21 -0
  4. package/lib/flow-list.js +21 -0
  5. package/lib/flow.js +244 -83
  6. package/lib/index.js +1 -1
  7. package/lib/picker.js +27 -6
  8. package/lib/radio.js +26 -5
  9. package/lib/retrial-auth.js +21 -0
  10. package/lib/selector.js +49 -28
  11. package/lib/table-column.js +21 -0
  12. package/lib/table.js +21 -0
  13. package/lib/theme-chalk/fonts/iconfont.scss +98 -98
  14. package/lib/theme-chalk/fonts/iconfont1.scss +90 -90
  15. package/lib/uploader.js +21 -0
  16. package/lib/utils/util.js +21 -0
  17. package/package.json +1 -1
  18. package/packages/action-sheet/index.js +5 -5
  19. package/packages/action-sheet/src/main.vue +32 -32
  20. package/packages/button/index.js +5 -5
  21. package/packages/button/src/main.vue +15 -15
  22. package/packages/button-group/index.js +5 -5
  23. package/packages/button-group/src/main.vue +80 -80
  24. package/packages/calendar/index.js +5 -5
  25. package/packages/calendar/src/main.vue +34 -34
  26. package/packages/cascader/index.js +5 -5
  27. package/packages/cascader/src/main.vue +39 -39
  28. package/packages/cell/index.js +5 -5
  29. package/packages/cell/src/main.vue +77 -77
  30. package/packages/checkbox/index.js +5 -5
  31. package/packages/checkbox/src/main.vue +232 -232
  32. package/packages/circle/index.js +5 -5
  33. package/packages/circle/src/main.vue +27 -27
  34. package/packages/count-down/index.js +5 -5
  35. package/packages/count-down/src/main.vue +27 -27
  36. package/packages/date/index.js +5 -5
  37. package/packages/date/src/date-time.vue +290 -290
  38. package/packages/date/src/main.vue +401 -401
  39. package/packages/empty/index.js +5 -5
  40. package/packages/empty/src/main.vue +16 -16
  41. package/packages/esign/index.js +5 -5
  42. package/packages/esign/src/main.vue +144 -144
  43. package/packages/field/index.js +5 -5
  44. package/packages/flow/index.js +5 -5
  45. package/packages/flow/src/components/Circulate.vue +595 -595
  46. package/packages/flow/src/components/Handle.vue +2404 -2404
  47. package/packages/flow/src/components/Message.vue +208 -208
  48. package/packages/flow/src/components/ProcessSettings.vue +342 -342
  49. package/packages/flow/src/components/TaskRead.vue +100 -4
  50. package/packages/flow/src/components/supervise.vue +139 -139
  51. package/packages/flow/src/flowMix.js +288 -288
  52. package/packages/flow/src/main.vue +116 -116
  53. package/packages/flow-btn/index.js +5 -5
  54. package/packages/flow-btn/src/main.vue +494 -494
  55. package/packages/flow-list/index.js +5 -5
  56. package/packages/flow-list/src/main.vue +248 -248
  57. package/packages/form/index.js +5 -5
  58. package/packages/grid/index.js +5 -5
  59. package/packages/grid/src/main.vue +486 -486
  60. package/packages/grid-item/index.js +5 -5
  61. package/packages/grid-item/src/main.vue +16 -16
  62. package/packages/image/index.js +5 -5
  63. package/packages/image/src/main.vue +12 -12
  64. package/packages/image-preview/index.js +5 -5
  65. package/packages/list/index.js +5 -5
  66. package/packages/list/src/main.vue +32 -32
  67. package/packages/loading/index.js +5 -5
  68. package/packages/loading/src/main.vue +19 -19
  69. package/packages/nav-bar/index.js +5 -5
  70. package/packages/nav-bar/src/main.vue +24 -24
  71. package/packages/notice-bar/index.js +5 -5
  72. package/packages/notice-bar/src/main.vue +15 -15
  73. package/packages/pagination/index.js +5 -5
  74. package/packages/pagination/src/main.vue +73 -73
  75. package/packages/picker/index.js +5 -5
  76. package/packages/picker/src/main.vue +604 -604
  77. package/packages/popover/index.js +5 -5
  78. package/packages/popover/src/main.vue +32 -32
  79. package/packages/popup/index.js +5 -5
  80. package/packages/popup/src/main.vue +27 -27
  81. package/packages/pull-refresh/index.js +5 -5
  82. package/packages/pull-refresh/src/main.vue +31 -31
  83. package/packages/radio/index.js +5 -5
  84. package/packages/radio/src/main.vue +179 -179
  85. package/packages/rate/index.js +5 -5
  86. package/packages/rate/src/main.vue +26 -26
  87. package/packages/retrial-auth/index.js +5 -5
  88. package/packages/retrial-auth/src/main.vue +257 -257
  89. package/packages/search/index.js +5 -5
  90. package/packages/search/src/main.vue +39 -39
  91. package/packages/selector/index.js +5 -5
  92. package/packages/selector/src/main.vue +186 -186
  93. package/packages/selector/src/selector-tree.vue +1117 -1117
  94. package/packages/selector/src/tree.vue +405 -405
  95. package/packages/skeleton/index.js +5 -5
  96. package/packages/skeleton/src/main.vue +17 -17
  97. package/packages/stepper/index.js +5 -5
  98. package/packages/stepper/src/main.vue +25 -25
  99. package/packages/swipe/index.js +5 -5
  100. package/packages/swipe/src/main.vue +42 -42
  101. package/packages/switch/index.js +5 -5
  102. package/packages/switch/src/main.vue +38 -38
  103. package/packages/tab/index.js +5 -5
  104. package/packages/tab/src/main.vue +16 -16
  105. package/packages/table/index.js +5 -5
  106. package/packages/table/src/main.vue +1006 -1006
  107. package/packages/table-column/index.js +5 -5
  108. package/packages/table-column/src/main.vue +931 -931
  109. package/packages/table-column/src/mixins/table.js +12 -12
  110. package/packages/tabs/index.js +5 -5
  111. package/packages/tabs/src/main.vue +34 -34
  112. package/packages/tag/index.js +5 -5
  113. package/packages/tag/src/main.vue +16 -16
  114. package/packages/theme-chalk/gulpfile.js +25 -0
  115. package/packages/theme-chalk/src/base.scss +195 -195
  116. package/packages/theme-chalk/src/button-group.scss +25 -25
  117. package/packages/theme-chalk/src/button.scss +2 -2
  118. package/packages/theme-chalk/src/calendar.scss +11 -11
  119. package/packages/theme-chalk/src/cascader.scss +11 -11
  120. package/packages/theme-chalk/src/cell.scss +14 -14
  121. package/packages/theme-chalk/src/checkbox.scss +9 -9
  122. package/packages/theme-chalk/src/circle.scss +6 -6
  123. package/packages/theme-chalk/src/common/var.scss +1525 -1525
  124. package/packages/theme-chalk/src/esign.scss +51 -51
  125. package/packages/theme-chalk/src/field.scss +98 -98
  126. package/packages/theme-chalk/src/flow-btn.scss +99 -99
  127. package/packages/theme-chalk/src/flow-list.scss +122 -122
  128. package/packages/theme-chalk/src/fonts/iconfont.scss +98 -98
  129. package/packages/theme-chalk/src/fonts/iconfont1.scss +90 -90
  130. package/packages/theme-chalk/src/form.scss +33 -33
  131. package/packages/theme-chalk/src/grid-item.scss +16 -16
  132. package/packages/theme-chalk/src/grid.scss +46 -46
  133. package/packages/theme-chalk/src/icon.scss +1661 -1661
  134. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  135. package/packages/theme-chalk/src/navbar.scss +5 -5
  136. package/packages/theme-chalk/src/pagination.scss +12 -12
  137. package/packages/theme-chalk/src/picker.scss +31 -31
  138. package/packages/theme-chalk/src/radio.scss +6 -6
  139. package/packages/theme-chalk/src/retrial-auth.scss +28 -28
  140. package/packages/theme-chalk/src/selector.scss +247 -247
  141. package/packages/theme-chalk/src/stepper.scss +9 -9
  142. package/packages/theme-chalk/src/switch.scss +5 -5
  143. package/packages/theme-chalk/src/table.scss +86 -86
  144. package/packages/theme-chalk/src/tabs.scss +31 -31
  145. package/packages/theme-chalk/src/tag.scss +12 -12
  146. package/packages/theme-chalk/src/theme.scss +1 -1
  147. package/packages/theme-chalk/src/tree.scss +127 -127
  148. package/packages/uploader/index.js +5 -5
  149. package/src/config/api.js +190 -190
  150. package/src/index.js +1 -1
  151. package/src/utils/axios.js +217 -217
  152. package/src/utils/date-util.js +312 -312
  153. package/src/utils/http.js +106 -106
  154. package/src/utils/rules.js +18 -18
  155. package/src/utils/store.js +21 -21
  156. package/src/utils/util.js +21 -0
  157. package/CHANGELOG.md +0 -95
  158. package/packages/theme-chalk/lib/action-sheet.css +0 -0
  159. package/packages/theme-chalk/lib/base.css +0 -1
  160. package/packages/theme-chalk/lib/button-group.css +0 -1
  161. package/packages/theme-chalk/lib/button.css +0 -1
  162. package/packages/theme-chalk/lib/calendar.css +0 -1
  163. package/packages/theme-chalk/lib/cascader.css +0 -1
  164. package/packages/theme-chalk/lib/cell.css +0 -1
  165. package/packages/theme-chalk/lib/checkbox.css +0 -1
  166. package/packages/theme-chalk/lib/circle.css +0 -1
  167. package/packages/theme-chalk/lib/count-down.css +0 -0
  168. package/packages/theme-chalk/lib/date.css +0 -0
  169. package/packages/theme-chalk/lib/empty.css +0 -0
  170. package/packages/theme-chalk/lib/esign.css +0 -1
  171. package/packages/theme-chalk/lib/field.css +0 -1
  172. package/packages/theme-chalk/lib/flow-btn.css +0 -1
  173. package/packages/theme-chalk/lib/flow-list-task-read.css +0 -1
  174. package/packages/theme-chalk/lib/flow-list.css +0 -1
  175. package/packages/theme-chalk/lib/flow.css +0 -1
  176. package/packages/theme-chalk/lib/fonts/iconfont.scss +0 -98
  177. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  178. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  179. package/packages/theme-chalk/lib/fonts/iconfont1.scss +0 -90
  180. package/packages/theme-chalk/lib/form.css +0 -1
  181. package/packages/theme-chalk/lib/grid-item.css +0 -1
  182. package/packages/theme-chalk/lib/grid.css +0 -1
  183. package/packages/theme-chalk/lib/icon.css +0 -1
  184. package/packages/theme-chalk/lib/image-preview.css +0 -0
  185. package/packages/theme-chalk/lib/image.css +0 -0
  186. package/packages/theme-chalk/lib/index.css +0 -1
  187. package/packages/theme-chalk/lib/list.css +0 -0
  188. package/packages/theme-chalk/lib/loading.css +0 -0
  189. package/packages/theme-chalk/lib/nav-bar.css +0 -0
  190. package/packages/theme-chalk/lib/navbar.css +0 -1
  191. package/packages/theme-chalk/lib/notice-bar.css +0 -0
  192. package/packages/theme-chalk/lib/pagination.css +0 -1
  193. package/packages/theme-chalk/lib/picker.css +0 -1
  194. package/packages/theme-chalk/lib/popover.css +0 -0
  195. package/packages/theme-chalk/lib/popup.css +0 -0
  196. package/packages/theme-chalk/lib/pull-refresh.css +0 -0
  197. package/packages/theme-chalk/lib/radio.css +0 -1
  198. package/packages/theme-chalk/lib/rate.css +0 -0
  199. package/packages/theme-chalk/lib/retrial-auth.css +0 -1
  200. package/packages/theme-chalk/lib/search.css +0 -0
  201. package/packages/theme-chalk/lib/selector.css +0 -1
  202. package/packages/theme-chalk/lib/skeleton.css +0 -0
  203. package/packages/theme-chalk/lib/stepper.css +0 -1
  204. package/packages/theme-chalk/lib/swipe.css +0 -0
  205. package/packages/theme-chalk/lib/switch.css +0 -1
  206. package/packages/theme-chalk/lib/tab.css +0 -0
  207. package/packages/theme-chalk/lib/table-column.css +0 -0
  208. package/packages/theme-chalk/lib/table.css +0 -1
  209. package/packages/theme-chalk/lib/tabs.css +0 -1
  210. package/packages/theme-chalk/lib/tag.css +0 -1
  211. package/packages/theme-chalk/lib/theme.css +0 -0
  212. package/packages/theme-chalk/lib/tree.css +0 -1
  213. package/packages/theme-chalk/lib/uploader.css +0 -0
package/lib/flow.js CHANGED
@@ -606,6 +606,26 @@ var getValues = function getValues(obj, flag) {
606
606
  return val;
607
607
  };
608
608
 
609
+ /**
610
+ * uuid
611
+ * @desc:唯一id
612
+ * @author huangbo
613
+ * @date 2022年5月7日
614
+ * @param {number} [len] - 长度
615
+ **/
616
+ var uuid = function uuid(len) {
617
+ len = len || 32;
618
+ var s = 4;
619
+ var str = '';
620
+ function S4() {
621
+ return ((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1);
622
+ }
623
+ for (var i = 0; i < Math.ceil(len / s); i++) {
624
+ str += S4();
625
+ }
626
+ return str.substring(0, len);
627
+ };
628
+
609
629
  /**
610
630
  * loading 需全局引入element-ui
611
631
  * @desc:loading
@@ -1496,6 +1516,7 @@ var toFunction = function toFunction(str) {
1496
1516
  jsGoPayrollIndexAct: jsGoPayrollIndexAct,
1497
1517
  exportXls: exportXls,
1498
1518
  generateUUID: generateUUID,
1519
+ uuid: uuid,
1499
1520
  toFunction: toFunction
1500
1521
  });
1501
1522
 
@@ -5436,8 +5457,8 @@ var StartFlow_component = Object(componentNormalizer["a" /* default */])(
5436
5457
  )
5437
5458
 
5438
5459
  /* harmony default export */ var StartFlow = (StartFlow_component.exports);
5439
- // 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=4a8afaf6
5440
- var Handlevue_type_template_id_4a8afaf6_render = function () {
5460
+ // 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=b58a476a
5461
+ var Handlevue_type_template_id_b58a476a_render = function () {
5441
5462
  var _vm = this
5442
5463
  var _h = _vm.$createElement
5443
5464
  var _c = _vm._self._c || _h
@@ -7052,11 +7073,11 @@ var Handlevue_type_template_id_4a8afaf6_render = function () {
7052
7073
  1
7053
7074
  )
7054
7075
  }
7055
- var Handlevue_type_template_id_4a8afaf6_staticRenderFns = []
7056
- Handlevue_type_template_id_4a8afaf6_render._withStripped = true
7076
+ var Handlevue_type_template_id_b58a476a_staticRenderFns = []
7077
+ Handlevue_type_template_id_b58a476a_render._withStripped = true
7057
7078
 
7058
7079
 
7059
- // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=4a8afaf6
7080
+ // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=b58a476a
7060
7081
 
7061
7082
  // 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=1f631c2c
7062
7083
  var Rejectvue_type_template_id_1f631c2c_render = function () {
@@ -9711,8 +9732,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
9711
9732
  _this10.showFlowBtn = true;
9712
9733
  if (status === 'success') {
9713
9734
  _this10.taskExamineInfo = taskExamine;
9714
- _this10.isCanFenyue = isCanFenyue;
9715
- _this10.taskReadOpinionRequired = taskReadOpinionRequired;
9735
+ _this10.isCanFenyue = isCanFenyue == 1;
9736
+ _this10.taskReadOpinionRequired = taskReadOpinionRequired == 'true';
9716
9737
  // if (this.nodeName) {
9717
9738
  _this10.processObj.taskExamine.nodeName = '分阅';
9718
9739
  _this10.submitButtonName = submitButtonName;
@@ -9902,8 +9923,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
9902
9923
 
9903
9924
  var Handle_component = Object(componentNormalizer["a" /* default */])(
9904
9925
  components_Handlevue_type_script_lang_js,
9905
- Handlevue_type_template_id_4a8afaf6_render,
9906
- Handlevue_type_template_id_4a8afaf6_staticRenderFns,
9926
+ Handlevue_type_template_id_b58a476a_render,
9927
+ Handlevue_type_template_id_b58a476a_staticRenderFns,
9907
9928
  false,
9908
9929
  null,
9909
9930
  null,
@@ -10702,8 +10723,8 @@ var Circulate_component = Object(componentNormalizer["a" /* default */])(
10702
10723
  )
10703
10724
 
10704
10725
  /* harmony default export */ var Circulate = (Circulate_component.exports);
10705
- // 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=2d4c0a2e
10706
- var TaskReadvue_type_template_id_2d4c0a2e_render = function () {
10726
+ // 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=ecdb611c
10727
+ var TaskReadvue_type_template_id_ecdb611c_render = function () {
10707
10728
  var _vm = this
10708
10729
  var _h = _vm.$createElement
10709
10730
  var _c = _vm._self._c || _h
@@ -10932,6 +10953,50 @@ var TaskReadvue_type_template_id_2d4c0a2e_render = function () {
10932
10953
  1
10933
10954
  )
10934
10955
  : _vm._e(),
10956
+ _vm.withSubmitCurrentTaskReadEnabled
10957
+ ? _c(
10958
+ "div",
10959
+ { staticClass: "item" },
10960
+ [
10961
+ _c(
10962
+ "em-input",
10963
+ {
10964
+ staticClass: "read-type",
10965
+ attrs: { label: "同步提交", readonly: "" },
10966
+ },
10967
+ [
10968
+ _c("template", { slot: "input" }, [
10969
+ _c(
10970
+ "div",
10971
+ {
10972
+ staticClass: "template-input-two",
10973
+ staticStyle: { width: "100%" },
10974
+ },
10975
+ [
10976
+ _c("em-radio-group", {
10977
+ attrs: {
10978
+ data: _vm.withRadioData,
10979
+ direction: "horizontal",
10980
+ },
10981
+ model: {
10982
+ value: _vm.isWith,
10983
+ callback: function ($$v) {
10984
+ _vm.isWith = $$v
10985
+ },
10986
+ expression: "isWith",
10987
+ },
10988
+ }),
10989
+ ],
10990
+ 1
10991
+ ),
10992
+ ]),
10993
+ ],
10994
+ 2
10995
+ ),
10996
+ ],
10997
+ 1
10998
+ )
10999
+ : _vm._e(),
10935
11000
  _c(
10936
11001
  "div",
10937
11002
  { staticClass: "item" },
@@ -10979,11 +11044,11 @@ var TaskReadvue_type_template_id_2d4c0a2e_render = function () {
10979
11044
  ]),
10980
11045
  ])
10981
11046
  }
10982
- var TaskReadvue_type_template_id_2d4c0a2e_staticRenderFns = []
10983
- TaskReadvue_type_template_id_2d4c0a2e_render._withStripped = true
11047
+ var TaskReadvue_type_template_id_ecdb611c_staticRenderFns = []
11048
+ TaskReadvue_type_template_id_ecdb611c_render._withStripped = true
10984
11049
 
10985
11050
 
10986
- // CONCATENATED MODULE: ./packages/flow/src/components/TaskRead.vue?vue&type=template&id=2d4c0a2e
11051
+ // CONCATENATED MODULE: ./packages/flow/src/components/TaskRead.vue?vue&type=template&id=ecdb611c
10987
11052
 
10988
11053
  // 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
10989
11054
  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; };
@@ -11113,6 +11178,20 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11113
11178
  //
11114
11179
  //
11115
11180
  //
11181
+ //
11182
+ //
11183
+ //
11184
+ //
11185
+ //
11186
+ //
11187
+ //
11188
+ //
11189
+ //
11190
+ //
11191
+ //
11192
+ //
11193
+ //
11194
+
11116
11195
 
11117
11196
 
11118
11197
 
@@ -11122,9 +11201,13 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11122
11201
  /* harmony default export */ var TaskReadvue_type_script_lang_js = ({
11123
11202
  data: function data() {
11124
11203
  return {
11204
+ withSubmitCurrentTaskReadEnabled: false,
11205
+ taskReadOpinionRequired: false,
11125
11206
  nextNode: {},
11126
11207
  isSync: '0',
11127
11208
  radioData: [{ name: '普通分阅', value: '0' }, { name: '同步办理', value: '1' }],
11209
+ isWith: '0',
11210
+ withRadioData: [{ name: '提交', value: '0' }, { name: '不提交', value: '1' }],
11128
11211
  isSyncCopy: false,
11129
11212
  readOnlyNotificationType: '',
11130
11213
  defaultNotificationMessage: '',
@@ -11155,6 +11238,10 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11155
11238
  Opinion: Opinion
11156
11239
  },
11157
11240
  props: {
11241
+ opinionType: {
11242
+ type: String,
11243
+ default: 'picker'
11244
+ },
11158
11245
  appid: String,
11159
11246
  orgId: String,
11160
11247
  beforeSubmit: Function,
@@ -11163,6 +11250,10 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11163
11250
  baseUrl: String,
11164
11251
  apiBaseUrl: String,
11165
11252
  type: String,
11253
+ taskAction: {
11254
+ type: String,
11255
+ default: ''
11256
+ },
11166
11257
  readParams: {
11167
11258
  type: Object,
11168
11259
  default: undefined
@@ -11241,6 +11332,69 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11241
11332
 
11242
11333
 
11243
11334
  methods: {
11335
+ subRead: function subRead() {
11336
+ var _this = this;
11337
+
11338
+ var _taskExamine = this.taskExamine,
11339
+ businessId = _taskExamine.businessId,
11340
+ appId = _taskExamine.appId,
11341
+ processDefinitionId = _taskExamine.processDefinitionId,
11342
+ pendingId = _taskExamine.pendingId;
11343
+
11344
+ if (this.taskReadOpinionRequired == 'true' && !this.form.handleExplain) return this.$toast('分阅阅结必须输入意见!');
11345
+ var params = {
11346
+ businessId: businessId,
11347
+ appId: appId,
11348
+ processDefinitionId: processDefinitionId,
11349
+ pendingId: pendingId,
11350
+ opinion: this.form.handleExplain,
11351
+ taskAction: 'complete',
11352
+ mobileKey: util["a" /* default */].getStorage('deviceId') || '123',
11353
+ userId: this.userId || util["a" /* default */].getStorage('userId')
11354
+ };
11355
+ var formData = new FormData();
11356
+
11357
+ for (var key in params) {
11358
+ if (params[key] !== '' && params[key] !== undefined) {
11359
+ formData.append(key, params[key]);
11360
+ }
11361
+ }
11362
+ this.$toast.loading({
11363
+ message: '加载中...',
11364
+ forbidClick: true,
11365
+ loadingType: 'spinner',
11366
+ overlay: true,
11367
+ duration: 0
11368
+ });
11369
+ Object(http["a" /* default */])({
11370
+ url: this.baseUrl ? this.baseUrl + api["O" /* taskReadHtml */] : api["O" /* taskReadHtml */],
11371
+ headers: {
11372
+ Accept: 'application/json,text/plain'
11373
+ },
11374
+ type: 'post',
11375
+ params: formData,
11376
+ format: false
11377
+ }).then(function (res) {
11378
+ var status = res.status,
11379
+ message = res.message;
11380
+
11381
+ _this.$toast.clear();
11382
+ if (status === 'success') {
11383
+ _this.$toast.success('提交成功');
11384
+ _this.$parent.$emit('success', 'submit');
11385
+ } else {
11386
+ _this.$toast(message || '系统错误,请联系管理员!');
11387
+ setTimeout(function () {
11388
+ _this.$parent.$emit('error');
11389
+ }, 1000);
11390
+ }
11391
+ }).catch(function (err) {
11392
+ _this.loading.close();
11393
+ if (err.message && err.message !== 'canceled') {
11394
+ _this.$toast(err.message);
11395
+ }
11396
+ });
11397
+ },
11244
11398
  handlePop: function handlePop(val) {
11245
11399
  this.$parent.$emit('opinion-change', val);
11246
11400
  },
@@ -11253,36 +11407,36 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11253
11407
 
11254
11408
  //获取通知信息
11255
11409
  getMessage: function getMessage() {
11256
- var _this = this;
11410
+ var _this2 = this;
11257
11411
 
11258
11412
  var params = {
11259
11413
  appId: this.readParams.appId
11260
11414
  };
11261
11415
  Object(http["a" /* default */])({ url: api["u" /* getNotificationMsg */], params: params, methods: 'post' }).then(function (res) {
11262
11416
  if (res.status === 'success') {
11263
- _this.defaultNotificationMessage = res.message;
11264
- _this.form.notificationMsg = res.message;
11417
+ _this2.defaultNotificationMessage = res.message;
11418
+ _this2.form.notificationMsg = res.message;
11265
11419
  }
11266
11420
  }).catch(function (err) {
11267
11421
  if (err.message && err.message !== 'canceled') {
11268
- _this.$toast(err.message);
11422
+ _this2.$toast(err.message);
11269
11423
  }
11270
11424
  });
11271
11425
  },
11272
11426
 
11273
11427
  // 转办提交
11274
11428
  subTaskTransfer: function subTaskTransfer() {
11275
- var _this2 = this;
11429
+ var _this3 = this;
11276
11430
 
11277
11431
  if (!this.nextReadUserSelectList || this.nextReadUserSelectList.length === 0) {
11278
11432
  this.$toast('请选择转办对象');
11279
11433
  return;
11280
11434
  }
11281
- var _taskExamine = this.taskExamine,
11282
- choiceDeptId = _taskExamine.choiceDeptId,
11283
- choiceOrgId = _taskExamine.choiceOrgId,
11284
- bCode = _taskExamine.bCode,
11285
- bName = _taskExamine.bName;
11435
+ var _taskExamine2 = this.taskExamine,
11436
+ choiceDeptId = _taskExamine2.choiceDeptId,
11437
+ choiceOrgId = _taskExamine2.choiceOrgId,
11438
+ bCode = _taskExamine2.bCode,
11439
+ bName = _taskExamine2.bName;
11286
11440
  var opinion = this.opinion,
11287
11441
  pendingId = this.pendingId;
11288
11442
 
@@ -11311,25 +11465,25 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11311
11465
  duration: 0
11312
11466
  });
11313
11467
  Object(http["a" /* default */])(params).then(function (res) {
11314
- _this2.$toast.clear();
11468
+ _this3.$toast.clear();
11315
11469
  var message = res.message,
11316
11470
  status = res.status;
11317
11471
 
11318
11472
  if (status === 'success') {
11319
- _this2.$toast('操作成功');
11320
- _this2.$parent.$emit('success');
11473
+ _this3.$toast('操作成功');
11474
+ _this3.$parent.$emit('success');
11321
11475
  } else {
11322
- _this2.$toast(message || '系统错误,请联系管理员!');
11476
+ _this3.$toast(message || '系统错误,请联系管理员!');
11323
11477
  }
11324
11478
  }).catch(function (err) {
11325
- _this2.$toast.clear();
11479
+ _this3.$toast.clear();
11326
11480
  if (err.message && err.message !== 'canceled') {
11327
- _this2.$toast(err.message);
11481
+ _this3.$toast(err.message);
11328
11482
  }
11329
11483
  });
11330
11484
  },
11331
11485
  getFind: function getFind() {
11332
- var _this3 = this;
11486
+ var _this4 = this;
11333
11487
 
11334
11488
  this.$toast.loading({
11335
11489
  message: '加载中...',
@@ -11346,37 +11500,37 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11346
11500
  data = res.data;
11347
11501
 
11348
11502
  if (status === 'success') {
11349
- if (_this3.hideMessage) return;
11350
- _this3.form.notificationMsgType = message.split(',');
11351
- _this3.defaultNotificationType = message.split(',');
11503
+ if (_this4.hideMessage) return;
11504
+ _this4.form.notificationMsgType = message.split(',');
11505
+ _this4.defaultNotificationType = message.split(',');
11352
11506
  if (data) {
11353
- _this3.notificationMessageReadOnly = data.notificationMessageReadOnly == 'true';
11354
- _this3.readOnlyNotificationType = data.readOnlyNotificationType;
11507
+ _this4.notificationMessageReadOnly = data.notificationMessageReadOnly == 'true';
11508
+ _this4.readOnlyNotificationType = data.readOnlyNotificationType;
11355
11509
  }
11356
11510
  } else {
11357
11511
  setTimeout(function () {
11358
- _this3.goBack();
11512
+ _this4.goBack();
11359
11513
  }, 1000);
11360
- _this3.$toast.error(message || '系统错误,请联系管理员!');
11514
+ _this4.$toast.error(message || '系统错误,请联系管理员!');
11361
11515
  }
11362
- if (_this3.type === 'transfer') {
11363
- _this3.toTaskTransfer();
11516
+ if (_this4.type === 'transfer') {
11517
+ _this4.toTaskTransfer();
11364
11518
  } else {
11365
- if (!_this3.readParams) {
11366
- _this3.getProcessObjNew();
11519
+ if (!_this4.readParams) {
11520
+ _this4.getProcessObjNew();
11367
11521
  } else {
11368
- _this3.$toast.clear();
11522
+ _this4.$toast.clear();
11369
11523
  }
11370
11524
  // this.getProcessObjNew();
11371
11525
  }
11372
11526
  }).catch(function (err) {
11373
11527
  if (err.message && err.message !== 'canceled') {
11374
- _this3.$message.error(err.message);
11528
+ _this4.$message.error(err.message);
11375
11529
  }
11376
11530
  });
11377
11531
  },
11378
11532
  toTaskTransfer: function toTaskTransfer() {
11379
- var _this4 = this;
11533
+ var _this5 = this;
11380
11534
 
11381
11535
  var opinion = this.opinion,
11382
11536
  pendingId = this.pendingId,
@@ -11404,20 +11558,20 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11404
11558
  readOnlyNotificationType = _res$data.readOnlyNotificationType,
11405
11559
  notificationMessageReadOnly = _res$data.notificationMessageReadOnly;
11406
11560
 
11407
- _this4.$toast.clear();
11561
+ _this5.$toast.clear();
11408
11562
  if (status == 'success') {
11409
- _this4.isMultipleTransfer(nodeInfoMap.nodeExtAttr.userSelectionType, choiceOrgId, choiceDeptId);
11410
- _this4.nextNode.nodeName = taskExamine.nodeName;
11411
- _this4.transferInfo = taskExamine;
11563
+ _this5.isMultipleTransfer(nodeInfoMap.nodeExtAttr.userSelectionType, choiceOrgId, choiceDeptId);
11564
+ _this5.nextNode.nodeName = taskExamine.nodeName;
11565
+ _this5.transferInfo = taskExamine;
11412
11566
  } else {
11413
- _this4.$toast(message || '系统错误,请联系管理员!');
11567
+ _this5.$toast(message || '系统错误,请联系管理员!');
11414
11568
  setTimeout(function () {
11415
- _this4.goBack();
11569
+ _this5.goBack();
11416
11570
  }, 1000);
11417
11571
  }
11418
11572
  }).catch(function (err) {
11419
11573
  if (err.message && err.message !== 'canceled') {
11420
- _this4.$toast(err.message);
11574
+ _this5.$toast(err.message);
11421
11575
  }
11422
11576
  });
11423
11577
  },
@@ -11487,12 +11641,12 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11487
11641
  this.form.notificationMsg = obj.notificationMsg;
11488
11642
  },
11489
11643
  getTaskRead: function getTaskRead() {
11490
- var _this5 = this;
11644
+ var _this6 = this;
11491
11645
 
11492
11646
  var params = {
11493
11647
  appId: this.processObj.taskExamine.appId,
11494
11648
  businessId: this.processObj.taskExamine.businessId,
11495
- // taskAction: this.newType,
11649
+ taskAction: this.taskAction,
11496
11650
  userId: this.userId,
11497
11651
  mobileKey: util["a" /* default */].getStorage('deviceId') || '123'
11498
11652
  };
@@ -11501,19 +11655,21 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11501
11655
  params: params
11502
11656
  }).then(function (res) {
11503
11657
  if (res.status == 'success' || res.rCode == 0) {
11504
- _this5.selectPersonValue = res.data.selectPersonValue;
11505
- _this5.isSyncCopy = res.data.isSyncCopy == 1;
11658
+ _this6.selectPersonValue = res.data.selectPersonValue;
11659
+ _this6.withSubmitCurrentTaskReadEnabled = res.data.withSubmitCurrentTaskReadEnabled;
11660
+ _this6.isSyncCopy = res.data.isSyncCopy == 1;
11506
11661
  if (res.data.taskHandleReadUserSelectLabelName) {
11507
- _this5.radioData[1].name = res.data.taskHandleReadUserSelectLabelName;
11662
+ _this6.radioData[1].name = res.data.taskHandleReadUserSelectLabelName;
11508
11663
  }
11509
- _this5.isMultiple();
11664
+ _this6.isMultiple();
11510
11665
  }
11511
11666
  });
11512
11667
  },
11513
11668
  getProcessObjNew: function getProcessObjNew() {
11514
- var _this6 = this;
11669
+ var _this7 = this;
11515
11670
 
11516
11671
  var _that = this;
11672
+ console.log('pendingId', this.taskAction);
11517
11673
  var params = {
11518
11674
  pendingId: this.pendingId,
11519
11675
  taskAction: _that.newType,
@@ -11528,17 +11684,17 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11528
11684
  }).then(function (res) {
11529
11685
  _that.$toast.clear();
11530
11686
  if (res.status == 'success') {
11531
- _this6.processObj = res.data;
11687
+ _this7.processObj = res.data;
11532
11688
  // this.notificationMsgType = res.data.defaultNotificationType.split(',');
11533
11689
  // this.isMultiple()
11534
-
11535
- _this6.getTaskRead();
11536
- _this6.taskExamine = res.data.taskExamine;
11690
+ _this7.taskReadOpinionRequired = res.data.taskReadOpinionRequired == 'true';
11691
+ _this7.getTaskRead();
11692
+ _this7.taskExamine = res.data.taskExamine;
11537
11693
  // console.log(this.taskExamine, 'taskExaminetaskExaminetaskExamine');
11538
11694
  } else {
11539
11695
  _that.$toast(res.message);
11540
11696
  setTimeout(function () {
11541
- _this6.goBack();
11697
+ _this7.goBack();
11542
11698
  }, 1000);
11543
11699
  }
11544
11700
  });
@@ -11570,7 +11726,7 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11570
11726
  // }
11571
11727
  },
11572
11728
  onSubmitReadEndNew: function onSubmitReadEndNew() {
11573
- var _this7 = this;
11729
+ var _this8 = this;
11574
11730
 
11575
11731
  var _that = this;
11576
11732
  var params = {
@@ -11602,17 +11758,17 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11602
11758
 
11603
11759
  Object(http["a" /* default */])(params).then(function (res) {
11604
11760
  if (res.rCode == 0) {
11605
- _this7.$toast('操作成功');
11606
- _this7.$parent.$emit('success');
11761
+ _this8.$toast('操作成功');
11762
+ _this8.$parent.$emit('success');
11607
11763
  } else {
11608
- _this7.$toast(res.msg);
11764
+ _this8.$toast(res.msg);
11609
11765
  }
11610
11766
  }).catch(function (err) {
11611
- _this7.$toast('数据返回失败');
11767
+ _this8.$toast('数据返回失败');
11612
11768
  });
11613
11769
  },
11614
11770
  getHandleInfoHtml: function getHandleInfoHtml() {
11615
- var _this8 = this;
11771
+ var _this9 = this;
11616
11772
 
11617
11773
  Object(http["a" /* default */])({
11618
11774
  url: this.baseUrl ? this.baseUrl + api["r" /* getHandleInfoHtml */] : api["r" /* getHandleInfoHtml */],
@@ -11626,8 +11782,8 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11626
11782
  defaultNotificationMessage = _res$data2.defaultNotificationMessage;
11627
11783
 
11628
11784
  if (status == 'success') {
11629
- _this8.defaultNotificationMessage = defaultNotificationMessage;
11630
- _this8.form.notificationMsg = defaultNotificationMessage;
11785
+ _this9.defaultNotificationMessage = defaultNotificationMessage;
11786
+ _this9.form.notificationMsg = defaultNotificationMessage;
11631
11787
  if (choiceDeptId) {
11632
11788
  taskExamine.choiceDeptId = choiceDeptId;
11633
11789
  }
@@ -11635,18 +11791,18 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11635
11791
  taskExamine.choiceOrgId = choiceOrgId;
11636
11792
  }
11637
11793
  if (taskExamine) {
11638
- _this8.taskExamine = taskExamine;
11794
+ _this9.taskExamine = taskExamine;
11639
11795
  }
11640
11796
  } else {
11641
11797
  setTimeout(function () {
11642
- _this8.goBack();
11798
+ _this9.goBack();
11643
11799
  }, 1000);
11644
- _this8.$toast(res.message);
11800
+ _this9.$toast(res.message);
11645
11801
  }
11646
11802
  });
11647
11803
  },
11648
11804
  onSubmitReadNew: function onSubmitReadNew() {
11649
- var _this9 = this;
11805
+ var _this10 = this;
11650
11806
 
11651
11807
  var _that = this;
11652
11808
  if (!this.nextReadUserSelectList || this.nextReadUserSelectList.length === 0) {
@@ -11655,7 +11811,7 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11655
11811
  }
11656
11812
  var ids = '';
11657
11813
  this.nextReadUserSelectList.map(function (r, i) {
11658
- ids = ids + r.showid + (i === _this9.nextReadUserSelectList.length - 1 ? '' : ',');
11814
+ ids = ids + r.showid + (i === _this10.nextReadUserSelectList.length - 1 ? '' : ',');
11659
11815
  });
11660
11816
  var appId = void 0,
11661
11817
  businessId = void 0,
@@ -11711,6 +11867,7 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11711
11867
  this.beforeSubmit(params.params);
11712
11868
  return;
11713
11869
  }
11870
+
11714
11871
  this.$toast.loading({
11715
11872
  message: '加载中...',
11716
11873
  forbidClick: true,
@@ -11720,13 +11877,17 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11720
11877
  });
11721
11878
  Object(http["a" /* default */])(params).then(function (res) {
11722
11879
  if (res.status == 'success') {
11723
- _this9.$toast('操作成功');
11724
- _this9.$parent.$emit('success');
11880
+ _this10.$toast('操作成功');
11881
+ if (_this10.isWith == '0' && _this10.withSubmitCurrentTaskReadEnabled) {
11882
+ _this10.subRead();
11883
+ } else {
11884
+ _this10.$parent.$emit('success');
11885
+ }
11725
11886
  } else {
11726
- _this9.$toast(res.message);
11887
+ _this10.$toast(res.message);
11727
11888
  }
11728
11889
  }).catch(function (err) {
11729
- _this9.$toast('数据返回失败');
11890
+ _this10.$toast('数据返回失败');
11730
11891
  });
11731
11892
  }
11732
11893
  }
@@ -11743,8 +11904,8 @@ var TaskReadvue_type_script_lang_js_extends = Object.assign || function (target)
11743
11904
 
11744
11905
  var TaskRead_component = Object(componentNormalizer["a" /* default */])(
11745
11906
  components_TaskReadvue_type_script_lang_js,
11746
- TaskReadvue_type_template_id_2d4c0a2e_render,
11747
- TaskReadvue_type_template_id_2d4c0a2e_staticRenderFns,
11907
+ TaskReadvue_type_template_id_ecdb611c_render,
11908
+ TaskReadvue_type_template_id_ecdb611c_staticRenderFns,
11748
11909
  false,
11749
11910
  null,
11750
11911
  null,