eoss 0.1.0-alpha.35 → 0.1.0-alpha.37

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 (228) hide show
  1. package/lib/0.js +1 -1
  2. package/lib/1.js +1 -1
  3. package/lib/10.js +1 -1
  4. package/lib/11.js +1 -1
  5. package/lib/12.js +1 -1
  6. package/lib/13.js +1 -1
  7. package/lib/14.js +1 -1
  8. package/lib/15.js +1 -1
  9. package/lib/16.js +1 -1
  10. package/lib/17.js +1 -1
  11. package/lib/18.js +1 -1
  12. package/lib/19.js +1 -1
  13. package/lib/20.js +1 -1
  14. package/lib/21.js +1 -1
  15. package/lib/22.js +1 -1
  16. package/lib/23.js +1 -1
  17. package/lib/24.js +1 -1
  18. package/lib/25.js +1 -1
  19. package/lib/26.js +1 -1
  20. package/lib/27.js +1 -1
  21. package/lib/28.js +1 -1
  22. package/lib/29.js +1 -1
  23. package/lib/3.js +1 -1
  24. package/lib/30.js +1 -1
  25. package/lib/31.js +1 -1
  26. package/lib/32.js +1 -1
  27. package/lib/33.js +1 -1
  28. package/lib/34.js +1 -1
  29. package/lib/35.js +1 -1
  30. package/lib/36.js +1 -1
  31. package/lib/37.js +1 -1
  32. package/lib/38.js +1 -1
  33. package/lib/39.js +1 -1
  34. package/lib/4.js +1 -1
  35. package/lib/40.js +1 -1
  36. package/lib/41.js +1 -1
  37. package/lib/42.js +1 -1
  38. package/lib/43.js +1 -1
  39. package/lib/44.js +1 -1
  40. package/lib/45.js +1 -1
  41. package/lib/46.js +1 -1
  42. package/lib/47.js +1 -1
  43. package/lib/48.js +1 -1
  44. package/lib/49.js +1 -1
  45. package/lib/5.js +1 -1
  46. package/lib/50.js +1 -1
  47. package/lib/51.js +1 -1
  48. package/lib/52.js +1 -1
  49. package/lib/53.js +1 -1
  50. package/lib/54.js +1 -1
  51. package/lib/55.js +1 -1
  52. package/lib/56.js +1 -1
  53. package/lib/57.js +1 -1
  54. package/lib/58.js +1 -1
  55. package/lib/59.js +1 -1
  56. package/lib/6.js +1 -1
  57. package/lib/60.js +1 -1
  58. package/lib/61.js +1 -1
  59. package/lib/62.js +1 -1
  60. package/lib/63.js +1 -1
  61. package/lib/64.js +1 -1
  62. package/lib/65.js +1 -1
  63. package/lib/66.js +1 -1
  64. package/lib/67.js +1 -1
  65. package/lib/68.js +1 -1
  66. package/lib/69.js +1 -1
  67. package/lib/7.js +1 -1
  68. package/lib/70.js +1 -1
  69. package/lib/71.js +1 -1
  70. package/lib/72.js +1 -1
  71. package/lib/73.js +1 -1
  72. package/lib/74.js +1 -1
  73. package/lib/75.js +1 -1
  74. package/lib/76.js +1 -1
  75. package/lib/77.js +1 -1
  76. package/lib/78.js +1 -1
  77. package/lib/79.js +1 -1
  78. package/lib/8.js +1 -1
  79. package/lib/80.js +1 -1
  80. package/lib/81.js +1 -1
  81. package/lib/9.js +1 -1
  82. package/lib/account-login.js +1101 -1035
  83. package/lib/alert.js +2 -2
  84. package/lib/aside.js +2 -2
  85. package/lib/audit-trajectory.js +150 -150
  86. package/lib/autocomplete.js +2095 -1871
  87. package/lib/avatar.js +2 -2
  88. package/lib/backtop.js +2 -2
  89. package/lib/badge.js +2 -2
  90. package/lib/breadcrumb-item.js +4 -4
  91. package/lib/breadcrumb.js +4 -4
  92. package/lib/button-group.js +4 -4
  93. package/lib/button.js +2 -2
  94. package/lib/ca-login.js +862 -837
  95. package/lib/calendar.js +864 -839
  96. package/lib/card.js +2 -2
  97. package/lib/carousel-item.js +864 -839
  98. package/lib/carousel.js +866 -841
  99. package/lib/cascader-panel.js +878 -853
  100. package/lib/cascader.js +2325 -2101
  101. package/lib/checkbox-button.js +4 -4
  102. package/lib/checkbox-group.js +1060 -1025
  103. package/lib/checkbox.js +6 -6
  104. package/lib/col.js +2 -2
  105. package/lib/collapse-item.js +920 -895
  106. package/lib/collapse.js +913 -888
  107. package/lib/color-picker.js +1155 -956
  108. package/lib/container.js +2 -2
  109. package/lib/cron.js +18 -18
  110. package/lib/data-table.js +1053 -1018
  111. package/lib/date-picker.js +2094 -1870
  112. package/lib/descriptions-item.js +144 -0
  113. package/lib/descriptions.js +561 -0
  114. package/lib/dialog.js +943 -918
  115. package/lib/divider.js +2 -2
  116. package/lib/drawer.js +12 -12
  117. package/lib/dropdown-item.js +6 -6
  118. package/lib/dropdown-menu.js +1157 -958
  119. package/lib/dropdown.js +870 -845
  120. package/lib/email-login.js +1047 -1012
  121. package/lib/empty.js +2 -2
  122. package/lib/eoss.common.js +3493 -2313
  123. package/lib/flip.js +2 -2
  124. package/lib/flow-group.js +876 -851
  125. package/lib/flow.js +1184 -1149
  126. package/lib/flows.js +1080 -1045
  127. package/lib/footer.js +2 -2
  128. package/lib/form-item.js +877 -852
  129. package/lib/form.js +1123 -1087
  130. package/lib/guide.js +2 -2
  131. package/lib/header.js +2 -2
  132. package/lib/icon.js +1009 -984
  133. package/lib/icons.js +6 -6
  134. package/lib/image-viewer.js +862 -837
  135. package/lib/image.js +4 -4
  136. package/lib/index.js +1 -1
  137. package/lib/infinite-scroll.js +2 -2
  138. package/lib/input-number.js +6 -6
  139. package/lib/input.js +870 -845
  140. package/lib/link.js +2 -2
  141. package/lib/loading.js +13 -13
  142. package/lib/login.js +1116 -1066
  143. package/lib/lowcode-view.js +1078 -1043
  144. package/lib/lowcode.js +1131 -1096
  145. package/lib/main.js +1185 -1148
  146. package/lib/marquee.js +862 -837
  147. package/lib/menu-item-group.js +20 -17
  148. package/lib/menu-item.js +8 -8
  149. package/lib/menu.js +2390 -2164
  150. package/lib/message-box.js +950 -925
  151. package/lib/message.js +941 -916
  152. package/lib/notification.js +962 -937
  153. package/lib/option-group.js +4 -4
  154. package/lib/option.js +871 -846
  155. package/lib/page-header.js +2 -2
  156. package/lib/pagination.js +866 -841
  157. package/lib/phone-login.js +1049 -1014
  158. package/lib/popconfirm.js +4 -4
  159. package/lib/popover.js +2100 -1876
  160. package/lib/process-config.js +1065 -1030
  161. package/lib/process-module.js +1053 -1018
  162. package/lib/process-rule.js +1062 -1027
  163. package/lib/progress.js +2 -2
  164. package/lib/qr-code.js +4 -4
  165. package/lib/qrcode-login.js +1052 -1017
  166. package/lib/radio-button.js +4 -4
  167. package/lib/radio-group.js +2608 -2573
  168. package/lib/radio.js +6 -6
  169. package/lib/rate.js +864 -839
  170. package/lib/retrial-auth.js +7063 -0
  171. package/lib/row.js +2 -2
  172. package/lib/scrollbar.js +868 -843
  173. package/lib/select.js +2591 -2357
  174. package/lib/selector-panel.js +2659 -2624
  175. package/lib/selector.js +1068 -1033
  176. package/lib/slider.js +6 -6
  177. package/lib/step.js +44 -44
  178. package/lib/steps.js +911 -886
  179. package/lib/submenu.js +1439 -1236
  180. package/lib/switch.js +866 -841
  181. package/lib/tab-pane.js +4 -4
  182. package/lib/table-column.js +936 -911
  183. package/lib/table.js +2318 -2084
  184. package/lib/tabs.js +866 -841
  185. package/lib/tag.js +2 -2
  186. package/lib/theme-chalk/base.css +1 -1
  187. package/lib/theme-chalk/descriptions.css +1 -1
  188. package/lib/theme-chalk/index.css +1 -1
  189. package/lib/theme-chalk/main.css +1 -1
  190. package/lib/theme-chalk/retrial-auth.css +1 -0
  191. package/lib/time-picker.js +2047 -1823
  192. package/lib/time-select.js +2041 -1817
  193. package/lib/timeline-item.js +2 -2
  194. package/lib/timeline.js +2 -2
  195. package/lib/tips.js +1047 -1012
  196. package/lib/toolbar.js +36 -17
  197. package/lib/tooltip.js +2080 -1856
  198. package/lib/transfer.js +881 -856
  199. package/lib/tree-group.js +1020 -995
  200. package/lib/tree.js +1062 -1027
  201. package/lib/update-history.js +151 -151
  202. package/lib/upload.js +1082 -1047
  203. package/lib/utils/ajax.js +5 -1
  204. package/lib/utils/popper.js +97 -48
  205. package/lib/wujie.js +866 -841
  206. package/package.json +1 -1
  207. package/packages/account-login/src/account-login.vue +29 -0
  208. package/packages/descriptions/index.js +8 -0
  209. package/packages/descriptions/src/index.js +181 -0
  210. package/packages/descriptions/src/item.js +30 -0
  211. package/packages/descriptions/src/row.js +120 -0
  212. package/packages/descriptions-item/index.js +8 -0
  213. package/packages/login/src/login.vue +8 -0
  214. package/packages/login/src/mixins.js +3 -1
  215. package/packages/main/src/minxs.js +1 -0
  216. package/packages/menu/src/menu.vue +0 -1
  217. package/packages/menu/src/mixins.js +4 -3
  218. package/packages/menu/src/submenu.vue +4 -4
  219. package/packages/retrial-auth/index.js +5 -0
  220. package/packages/retrial-auth/src/main.vue +300 -0
  221. package/packages/theme-chalk/src/base.scss +2 -1
  222. package/packages/theme-chalk/src/descriptions.scss +0 -1
  223. package/packages/theme-chalk/src/index.scss +3 -0
  224. package/packages/theme-chalk/src/retrial-auth.scss +38 -0
  225. package/packages/toolbar/src/toolbar.vue +5 -0
  226. package/src/index.js +336 -327
  227. package/src/utils/ajax.js +2 -1
  228. package/src/utils/popper.js +109 -70
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 188);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 191);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3285,7 +3285,7 @@ var warning = function warning(content, _callback3) {
3285
3285
 
3286
3286
  /***/ }),
3287
3287
 
3288
- /***/ 11:
3288
+ /***/ 10:
3289
3289
  /***/ (function(module, exports) {
3290
3290
 
3291
3291
  module.exports = require("eoss/lib/message");
@@ -3514,7 +3514,14 @@ module.exports = require("lodash/set");
3514
3514
 
3515
3515
  /***/ }),
3516
3516
 
3517
- /***/ 188:
3517
+ /***/ 19:
3518
+ /***/ (function(module, exports) {
3519
+
3520
+ module.exports = require("lodash/cloneDeep");
3521
+
3522
+ /***/ }),
3523
+
3524
+ /***/ 191:
3518
3525
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3519
3526
 
3520
3527
  "use strict";
@@ -4169,11 +4176,11 @@ var NodeForm_component = Object(componentNormalizer["a" /* default */])(
4169
4176
 
4170
4177
  /* harmony default export */ var NodeForm = (NodeForm_component.exports);
4171
4178
  // EXTERNAL MODULE: external "eoss/lib/data-table"
4172
- var data_table_ = __webpack_require__(46);
4179
+ var data_table_ = __webpack_require__(47);
4173
4180
  var data_table_default = /*#__PURE__*/__webpack_require__.n(data_table_);
4174
4181
 
4175
4182
  // EXTERNAL MODULE: external "eoss/lib/dialog"
4176
- var dialog_ = __webpack_require__(36);
4183
+ var dialog_ = __webpack_require__(37);
4177
4184
  var dialog_default = /*#__PURE__*/__webpack_require__.n(dialog_);
4178
4185
 
4179
4186
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-config/src/NodeConfig.vue?vue&type=script&lang=js&
@@ -4230,13 +4237,13 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4230
4237
  },
4231
4238
  computed: {
4232
4239
  url: function url() {
4233
- return '/' + this.bootName + api["Bb" /* nodeListJson */];
4240
+ return '/' + this.bootName + api["Eb" /* nodeListJson */];
4234
4241
  },
4235
4242
  params: function params() {
4236
4243
  return { mainid: this.mainid };
4237
4244
  },
4238
4245
  info: function info() {
4239
- return '/' + this.bootName + api["Ab" /* nodeInfo */];
4246
+ return '/' + this.bootName + api["Db" /* nodeInfo */];
4240
4247
  }
4241
4248
  },
4242
4249
  data: function data() {
@@ -4317,7 +4324,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4317
4324
  if (this.title === '新增') {
4318
4325
  Object(ajax["a" /* ajax */])({
4319
4326
  method: 'post',
4320
- url: '/' + this.bootName + api["Cb" /* nodeSave */],
4327
+ url: '/' + this.bootName + api["Fb" /* nodeSave */],
4321
4328
  data: _extends({}, data, { mainId: this.mainid })
4322
4329
  }).then(function (res) {
4323
4330
  loadingInstance.close();
@@ -4337,7 +4344,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4337
4344
  delete data.updateTime;
4338
4345
  Object(ajax["a" /* ajax */])({
4339
4346
  method: 'post',
4340
- url: '/' + this.bootName + api["Db" /* nodeUpdate */],
4347
+ url: '/' + this.bootName + api["Gb" /* nodeUpdate */],
4341
4348
  params: _extends({}, data, { mainId: this.mainid })
4342
4349
  }).then(function (res) {
4343
4350
  loadingInstance.close();
@@ -4360,7 +4367,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
4360
4367
  var loadingInstance = Object(util["K" /* loading */])('删除中...');
4361
4368
  Object(ajax["a" /* ajax */])({
4362
4369
  method: 'post',
4363
- url: '/' + this.bootName + api["zb" /* nodeDeleteJson */],
4370
+ url: '/' + this.bootName + api["Cb" /* nodeDeleteJson */],
4364
4371
  data: { id: id }
4365
4372
  }).then(function (res) {
4366
4373
  loadingInstance.close();
@@ -4527,10 +4534,10 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4527
4534
 
4528
4535
  computed: {
4529
4536
  url: function url() {
4530
- return '/' + this.bootName + api["Pb" /* processListJson */];
4537
+ return '/' + this.bootName + api["Sb" /* processListJson */];
4531
4538
  },
4532
4539
  info: function info() {
4533
- return '/' + this.bootName + api["Ob" /* processInfo */];
4540
+ return '/' + this.bootName + api["Rb" /* processInfo */];
4534
4541
  },
4535
4542
  computedParam: function computedParam() {
4536
4543
  return mainvue_type_script_lang_js_extends({}, this.param);
@@ -4576,7 +4583,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4576
4583
  delete data.id;
4577
4584
  Object(ajax["a" /* ajax */])({
4578
4585
  method: 'post',
4579
- url: '/' + this.bootName + api["Qb" /* processSave */],
4586
+ url: '/' + this.bootName + api["Tb" /* processSave */],
4580
4587
  data: mainvue_type_script_lang_js_extends({
4581
4588
  fillUsername: Object(storage["a" /* getStorage */])('userName'),
4582
4589
  fillUserid: Object(storage["a" /* getStorage */])('userId'),
@@ -4601,7 +4608,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4601
4608
  delete data.updateTime;
4602
4609
  Object(ajax["a" /* ajax */])({
4603
4610
  method: 'post',
4604
- url: '/' + this.bootName + api["Rb" /* processUpdate */],
4611
+ url: '/' + this.bootName + api["Ub" /* processUpdate */],
4605
4612
  params: data
4606
4613
  }).then(function (res) {
4607
4614
  loadingInstance.close();
@@ -4624,7 +4631,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4624
4631
  var loadingInstance = Object(util["K" /* loading */])('提交中...');
4625
4632
  Object(ajax["a" /* ajax */])({
4626
4633
  method: 'post',
4627
- url: '/' + this.bootName + api["Nb" /* processDeleteJson */],
4634
+ url: '/' + this.bootName + api["Qb" /* processDeleteJson */],
4628
4635
  data: { id: id }
4629
4636
  }).then(function (res) {
4630
4637
  loadingInstance.close();
@@ -4674,13 +4681,6 @@ main.install = function (Vue) {
4674
4681
 
4675
4682
  /***/ }),
4676
4683
 
4677
- /***/ 19:
4678
- /***/ (function(module, exports) {
4679
-
4680
- module.exports = require("lodash/cloneDeep");
4681
-
4682
- /***/ }),
4683
-
4684
4684
  /***/ 2:
4685
4685
  /***/ (function(module, exports) {
4686
4686
 
@@ -4695,7 +4695,7 @@ module.exports = require("vue");
4695
4695
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return doEncrypt; });
4696
4696
  /* unused harmony export doDecrypt */
4697
4697
  /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
4698
- var sm2 = __webpack_require__(41).sm2;
4698
+ var sm2 = __webpack_require__(42).sm2;
4699
4699
 
4700
4700
 
4701
4701
  /**
@@ -4747,7 +4747,7 @@ var doDecrypt = function doDecrypt(_ref2) {
4747
4747
 
4748
4748
  /***/ }),
4749
4749
 
4750
- /***/ 23:
4750
+ /***/ 21:
4751
4751
  /***/ (function(module, exports) {
4752
4752
 
4753
4753
  module.exports = require("fetch-request-source");
@@ -4761,6 +4761,20 @@ module.exports = require("eoss/lib/form");
4761
4761
 
4762
4762
  /***/ }),
4763
4763
 
4764
+ /***/ 28:
4765
+ /***/ (function(module, exports) {
4766
+
4767
+ module.exports = require("qs");
4768
+
4769
+ /***/ }),
4770
+
4771
+ /***/ 29:
4772
+ /***/ (function(module, exports) {
4773
+
4774
+ module.exports = require("axios");
4775
+
4776
+ /***/ }),
4777
+
4764
4778
  /***/ 3:
4765
4779
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4766
4780
 
@@ -4828,28 +4842,21 @@ function isDefined(val) {
4828
4842
 
4829
4843
  /***/ }),
4830
4844
 
4831
- /***/ 31:
4832
- /***/ (function(module, exports) {
4833
-
4834
- module.exports = require("qs");
4835
-
4836
- /***/ }),
4837
-
4838
- /***/ 32:
4845
+ /***/ 30:
4839
4846
  /***/ (function(module, exports) {
4840
4847
 
4841
- module.exports = require("axios");
4848
+ module.exports = require("json-bigint");
4842
4849
 
4843
4850
  /***/ }),
4844
4851
 
4845
- /***/ 33:
4852
+ /***/ 31:
4846
4853
  /***/ (function(module, exports) {
4847
4854
 
4848
- module.exports = require("json-bigint");
4855
+ module.exports = require("eoss/lib/retrial-auth");
4849
4856
 
4850
4857
  /***/ }),
4851
4858
 
4852
- /***/ 36:
4859
+ /***/ 37:
4853
4860
  /***/ (function(module, exports) {
4854
4861
 
4855
4862
  module.exports = require("eoss/lib/dialog");
@@ -4961,14 +4968,14 @@ function normalizeComponent(
4961
4968
 
4962
4969
  /***/ }),
4963
4970
 
4964
- /***/ 41:
4971
+ /***/ 42:
4965
4972
  /***/ (function(module, exports) {
4966
4973
 
4967
4974
  module.exports = require("sm-crypto");
4968
4975
 
4969
4976
  /***/ }),
4970
4977
 
4971
- /***/ 46:
4978
+ /***/ 47:
4972
4979
  /***/ (function(module, exports) {
4973
4980
 
4974
4981
  module.exports = require("eoss/lib/data-table");
@@ -4979,146 +4986,146 @@ module.exports = require("eoss/lib/data-table");
4979
4986
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4980
4987
 
4981
4988
  "use strict";
4982
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doCaLogin; });
4983
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doUserLogin; });
4984
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doQrLogin; });
4985
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return logout; });
4986
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return initLogin; });
4987
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return switchUserTo; });
4989
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCaLogin; });
4990
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return doUserLogin; });
4991
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return doQrLogin; });
4992
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return logout; });
4993
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initLogin; });
4994
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return switchUserTo; });
4988
4995
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return changeImg; });
4989
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getLoginCode; });
4990
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return doCodeLogin; });
4996
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getLoginCode; });
4997
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return doCodeLogin; });
4991
4998
  /* unused harmony export updateCode */
4992
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getModifyPassCode; });
4999
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getModifyPassCode; });
4993
5000
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return codeModifyPass; });
4994
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return loginModifyPassword; });
5001
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return loginModifyPassword; });
4995
5002
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return authCenter; });
4996
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return initModifyPassword; });
5003
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return initModifyPassword; });
4997
5004
  /* unused harmony export doWechatQrLogin */
4998
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getTwoFactorLoginCode; });
5005
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getTwoFactorLoginCode; });
4999
5006
  /* unused harmony export doTwoFactorLogin */
5000
- /* unused harmony export initRetrialAuth */
5001
- /* unused harmony export getRetrialAuthCode */
5002
- /* unused harmony export scanCodeRetrialAuth */
5003
- /* unused harmony export codeRetrialAuth */
5004
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return doAssistanceQrLogin; });
5005
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return userOnline; });
5006
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return getUserAppWithTag; });
5007
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return recordUserApp; });
5008
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUserRecordApp; });
5009
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return mainConfig; });
5010
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return initUserSet; });
5011
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return updateUserInfo; });
5007
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return initRetrialAuth; });
5008
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getRetrialAuthCode; });
5009
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return scanCodeRetrialAuth; });
5010
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return codeRetrialAuth; });
5011
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return doAssistanceQrLogin; });
5012
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zc", function() { return userOnline; });
5013
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return getUserAppWithTag; });
5014
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return recordUserApp; });
5015
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return getUserRecordApp; });
5016
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return mainConfig; });
5017
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return initUserSet; });
5018
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vc", function() { return updateUserInfo; });
5012
5019
  /* unused harmony export getUserImgUrl */
5013
5020
  /* unused harmony export getDoorIndex */
5014
5021
  /* unused harmony export refreshOnlineUsers */
5015
5022
  /* unused harmony export getQuickMenuIds */
5016
5023
  /* unused harmony export getApplicationIdArray */
5017
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getComplexApplications; });
5018
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplicationsNew; });
5019
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getMainAppWithTag; });
5020
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getByType; });
5024
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getComplexApplications; });
5025
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getComplexApplicationsNew; });
5026
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return getMainAppWithTag; });
5027
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getByType; });
5021
5028
  /* unused harmony export getUserCustomInfo */
5022
5029
  /* unused harmony export updateUserCustomInfo */
5023
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return saveOrUpdate; });
5024
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sysMsgPage; });
5025
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return ignoreSysMsg; });
5026
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return ignoreAllSysMsg; });
5027
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return searchType; });
5028
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSysParam; });
5029
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctProperties; });
5030
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return uploads; });
5031
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return uploadOnlyOne; });
5032
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getAdjunctFileInfos; });
5030
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return saveOrUpdate; });
5031
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return sysMsgPage; });
5032
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return ignoreSysMsg; });
5033
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return ignoreAllSysMsg; });
5034
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return searchType; });
5035
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return getSysParam; });
5036
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return getAdjunctProperties; });
5037
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yc", function() { return uploads; });
5038
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xc", function() { return uploadOnlyOne; });
5039
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getAdjunctFileInfos; });
5033
5040
  /* unused harmony export uploadSort */
5034
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return downloadByAdjunctId; });
5035
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return uploadDownloads; });
5036
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return previewAdjunct; });
5037
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return previewAdjunct2; });
5038
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return previewAdjunctOffice; });
5039
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return delAdjunct; });
5041
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return downloadByAdjunctId; });
5042
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return uploadDownloads; });
5043
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return previewAdjunct; });
5044
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return previewAdjunct2; });
5045
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return previewAdjunctOffice; });
5046
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return delAdjunct; });
5040
5047
  /* unused harmony export upload_updateClassify */
5041
5048
  /* unused harmony export getDeleteAdjunctFileInfos */
5042
5049
  /* unused harmony export getPictureBase64 */
5043
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return getSelectorOrgTree; });
5044
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getSelectorOrgDetail; });
5045
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getOrgMainTree; });
5050
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSelectorOrgTree; });
5051
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return getSelectorOrgDetail; });
5052
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getOrgMainTree; });
5046
5053
  /* unused harmony export getSelectOrgsubids */
5047
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findSysCode; });
5054
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCode; });
5048
5055
  /* unused harmony export getDictList */
5049
5056
  /* unused harmony export findUserBaseInfo */
5050
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return gethelpdoc; });
5057
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return gethelpdoc; });
5051
5058
  /* unused harmony export getCurrentuser */
5052
5059
  /* unused harmony export mainDetail */
5053
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return toStartFlow; });
5054
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return tempSave; });
5055
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return commonOpion; });
5060
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toStartFlow; });
5061
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return tempSave; });
5062
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return commonOpion; });
5056
5063
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
5057
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return editCommonOpion; });
5058
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return saveCommonOpinion; });
5059
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return updateCommonOpinion; });
5060
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return deleteCommonOpion; });
5061
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getProcessDefList; });
5062
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getNodeInfo; });
5063
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return findCodeValues; });
5064
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysParam; });
5065
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return findSysCodes; });
5066
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNotificationMsg; });
5067
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getHandleInfoHtml; });
5068
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return taskHandleHtml; });
5064
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return editCommonOpion; });
5065
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return saveCommonOpinion; });
5066
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tc", function() { return updateCommonOpinion; });
5067
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteCommonOpion; });
5068
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return getProcessDefList; });
5069
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfo; });
5070
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return findCodeValues; });
5071
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return findSysParam; });
5072
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return findSysCodes; });
5073
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return getNotificationMsg; });
5074
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return getHandleInfoHtml; });
5075
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskHandleHtml; });
5069
5076
  /* unused harmony export getView */
5070
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return register; });
5071
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pendedhistoryList; });
5072
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dc", function() { return toTaskRejectHtml; });
5073
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nc", function() { return taskRejectHtml; });
5074
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toStartTaskRead; });
5075
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toStartTaskReadIndex; });
5076
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mc", function() { return taskReadHtml; });
5077
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return rejectAndEnd; });
5078
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yc", function() { return toSendMsg; });
5079
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return sendMsg; });
5080
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowHtml; });
5081
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return handleInfo; });
5082
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return loginUserInfo; });
5083
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wc", function() { return wss; });
5084
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return topic; });
5085
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return getPresetCustomInfo; });
5086
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetNodeInfo; });
5087
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskTransferIndex; });
5088
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskTransfer; });
5077
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return register; });
5078
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return pendedhistoryList; });
5079
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskRejectHtml; });
5080
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rc", function() { return taskRejectHtml; });
5081
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toStartTaskRead; });
5082
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toStartTaskReadIndex; });
5083
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskReadHtml; });
5084
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return rejectAndEnd; });
5085
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toSendMsg; });
5086
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jc", function() { return sendMsg; });
5087
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return endFlowHtml; });
5088
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return handleInfo; });
5089
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return loginUserInfo; });
5090
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ad", function() { return wss; });
5091
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rc", function() { return topic; });
5092
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return getPresetCustomInfo; });
5093
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return getPresetNodeInfo; });
5094
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nc", function() { return toTaskTransferIndex; });
5095
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return taskTransfer; });
5089
5096
  /* unused harmony export toPresetInfoListIndex */
5090
5097
  /* unused harmony export deletePresetInfo */
5091
5098
  /* unused harmony export historyListJson */
5092
5099
  /* unused harmony export pendedhistoryListJson */
5093
5100
  /* unused harmony export pressListJson */
5094
5101
  /* unused harmony export deleteFlow */
5095
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return isCanStartSubFlow; });
5096
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskUnionExamine; });
5097
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskUnionExamine; });
5098
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskTakeAdvice; });
5099
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qc", function() { return taskTakeAdvice; });
5100
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fc", function() { return toTaskStartDraft; });
5101
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskSupervise; });
5102
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hc", function() { return toTaskSuperviseSub; });
5103
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pc", function() { return taskStartDraft; });
5104
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ec", function() { return toTaskReview; });
5105
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskReview; });
5106
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskUnionSeal; });
5107
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskUnionSeal; });
5108
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTwoOfficesDispatch; });
5109
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return twoOfficesDispatch; });
5110
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return toResetProcessIndex; });
5111
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return resetProcess; });
5112
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cc", function() { return toTaskContinuationIndex; });
5113
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return taskContinuation; });
5114
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getFreeStartFlowParams; });
5115
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlowWithSubmitTask; });
5102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return isCanStartSubFlow; });
5103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Oc", function() { return toTaskUnionExamine; });
5104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return taskUnionExamine; });
5105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mc", function() { return toTaskTakeAdvice; });
5106
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "uc", function() { return taskTakeAdvice; });
5107
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jc", function() { return toTaskStartDraft; });
5108
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kc", function() { return toTaskSupervise; });
5109
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lc", function() { return toTaskSuperviseSub; });
5110
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tc", function() { return taskStartDraft; });
5111
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ic", function() { return toTaskReview; });
5112
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sc", function() { return taskReview; });
5113
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pc", function() { return toTaskUnionSeal; });
5114
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xc", function() { return taskUnionSeal; });
5115
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return toTwoOfficesDispatch; });
5116
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sc", function() { return twoOfficesDispatch; });
5117
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bc", function() { return toResetProcessIndex; });
5118
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return resetProcess; });
5119
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gc", function() { return toTaskContinuationIndex; });
5120
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "oc", function() { return taskContinuation; });
5121
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return getFreeStartFlowParams; });
5122
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeStartFlowWithSubmitTask; });
5116
5123
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return checkForeignOrgStartedCircularRead; });
5117
5124
  /* unused harmony export pendedhistoryListWithCircularReadJson */
5118
5125
  /* unused harmony export fyListJson */
5119
5126
  /* unused harmony export circularReadWithdraw */
5120
5127
  /* unused harmony export taskReadWithDraw */
5121
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
5128
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kc", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
5122
5129
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return checkBusinessIdStartedReadTransferHandle; });
5123
5130
  /* unused harmony export sendList */
5124
5131
  /* unused harmony export sendInfo */
@@ -5127,56 +5134,56 @@ module.exports = require("eoss/lib/data-table");
5127
5134
  /* unused harmony export sendDelete */
5128
5135
  /* unused harmony export sendBatch */
5129
5136
  /* unused harmony export formContents */
5130
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return directStartTaskCircularRead; });
5131
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return endFlowAndStartTaskCircularRead; });
5132
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getNodeInfoForStart; });
5133
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return freeStartFlow; });
5134
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getUrgencyLevelChangedNotificationType; });
5135
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wc", function() { return toFreeTaskCircularRead; });
5136
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return freeTaskCircularRead; });
5137
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return pageLists; });
5137
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return directStartTaskCircularRead; });
5138
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return endFlowAndStartTaskCircularRead; });
5139
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getNodeInfoForStart; });
5140
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return freeStartFlow; });
5141
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return getUrgencyLevelChangedNotificationType; });
5142
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ac", function() { return toFreeTaskCircularRead; });
5143
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return freeTaskCircularRead; });
5144
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return pageLists; });
5138
5145
  /* unused harmony export publishedLists */
5139
5146
  /* unused harmony export pageInfo */
5140
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return pageGroup; });
5141
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageSave; });
5142
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageUpdate; });
5143
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return pageDelete; });
5147
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return pageGroup; });
5148
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return pageSave; });
5149
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return pageUpdate; });
5150
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return pageDelete; });
5144
5151
  /* unused harmony export pageTargetDelete */
5145
5152
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return batchSave; });
5146
5153
  /* unused harmony export batchUpdate */
5147
5154
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return batchDelete; });
5148
5155
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return batchList; });
5149
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return processListJson; });
5150
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return processInfo; });
5151
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return processDeleteJson; });
5152
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processSave; });
5153
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processUpdate; });
5154
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return nodeListJson; });
5155
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return nodeDeleteJson; });
5156
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeSave; });
5157
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeUpdate; });
5158
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return nodeInfo; });
5159
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return moduleListJson; });
5160
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return moduleInfo; });
5161
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return moduleDelete; });
5162
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleSave; });
5163
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleUpdate; });
5164
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return ruleListJson; });
5165
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return ruleEdit; });
5166
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleRead; });
5167
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleSave; });
5156
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return processListJson; });
5157
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return processInfo; });
5158
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return processDeleteJson; });
5159
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return processSave; });
5160
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return processUpdate; });
5161
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return nodeListJson; });
5162
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return nodeDeleteJson; });
5163
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return nodeSave; });
5164
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return nodeUpdate; });
5165
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return nodeInfo; });
5166
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return moduleListJson; });
5167
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return moduleInfo; });
5168
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return moduleDelete; });
5169
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return moduleSave; });
5170
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return moduleUpdate; });
5171
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleListJson; });
5172
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return ruleEdit; });
5173
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return ruleRead; });
5174
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return ruleSave; });
5168
5175
  /* unused harmony export ruleSupplement */
5169
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return ruleUndore; });
5170
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return ruleAdd; });
5171
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return companyDetail; });
5176
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return ruleUndore; });
5177
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return ruleAdd; });
5178
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyDetail; });
5172
5179
  /* unused harmony export issueDetailList */
5173
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return deleteRule; });
5174
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return getSysParamV1; });
5175
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return companyList; });
5176
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return supplement; });
5177
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return isAddSource; });
5178
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vc", function() { return tiggerInTime; });
5179
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qc", function() { return updateHistory; });
5180
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return deleteRule; });
5181
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return getSysParamV1; });
5182
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return companyList; });
5183
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lc", function() { return supplement; });
5184
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return isAddSource; });
5185
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zc", function() { return tiggerInTime; });
5186
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Uc", function() { return updateHistory; });
5180
5187
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return auditTrajectory; });
5181
5188
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return changeInTime; });
5182
5189
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
@@ -5598,736 +5605,759 @@ var changeInTime = '/baseIssueRules/changeInTime';
5598
5605
  /* unused harmony export getSecond */
5599
5606
  /* unused harmony export getWeekday */
5600
5607
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return timeCycle; });
5601
-
5602
-
5608
+ /* Modified from https://github.com/taylorhakes/fecha
5609
+ *
5610
+ * The MIT License (MIT)
5611
+ *
5612
+ * Copyright (c) 2015 Taylor Hakes
5613
+ *
5614
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5615
+ * of this software and associated documentation files (the "Software"), to deal
5616
+ * in the Software without restriction, including without limitation the rights
5617
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5618
+ * copies of the Software, and to permit persons to whom the Software is
5619
+ * furnished to do so, subject to the following conditions:
5620
+ *
5621
+ * The above copyright notice and this permission notice shall be included in all
5622
+ * copies or substantial portions of the Software.
5623
+ *
5624
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5625
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5626
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5627
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5628
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5629
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
5630
+ * SOFTWARE.
5631
+ */
5632
+
5633
+ /*eslint-disable*/
5634
+ // 把 YYYY-MM-DD 改成了 yyyy-MM-dd
5635
+
5636
+
5603
5637
  /**
5604
5638
  * Parse or format dates
5605
5639
  * @class fecha
5606
- */
5607
- var fecha = {};
5608
- var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
5609
- var twoDigits = '\\d\\d?';
5610
- var threeDigits = '\\d{3}';
5611
- var fourDigits = '\\d{4}';
5612
- var word = '[^\\s]+';
5613
- var literal = /\[([^]*?)\]/gm;
5614
- var noop = function noop() {};
5615
-
5616
- function regexEscape(str) {
5617
- return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
5618
- }
5619
-
5620
- function shorten(arr, sLen) {
5621
- var newArr = [];
5622
- for (var i = 0, len = arr.length; i < len; i++) {
5623
- newArr.push(arr[i].substr(0, sLen));
5624
- }
5625
- return newArr;
5626
- }
5627
-
5628
- function monthUpdate() {
5629
- return function (d, v) {
5630
- var index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
5631
- if (~index) {
5632
- d.month = index;
5633
- }
5634
- };
5635
- }
5636
-
5637
- function pad(val, len) {
5638
- val = String(val);
5639
- len = len || 2;
5640
- while (val.length < len) {
5641
- val = '0' + val;
5642
- }
5643
- return val;
5644
- }
5645
-
5646
- // 直接使用中文日期名称常量
5647
- var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
5648
- var monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
5649
- var monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
5650
- var dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
5651
- var amPm = ['上午', '下午'];
5652
- var DoFn = function DoFn(D) {
5653
- return D + '日';
5654
- };
5655
-
5656
- var formatFlags = {
5657
- D: function D(dateObj) {
5658
- return dateObj.getDay();
5659
- },
5660
- DD: function DD(dateObj) {
5661
- return pad(dateObj.getDay());
5662
- },
5663
- Do: function Do(dateObj) {
5664
- return DoFn(dateObj.getDate());
5665
- },
5666
- d: function d(dateObj) {
5667
- return dateObj.getDate();
5668
- },
5669
- dd: function dd(dateObj) {
5670
- return pad(dateObj.getDate());
5671
- },
5672
- ddd: function ddd(dateObj) {
5673
- return dayNamesShort[dateObj.getDay()];
5674
- },
5675
- dddd: function dddd(dateObj) {
5676
- return dayNames[dateObj.getDay()];
5677
- },
5678
- M: function M(dateObj) {
5679
- return dateObj.getMonth() + 1;
5680
- },
5681
- MM: function MM(dateObj) {
5682
- return pad(dateObj.getMonth() + 1);
5683
- },
5684
- MMM: function MMM(dateObj) {
5685
- return monthNamesShort[dateObj.getMonth()];
5686
- },
5687
- MMMM: function MMMM(dateObj) {
5688
- return monthNames[dateObj.getMonth()];
5689
- },
5690
- yy: function yy(dateObj) {
5691
- return pad(String(dateObj.getFullYear()), 4).substr(2);
5692
- },
5693
- yyyy: function yyyy(dateObj) {
5694
- return pad(dateObj.getFullYear(), 4);
5695
- },
5696
- h: function h(dateObj) {
5697
- return dateObj.getHours() % 12 || 12;
5698
- },
5699
- hh: function hh(dateObj) {
5700
- return pad(dateObj.getHours() % 12 || 12);
5701
- },
5702
- H: function H(dateObj) {
5703
- return dateObj.getHours();
5704
- },
5705
- HH: function HH(dateObj) {
5706
- return pad(dateObj.getHours());
5707
- },
5708
- m: function m(dateObj) {
5709
- return dateObj.getMinutes();
5710
- },
5711
- mm: function mm(dateObj) {
5712
- return pad(dateObj.getMinutes());
5713
- },
5714
- s: function s(dateObj) {
5715
- return dateObj.getSeconds();
5716
- },
5717
- ss: function ss(dateObj) {
5718
- return pad(dateObj.getSeconds());
5719
- },
5720
- S: function S(dateObj) {
5721
- return Math.round(dateObj.getMilliseconds() / 100);
5722
- },
5723
- SS: function SS(dateObj) {
5724
- return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5725
- },
5726
- SSS: function SSS(dateObj) {
5727
- return pad(dateObj.getMilliseconds(), 3);
5728
- },
5729
- a: function a(dateObj) {
5730
- return dateObj.getHours() < 12 ? '上午' : '下午';
5731
- },
5732
- A: function A(dateObj) {
5733
- return dateObj.getHours() < 12 ? '上午' : '下午';
5734
- },
5735
- ZZ: function ZZ(dateObj) {
5736
- var o = dateObj.getTimezoneOffset();
5737
- return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5738
- }
5739
- };
5740
-
5741
- var parseFlags = {
5742
- d: [twoDigits, function (d, v) {
5743
- d.day = v;
5744
- }],
5745
- Do: [twoDigits + word, function (d, v) {
5746
- d.day = parseInt(v, 10);
5747
- }],
5748
- M: [twoDigits, function (d, v) {
5749
- d.month = v - 1;
5750
- }],
5751
- yy: [twoDigits, function (d, v) {
5752
- var da = new Date(),
5753
- cent = +('' + da.getFullYear()).substr(0, 2);
5754
- d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5755
- }],
5756
- h: [twoDigits, function (d, v) {
5757
- d.hour = v;
5758
- }],
5759
- m: [twoDigits, function (d, v) {
5760
- d.minute = v;
5761
- }],
5762
- s: [twoDigits, function (d, v) {
5763
- d.second = v;
5764
- }],
5765
- yyyy: [fourDigits, function (d, v) {
5766
- d.year = v;
5767
- }],
5768
- S: ['\\d', function (d, v) {
5769
- d.millisecond = v * 100;
5770
- }],
5771
- SS: ['\\d{2}', function (d, v) {
5772
- d.millisecond = v * 10;
5773
- }],
5774
- SSS: [threeDigits, function (d, v) {
5775
- d.millisecond = v;
5776
- }],
5777
- D: [twoDigits, noop],
5778
- ddd: [word, noop],
5779
- MMM: [word, monthUpdate('monthNamesShort')],
5780
- MMMM: [word, monthUpdate('monthNames')],
5781
- a: [word, function (d, v) {
5782
- var val = v.toLowerCase();
5783
- if (val === '上午') {
5784
- d.isPm = false;
5785
- } else if (val === '下午') {
5786
- d.isPm = true;
5787
- }
5788
- }],
5789
- ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5790
- var parts = (v + '').match(/([+-]|\d\d)/gi),
5791
- minutes = void 0;
5792
-
5793
- if (parts) {
5794
- minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5795
- d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5796
- }
5797
- }]
5798
- };
5799
- parseFlags.dd = parseFlags.d;
5800
- parseFlags.dddd = parseFlags.ddd;
5801
- parseFlags.DD = parseFlags.D;
5802
- parseFlags.mm = parseFlags.m;
5803
- parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5804
- parseFlags.MM = parseFlags.M;
5805
- parseFlags.ss = parseFlags.s;
5806
- parseFlags.A = parseFlags.a;
5807
-
5808
- // Some common format strings
5809
- fecha.masks = {
5810
- default: 'ddd MMM dd yyyy HH:mm:ss',
5811
- shortDate: 'M/D/yy',
5812
- mediumDate: 'MMM d, yyyy',
5813
- longDate: 'MMMM d, yyyy',
5814
- fullDate: 'dddd, MMMM d, yyyy',
5815
- shortTime: 'HH:mm',
5816
- mediumTime: 'HH:mm:ss',
5817
- longTime: 'HH:mm:ss.SSS'
5818
- };
5819
-
5640
+ */
5641
+ const fecha = {};
5642
+ const token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
5643
+ const twoDigits = '\\d\\d?';
5644
+ const threeDigits = '\\d{3}';
5645
+ const fourDigits = '\\d{4}';
5646
+ const word = '[^\\s]+';
5647
+ const literal = /\[([^]*?)\]/gm;
5648
+ const noop = function () {};
5649
+
5650
+ function regexEscape(str) {
5651
+ return str.replace(/[|\\{()[^$+*?.-]/g, '\\$&');
5652
+ }
5653
+
5654
+ function shorten(arr, sLen) {
5655
+ const newArr = [];
5656
+ for (let i = 0, len = arr.length; i < len; i++) {
5657
+ newArr.push(arr[i].substr(0, sLen));
5658
+ }
5659
+ return newArr;
5660
+ }
5661
+
5662
+ function monthUpdate() {
5663
+ return function (d, v) {
5664
+ const index = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'].indexOf(v.toLowerCase());
5665
+ if (~index) {
5666
+ d.month = index;
5667
+ }
5668
+ };
5669
+ }
5670
+
5671
+ function pad(val, len) {
5672
+ val = String(val);
5673
+ len = len || 2;
5674
+ while (val.length < len) {
5675
+ val = '0' + val;
5676
+ }
5677
+ return val;
5678
+ }
5679
+
5680
+ // 直接使用中文日期名称常量
5681
+ const dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
5682
+ const monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
5683
+ const monthNamesShort = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
5684
+ const dayNamesShort = ['日', '一', '二', '三', '四', '五', '六'];
5685
+ const amPm = ['上午', '下午'];
5686
+ const DoFn = function DoFn(D) {
5687
+ return D + '日';
5688
+ };
5689
+
5690
+ const formatFlags = {
5691
+ D: function(dateObj) {
5692
+ return dateObj.getDay();
5693
+ },
5694
+ DD: function(dateObj) {
5695
+ return pad(dateObj.getDay());
5696
+ },
5697
+ Do: function(dateObj) {
5698
+ return DoFn(dateObj.getDate());
5699
+ },
5700
+ d: function(dateObj) {
5701
+ return dateObj.getDate();
5702
+ },
5703
+ dd: function(dateObj) {
5704
+ return pad(dateObj.getDate());
5705
+ },
5706
+ ddd: function(dateObj) {
5707
+ return dayNamesShort[dateObj.getDay()];
5708
+ },
5709
+ dddd: function(dateObj) {
5710
+ return dayNames[dateObj.getDay()];
5711
+ },
5712
+ M: function(dateObj) {
5713
+ return dateObj.getMonth() + 1;
5714
+ },
5715
+ MM: function(dateObj) {
5716
+ return pad(dateObj.getMonth() + 1);
5717
+ },
5718
+ MMM: function(dateObj) {
5719
+ return monthNamesShort[dateObj.getMonth()];
5720
+ },
5721
+ MMMM: function(dateObj) {
5722
+ return monthNames[dateObj.getMonth()];
5723
+ },
5724
+ yy: function(dateObj) {
5725
+ return pad(String(dateObj.getFullYear()), 4).substr(2);
5726
+ },
5727
+ yyyy: function(dateObj) {
5728
+ return pad(dateObj.getFullYear(), 4);
5729
+ },
5730
+ h: function(dateObj) {
5731
+ return dateObj.getHours() % 12 || 12;
5732
+ },
5733
+ hh: function(dateObj) {
5734
+ return pad(dateObj.getHours() % 12 || 12);
5735
+ },
5736
+ H: function(dateObj) {
5737
+ return dateObj.getHours();
5738
+ },
5739
+ HH: function(dateObj) {
5740
+ return pad(dateObj.getHours());
5741
+ },
5742
+ m: function(dateObj) {
5743
+ return dateObj.getMinutes();
5744
+ },
5745
+ mm: function(dateObj) {
5746
+ return pad(dateObj.getMinutes());
5747
+ },
5748
+ s: function(dateObj) {
5749
+ return dateObj.getSeconds();
5750
+ },
5751
+ ss: function(dateObj) {
5752
+ return pad(dateObj.getSeconds());
5753
+ },
5754
+ S: function(dateObj) {
5755
+ return Math.round(dateObj.getMilliseconds() / 100);
5756
+ },
5757
+ SS: function(dateObj) {
5758
+ return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
5759
+ },
5760
+ SSS: function(dateObj) {
5761
+ return pad(dateObj.getMilliseconds(), 3);
5762
+ },
5763
+ a: function(dateObj) {
5764
+ return dateObj.getHours() < 12 ? '上午' : '下午';
5765
+ },
5766
+ A: function(dateObj) {
5767
+ return dateObj.getHours() < 12 ? '上午' : '下午';
5768
+ },
5769
+ ZZ: function(dateObj) {
5770
+ const o = dateObj.getTimezoneOffset();
5771
+ return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
5772
+ }
5773
+ };
5774
+
5775
+ const parseFlags = {
5776
+ d: [twoDigits, function (d, v) {
5777
+ d.day = v;
5778
+ }],
5779
+ Do: [twoDigits + word, function (d, v) {
5780
+ d.day = parseInt(v, 10);
5781
+ }],
5782
+ M: [twoDigits, function (d, v) {
5783
+ d.month = v - 1;
5784
+ }],
5785
+ yy: [twoDigits, function (d, v) {
5786
+ const da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
5787
+ d.year = '' + (v > 68 ? cent - 1 : cent) + v;
5788
+ }],
5789
+ h: [twoDigits, function (d, v) {
5790
+ d.hour = v;
5791
+ }],
5792
+ m: [twoDigits, function (d, v) {
5793
+ d.minute = v;
5794
+ }],
5795
+ s: [twoDigits, function (d, v) {
5796
+ d.second = v;
5797
+ }],
5798
+ yyyy: [fourDigits, function (d, v) {
5799
+ d.year = v;
5800
+ }],
5801
+ S: ['\\d', function (d, v) {
5802
+ d.millisecond = v * 100;
5803
+ }],
5804
+ SS: ['\\d{2}', function (d, v) {
5805
+ d.millisecond = v * 10;
5806
+ }],
5807
+ SSS: [threeDigits, function (d, v) {
5808
+ d.millisecond = v;
5809
+ }],
5810
+ D: [twoDigits, noop],
5811
+ ddd: [word, noop],
5812
+ MMM: [word, monthUpdate('monthNamesShort')],
5813
+ MMMM: [word, monthUpdate('monthNames')],
5814
+ a: [word, function (d, v) {
5815
+ const val = v.toLowerCase();
5816
+ if (val === '上午') {
5817
+ d.isPm = false;
5818
+ } else if (val === '下午') {
5819
+ d.isPm = true;
5820
+ }
5821
+ }],
5822
+ ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
5823
+ let parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
5824
+
5825
+ if (parts) {
5826
+ minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
5827
+ d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
5828
+ }
5829
+ }]
5830
+ };
5831
+ parseFlags.dd = parseFlags.d;
5832
+ parseFlags.dddd = parseFlags.ddd;
5833
+ parseFlags.DD = parseFlags.D;
5834
+ parseFlags.mm = parseFlags.m;
5835
+ parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
5836
+ parseFlags.MM = parseFlags.M;
5837
+ parseFlags.ss = parseFlags.s;
5838
+ parseFlags.A = parseFlags.a;
5839
+
5840
+
5841
+ // Some common format strings
5842
+ fecha.masks = {
5843
+ default: 'ddd MMM dd yyyy HH:mm:ss',
5844
+ shortDate: 'M/D/yy',
5845
+ mediumDate: 'MMM d, yyyy',
5846
+ longDate: 'MMMM d, yyyy',
5847
+ fullDate: 'dddd, MMMM d, yyyy',
5848
+ shortTime: 'HH:mm',
5849
+ mediumTime: 'HH:mm:ss',
5850
+ longTime: 'HH:mm:ss.SSS'
5851
+ };
5852
+
5820
5853
  /***
5821
5854
  * Format a date
5822
5855
  * @method format
5823
5856
  * @param {Date|number} dateObj
5824
5857
  * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
5825
- */
5826
- fecha.format = function (dateObj, mask) {
5827
- if (typeof dateObj === 'number') {
5828
- dateObj = new Date(dateObj);
5829
- }
5830
-
5831
- if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5832
- throw new Error('Invalid Date in fecha.format');
5833
- }
5834
-
5835
- mask = fecha.masks[mask] || mask || fecha.masks['default'];
5836
-
5837
- var literals = [];
5838
-
5839
- // Make literals inactive by replacing them with ??
5840
- mask = mask.replace(literal, function ($0, $1) {
5841
- literals.push($1);
5842
- return '@@@';
5843
- });
5844
- // Apply formatting rules
5845
- mask = mask.replace(token, function ($0) {
5846
- return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
5847
- });
5848
- // Inline literal values back into the formatted value
5849
- return mask.replace(/@@@/g, function () {
5850
- return literals.shift();
5851
- });
5852
- };
5853
-
5858
+ */
5859
+ fecha.format = function (dateObj, mask) {
5860
+ if (typeof dateObj === 'number') {
5861
+ dateObj = new Date(dateObj);
5862
+ }
5863
+
5864
+ if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
5865
+ throw new Error('Invalid Date in fecha.format');
5866
+ }
5867
+
5868
+ mask = fecha.masks[mask] || mask || fecha.masks['default'];
5869
+
5870
+ const literals = [];
5871
+
5872
+ // Make literals inactive by replacing them with ??
5873
+ mask = mask.replace(literal, function($0, $1) {
5874
+ literals.push($1);
5875
+ return '@@@';
5876
+ });
5877
+ // Apply formatting rules
5878
+ mask = mask.replace(token, function ($0) {
5879
+ return $0 in formatFlags ? formatFlags[$0](dateObj) : $0.slice(1, $0.length - 1);
5880
+ });
5881
+ // Inline literal values back into the formatted value
5882
+ return mask.replace(/@@@/g, function() {
5883
+ return literals.shift();
5884
+ });
5885
+ };
5886
+
5854
5887
  /**
5855
5888
  * Parse a date string into an object, changes - into /
5856
5889
  * @method parse
5857
5890
  * @param {string} dateStr Date string
5858
5891
  * @param {string} format Date parse format
5859
5892
  * @returns {Date|boolean}
5860
- */
5861
- fecha.parse = function (dateStr, format) {
5862
- if (typeof format !== 'string') {
5863
- throw new Error('Invalid format in fecha.parse');
5864
- }
5865
-
5866
- format = fecha.masks[format] || format;
5867
-
5868
- // Avoid regular expression denial of service, fail early for really long strings
5869
- // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5870
- if (dateStr.length > 1000) {
5871
- return null;
5872
- }
5873
-
5874
- var dateInfo = {};
5875
- var parseInfo = [];
5876
- var literals = [];
5877
- format = format.replace(literal, function ($0, $1) {
5878
- literals.push($1);
5879
- return '@@@';
5880
- });
5881
- var newFormat = regexEscape(format).replace(token, function ($0) {
5882
- if (parseFlags[$0]) {
5883
- var info = parseFlags[$0];
5884
- parseInfo.push(info[1]);
5885
- return '(' + info[0] + ')';
5886
- }
5887
-
5888
- return $0;
5889
- });
5890
- newFormat = newFormat.replace(/@@@/g, function () {
5891
- return literals.shift();
5892
- });
5893
- var matches = dateStr.match(new RegExp(newFormat, 'i'));
5894
- if (!matches) {
5895
- return null;
5896
- }
5897
-
5898
- for (var i = 1; i < matches.length; i++) {
5899
- parseInfo[i - 1](dateInfo, matches[i]);
5900
- }
5901
-
5902
- var today = new Date();
5903
- if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5904
- dateInfo.hour = +dateInfo.hour + 12;
5905
- } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5906
- dateInfo.hour = 0;
5907
- }
5908
-
5909
- var date = void 0;
5910
- if (dateInfo.timezoneOffset != null) {
5911
- dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5912
- date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
5913
- } else {
5914
- date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
5915
- }
5916
- return date;
5917
- };
5918
-
5919
- // 导出fecha对象
5920
-
5921
-
5922
- // 以下是从date-util.js合并的函数
5923
- var newArray = function newArray(start, end) {
5924
- var result = [];
5925
- for (var i = start; i <= end; i++) {
5926
- result.push(i);
5927
- }
5928
- return result;
5929
- };
5930
-
5931
- var getSettings = function getSettings() {
5932
- return {
5933
- dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
5934
- dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
5935
- monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
5936
- monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
5937
- amPm: ['上午', '下午']
5938
- };
5939
- };
5940
-
5941
- var toDate = function toDate(date) {
5942
- return isDate(date) ? new Date(date) : null;
5943
- };
5944
-
5945
- var isDate = function isDate(date) {
5946
- if (date === null || date === undefined) return false;
5947
- if (isNaN(new Date(date).getTime())) return false;
5948
- if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
5949
- return true;
5950
- };
5951
-
5952
- var isDateObject = function isDateObject(val) {
5953
- return val instanceof Date;
5954
- };
5955
-
5956
- var formatDate = function formatDate(date) {
5957
- var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-MM-dd';
5958
-
5959
- // 处理多种输入类型
5960
- if (!date) return '';
5961
-
5962
- // 如果是时间戳,转成日期对象
5963
- if (typeof date === 'number') {
5964
- date = new Date(date);
5965
- }
5966
- // 如果是字符串,转成日期对象
5967
- if (typeof date === 'string') {
5968
- date = new Date(date);
5969
- }
5970
-
5971
- // 调用toDate进一步验证和转换
5972
- date = toDate(date);
5973
- if (!date) return '';
5974
-
5975
- // 兼容大写和小写的格式标记
5976
- // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
5977
- var lowercaseFormat = format.replace(/YYYY/g, 'yyyy').replace(/D/g, 'd');
5978
-
5979
- // 使用fecha库进行格式化,支持中文配置
5980
- var str = fecha.format(date, lowercaseFormat, getSettings());
5981
- return str;
5982
- };
5983
-
5984
- var parseDate = function parseDate(string, format) {
5985
- return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
5986
- };
5987
-
5988
- var getDayCountOfMonth = function getDayCountOfMonth(year, month) {
5989
- if (month === 3 || month === 5 || month === 8 || month === 10) {
5990
- return 30;
5991
- }
5992
-
5993
- if (month === 1) {
5994
- if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
5995
- return 29;
5996
- } else {
5997
- return 28;
5998
- }
5999
- }
6000
-
6001
- return 31;
6002
- };
6003
-
6004
- var getDayCountOfYear = function getDayCountOfYear(year) {
6005
- var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
6006
- return isLeapYear ? 366 : 365;
6007
- };
6008
-
6009
- var getFirstDayOfMonth = function getFirstDayOfMonth(date) {
6010
- var temp = new Date(date.getTime());
6011
- temp.setDate(1);
6012
- return temp.getDay();
6013
- };
6014
-
6015
- // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
6016
- // {prev, next} Date should work for Daylight Saving Time
6017
- // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
6018
- var prevDate = function prevDate(date) {
6019
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6020
-
6021
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
6022
- };
6023
-
6024
- var nextDate = function nextDate(date) {
6025
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6026
-
6027
- return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
6028
- };
6029
-
6030
- var getStartDateOfMonth = function getStartDateOfMonth(year, month) {
6031
- var result = new Date(year, month, 1);
6032
- var day = result.getDay();
6033
-
6034
- if (day === 0) {
6035
- return prevDate(result, 7);
6036
- } else {
6037
- return prevDate(result, day);
6038
- }
6039
- };
6040
-
6041
- var getWeekNumber = function getWeekNumber(date) {
6042
- // 支持多种输入类型
6043
- if (!date || !isDate(date)) {
6044
- date = new Date();
6045
- }
6046
- if (typeof date === 'string') {
6047
- date = new Date(date);
6048
- }
6049
-
6050
- // 验证日期有效性
6051
- if (!isDate(date)) return null;
6052
-
6053
- var d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
6054
- // 设置为最近的星期四:当前日期 + 4 - 当前星期数
6055
- // 将星期日的星期数设为7
6056
- d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
6057
- // 获取当年的第一天
6058
- var yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
6059
- // 计算到最近的星期四的完整周数
6060
- var weekNo = Math.ceil(((d - yearStart) / 86400000 + 1) / 7);
6061
- // 返回周数
6062
- return weekNo;
6063
- };
6064
-
6065
- var getRangeHours = function getRangeHours(ranges) {
6066
- var hours = [];
6067
- var disabledHours = [];
6068
-
6069
- (ranges || []).forEach(function (range) {
6070
- var value = range.map(function (date) {
6071
- return date.getHours();
6072
- });
6073
-
6074
- disabledHours = disabledHours.concat(newArray(value[0], value[1]));
6075
- });
6076
-
6077
- if (disabledHours.length) {
6078
- for (var i = 0; i < 24; i++) {
6079
- hours[i] = disabledHours.indexOf(i) === -1;
6080
- }
6081
- } else {
6082
- for (var _i = 0; _i < 24; _i++) {
6083
- hours[_i] = false;
6084
- }
6085
- }
6086
-
6087
- return hours;
6088
- };
6089
-
6090
- var getPrevMonthLastDays = function getPrevMonthLastDays(date, amount) {
6091
- if (amount <= 0) return [];
6092
- var temp = new Date(date.getTime());
6093
- temp.setDate(0);
6094
- var lastDay = temp.getDate();
6095
- return range(amount).map(function (_, index) {
6096
- return lastDay - (amount - index - 1);
6097
- });
6098
- };
6099
-
6100
- var getMonthDays = function getMonthDays(date) {
6101
- var temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
6102
- var days = temp.getDate();
6103
- return range(days).map(function (_, index) {
6104
- return index + 1;
6105
- });
6106
- };
6107
-
6108
- function setRangeData(arr, start, end, value) {
6109
- for (var i = start; i < end; i++) {
6110
- arr[i] = value;
6111
- }
6112
- }
6113
-
6114
- var getRangeMinutes = function getRangeMinutes(ranges, hour) {
6115
- var minutes = new Array(60);
6116
-
6117
- if (ranges.length > 0) {
6118
- ranges.forEach(function (range) {
6119
- var start = range[0];
6120
- var end = range[1];
6121
- var startHour = start.getHours();
6122
- var startMinute = start.getMinutes();
6123
- var endHour = end.getHours();
6124
- var endMinute = end.getMinutes();
6125
- if (startHour === hour && endHour !== hour) {
6126
- setRangeData(minutes, startMinute, 60, true);
6127
- } else if (startHour === hour && endHour === hour) {
6128
- setRangeData(minutes, startMinute, endMinute + 1, true);
6129
- } else if (startHour !== hour && endHour === hour) {
6130
- setRangeData(minutes, 0, endMinute + 1, true);
6131
- } else if (startHour < hour && endHour > hour) {
6132
- setRangeData(minutes, 0, 60, true);
6133
- }
6134
- });
6135
- } else {
6136
- setRangeData(minutes, 0, 60, true);
6137
- }
6138
- return minutes;
6139
- };
6140
-
6141
- var range = function range(n) {
6142
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
6143
- return Array.apply(null, { length: n }).map(function (_, n) {
6144
- return n;
6145
- });
6146
- };
6147
-
6148
- var modifyDate = function modifyDate(date, y, m, d) {
6149
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
6150
- };
6151
-
6152
- var modifyTime = function modifyTime(date, h, m, s) {
6153
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
6154
- };
6155
-
6156
- var modifyWithTimeString = function modifyWithTimeString(date, time) {
6157
- if (date == null || !time) {
6158
- return date;
6159
- }
6160
- time = parseDate(time, 'HH:mm:ss');
6161
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
6162
- };
6163
-
6164
- var clearTime = function clearTime(date) {
6165
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
6166
- };
6167
-
6168
- var clearMilliseconds = function clearMilliseconds(date) {
6169
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
6170
- };
6171
-
6172
- var limitTimeRange = function limitTimeRange(date, ranges) {
6173
- var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
6174
-
6175
- // TODO: refactory a more elegant solution
6176
- if (ranges.length === 0) return date;
6177
- var normalizeDate = function normalizeDate(date) {
6178
- return fecha.parse(fecha.format(date, format), format);
6179
- };
6180
- var ndate = normalizeDate(date);
6181
- var nranges = ranges.map(function (range) {
6182
- return range.map(normalizeDate);
6183
- });
6184
- if (nranges.some(function (nrange) {
6185
- return ndate >= nrange[0] && ndate <= nrange[1];
6186
- })) return date;
6187
-
6188
- var minDate = nranges[0][0];
6189
- var maxDate = nranges[0][0];
6190
-
6191
- nranges.forEach(function (nrange) {
6192
- minDate = new Date(Math.min(nrange[0], minDate));
6193
- maxDate = new Date(Math.max(nrange[1], minDate));
6194
- });
6195
-
6196
- var ret = ndate < minDate ? minDate : maxDate;
6197
- // preserve Year/Month/Date
6198
- return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
6199
- };
6200
-
6201
- var timeWithinRange = function timeWithinRange(date, selectableRange, format) {
6202
- var limitedDate = limitTimeRange(date, selectableRange, format);
6203
- return limitedDate.getTime() === date.getTime();
6204
- };
6205
-
6206
- var changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
6207
- // clamp date to the number of days in `year`, `month`
6208
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
6209
- var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
6210
- return modifyDate(date, year, month, monthDate);
6211
- };
6212
-
6213
- var prevMonth = function prevMonth(date) {
6214
- var year = date.getFullYear();
6215
- var month = date.getMonth();
6216
- return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
6217
- };
6218
-
6219
- var nextMonth = function nextMonth(date) {
6220
- var year = date.getFullYear();
6221
- var month = date.getMonth();
6222
- return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
6223
- };
6224
-
6225
- var prevYear = function prevYear(date) {
6226
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6227
-
6228
- var year = date.getFullYear();
6229
- var month = date.getMonth();
6230
- return changeYearMonthAndClampDate(date, year - amount, month);
6231
- };
6232
-
6233
- var nextYear = function nextYear(date) {
6234
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
6235
-
6236
- var year = date.getFullYear();
6237
- var month = date.getMonth();
6238
- return changeYearMonthAndClampDate(date, year + amount, month);
6239
- };
6240
-
6241
- var extractDateFormat = function extractDateFormat(format) {
6242
- return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
6243
- };
6244
-
6245
- var extractTimeFormat = function extractTimeFormat(format) {
6246
- return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
6247
- };
6248
-
6249
- var validateRangeInOneMonth = function validateRangeInOneMonth(start, end) {
6250
- return start.getMonth() === end.getMonth() && start.getFullYear() === end.getFullYear();
6251
- };
6252
-
5893
+ */
5894
+ fecha.parse = function (dateStr, format) {
5895
+ if (typeof format !== 'string') {
5896
+ throw new Error('Invalid format in fecha.parse');
5897
+ }
5898
+
5899
+ format = fecha.masks[format] || format;
5900
+
5901
+ // Avoid regular expression denial of service, fail early for really long strings
5902
+ // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
5903
+ if (dateStr.length > 1000) {
5904
+ return null;
5905
+ }
5906
+
5907
+ const dateInfo = {};
5908
+ const parseInfo = [];
5909
+ const literals = [];
5910
+ format = format.replace(literal, function($0, $1) {
5911
+ literals.push($1);
5912
+ return '@@@';
5913
+ });
5914
+ let newFormat = regexEscape(format).replace(token, function ($0) {
5915
+ if (parseFlags[$0]) {
5916
+ const info = parseFlags[$0];
5917
+ parseInfo.push(info[1]);
5918
+ return '(' + info[0] + ')';
5919
+ }
5920
+
5921
+ return $0;
5922
+ });
5923
+ newFormat = newFormat.replace(/@@@/g, function() {
5924
+ return literals.shift();
5925
+ });
5926
+ const matches = dateStr.match(new RegExp(newFormat, 'i'));
5927
+ if (!matches) {
5928
+ return null;
5929
+ }
5930
+
5931
+ for (let i = 1; i < matches.length; i++) {
5932
+ parseInfo[i - 1](dateInfo, matches[i]);
5933
+ }
5934
+
5935
+ const today = new Date();
5936
+ if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
5937
+ dateInfo.hour = +dateInfo.hour + 12;
5938
+ } else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
5939
+ dateInfo.hour = 0;
5940
+ }
5941
+
5942
+ let date;
5943
+ if (dateInfo.timezoneOffset != null) {
5944
+ dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
5945
+ date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
5946
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
5947
+ } else {
5948
+ date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
5949
+ dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
5950
+ }
5951
+ return date;
5952
+ };
5953
+
5954
+ // 导出fecha对象
5955
+
5956
+
5957
+ // 以下是从date-util.js合并的函数
5958
+ const newArray = function(start, end) {
5959
+ let result = [];
5960
+ for (let i = start; i <= end; i++) {
5961
+ result.push(i);
5962
+ }
5963
+ return result;
5964
+ };
5965
+
5966
+ const getSettings = () => {
5967
+ return {
5968
+ dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
5969
+ dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
5970
+ monthNamesShort: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
5971
+ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
5972
+ amPm: ['上午', '下午']
5973
+ };
5974
+ };
5975
+
5976
+ const toDate = function(date) {
5977
+ return isDate(date) ? new Date(date) : null;
5978
+ };
5979
+
5980
+ const isDate = function(date) {
5981
+ if (date === null || date === undefined) return false;
5982
+ if (isNaN(new Date(date).getTime())) return false;
5983
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
5984
+ return true;
5985
+ };
5986
+
5987
+ const isDateObject = function(val) {
5988
+ return val instanceof Date;
5989
+ };
5990
+
5991
+ const formatDate = function (date, format = 'yyyy-MM-dd') {
5992
+ // 处理多种输入类型
5993
+ if (!date) return '';
5994
+
5995
+ // 如果是时间戳,转成日期对象
5996
+ if (typeof date === 'number') {
5997
+ date = new Date(date);
5998
+ }
5999
+ // 如果是字符串,转成日期对象
6000
+ if (typeof date === 'string') {
6001
+ date = new Date(date);
6002
+ }
6003
+
6004
+ // 调用toDate进一步验证和转换
6005
+ date = toDate(date);
6006
+ if (!date) return '';
6007
+
6008
+ // 兼容大写和小写的格式标记
6009
+ // 将大写的YYYY/MM/DD/HH/mm/ss转换为小写的yyyy/mm/dd/hh/mm/ss
6010
+ const lowercaseFormat = format
6011
+ .replace(/YYYY/g, 'yyyy')
6012
+ .replace(/D/g, 'd')
6013
+
6014
+ // 使用fecha库进行格式化,支持中文配置
6015
+ const str = fecha.format(date, lowercaseFormat, getSettings());
6016
+ return str;
6017
+ };
6018
+
6019
+ const parseDate = function(string, format) {
6020
+ return fecha.parse(string, format || 'yyyy-MM-dd', getSettings());
6021
+ };
6022
+
6023
+ const getDayCountOfMonth = function(year, month) {
6024
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
6025
+ return 30;
6026
+ }
6027
+
6028
+ if (month === 1) {
6029
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
6030
+ return 29;
6031
+ } else {
6032
+ return 28;
6033
+ }
6034
+ }
6035
+
6036
+ return 31;
6037
+ };
6038
+
6039
+ const getDayCountOfYear = function(year) {
6040
+ const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
6041
+ return isLeapYear ? 366 : 365;
6042
+ };
6043
+
6044
+ const getFirstDayOfMonth = function(date) {
6045
+ const temp = new Date(date.getTime());
6046
+ temp.setDate(1);
6047
+ return temp.getDay();
6048
+ };
6049
+
6050
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
6051
+ // {prev, next} Date should work for Daylight Saving Time
6052
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
6053
+ const prevDate = function(date, amount = 1) {
6054
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
6055
+ };
6056
+
6057
+ const nextDate = function(date, amount = 1) {
6058
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
6059
+ };
6060
+
6061
+ const getStartDateOfMonth = function(year, month) {
6062
+ const result = new Date(year, month, 1);
6063
+ const day = result.getDay();
6064
+
6065
+ if (day === 0) {
6066
+ return prevDate(result, 7);
6067
+ } else {
6068
+ return prevDate(result, day);
6069
+ }
6070
+ };
6071
+
6072
+ const getWeekNumber = function(date) {
6073
+ // 支持多种输入类型
6074
+ if (!date||!isDate(date)) {
6075
+ date = new Date();
6076
+ }
6077
+ if (typeof date === 'string') {
6078
+ date = new Date(date);
6079
+ }
6080
+
6081
+ // 验证日期有效性
6082
+ if (!isDate(date)) return null;
6083
+
6084
+ const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
6085
+ // 设置为最近的星期四:当前日期 + 4 - 当前星期数
6086
+ // 将星期日的星期数设为7
6087
+ d.setUTCDate(d.getUTCDate() + 4 - (d.getUTCDay() || 7));
6088
+ // 获取当年的第一天
6089
+ const yearStart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1));
6090
+ // 计算到最近的星期四的完整周数
6091
+ const weekNo = Math.ceil((((d - yearStart) / 86400000) + 1) / 7);
6092
+ // 返回周数
6093
+ return weekNo;
6094
+ };
6095
+
6096
+ const getRangeHours = function(ranges) {
6097
+ const hours = [];
6098
+ let disabledHours = [];
6099
+
6100
+ (ranges || []).forEach(range => {
6101
+ const value = range.map(date => date.getHours());
6102
+
6103
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
6104
+ });
6105
+
6106
+ if (disabledHours.length) {
6107
+ for (let i = 0; i < 24; i++) {
6108
+ hours[i] = disabledHours.indexOf(i) === -1;
6109
+ }
6110
+ } else {
6111
+ for (let i = 0; i < 24; i++) {
6112
+ hours[i] = false;
6113
+ }
6114
+ }
6115
+
6116
+ return hours;
6117
+ };
6118
+
6119
+ const getPrevMonthLastDays = (date, amount) => {
6120
+ if (amount <= 0) return [];
6121
+ const temp = new Date(date.getTime());
6122
+ temp.setDate(0);
6123
+ const lastDay = temp.getDate();
6124
+ return range(amount).map((_, index) => lastDay - (amount - index - 1));
6125
+ };
6126
+
6127
+ const getMonthDays = (date) => {
6128
+ const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
6129
+ const days = temp.getDate();
6130
+ return range(days).map((_, index) => index + 1);
6131
+ };
6132
+
6133
+ function setRangeData(arr, start, end, value) {
6134
+ for (let i = start; i < end; i++) {
6135
+ arr[i] = value;
6136
+ }
6137
+ }
6138
+
6139
+ const getRangeMinutes = function(ranges, hour) {
6140
+ const minutes = new Array(60);
6141
+
6142
+ if (ranges.length > 0) {
6143
+ ranges.forEach(range => {
6144
+ const start = range[0];
6145
+ const end = range[1];
6146
+ const startHour = start.getHours();
6147
+ const startMinute = start.getMinutes();
6148
+ const endHour = end.getHours();
6149
+ const endMinute = end.getMinutes();
6150
+ if (startHour === hour && endHour !== hour) {
6151
+ setRangeData(minutes, startMinute, 60, true);
6152
+ } else if (startHour === hour && endHour === hour) {
6153
+ setRangeData(minutes, startMinute, endMinute + 1, true);
6154
+ } else if (startHour !== hour && endHour === hour) {
6155
+ setRangeData(minutes, 0, endMinute + 1, true);
6156
+ } else if (startHour < hour && endHour > hour) {
6157
+ setRangeData(minutes, 0, 60, true);
6158
+ }
6159
+ });
6160
+ } else {
6161
+ setRangeData(minutes, 0, 60, true);
6162
+ }
6163
+ return minutes;
6164
+ };
6165
+
6166
+ const range = function(n) {
6167
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
6168
+ return Array.apply(null, {length: n}).map((_, n) => n);
6169
+ };
6170
+
6171
+ const modifyDate = function(date, y, m, d) {
6172
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
6173
+ };
6174
+
6175
+ const modifyTime = function(date, h, m, s) {
6176
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
6177
+ };
6178
+
6179
+ const modifyWithTimeString = (date, time) => {
6180
+ if (date == null || !time) {
6181
+ return date;
6182
+ }
6183
+ time = parseDate(time, 'HH:mm:ss');
6184
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
6185
+ };
6186
+
6187
+ const clearTime = function(date) {
6188
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
6189
+ };
6190
+
6191
+ const clearMilliseconds = function(date) {
6192
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
6193
+ };
6194
+
6195
+ const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
6196
+ // TODO: refactory a more elegant solution
6197
+ if (ranges.length === 0) return date;
6198
+ const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
6199
+ const ndate = normalizeDate(date);
6200
+ const nranges = ranges.map(range => range.map(normalizeDate));
6201
+ if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
6202
+
6203
+ let minDate = nranges[0][0];
6204
+ let maxDate = nranges[0][0];
6205
+
6206
+ nranges.forEach(nrange => {
6207
+ minDate = new Date(Math.min(nrange[0], minDate));
6208
+ maxDate = new Date(Math.max(nrange[1], minDate));
6209
+ });
6210
+
6211
+ const ret = ndate < minDate ? minDate : maxDate;
6212
+ // preserve Year/Month/Date
6213
+ return modifyDate(
6214
+ ret,
6215
+ date.getFullYear(),
6216
+ date.getMonth(),
6217
+ date.getDate()
6218
+ );
6219
+ };
6220
+
6221
+ const timeWithinRange = function(date, selectableRange, format) {
6222
+ const limitedDate = limitTimeRange(date, selectableRange, format);
6223
+ return limitedDate.getTime() === date.getTime();
6224
+ };
6225
+
6226
+ const changeYearMonthAndClampDate = function(date, year, month) {
6227
+ // clamp date to the number of days in `year`, `month`
6228
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
6229
+ const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
6230
+ return modifyDate(date, year, month, monthDate);
6231
+ };
6232
+
6233
+ const prevMonth = function(date) {
6234
+ const year = date.getFullYear();
6235
+ const month = date.getMonth();
6236
+ return month === 0
6237
+ ? changeYearMonthAndClampDate(date, year - 1, 11)
6238
+ : changeYearMonthAndClampDate(date, year, month - 1);
6239
+ };
6240
+
6241
+ const nextMonth = function(date) {
6242
+ const year = date.getFullYear();
6243
+ const month = date.getMonth();
6244
+ return month === 11
6245
+ ? changeYearMonthAndClampDate(date, year + 1, 0)
6246
+ : changeYearMonthAndClampDate(date, year, month + 1);
6247
+ };
6248
+
6249
+ const prevYear = function(date, amount = 1) {
6250
+ const year = date.getFullYear();
6251
+ const month = date.getMonth();
6252
+ return changeYearMonthAndClampDate(date, year - amount, month);
6253
+ };
6254
+
6255
+ const nextYear = function(date, amount = 1) {
6256
+ const year = date.getFullYear();
6257
+ const month = date.getMonth();
6258
+ return changeYearMonthAndClampDate(date, year + amount, month);
6259
+ };
6260
+
6261
+ const extractDateFormat = function(format) {
6262
+ return format
6263
+ .replace(/\W?m{1,2}|\W?ZZ/g, '')
6264
+ .replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
6265
+ .trim();
6266
+ };
6267
+
6268
+ const extractTimeFormat = function(format) {
6269
+ return format
6270
+ .replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
6271
+ .trim();
6272
+ };
6273
+
6274
+ const validateRangeInOneMonth = function(start, end) {
6275
+ return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
6276
+ };
6277
+
6253
6278
  /**
6254
6279
  * 计算两个日期之间的工作日数量(不包括周末和节假日)
6255
6280
  * @param {string} start_date - 开始日期字符串,格式为 "YYYY-MM-DD"
6256
6281
  * @param {string} end_date - 结束日期字符串,格式为 "YYYY-MM-DD"
6257
6282
  * @param {Array<string>} holidays - 假期日期字符串数组,格式为 "YYYY-MM-DD"
6258
6283
  * @returns {number} 工作日数量
6259
- */
6260
- var calculateNetworkDays = function calculateNetworkDays(start_date, end_date) {
6261
- var holidays = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
6262
-
6263
- if (typeof start_date !== 'string' || typeof end_date !== 'string') {
6264
- throw new Error("Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'.");
6265
- }
6266
-
6267
- var startDateObj = new Date(start_date);
6268
- var endDateObj = new Date(end_date);
6269
-
6270
- if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
6271
- throw new Error("Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'.");
6272
- }
6273
-
6274
- if (startDateObj > endDateObj) {
6275
- throw new Error('Start date should be earlier than or equal to end date.');
6276
- }
6277
-
6278
- var workdays = 0;
6279
-
6280
- // Iterate through each day in the date range
6281
-
6282
- var _loop = function _loop(currentDate) {
6283
- // Check if the current day is a weekend (Saturday or Sunday)
6284
- var isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
6285
-
6286
- // Check if the current day is a holiday
6287
- var isHoliday = holidays.some(function (holiday) {
6288
- var holidayDate = new Date(holiday);
6289
- return currentDate.toDateString() === holidayDate.toDateString();
6290
- });
6291
-
6292
- // If it's a workday (not a weekend or holiday), increment the workdays count
6293
- if (!isWeekend && !isHoliday) {
6294
- workdays++;
6295
- }
6296
- };
6297
-
6298
- for (var currentDate = new Date(startDateObj); currentDate <= endDateObj; currentDate.setDate(currentDate.getDate() + 1)) {
6299
- _loop(currentDate);
6300
- }
6301
-
6302
- return workdays;
6303
- };
6304
-
6284
+ */
6285
+ const calculateNetworkDays = function (start_date, end_date, holidays = []) {
6286
+ if (typeof start_date !== 'string' || typeof end_date !== 'string') {
6287
+ throw new Error(
6288
+ "Invalid input. Please provide valid date strings in the format 'YYYY-MM-DD'."
6289
+ );
6290
+ }
6291
+
6292
+ const startDateObj = new Date(start_date);
6293
+ const endDateObj = new Date(end_date);
6294
+
6295
+ if (isNaN(startDateObj.getTime()) || isNaN(endDateObj.getTime())) {
6296
+ throw new Error(
6297
+ "Invalid date format. Please provide valid date strings in the format 'YYYY-MM-DD'."
6298
+ );
6299
+ }
6300
+
6301
+ if (startDateObj > endDateObj) {
6302
+ throw new Error('Start date should be earlier than or equal to end date.');
6303
+ }
6304
+
6305
+ let workdays = 0;
6306
+
6307
+ // Iterate through each day in the date range
6308
+ for (
6309
+ let currentDate = new Date(startDateObj);
6310
+ currentDate <= endDateObj;
6311
+ currentDate.setDate(currentDate.getDate() + 1)
6312
+ ) {
6313
+ // Check if the current day is a weekend (Saturday or Sunday)
6314
+ const isWeekend = currentDate.getDay() === 0 || currentDate.getDay() === 6;
6315
+
6316
+ // Check if the current day is a holiday
6317
+ const isHoliday = holidays.some((holiday) => {
6318
+ const holidayDate = new Date(holiday);
6319
+ return currentDate.toDateString() === holidayDate.toDateString();
6320
+ });
6321
+
6322
+ // If it's a workday (not a weekend or holiday), increment the workdays count
6323
+ if (!isWeekend && !isHoliday) {
6324
+ workdays++;
6325
+ }
6326
+ }
6327
+
6328
+ return workdays;
6329
+ };
6330
+
6305
6331
  /**
6306
6332
  * 日期加减天数
6307
6333
  * @param {string} start_date - 起始日期字符串,格式为 "YYYY-MM-DD"
6308
6334
  * @param {number} days - 要加上或减去的天数,正数表示加,负数表示减
6309
6335
  * @returns {string} 结果日期,格式为 "YYYY-MM-DD"
6310
- */
6311
- var dateAddDays = function dateAddDays(start_date, days) {
6312
- if (typeof start_date !== 'string' || !Number.isInteger(days)) {
6313
- throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days.");
6314
- }
6315
-
6316
- var startDateObj = new Date(start_date);
6317
- if (isNaN(startDateObj.getTime())) {
6318
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6319
- }
6320
-
6321
- var resultDateObj = new Date(startDateObj);
6322
- resultDateObj.setDate(resultDateObj.getDate() + days);
6323
-
6324
- var resultYear = resultDateObj.getFullYear();
6325
- var resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
6326
- var resultDay = String(resultDateObj.getDate()).padStart(2, '0');
6327
-
6328
- return resultYear + '-' + resultMonth + '-' + resultDay;
6329
- };
6330
-
6336
+ */
6337
+ const dateAddDays = function (start_date, days) {
6338
+ if (typeof start_date !== 'string' || !Number.isInteger(days)) {
6339
+ throw new Error(
6340
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD' and a valid integer for the number of days."
6341
+ );
6342
+ }
6343
+
6344
+ const startDateObj = new Date(start_date);
6345
+ if (isNaN(startDateObj.getTime())) {
6346
+ throw new Error(
6347
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
6348
+ );
6349
+ }
6350
+
6351
+ const resultDateObj = new Date(startDateObj);
6352
+ resultDateObj.setDate(resultDateObj.getDate() + days);
6353
+
6354
+ const resultYear = resultDateObj.getFullYear();
6355
+ const resultMonth = String(resultDateObj.getMonth() + 1).padStart(2, '0');
6356
+ const resultDay = String(resultDateObj.getDate()).padStart(2, '0');
6357
+
6358
+ return `${resultYear}-${resultMonth}-${resultDay}`;
6359
+ };
6360
+
6331
6361
  /**
6332
6362
  * 计算两个日期之间的差值
6333
6363
  * @date 2023年12月14日
@@ -6335,180 +6365,182 @@ var dateAddDays = function dateAddDays(start_date, days) {
6335
6365
  * @param {String} end_date - 结束日期字符串
6336
6366
  * @param {String} unit - 单位:year/month/day
6337
6367
  * @returns {Number} 差值
6338
- */
6339
- var dateDiff = function dateDiff(start_date, end_date) {
6340
- var unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
6341
-
6342
- // Assuming date strings are in "YYYY-MM-DD" format
6343
- var startDate = new Date(start_date);
6344
- var endDate = new Date(end_date);
6345
-
6346
- // If the date is invalid, return 0
6347
- if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
6348
- return 0;
6349
- }
6350
-
6351
- if (unit === 'year') {
6352
- return endDate.getFullYear() - startDate.getFullYear();
6353
- } else if (unit === 'month') {
6354
- return (endDate.getFullYear() - startDate.getFullYear()) * 12 + (endDate.getMonth() - startDate.getMonth());
6355
- } else {
6356
- // Default to day
6357
- var timeDifference = endDate - startDate;
6358
- // Calculate days (86400000 milliseconds per day)
6359
- return Math.floor(timeDifference / 86400000);
6360
- }
6361
- };
6362
-
6368
+ */
6369
+ const dateDiff = function (start_date, end_date, unit = 'day') {
6370
+ // Assuming date strings are in "YYYY-MM-DD" format
6371
+ var startDate = new Date(start_date);
6372
+ var endDate = new Date(end_date);
6373
+
6374
+ // If the date is invalid, return 0
6375
+ if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
6376
+ return 0;
6377
+ }
6378
+
6379
+ if (unit === 'year') {
6380
+ return endDate.getFullYear() - startDate.getFullYear();
6381
+ } else if (unit === 'month') {
6382
+ return (
6383
+ (endDate.getFullYear() - startDate.getFullYear()) * 12 +
6384
+ (endDate.getMonth() - startDate.getMonth())
6385
+ );
6386
+ } else {
6387
+ // Default to day
6388
+ var timeDifference = endDate - startDate;
6389
+ // Calculate days (86400000 milliseconds per day)
6390
+ return Math.floor(timeDifference / 86400000);
6391
+ }
6392
+ };
6393
+
6363
6394
  /**
6364
6395
  * 获取月份中的日期
6365
6396
  * @param {string} date - 日期字符串,格式为 "YYYY-MM-DD"
6366
6397
  * @returns {number} 月份中的日期(1-31)
6367
- */
6368
- var dayOfMonth = function dayOfMonth(date) {
6369
- if (typeof date !== 'string') {
6370
- throw new Error("Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6371
- }
6372
-
6373
- var dateObj = new Date(date);
6374
- if (isNaN(dateObj.getTime())) {
6375
- throw new Error("Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'.");
6376
- }
6377
-
6378
- return dateObj.getDate();
6379
- };
6380
-
6398
+ */
6399
+ const dayOfMonth = function (date) {
6400
+ if (typeof date !== 'string') {
6401
+ throw new Error(
6402
+ "Invalid input. Please provide a valid date string in the format 'YYYY-MM-DD'."
6403
+ );
6404
+ }
6405
+
6406
+ const dateObj = new Date(date);
6407
+ if (isNaN(dateObj.getTime())) {
6408
+ throw new Error(
6409
+ "Invalid date format. Please provide a valid date string in the format 'YYYY-MM-DD'."
6410
+ );
6411
+ }
6412
+
6413
+ return dateObj.getDate();
6414
+ };
6415
+
6381
6416
  /**
6382
6417
  * 获取当前日期
6383
6418
  * @date 2022年5月7日
6384
6419
  * @param {string} format - 日期格式,默认为'YYYY-MM-DD'
6385
6420
  * @returns {string} 当前日期的格式化字符串
6386
- */
6387
- var getCurrentDate = function getCurrentDate() {
6388
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
6389
-
6390
- return formatDate(new Date(), format);
6391
- };
6392
-
6421
+ */
6422
+ const getCurrentDate = function (format = 'YYYY-MM-DD') {
6423
+ return formatDate(new Date(), format);
6424
+ };
6425
+
6393
6426
  /**
6394
6427
  * 获取当前日期时间
6395
6428
  * @date 2022年5月7日
6396
6429
  * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
6397
6430
  * @returns {string} 当前日期时间的格式化字符串
6398
- */
6399
- var getCurrentDateTime = function getCurrentDateTime() {
6400
- var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD HH:mm:ss';
6401
-
6402
- return formatDate(new Date(), format);
6403
- };
6404
-
6431
+ */
6432
+ const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
6433
+ return formatDate(new Date(), format);
6434
+ };
6435
+
6405
6436
  /**
6406
6437
  * 获取小时
6407
6438
  * @date 2022年5月7日
6408
6439
  * @param {Date|string} [date] - 日期对象或日期字符串
6409
6440
  * @returns {number} 小时数(0-23)
6410
- */
6411
- var getHour = function getHour(date) {
6412
- if (!date) {
6413
- return new Date().getHours();
6414
- }
6415
- if (typeof date === 'string') {
6416
- date = new Date(date);
6417
- }
6418
- return date.getHours();
6419
- };
6420
-
6441
+ */
6442
+ const getHour = function (date) {
6443
+ if (!date) {
6444
+ return new Date().getHours();
6445
+ }
6446
+ if (typeof date === 'string') {
6447
+ date = new Date(date);
6448
+ }
6449
+ return date.getHours();
6450
+ };
6451
+
6421
6452
  /**
6422
6453
  * 获取分钟
6423
6454
  * @date 2022年5月7日
6424
6455
  * @param {Date|string} [date] - 日期对象或日期字符串
6425
6456
  * @returns {number} 分钟数(0-59)
6426
- */
6427
- var getMinute = function getMinute(date) {
6428
- if (!date) {
6429
- return new Date().getMinutes();
6430
- }
6431
- if (typeof date === 'string') {
6432
- date = new Date(date);
6433
- }
6434
- return date.getMinutes();
6435
- };
6436
-
6457
+ */
6458
+ const getMinute = function (date) {
6459
+ if (!date) {
6460
+ return new Date().getMinutes();
6461
+ }
6462
+ if (typeof date === 'string') {
6463
+ date = new Date(date);
6464
+ }
6465
+ return date.getMinutes();
6466
+ };
6467
+
6437
6468
  /**
6438
6469
  * 获取月份
6439
6470
  * @date 2022年5月7日
6440
6471
  * @param {Date|string} [date] - 日期对象或日期字符串
6441
6472
  * @returns {number} 月份数(1-12)
6442
- */
6443
- var getMonth = function getMonth(date) {
6444
- if (!date) {
6445
- return new Date().getMonth() + 1;
6446
- }
6447
- if (typeof date === 'string') {
6448
- date = new Date(date);
6449
- }
6450
- return date.getMonth() + 1;
6451
- };
6452
-
6473
+ */
6474
+ const getMonth = function (date) {
6475
+ if (!date) {
6476
+ return new Date().getMonth() + 1;
6477
+ }
6478
+ if (typeof date === 'string') {
6479
+ date = new Date(date);
6480
+ }
6481
+ return date.getMonth() + 1;
6482
+ };
6483
+
6453
6484
  /**
6454
6485
  * 获取秒
6455
6486
  * @date 2022年5月7日
6456
6487
  * @param {Date|string} [date] - 日期对象或日期字符串
6457
6488
  * @returns {number} 秒数(0-59)
6458
- */
6459
- var getSecond = function getSecond(date) {
6460
- if (!date) {
6461
- return new Date().getSeconds();
6462
- }
6463
- if (typeof date === 'string') {
6464
- date = new Date(date);
6465
- }
6466
- return date.getSeconds();
6467
- };
6468
-
6489
+ */
6490
+ const getSecond = function (date) {
6491
+ if (!date) {
6492
+ return new Date().getSeconds();
6493
+ }
6494
+ if (typeof date === 'string') {
6495
+ date = new Date(date);
6496
+ }
6497
+ return date.getSeconds();
6498
+ };
6499
+
6469
6500
  /**
6470
6501
  * 获取星期几
6471
6502
  * @date 2022年5月7日
6472
6503
  * @param {Date|string} [date] - 日期对象或日期字符串
6473
6504
  * @returns {number} 星期几(0-6,0表示星期日)
6474
- */
6475
- var getWeekday = function getWeekday(date) {
6476
- if (!date) {
6477
- return new Date().getDay();
6478
- }
6479
- if (typeof date === 'string') {
6480
- date = new Date(date);
6481
- }
6482
- return date.getDay();
6483
- };
6484
-
6505
+ */
6506
+ const getWeekday = function (date) {
6507
+ if (!date) {
6508
+ return new Date().getDay();
6509
+ }
6510
+ if (typeof date === 'string') {
6511
+ date = new Date(date);
6512
+ }
6513
+ return date.getDay();
6514
+ };
6515
+
6516
+
6485
6517
  /**
6486
6518
  * @desc 获取上午/下午/晚上
6487
6519
  * @author huangbo
6488
6520
  * @date 2022年5月7日
6489
6521
  * @param {String} [time] - 时间
6490
- **/
6491
- var timeCycle = function timeCycle(time) {
6492
- var hour = 0;
6493
- if (!time) {
6494
- hour = new Date().getHours();
6495
- } else if (typeof time === 'string') {
6496
- // 从时间字符串中提取小时
6497
- var match = time.match(/^(\d{1,2})/);
6498
- if (match) {
6499
- hour = parseInt(match[1], 10);
6500
- }
6501
- } else if (typeof time === 'number') {
6502
- hour = time;
6503
- }
6504
- // 判断时间段
6505
- if (hour >= 5 && hour < 12) {
6506
- return '上午';
6507
- } else if (hour >= 12 && hour < 18) {
6508
- return '下午';
6509
- } else {
6510
- return '晚上';
6511
- }
6522
+ **/
6523
+ const timeCycle = function (time) {
6524
+ let hour = 0;
6525
+ if (!time) {
6526
+ hour = new Date().getHours();
6527
+ } else if (typeof time === 'string') {
6528
+ // 从时间字符串中提取小时
6529
+ const match = time.match(/^(\d{1,2})/);
6530
+ if (match) {
6531
+ hour = parseInt(match[1], 10);
6532
+ }
6533
+ } else if (typeof time === 'number') {
6534
+ hour = time;
6535
+ }
6536
+ // 判断时间段
6537
+ if (hour >= 5 && hour < 12) {
6538
+ return '上午';
6539
+ } else if (hour >= 12 && hour < 18) {
6540
+ return '下午';
6541
+ } else {
6542
+ return '晚上';
6543
+ }
6512
6544
  };
6513
6545
 
6514
6546
  /***/ }),
@@ -6535,22 +6567,24 @@ module.exports = require("eoss/lib/message-box");
6535
6567
  /* unused harmony export downloadZip */
6536
6568
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return deleteFile; });
6537
6569
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getTableData; });
6538
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
6570
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
6539
6571
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_0__);
6540
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32);
6572
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
6541
6573
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
6542
6574
  /* harmony import */ var _sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20);
6543
- /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33);
6575
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(30);
6544
6576
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
6545
6577
  /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0);
6546
- /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23);
6578
+ /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21);
6547
6579
  /* harmony import */ var fetch_request_source__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(fetch_request_source__WEBPACK_IMPORTED_MODULE_5__);
6548
6580
  /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1);
6549
6581
  /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6);
6550
6582
  /* harmony import */ var eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8);
6551
6583
  /* harmony import */ var eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_message_box__WEBPACK_IMPORTED_MODULE_8__);
6552
- /* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(11);
6584
+ /* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(10);
6553
6585
  /* harmony import */ var eoss_packages_message__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_message__WEBPACK_IMPORTED_MODULE_9__);
6586
+ /* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31);
6587
+ /* harmony import */ var eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10__);
6554
6588
  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; };
6555
6589
 
6556
6590
  function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
@@ -6573,6 +6607,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
6573
6607
 
6574
6608
 
6575
6609
 
6610
+
6576
6611
  // 常量定义
6577
6612
  var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ storeAsString: true });
6578
6613
  var statusMap = {
@@ -7109,7 +7144,7 @@ var responses = function responses(data) {
7109
7144
  onlyFirst: true,
7110
7145
  customClass: 'es-retrial-auth-msg',
7111
7146
  render: function render(h, msgBox) {
7112
- return h('es-retrial-auth', {
7147
+ return h(eoss_packages_retrial_auth__WEBPACK_IMPORTED_MODULE_10___default.a, {
7113
7148
  ref: 'auth',
7114
7149
  props: {
7115
7150
  reload: data.results.reload || data.results.refresh,
@@ -7352,7 +7387,7 @@ function redirectToLoginPage(loginPage, next) {
7352
7387
  * @param {function} callback - 回调函数
7353
7388
  **/
7354
7389
  var getMainConfig = function getMainConfig(callback) {
7355
- ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "tb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
7390
+ ajax({ url: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* mainConfig */ "wb"], params: { userConfigTypes: 'customMenus,customConfig' } }).then(function (res) {
7356
7391
  if (res && res.rCode === 0) {
7357
7392
  callback(res.results);
7358
7393
  }
@@ -7375,7 +7410,7 @@ var getSysCodeList = function getSysCodeList(_ref4) {
7375
7410
  method = _ref4$method === undefined ? 'POST' : _ref4$method,
7376
7411
  service = _ref4.service,
7377
7412
  _ref4$url = _ref4.url,
7378
- url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "C"] : _ref4$url,
7413
+ url = _ref4$url === undefined ? _config_api__WEBPACK_IMPORTED_MODULE_7__[/* findSysCode */ "D"] : _ref4$url,
7379
7414
  sysCode = _ref4.sysCode,
7380
7415
  _ref4$param = _ref4.param,
7381
7416
  param = _ref4$param === undefined ? {} : _ref4$param,
@@ -7485,7 +7520,7 @@ var downloadFile = function downloadFile(_ref6) {
7485
7520
  file = _ref6.file,
7486
7521
  withToken = _ref6.withToken;
7487
7522
 
7488
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "x"] };
7523
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { downloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* downloadByAdjunctId */ "y"] };
7489
7524
 
7490
7525
  var downloadUrl = '';
7491
7526
  if (file.adjunctId || file.response && file.response.adjunctId) {
@@ -7548,7 +7583,7 @@ var downloadZip = function downloadZip(_ref7) {
7548
7583
  code = _ref7.code,
7549
7584
  option = _objectWithoutProperties(_ref7, ['withToken', 'fileName', 'url', 'ownId', 'code']);
7550
7585
 
7551
- var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Sc"] };
7586
+ var dochubConfig = Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || { compressDownloadDocumentUrl: _config_api__WEBPACK_IMPORTED_MODULE_7__[/* uploadDownloads */ "Wc"] };
7552
7587
 
7553
7588
  // 处理URL和参数
7554
7589
  var downloadUrl = url ? url : dochubConfig.compressDownloadDocumentUrl;
@@ -7600,7 +7635,7 @@ var deleteFile = function deleteFile(_ref8) {
7600
7635
  onSuccess = _ref8.onSuccess,
7601
7636
  onError = _ref8.onError;
7602
7637
 
7603
- var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "o"] + '\' }');
7638
+ var dochubConfig = JSON.parse(Object(_storage__WEBPACK_IMPORTED_MODULE_4__[/* getStorage */ "a"])('dochubConfig') || '{ deleteDocumentUrl: \'' + _config_api__WEBPACK_IMPORTED_MODULE_7__[/* delAdjunct */ "p"] + '\' }');
7604
7639
 
7605
7640
  // 处理URL和参数
7606
7641
  var deleteUrl = url ? url : dochubConfig.deleteDocumentUrl;