@bit-sun/business-component 2.3.19 → 2.3.20

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 (209) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +5 -5
  3. package/.gitlab-ci.yml +179 -179
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -1
  9. package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +1 -1
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  11. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  12. package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +2 -2
  13. package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +2 -2
  14. package/dist/components/Business/BsLayouts/index.d.ts +2 -2
  15. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +2 -2
  16. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  17. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  18. package/dist/components/Functional/BsAntdSula/BsCascader/index.d.ts +1 -1
  19. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  20. package/dist/index.esm.js +910 -892
  21. package/dist/index.js +910 -892
  22. package/dist/utils/TableUtils.d.ts +2 -2
  23. package/dist/utils/utils.d.ts +1 -1
  24. package/docs/index.md +21 -21
  25. package/lib/assets/drag.svg +17 -17
  26. package/lib/assets/exportFail.svg +37 -37
  27. package/lib/assets/exportProcessing.svg +28 -28
  28. package/lib/assets/exportSuccess.svg +34 -34
  29. package/lib/assets/label_icon_bottom.svg +25 -25
  30. package/lib/assets/upExport.svg +22 -22
  31. package/package.json +78 -78
  32. package/src/assets/32.svg +27 -27
  33. package/src/assets/addIcon.svg +17 -17
  34. package/src/assets/allfunc.svg +27 -27
  35. package/src/assets/arrowRight.svg +24 -24
  36. package/src/assets/btn-delete.svg +29 -29
  37. package/src/assets/btn-edit.svg +19 -19
  38. package/src/assets/btn-more.svg +17 -17
  39. package/src/assets/btn-submit.svg +19 -19
  40. package/src/assets/caidan.svg +11 -11
  41. package/src/assets/close.svg +26 -26
  42. package/src/assets/drag.svg +17 -17
  43. package/src/assets/exportFail.svg +37 -37
  44. package/src/assets/exportProcessing.svg +28 -28
  45. package/src/assets/exportSuccess.svg +34 -34
  46. package/src/assets/fixed-left-active.svg +11 -11
  47. package/src/assets/fixed-left.svg +15 -15
  48. package/src/assets/fixed-right-active.svg +11 -11
  49. package/src/assets/fixed-right.svg +15 -15
  50. package/src/assets/guanbi.svg +15 -15
  51. package/src/assets/icon-quanping.svg +15 -15
  52. package/src/assets/icon-shezhi.svg +17 -17
  53. package/src/assets/label_icon_bottom.svg +25 -25
  54. package/src/assets/list-no-img.svg +21 -21
  55. package/src/assets/morentouxiang-32.svg +23 -23
  56. package/src/assets/scanning.svg +24 -24
  57. package/src/assets/upExport.svg +22 -22
  58. package/src/common/ENUM.ts +41 -41
  59. package/src/components/Business/AddSelectBusiness/index.md +162 -162
  60. package/src/components/Business/AddSelectBusiness/index.tsx +895 -895
  61. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  62. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  63. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  64. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  65. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  66. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  67. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  68. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  69. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  70. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  71. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  72. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  73. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  74. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  75. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  76. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  77. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  78. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  79. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  80. package/src/components/Business/BsLayouts/index.less +79 -79
  81. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  82. package/src/components/Business/BsLayouts/service.ts +10 -10
  83. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  84. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
  85. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  86. package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
  87. package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
  88. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  89. package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
  90. package/src/components/Business/CommodityEntry/index.md +70 -70
  91. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  92. package/src/components/Business/CommonAlert/index.tsx +23 -23
  93. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  94. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  95. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  96. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  97. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  98. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  99. package/src/components/Business/HomePageWrapper/index.less +33 -33
  100. package/src/components/Business/HomePageWrapper/index.md +45 -45
  101. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  102. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  103. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
  104. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  105. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  106. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  107. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  108. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  109. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  110. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  111. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  112. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  113. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  114. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  115. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  116. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  117. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  118. package/src/components/Business/JsonQueryTable/index.less +16 -16
  119. package/src/components/Business/JsonQueryTable/index.md +328 -328
  120. package/src/components/Business/JsonQueryTable/index.tsx +535 -535
  121. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  122. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  123. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  124. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  125. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  126. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  127. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  128. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  129. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  130. package/src/components/Business/SearchSelect/BusinessUtils.ts +1762 -1762
  131. package/src/components/Business/SearchSelect/common.ts +75 -75
  132. package/src/components/Business/SearchSelect/index.md +1329 -1329
  133. package/src/components/Business/SearchSelect/index.tsx +55 -55
  134. package/src/components/Business/SearchSelect/utils.ts +100 -100
  135. package/src/components/Business/StateFlow/index.less +130 -130
  136. package/src/components/Business/StateFlow/index.md +60 -60
  137. package/src/components/Business/StateFlow/index.tsx +29 -29
  138. package/src/components/Business/TreeSearchSelect/index.md +156 -156
  139. package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
  140. package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
  141. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  142. package/src/components/Business/columnSettingTable/index.less +247 -247
  143. package/src/components/Business/columnSettingTable/index.md +357 -357
  144. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  145. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  146. package/src/components/Business/columnSettingTable/utils.tsx +69 -69
  147. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -86
  148. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  149. package/src/components/Business/moreTreeTable/index.less +99 -99
  150. package/src/components/Business/moreTreeTable/index.md +448 -448
  151. package/src/components/Business/moreTreeTable/index.tsx +387 -387
  152. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  153. package/src/components/Functional/AddSelect/helps.ts +14 -14
  154. package/src/components/Functional/AddSelect/index.less +367 -367
  155. package/src/components/Functional/AddSelect/index.md +155 -155
  156. package/src/components/Functional/AddSelect/index.tsx +1282 -1282
  157. package/src/components/Functional/BillEntry/index.less +371 -371
  158. package/src/components/Functional/BillEntry/index.md +39 -39
  159. package/src/components/Functional/BillEntry/index.tsx +772 -772
  160. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  161. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  162. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  163. package/src/components/Functional/DataImport/index.less +63 -63
  164. package/src/components/Functional/DataImport/index.md +44 -44
  165. package/src/components/Functional/DataImport/index.tsx +695 -695
  166. package/src/components/Functional/DataValidation/index.less +63 -63
  167. package/src/components/Functional/DataValidation/index.md +39 -39
  168. package/src/components/Functional/DataValidation/index.tsx +687 -687
  169. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  170. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  171. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  172. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  173. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  174. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  175. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  176. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  177. package/src/components/Functional/SearchSelect/index.less +115 -115
  178. package/src/components/Functional/SearchSelect/index.md +141 -141
  179. package/src/components/Functional/SearchSelect/index.tsx +879 -879
  180. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  181. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  182. package/src/components/Functional/TreeSearchSelect/index.tsx +199 -199
  183. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  184. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  185. package/src/components/Solution/RuleComponent/index.js +2032 -2032
  186. package/src/components/Solution/RuleComponent/index.less +230 -230
  187. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  188. package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
  189. package/src/components/Solution/RuleComponent/services.ts +13 -13
  190. package/src/components/Solution/RuleComponent/util.js +139 -139
  191. package/src/index.ts +38 -38
  192. package/src/plugin/TableColumnSetting/index.less +247 -247
  193. package/src/plugin/TableColumnSetting/index.md +50 -50
  194. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  195. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  196. package/src/styles/bsDefault.less +1912 -1912
  197. package/src/utils/CheckOneUser/index.md +39 -39
  198. package/src/utils/CheckOneUser/index.ts +51 -51
  199. package/src/utils/LocalstorageUtils.ts +95 -95
  200. package/src/utils/TableUtils.tsx +18 -18
  201. package/src/utils/checkUtils.ts +39 -39
  202. package/src/utils/enumConfig.ts +11 -11
  203. package/src/utils/getFormMode.js +12 -12
  204. package/src/utils/index.ts +4 -4
  205. package/src/utils/requestUtils.ts +34 -34
  206. package/src/utils/serialize.js +7 -7
  207. package/src/utils/utils.ts +212 -212
  208. package/tsconfig.json +29 -29
  209. package/typings.d.ts +4 -4
package/dist/index.js CHANGED
@@ -155,33 +155,6 @@ axios__default['default'].interceptors.request.use(function (config) {
155
155
  return config;
156
156
  });
157
157
 
158
- function _iterableToArrayLimit(arr, i) {
159
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
160
- if (null != _i) {
161
- var _s,
162
- _e,
163
- _x,
164
- _r,
165
- _arr = [],
166
- _n = !0,
167
- _d = !1;
168
- try {
169
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
170
- if (Object(_i) !== _i) return;
171
- _n = !1;
172
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
173
- } catch (err) {
174
- _d = !0, _e = err;
175
- } finally {
176
- try {
177
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
178
- } finally {
179
- if (_d) throw _e;
180
- }
181
- }
182
- return _arr;
183
- }
184
- }
185
158
  function ownKeys(object, enumerableOnly) {
186
159
  var keys = Object.keys(object);
187
160
  if (Object.getOwnPropertySymbols) {
@@ -338,9 +311,14 @@ function _regeneratorRuntime() {
338
311
  };
339
312
  }
340
313
  function maybeInvokeDelegate(delegate, context) {
341
- var methodName = context.method,
342
- method = delegate.iterator[methodName];
343
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
314
+ var method = delegate.iterator[context.method];
315
+ if (undefined === method) {
316
+ if (context.delegate = null, "throw" === context.method) {
317
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
318
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
319
+ }
320
+ return ContinueSentinel;
321
+ }
344
322
  var record = tryCatch(method, delegate.iterator, context.arg);
345
323
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
346
324
  var info = record.arg;
@@ -554,7 +532,7 @@ function _defineProperties(target, props) {
554
532
  descriptor.enumerable = descriptor.enumerable || false;
555
533
  descriptor.configurable = true;
556
534
  if ("value" in descriptor) descriptor.writable = true;
557
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
535
+ Object.defineProperty(target, descriptor.key, descriptor);
558
536
  }
559
537
  }
560
538
  function _createClass(Constructor, protoProps, staticProps) {
@@ -566,7 +544,6 @@ function _createClass(Constructor, protoProps, staticProps) {
566
544
  return Constructor;
567
545
  }
568
546
  function _defineProperty(obj, key, value) {
569
- key = _toPropertyKey(key);
570
547
  if (key in obj) {
571
548
  Object.defineProperty(obj, key, {
572
549
  value: value,
@@ -709,6 +686,30 @@ function _arrayWithHoles(arr) {
709
686
  function _iterableToArray(iter) {
710
687
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
711
688
  }
689
+ function _iterableToArrayLimit(arr, i) {
690
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
691
+ if (_i == null) return;
692
+ var _arr = [];
693
+ var _n = true;
694
+ var _d = false;
695
+ var _s, _e;
696
+ try {
697
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
698
+ _arr.push(_s.value);
699
+ if (i && _arr.length === i) break;
700
+ }
701
+ } catch (err) {
702
+ _d = true;
703
+ _e = err;
704
+ } finally {
705
+ try {
706
+ if (!_n && _i["return"] != null) _i["return"]();
707
+ } finally {
708
+ if (_d) throw _e;
709
+ }
710
+ }
711
+ return _arr;
712
+ }
712
713
  function _unsupportedIterableToArray(o, minLen) {
713
714
  if (!o) return;
714
715
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -728,20 +729,6 @@ function _nonIterableSpread() {
728
729
  function _nonIterableRest() {
729
730
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
730
731
  }
731
- function _toPrimitive(input, hint) {
732
- if (typeof input !== "object" || input === null) return input;
733
- var prim = input[Symbol.toPrimitive];
734
- if (prim !== undefined) {
735
- var res = prim.call(input, hint || "default");
736
- if (typeof res !== "object") return res;
737
- throw new TypeError("@@toPrimitive must return a primitive value.");
738
- }
739
- return (hint === "string" ? String : Number)(input);
740
- }
741
- function _toPropertyKey(arg) {
742
- var key = _toPrimitive(arg, "string");
743
- return typeof key === "symbol" ? key : String(key);
744
- }
745
732
 
746
733
  var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
747
734
  var errorMessage = _objectSpread2({
@@ -1029,59 +1016,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
1029
1016
  * @returns 返回处理后的查询参数
1030
1017
  */
1031
1018
  function queryParams(params, flag) {
1032
- var _loop = function _loop() {
1019
+ for (var key in params) {
1033
1020
  if (Object.prototype.hasOwnProperty.call(params, key)) {
1034
- var element = params[key];
1035
- if (element && key.indexOf('*number*') >= 0) {
1036
- var dataParams = key.split('*number*');
1037
- dataParams.forEach(function (value, index) {
1038
- params[value] = element[index];
1039
- });
1040
- delete params[key];
1041
- } else if (element && key.indexOf('*address*') >= 0) {
1042
- var _dataParams = key.split('*address*');
1043
- _dataParams.forEach(function (value, index) {
1044
- params[value] = element.PCDCode[index];
1045
- });
1046
- delete params[key];
1047
- } else if (element && key.indexOf('*costType*') >= 0) {
1048
- var _dataParams2 = key.split('*costType*');
1049
- // eslint-disable-next-line prefer-destructuring
1050
- params[_dataParams2[0]] = element[1];
1051
- delete params[key];
1052
- } else if (element && key.indexOf('*fullDate*') >= 0) {
1053
- var _dataParams3 = key.split('*fullDate*');
1054
- _dataParams3.forEach(function (value, index) {
1055
- if (index === 0) {
1056
- params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1021
+ (function () {
1022
+ var element = params[key];
1023
+ if (element && key.indexOf('*number*') >= 0) {
1024
+ var dataParams = key.split('*number*');
1025
+ dataParams.forEach(function (value, index) {
1026
+ params[value] = element[index];
1027
+ });
1028
+ delete params[key];
1029
+ } else if (element && key.indexOf('*address*') >= 0) {
1030
+ var _dataParams = key.split('*address*');
1031
+ _dataParams.forEach(function (value, index) {
1032
+ params[value] = element.PCDCode[index];
1033
+ });
1034
+ delete params[key];
1035
+ } else if (element && key.indexOf('*costType*') >= 0) {
1036
+ var _dataParams2 = key.split('*costType*');
1037
+ // eslint-disable-next-line prefer-destructuring
1038
+ params[_dataParams2[0]] = element[1];
1039
+ delete params[key];
1040
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
1041
+ var _dataParams3 = key.split('*fullDate*');
1042
+ _dataParams3.forEach(function (value, index) {
1043
+ if (index === 0) {
1044
+ params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1045
+ } else {
1046
+ params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1047
+ }
1048
+ });
1049
+ delete params[key];
1050
+ } else if (element && key.indexOf('*') >= 0) {
1051
+ var _dataParams4 = key.split('*');
1052
+ _dataParams4.forEach(function (value, index) {
1053
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1054
+ });
1055
+ delete params[key];
1056
+ } else if (element && key.indexOf('_likeIn_') >= 0) {
1057
+ var _dataParams5 = key.split('_likeIn_');
1058
+ if (element.indexOf(',') >= 0) {
1059
+ params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1060
+ params["qp-".concat(_dataParams5[0], "-like")] = null;
1057
1061
  } else {
1058
- params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1062
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
1063
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
1059
1064
  }
1060
- });
1061
- delete params[key];
1062
- } else if (element && key.indexOf('*') >= 0) {
1063
- var _dataParams4 = key.split('*');
1064
- _dataParams4.forEach(function (value, index) {
1065
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1066
- });
1067
- delete params[key];
1068
- } else if (element && key.indexOf('_likeIn_') >= 0) {
1069
- var _dataParams5 = key.split('_likeIn_');
1070
- if (element.indexOf(',') >= 0) {
1071
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1072
- params["qp-".concat(_dataParams5[0], "-like")] = null;
1073
- } else {
1074
- params["qp-".concat(_dataParams5[0], "-like")] = element;
1075
- params["qp-".concat(_dataParams5[0], "-in")] = null;
1065
+ delete params[key];
1066
+ } else if (Array.isArray(element)) {
1067
+ params[key] = element.join(',');
1076
1068
  }
1077
- delete params[key];
1078
- } else if (Array.isArray(element)) {
1079
- params[key] = element.join(',');
1080
- }
1069
+ })();
1081
1070
  }
1082
- };
1083
- for (var key in params) {
1084
- _loop();
1085
1071
  }
1086
1072
  return flag ? params : qs.stringify(params);
1087
1073
  }
@@ -2810,85 +2796,84 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2810
2796
  });
2811
2797
  }
2812
2798
  // 数组对象处理,对带有特殊标记的name进行处理
2813
- var _loop = function _loop() {
2799
+ for (var key in params) {
2814
2800
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2815
- var element = params[key];
2816
- if (element && key.indexOf('*number*') >= 0) {
2817
- var dataParams = key.split('*number*');
2818
- dataParams.forEach(function (value, index) {
2819
- params[value] = element[index];
2820
- });
2821
- delete params[key];
2822
- } else if (element && key.indexOf('*address*') >= 0) {
2823
- var _dataParams = key.split('*address*');
2824
- _dataParams.forEach(function (value, index) {
2825
- params[value] = element.PCDCode[index];
2826
- });
2827
- delete params[key];
2828
- } else if (element && key.indexOf('*costType*') >= 0) {
2829
- var _dataParams2 = key.split('*costType*');
2830
- // eslint-disable-next-line prefer-destructuring
2831
- params[_dataParams2[0]] = element[1];
2832
- delete params[key];
2833
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2834
- var _dataParams3 = key.split('*fullDate*');
2835
- _dataParams3.forEach(function (value, index) {
2836
- if (index === 0) {
2837
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2838
- } else {
2839
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2801
+ (function () {
2802
+ var element = params[key];
2803
+ if (element && key.indexOf('*number*') >= 0) {
2804
+ var dataParams = key.split('*number*');
2805
+ dataParams.forEach(function (value, index) {
2806
+ params[value] = element[index];
2807
+ });
2808
+ delete params[key];
2809
+ } else if (element && key.indexOf('*address*') >= 0) {
2810
+ var _dataParams = key.split('*address*');
2811
+ _dataParams.forEach(function (value, index) {
2812
+ params[value] = element.PCDCode[index];
2813
+ });
2814
+ delete params[key];
2815
+ } else if (element && key.indexOf('*costType*') >= 0) {
2816
+ var _dataParams2 = key.split('*costType*');
2817
+ // eslint-disable-next-line prefer-destructuring
2818
+ params[_dataParams2[0]] = element[1];
2819
+ delete params[key];
2820
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2821
+ var _dataParams3 = key.split('*fullDate*');
2822
+ _dataParams3.forEach(function (value, index) {
2823
+ if (index === 0) {
2824
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2825
+ } else {
2826
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2827
+ }
2828
+ });
2829
+ delete params[key];
2830
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2831
+ var _dataParams4 = key.split('*checkBox*');
2832
+ if (element) {
2833
+ params[_dataParams4[0]] = 0;
2840
2834
  }
2841
- });
2842
- delete params[key];
2843
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2844
- var _dataParams4 = key.split('*checkBox*');
2845
- if (element) {
2846
- params[_dataParams4[0]] = 0;
2847
- }
2848
- delete params[key];
2849
- } else if (element && key.indexOf('*cascader*') >= 0) {
2850
- var _dataParams5 = key.split('*cascader*');
2851
- params[_dataParams5[0]] = element[element.length - 1];
2852
- delete params[key];
2853
- } else if (element && key.indexOf('*date*') >= 0) {
2854
- var _dataParams6 = key.split('*date*');
2855
- _dataParams6.forEach(function (value, index) {
2856
- if (index === 0) {
2857
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2835
+ delete params[key];
2836
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2837
+ var _dataParams5 = key.split('*cascader*');
2838
+ params[_dataParams5[0]] = element[element.length - 1];
2839
+ delete params[key];
2840
+ } else if (element && key.indexOf('*date*') >= 0) {
2841
+ var _dataParams6 = key.split('*date*');
2842
+ _dataParams6.forEach(function (value, index) {
2843
+ if (index === 0) {
2844
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2845
+ } else {
2846
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2847
+ }
2848
+ });
2849
+ delete params[key];
2850
+ } else if (element && key.indexOf('*') >= 0) {
2851
+ var _dataParams7 = key.split('*');
2852
+ _dataParams7.forEach(function (value, index) {
2853
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2854
+ });
2855
+ delete params[key];
2856
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2857
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2858
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2859
+ if (params[key][0] === 'range') {
2860
+ if (params[key][1][0]) {
2861
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2862
+ }
2863
+ if (params[key][1][1]) {
2864
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2865
+ }
2858
2866
  } else {
2859
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2860
- }
2861
- });
2862
- delete params[key];
2863
- } else if (element && key.indexOf('*') >= 0) {
2864
- var _dataParams7 = key.split('*');
2865
- _dataParams7.forEach(function (value, index) {
2866
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2867
- });
2868
- delete params[key];
2869
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2870
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2871
- var _dataParams8 = key.split('_selectNumberRange')[0];
2872
- if (params[key][0] === 'range') {
2873
- if (params[key][1][0]) {
2874
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2875
- }
2876
- if (params[key][1][1]) {
2877
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2867
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2878
2868
  }
2879
- } else {
2880
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2869
+ delete params[key];
2870
+ } else if (Array.isArray(element)) {
2871
+ params[key] = element.join(',');
2872
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2873
+ delete params[key];
2881
2874
  }
2882
- delete params[key];
2883
- } else if (Array.isArray(element)) {
2884
- params[key] = element.join(',');
2885
- } else if (element == null || element === undefined || String(element).trim() === '') {
2886
- delete params[key];
2887
- }
2875
+ })();
2888
2876
  }
2889
- };
2890
- for (var key in params) {
2891
- _loop();
2892
2877
  }
2893
2878
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2894
2879
  pageSize: pageSize,
@@ -4564,74 +4549,76 @@ var AddSelect = function AddSelect(props) {
4564
4549
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4565
4550
  var result;
4566
4551
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4567
- while (1) switch (_context.prev = _context.next) {
4568
- case 0:
4569
- if (!(bType == 'skc' && tList.some(function (i) {
4570
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4571
- }))) {
4572
- _context.next = 3;
4573
- break;
4574
- }
4575
- antd.message.warning('相同skc配码不可设置相同哦');
4576
- return _context.abrupt("return", false);
4577
- case 3:
4578
- if (!(bType == 'spu')) {
4579
- _context.next = 26;
4580
- break;
4581
- }
4582
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4583
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4584
- }))) {
4585
- _context.next = 7;
4586
- break;
4587
- }
4588
- antd.message.warning('相同商品相同配码颜色不可设置相同哦');
4589
- return _context.abrupt("return", false);
4590
- case 7:
4591
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4592
- _context.next = 10;
4593
- break;
4594
- }
4595
- antd.message.warning('请先选择颜色!');
4596
- return _context.abrupt("return", false);
4597
- case 10:
4598
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4599
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4600
- }))) {
4601
- _context.next = 13;
4602
- break;
4603
- }
4604
- antd.message.warning('相同商品相同颜色配码不可设置相同哦');
4605
- return _context.abrupt("return", false);
4606
- case 13:
4607
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4608
- _context.next = 26;
4552
+ while (1) {
4553
+ switch (_context.prev = _context.next) {
4554
+ case 0:
4555
+ if (!(bType == 'skc' && tList.some(function (i) {
4556
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4557
+ }))) {
4558
+ _context.next = 3;
4559
+ break;
4560
+ }
4561
+ antd.message.warning('相同skc配码不可设置相同哦');
4562
+ return _context.abrupt("return", false);
4563
+ case 3:
4564
+ if (!(bType == 'spu')) {
4565
+ _context.next = 26;
4566
+ break;
4567
+ }
4568
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4569
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4570
+ }))) {
4571
+ _context.next = 7;
4572
+ break;
4573
+ }
4574
+ antd.message.warning('相同商品相同配码颜色不可设置相同哦');
4575
+ return _context.abrupt("return", false);
4576
+ case 7:
4577
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4578
+ _context.next = 10;
4579
+ break;
4580
+ }
4581
+ antd.message.warning('请先选择颜色!');
4582
+ return _context.abrupt("return", false);
4583
+ case 10:
4584
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4585
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4586
+ }))) {
4587
+ _context.next = 13;
4588
+ break;
4589
+ }
4590
+ antd.message.warning('相同商品相同颜色配码不可设置相同哦');
4591
+ return _context.abrupt("return", false);
4592
+ case 13:
4593
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4594
+ _context.next = 26;
4595
+ break;
4596
+ }
4597
+ result = true;
4598
+ _context.prev = 15;
4599
+ _context.next = 18;
4600
+ return checkSpuMatchCode({
4601
+ skcCode: recordItem[recordKey],
4602
+ matchingCode: changeValue,
4603
+ ext1: recordItem.colorName
4604
+ });
4605
+ case 18:
4606
+ result = _context.sent;
4607
+ result = true;
4608
+ _context.next = 25;
4609
4609
  break;
4610
- }
4611
- result = true;
4612
- _context.prev = 15;
4613
- _context.next = 18;
4614
- return checkSpuMatchCode({
4615
- skcCode: recordItem[recordKey],
4616
- matchingCode: changeValue,
4617
- ext1: recordItem.colorName
4618
- });
4619
- case 18:
4620
- result = _context.sent;
4621
- result = true;
4622
- _context.next = 25;
4623
- break;
4624
- case 22:
4625
- _context.prev = 22;
4626
- _context.t0 = _context["catch"](15);
4627
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4628
- case 25:
4629
- return _context.abrupt("return", result);
4630
- case 26:
4631
- return _context.abrupt("return", true);
4632
- case 27:
4633
- case "end":
4634
- return _context.stop();
4610
+ case 22:
4611
+ _context.prev = 22;
4612
+ _context.t0 = _context["catch"](15);
4613
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4614
+ case 25:
4615
+ return _context.abrupt("return", result);
4616
+ case 26:
4617
+ return _context.abrupt("return", true);
4618
+ case 27:
4619
+ case "end":
4620
+ return _context.stop();
4621
+ }
4635
4622
  }
4636
4623
  }, _callee, null, [[15, 22]]);
4637
4624
  }));
@@ -4823,27 +4810,29 @@ var AddSelect = function AddSelect(props) {
4823
4810
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4824
4811
  var isConformToTheRules, newPopValue;
4825
4812
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4826
- while (1) switch (_context2.prev = _context2.next) {
4827
- case 0:
4828
- _context2.next = 2;
4829
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4830
- case 2:
4831
- isConformToTheRules = _context2.sent;
4832
- if (isConformToTheRules) {
4833
- record[item.dataIndex] = value;
4834
- } else {
4835
- record[item.dataIndex] = null;
4836
- }
4837
- newPopValue = popvalue.map(function (i, innerIndex) {
4838
- if (innerIndex == index) {
4839
- i[item.dataIndex] = record[item.dataIndex];
4813
+ while (1) {
4814
+ switch (_context2.prev = _context2.next) {
4815
+ case 0:
4816
+ _context2.next = 2;
4817
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4818
+ case 2:
4819
+ isConformToTheRules = _context2.sent;
4820
+ if (isConformToTheRules) {
4821
+ record[item.dataIndex] = value;
4822
+ } else {
4823
+ record[item.dataIndex] = null;
4840
4824
  }
4841
- return i;
4842
- });
4843
- setPopValue(newPopValue);
4844
- case 6:
4845
- case "end":
4846
- return _context2.stop();
4825
+ newPopValue = popvalue.map(function (i, innerIndex) {
4826
+ if (innerIndex == index) {
4827
+ i[item.dataIndex] = record[item.dataIndex];
4828
+ }
4829
+ return i;
4830
+ });
4831
+ setPopValue(newPopValue);
4832
+ case 6:
4833
+ case "end":
4834
+ return _context2.stop();
4835
+ }
4847
4836
  }
4848
4837
  }, _callee2);
4849
4838
  }));
@@ -4903,85 +4892,84 @@ var AddSelect = function AddSelect(props) {
4903
4892
  });
4904
4893
  }
4905
4894
  // 数组对象处理,对带有特殊标记的name进行处理
4906
- var _loop = function _loop() {
4895
+ for (var key in params) {
4907
4896
  if (Object.prototype.hasOwnProperty.call(params, key)) {
4908
- var element = params[key];
4909
- if (element && key.indexOf('*number*') >= 0) {
4910
- var dataParams = key.split('*number*');
4911
- dataParams.forEach(function (value, index) {
4912
- params[value] = element[index];
4913
- });
4914
- delete params[key];
4915
- } else if (element && key.indexOf('*address*') >= 0) {
4916
- var _dataParams = key.split('*address*');
4917
- _dataParams.forEach(function (value, index) {
4918
- params[value] = element.PCDCode[index];
4919
- });
4920
- delete params[key];
4921
- } else if (element && key.indexOf('*costType*') >= 0) {
4922
- var _dataParams2 = key.split('*costType*');
4923
- // eslint-disable-next-line prefer-destructuring
4924
- params[_dataParams2[0]] = element[1];
4925
- delete params[key];
4926
- } else if (element && key.indexOf('*fullDate*') >= 0) {
4927
- var _dataParams3 = key.split('*fullDate*');
4928
- _dataParams3.forEach(function (value, index) {
4929
- if (index === 0) {
4930
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4931
- } else {
4932
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4897
+ (function () {
4898
+ var element = params[key];
4899
+ if (element && key.indexOf('*number*') >= 0) {
4900
+ var dataParams = key.split('*number*');
4901
+ dataParams.forEach(function (value, index) {
4902
+ params[value] = element[index];
4903
+ });
4904
+ delete params[key];
4905
+ } else if (element && key.indexOf('*address*') >= 0) {
4906
+ var _dataParams = key.split('*address*');
4907
+ _dataParams.forEach(function (value, index) {
4908
+ params[value] = element.PCDCode[index];
4909
+ });
4910
+ delete params[key];
4911
+ } else if (element && key.indexOf('*costType*') >= 0) {
4912
+ var _dataParams2 = key.split('*costType*');
4913
+ // eslint-disable-next-line prefer-destructuring
4914
+ params[_dataParams2[0]] = element[1];
4915
+ delete params[key];
4916
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4917
+ var _dataParams3 = key.split('*fullDate*');
4918
+ _dataParams3.forEach(function (value, index) {
4919
+ if (index === 0) {
4920
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4921
+ } else {
4922
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4923
+ }
4924
+ });
4925
+ delete params[key];
4926
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4927
+ var _dataParams4 = key.split('*checkBox*');
4928
+ if (element) {
4929
+ params[_dataParams4[0]] = 0;
4933
4930
  }
4934
- });
4935
- delete params[key];
4936
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4937
- var _dataParams4 = key.split('*checkBox*');
4938
- if (element) {
4939
- params[_dataParams4[0]] = 0;
4940
- }
4941
- delete params[key];
4942
- } else if (element && key.indexOf('*cascader*') >= 0) {
4943
- var _dataParams5 = key.split('*cascader*');
4944
- params[_dataParams5[0]] = element[element.length - 1];
4945
- delete params[key];
4946
- } else if (element && key.indexOf('*date*') >= 0) {
4947
- var _dataParams6 = key.split('*date*');
4948
- _dataParams6.forEach(function (value, index) {
4949
- if (index === 0) {
4950
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4931
+ delete params[key];
4932
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4933
+ var _dataParams5 = key.split('*cascader*');
4934
+ params[_dataParams5[0]] = element[element.length - 1];
4935
+ delete params[key];
4936
+ } else if (element && key.indexOf('*date*') >= 0) {
4937
+ var _dataParams6 = key.split('*date*');
4938
+ _dataParams6.forEach(function (value, index) {
4939
+ if (index === 0) {
4940
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4941
+ } else {
4942
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4943
+ }
4944
+ });
4945
+ delete params[key];
4946
+ } else if (element && key.indexOf('*') >= 0) {
4947
+ var _dataParams7 = key.split('*');
4948
+ _dataParams7.forEach(function (value, index) {
4949
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4950
+ });
4951
+ delete params[key];
4952
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4953
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4954
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4955
+ if (params[key][0] === 'range') {
4956
+ if (params[key][1][0]) {
4957
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4958
+ }
4959
+ if (params[key][1][1]) {
4960
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4961
+ }
4951
4962
  } else {
4952
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4963
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4953
4964
  }
4954
- });
4955
- delete params[key];
4956
- } else if (element && key.indexOf('*') >= 0) {
4957
- var _dataParams7 = key.split('*');
4958
- _dataParams7.forEach(function (value, index) {
4959
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4960
- });
4961
- delete params[key];
4962
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4963
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
4964
- var _dataParams8 = key.split('_selectNumberRange')[0];
4965
- if (params[key][0] === 'range') {
4966
- if (params[key][1][0]) {
4967
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4968
- }
4969
- if (params[key][1][1]) {
4970
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4971
- }
4972
- } else {
4973
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4965
+ delete params[key];
4966
+ } else if (Array.isArray(element)) {
4967
+ params[key] = element.join(',');
4968
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4969
+ delete params[key];
4974
4970
  }
4975
- delete params[key];
4976
- } else if (Array.isArray(element)) {
4977
- params[key] = element.join(',');
4978
- } else if (element == null || element === undefined || String(element).trim() === '') {
4979
- delete params[key];
4980
- }
4971
+ })();
4981
4972
  }
4982
- };
4983
- for (var key in params) {
4984
- _loop();
4985
4973
  }
4986
4974
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4987
4975
  pageSize: pageSize,
@@ -6438,70 +6426,72 @@ var BillEntry = function BillEntry(_ref3) {
6438
6426
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6439
6427
  var canEntryObject, _canEntryObject$error, messageInfo;
6440
6428
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6441
- while (1) switch (_context.prev = _context.next) {
6442
- case 0:
6443
- if (data === null || data === void 0 ? void 0 : data.length) {
6444
- _context.next = 3;
6445
- break;
6446
- }
6447
- antd.message.warning('至少录入一条数据');
6448
- return _context.abrupt("return");
6449
- case 3:
6450
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6451
- return d.skuCode && d.name;
6452
- })) {
6453
- _context.next = 6;
6454
- break;
6455
- }
6456
- antd.message.warning('请选择商品!');
6457
- return _context.abrupt("return");
6458
- case 6:
6459
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6460
- return d.count;
6461
- })) {
6462
- _context.next = 9;
6463
- break;
6464
- }
6465
- antd.message.warning('请填写商品数量!');
6466
- return _context.abrupt("return");
6467
- case 9:
6468
- _context.next = 11;
6469
- return isSkuCanEntry(data);
6470
- case 11:
6471
- canEntryObject = _context.sent;
6472
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6473
- _context.next = 16;
6474
- break;
6475
- }
6476
- messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
6477
- return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6478
- }));
6479
- messageInfo && antd.message.warning({
6480
- content: messageInfo,
6481
- duration: 6
6482
- });
6483
- return _context.abrupt("return");
6484
- case 16:
6485
- setLoading(true);
6486
- onSaveCallback(data).then(function (res) {
6487
- {
6488
- var _Object$keys;
6489
- var initSuccessMessage = '保存成功';
6490
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6491
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6492
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6493
- } else {
6494
- antd.message.success(initSuccessMessage);
6495
- }
6429
+ while (1) {
6430
+ switch (_context.prev = _context.next) {
6431
+ case 0:
6432
+ if (data === null || data === void 0 ? void 0 : data.length) {
6433
+ _context.next = 3;
6434
+ break;
6496
6435
  }
6497
- setLoading(false);
6498
- }).catch(function (Error) {
6499
- antd.message.error(Error);
6500
- setLoading(false);
6501
- });
6502
- case 18:
6503
- case "end":
6504
- return _context.stop();
6436
+ antd.message.warning('至少录入一条数据');
6437
+ return _context.abrupt("return");
6438
+ case 3:
6439
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6440
+ return d.skuCode && d.name;
6441
+ })) {
6442
+ _context.next = 6;
6443
+ break;
6444
+ }
6445
+ antd.message.warning('请选择商品!');
6446
+ return _context.abrupt("return");
6447
+ case 6:
6448
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6449
+ return d.count;
6450
+ })) {
6451
+ _context.next = 9;
6452
+ break;
6453
+ }
6454
+ antd.message.warning('请填写商品数量!');
6455
+ return _context.abrupt("return");
6456
+ case 9:
6457
+ _context.next = 11;
6458
+ return isSkuCanEntry(data);
6459
+ case 11:
6460
+ canEntryObject = _context.sent;
6461
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6462
+ _context.next = 16;
6463
+ break;
6464
+ }
6465
+ messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
6466
+ return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6467
+ }));
6468
+ messageInfo && antd.message.warning({
6469
+ content: messageInfo,
6470
+ duration: 6
6471
+ });
6472
+ return _context.abrupt("return");
6473
+ case 16:
6474
+ setLoading(true);
6475
+ onSaveCallback(data).then(function (res) {
6476
+ {
6477
+ var _Object$keys;
6478
+ var initSuccessMessage = '保存成功';
6479
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6480
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6481
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6482
+ } else {
6483
+ antd.message.success(initSuccessMessage);
6484
+ }
6485
+ }
6486
+ setLoading(false);
6487
+ }).catch(function (Error) {
6488
+ antd.message.error(Error);
6489
+ setLoading(false);
6490
+ });
6491
+ case 18:
6492
+ case "end":
6493
+ return _context.stop();
6494
+ }
6505
6495
  }
6506
6496
  }, _callee);
6507
6497
  }));
@@ -9872,42 +9862,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9872
9862
  var _ctx$form;
9873
9863
  var resData, coverData, data, dataList;
9874
9864
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9875
- while (1) switch (_context.prev = _context.next) {
9876
- case 0:
9877
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9878
- if (!(resData.status === '0' || resData.code === '000000')) {
9879
- _context.next = 13;
9865
+ while (1) {
9866
+ switch (_context.prev = _context.next) {
9867
+ case 0:
9868
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9869
+ if (!(resData.status === '0' || resData.code === '000000')) {
9870
+ _context.next = 13;
9871
+ break;
9872
+ }
9873
+ data = resData.data;
9874
+ if (!remoteSource.converter) {
9875
+ _context.next = 9;
9876
+ break;
9877
+ }
9878
+ _context.next = 6;
9879
+ return remoteSource.converter({
9880
+ data: [data]
9881
+ });
9882
+ case 6:
9883
+ coverData = _context.sent;
9884
+ _context.next = 11;
9880
9885
  break;
9881
- }
9882
- data = resData.data;
9883
- if (!remoteSource.converter) {
9884
- _context.next = 9;
9886
+ case 9:
9887
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
9888
+ coverData = dataList.length && dataList.map(function (ites) {
9889
+ return mapSearchTree(ites);
9890
+ }) || [];
9891
+ case 11:
9892
+ _context.next = 14;
9885
9893
  break;
9886
- }
9887
- _context.next = 6;
9888
- return remoteSource.converter({
9889
- data: [data]
9890
- });
9891
- case 6:
9892
- coverData = _context.sent;
9893
- _context.next = 11;
9894
- break;
9895
- case 9:
9896
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
9897
- coverData = dataList.length && dataList.map(function (ites) {
9898
- return mapSearchTree(ites);
9899
- }) || [];
9900
- case 11:
9901
- _context.next = 14;
9902
- break;
9903
- case 13:
9904
- coverData = [];
9905
- case 14:
9906
- setTreeData(coverData);
9907
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9908
- case 16:
9909
- case "end":
9910
- return _context.stop();
9894
+ case 13:
9895
+ coverData = [];
9896
+ case 14:
9897
+ setTreeData(coverData);
9898
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9899
+ case 16:
9900
+ case "end":
9901
+ return _context.stop();
9902
+ }
9911
9903
  }
9912
9904
  }, _callee);
9913
9905
  }));
@@ -14097,19 +14089,21 @@ function _outLogin() {
14097
14089
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
14098
14090
  var res;
14099
14091
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14100
- while (1) switch (_context.prev = _context.next) {
14101
- case 0:
14102
- _context.next = 2;
14103
- return axios__default['default']({
14104
- url: '/user/web/loginOut',
14105
- method: 'GET'
14106
- });
14107
- case 2:
14108
- res = _context.sent;
14109
- return _context.abrupt("return", res);
14110
- case 4:
14111
- case "end":
14112
- return _context.stop();
14092
+ while (1) {
14093
+ switch (_context.prev = _context.next) {
14094
+ case 0:
14095
+ _context.next = 2;
14096
+ return axios__default['default']({
14097
+ url: '/user/web/loginOut',
14098
+ method: 'GET'
14099
+ });
14100
+ case 2:
14101
+ res = _context.sent;
14102
+ return _context.abrupt("return", res);
14103
+ case 4:
14104
+ case "end":
14105
+ return _context.stop();
14106
+ }
14113
14107
  }
14114
14108
  }, _callee);
14115
14109
  }));
@@ -14238,29 +14232,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14238
14232
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14239
14233
  var sessionId;
14240
14234
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14241
- while (1) switch (_context.prev = _context.next) {
14242
- case 0:
14243
- _context.next = 2;
14244
- return getSessionId();
14245
- case 2:
14246
- sessionId = _context.sent;
14247
- _context.next = 5;
14248
- return outLogin({
14249
- sessionId: sessionId
14250
- });
14251
- case 5:
14252
- // @ts-ignore
14253
- if (BUILD_TYPE) {
14254
- antd.message.success('退出登录成功');
14255
- umi.history.replace({
14256
- pathname: '/user/login'
14235
+ while (1) {
14236
+ switch (_context.prev = _context.next) {
14237
+ case 0:
14238
+ _context.next = 2;
14239
+ return getSessionId();
14240
+ case 2:
14241
+ sessionId = _context.sent;
14242
+ _context.next = 5;
14243
+ return outLogin({
14244
+ sessionId: sessionId
14257
14245
  });
14258
- } else {
14259
- setLoginOutPath();
14260
- }
14261
- case 6:
14262
- case "end":
14263
- return _context.stop();
14246
+ case 5:
14247
+ // @ts-ignore
14248
+ if (BUILD_TYPE) {
14249
+ antd.message.success('退出登录成功');
14250
+ umi.history.replace({
14251
+ pathname: '/user/login'
14252
+ });
14253
+ } else {
14254
+ setLoginOutPath();
14255
+ }
14256
+ case 6:
14257
+ case "end":
14258
+ return _context.stop();
14259
+ }
14264
14260
  }
14265
14261
  }, _callee);
14266
14262
  }));
@@ -16088,7 +16084,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16088
16084
  showSubMenu: isShow
16089
16085
  });
16090
16086
  }, 500);
16091
- //设置tabs标签左右滚动
16092
16087
  _this.setTabNavTransLate = function (num) {
16093
16088
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
16094
16089
  var globalTabsNav = (_document$getElementB = document.getElementById('globalTabs')) === null || _document$getElementB === void 0 ? void 0 : (_document$getElementB2 = _document$getElementB.getElementsByClassName('ant-tabs-nav-list')) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2[0];
@@ -16769,12 +16764,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16769
16764
  request: function () {
16770
16765
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16771
16766
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16772
- while (1) switch (_context.prev = _context.next) {
16773
- case 0:
16774
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16775
- case 1:
16776
- case "end":
16777
- return _context.stop();
16767
+ while (1) {
16768
+ switch (_context.prev = _context.next) {
16769
+ case 0:
16770
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16771
+ case 1:
16772
+ case "end":
16773
+ return _context.stop();
16774
+ }
16778
16775
  }
16779
16776
  }, _callee);
16780
16777
  }));
@@ -17117,6 +17114,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
17117
17114
  }
17118
17115
  };
17119
17116
  React.useEffect(function () {
17117
+ onContainerScroll();
17120
17118
  var onscroll = _.throttle(onContainerScroll, 50);
17121
17119
  container.addEventListener('scroll', onscroll);
17122
17120
  return function () {
@@ -24454,26 +24452,28 @@ var valueType = {
24454
24452
  var getDynamicDict = /*#__PURE__*/function () {
24455
24453
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24456
24454
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24457
- while (1) switch (_context.prev = _context.next) {
24458
- case 0:
24459
- _context.next = 2;
24460
- return bssula.request({
24461
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24462
- converter: function converter(_ref2) {
24463
- var data = _ref2.data;
24464
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24465
- return {
24466
- text: d.name,
24467
- value: d.code || d.brandCode
24468
- };
24469
- });
24470
- }
24471
- });
24472
- case 2:
24473
- return _context.abrupt("return", _context.sent);
24474
- case 3:
24475
- case "end":
24476
- return _context.stop();
24455
+ while (1) {
24456
+ switch (_context.prev = _context.next) {
24457
+ case 0:
24458
+ _context.next = 2;
24459
+ return bssula.request({
24460
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24461
+ converter: function converter(_ref2) {
24462
+ var data = _ref2.data;
24463
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24464
+ return {
24465
+ text: d.name,
24466
+ value: d.code || d.brandCode
24467
+ };
24468
+ });
24469
+ }
24470
+ });
24471
+ case 2:
24472
+ return _context.abrupt("return", _context.sent);
24473
+ case 3:
24474
+ case "end":
24475
+ return _context.stop();
24476
+ }
24477
24477
  }
24478
24478
  }, _callee);
24479
24479
  }));
@@ -24523,53 +24523,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24523
24523
  ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24524
24524
  var _ref$current, source;
24525
24525
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24526
- while (1) switch (_context.prev = _context.next) {
24527
- case 0:
24528
- _context.next = 2;
24529
- return setIsShowAndType(function (prev) {
24530
- if (record.inputType === 20 || record.inputType === 30) {
24531
- return {
24532
- isShow: true,
24533
- singleOrMultiple: record.inputType,
24534
- type: record.choiceType
24535
- };
24526
+ while (1) {
24527
+ switch (_context.prev = _context.next) {
24528
+ case 0:
24529
+ _context.next = 2;
24530
+ return setIsShowAndType(function (prev) {
24531
+ if (record.inputType === 20 || record.inputType === 30) {
24532
+ return {
24533
+ isShow: true,
24534
+ singleOrMultiple: record.inputType,
24535
+ type: record.choiceType
24536
+ };
24537
+ }
24538
+ return prev;
24539
+ });
24540
+ case 2:
24541
+ if (!record.dictionaryCode) {
24542
+ _context.next = 17;
24543
+ break;
24536
24544
  }
24537
- return prev;
24538
- });
24539
- case 2:
24540
- if (!record.dictionaryCode) {
24541
- _context.next = 17;
24542
- break;
24543
- }
24544
- if (!(record.choiceType == 20)) {
24545
- _context.next = 7;
24545
+ if (!(record.choiceType == 20)) {
24546
+ _context.next = 7;
24547
+ break;
24548
+ }
24549
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24550
+ _context.next = 15;
24546
24551
  break;
24547
- }
24548
- _context.t0 = getDictionarySource(record.dictionaryCode);
24549
- _context.next = 15;
24550
- break;
24551
- case 7:
24552
- if (!(record.choiceType == 30)) {
24553
- _context.next = 13;
24552
+ case 7:
24553
+ if (!(record.choiceType == 30)) {
24554
+ _context.next = 13;
24555
+ break;
24556
+ }
24557
+ _context.next = 10;
24558
+ return getDynamicDict(record.dictionaryCode);
24559
+ case 10:
24560
+ _context.t1 = _context.sent;
24561
+ _context.next = 14;
24554
24562
  break;
24555
- }
24556
- _context.next = 10;
24557
- return getDynamicDict(record.dictionaryCode);
24558
- case 10:
24559
- _context.t1 = _context.sent;
24560
- _context.next = 14;
24561
- break;
24562
- case 13:
24563
- _context.t1 = [];
24564
- case 14:
24565
- _context.t0 = _context.t1;
24566
- case 15:
24567
- source = _context.t0;
24568
- // @ts-ignore
24569
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24570
- case 17:
24571
- case "end":
24572
- return _context.stop();
24563
+ case 13:
24564
+ _context.t1 = [];
24565
+ case 14:
24566
+ _context.t0 = _context.t1;
24567
+ case 15:
24568
+ source = _context.t0;
24569
+ // @ts-ignore
24570
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24571
+ case 17:
24572
+ case "end":
24573
+ return _context.stop();
24574
+ }
24573
24575
  }
24574
24576
  }, _callee);
24575
24577
  })));
@@ -24637,28 +24639,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24637
24639
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24638
24640
  var form, values, name, relates, source;
24639
24641
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
24640
- while (1) switch (_context2.prev = _context2.next) {
24641
- case 0:
24642
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24643
- if (values[0]) {
24642
+ while (1) {
24643
+ switch (_context2.prev = _context2.next) {
24644
+ case 0:
24645
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24646
+ if (values[0]) {
24647
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24648
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24649
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24650
+ }
24651
+ if (!values[1]) {
24652
+ _context2.next = 9;
24653
+ break;
24654
+ }
24655
+ _context2.next = 5;
24656
+ return getDynamicDict(record.dictionaryCode || values[1]);
24657
+ case 5:
24658
+ source = _context2.sent;
24644
24659
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24645
24660
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24646
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24647
- }
24648
- if (!values[1]) {
24649
- _context2.next = 9;
24650
- break;
24651
- }
24652
- _context2.next = 5;
24653
- return getDynamicDict(record.dictionaryCode || values[1]);
24654
- case 5:
24655
- source = _context2.sent;
24656
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24657
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24658
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24659
- case 9:
24660
- case "end":
24661
- return _context2.stop();
24661
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24662
+ case 9:
24663
+ case "end":
24664
+ return _context2.stop();
24665
+ }
24662
24666
  }
24663
24667
  }, _callee2);
24664
24668
  }));
@@ -25118,41 +25122,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25118
25122
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
25119
25123
  var values, name, form, source;
25120
25124
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
25121
- while (1) switch (_context3.prev = _context3.next) {
25122
- case 0:
25123
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
25124
- if (values[1] === 40) {
25125
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25126
- form.setFieldVisible(name, false);
25127
- }
25128
- if (!(values[0] === 30)) {
25129
- _context3.next = 10;
25130
- break;
25131
- }
25132
- _context3.next = 5;
25133
- return bssula.request({
25134
- url: '/basic/dictDynamicItem/queryList',
25135
- converter: function converter(_ref11) {
25136
- var data = _ref11.data;
25137
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
25138
- return {
25139
- text: d.dictCode,
25140
- value: d.dictCode
25141
- };
25142
- });
25125
+ while (1) {
25126
+ switch (_context3.prev = _context3.next) {
25127
+ case 0:
25128
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
25129
+ if (values[1] === 40) {
25130
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25131
+ form.setFieldVisible(name, false);
25143
25132
  }
25144
- });
25145
- case 5:
25146
- source = _context3.sent;
25147
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25148
- form.setFieldVisible(name, true);
25149
- _context3.next = 11;
25150
- break;
25151
- case 10:
25152
- form.setFieldVisible(name, false);
25153
- case 11:
25154
- case "end":
25155
- return _context3.stop();
25133
+ if (!(values[0] === 30)) {
25134
+ _context3.next = 10;
25135
+ break;
25136
+ }
25137
+ _context3.next = 5;
25138
+ return bssula.request({
25139
+ url: '/basic/dictDynamicItem/queryList',
25140
+ converter: function converter(_ref11) {
25141
+ var data = _ref11.data;
25142
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
25143
+ return {
25144
+ text: d.dictCode,
25145
+ value: d.dictCode
25146
+ };
25147
+ });
25148
+ }
25149
+ });
25150
+ case 5:
25151
+ source = _context3.sent;
25152
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25153
+ form.setFieldVisible(name, true);
25154
+ _context3.next = 11;
25155
+ break;
25156
+ case 10:
25157
+ form.setFieldVisible(name, false);
25158
+ case 11:
25159
+ case "end":
25160
+ return _context3.stop();
25161
+ }
25156
25162
  }
25157
25163
  }, _callee3);
25158
25164
  }));
@@ -25341,64 +25347,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25341
25347
  var _ref$current4, _res$editableStatus;
25342
25348
  var res, _res$defaultValue;
25343
25349
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
25344
- while (1) switch (_context4.prev = _context4.next) {
25345
- case 0:
25346
- _context4.next = 2;
25347
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25348
- case 2:
25349
- res = _context4.sent;
25350
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25351
- res.fieldGroup = record.fieldGroup;
25352
- res.businessType = record.businessType;
25353
- res.info = {
25354
- enumeration: res.enumeration,
25355
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25356
- formula: res.formula,
25357
- scale: res.scale,
25358
- variable: res.variable
25359
- };
25360
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25361
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25362
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25363
- if (res.inputType === 40) {
25364
- res.valueType = 22;
25365
- }
25366
- // 把数组处理成文本
25367
- if (res.inputType === 30) {
25368
- if (res.defaultValue) {
25369
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25350
+ while (1) {
25351
+ switch (_context4.prev = _context4.next) {
25352
+ case 0:
25353
+ _context4.next = 2;
25354
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25355
+ case 2:
25356
+ res = _context4.sent;
25357
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25358
+ res.fieldGroup = record.fieldGroup;
25359
+ res.businessType = record.businessType;
25360
+ res.info = {
25361
+ enumeration: res.enumeration,
25362
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25363
+ formula: res.formula,
25364
+ scale: res.scale,
25365
+ variable: res.variable
25366
+ };
25367
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25368
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25369
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25370
+ if (res.inputType === 40) {
25371
+ res.valueType = 22;
25370
25372
  }
25371
- }
25372
- res.fieldMapping = res.fieldMapping || '';
25373
- delete res.formula;
25374
- delete res.showValue;
25375
- if (!(mode === 'create')) {
25376
- _context4.next = 18;
25377
- break;
25378
- }
25379
- bssula.request({
25380
- url: "/basic/flow/businessField",
25381
- method: 'POST',
25382
- params: res,
25383
- successMessage: '创建成功!',
25384
- converter: function converter() {
25385
- onParentOk();
25373
+ // 把数组处理成文本
25374
+ if (res.inputType === 30) {
25375
+ if (res.defaultValue) {
25376
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25377
+ }
25386
25378
  }
25387
- });
25388
- return _context4.abrupt("return");
25389
- case 18:
25390
- bssula.request({
25391
- url: "/basic/flow/businessField/".concat(record.id),
25392
- method: 'PATCH',
25393
- params: res,
25394
- successMessage: '修改成功!',
25395
- converter: function converter() {
25396
- onParentOk();
25379
+ res.fieldMapping = res.fieldMapping || '';
25380
+ delete res.formula;
25381
+ delete res.showValue;
25382
+ if (!(mode === 'create')) {
25383
+ _context4.next = 18;
25384
+ break;
25397
25385
  }
25398
- });
25399
- case 19:
25400
- case "end":
25401
- return _context4.stop();
25386
+ bssula.request({
25387
+ url: "/basic/flow/businessField",
25388
+ method: 'POST',
25389
+ params: res,
25390
+ successMessage: '创建成功!',
25391
+ converter: function converter() {
25392
+ onParentOk();
25393
+ }
25394
+ });
25395
+ return _context4.abrupt("return");
25396
+ case 18:
25397
+ bssula.request({
25398
+ url: "/basic/flow/businessField/".concat(record.id),
25399
+ method: 'PATCH',
25400
+ params: res,
25401
+ successMessage: '修改成功!',
25402
+ converter: function converter() {
25403
+ onParentOk();
25404
+ }
25405
+ });
25406
+ case 19:
25407
+ case "end":
25408
+ return _context4.stop();
25409
+ }
25402
25410
  }
25403
25411
  }, _callee4);
25404
25412
  }));
@@ -26183,26 +26191,28 @@ var BsCascader = function BsCascader(_ref) {
26183
26191
  React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26184
26192
  var resData, data;
26185
26193
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26186
- while (1) switch (_context.prev = _context.next) {
26187
- case 0:
26188
- if (!(!source && initRequestSource)) {
26189
- _context.next = 6;
26190
- break;
26191
- }
26192
- _context.next = 3;
26193
- return initRequestSource();
26194
- case 3:
26195
- resData = _context.sent;
26196
- data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26197
- return _objectSpread2(_objectSpread2({}, item), {}, {
26198
- label: item.text,
26199
- isLeaf: false
26200
- });
26201
- })) || [];
26202
- setHandSource(data);
26203
- case 6:
26204
- case "end":
26205
- return _context.stop();
26194
+ while (1) {
26195
+ switch (_context.prev = _context.next) {
26196
+ case 0:
26197
+ if (!(!source && initRequestSource)) {
26198
+ _context.next = 6;
26199
+ break;
26200
+ }
26201
+ _context.next = 3;
26202
+ return initRequestSource();
26203
+ case 3:
26204
+ resData = _context.sent;
26205
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26206
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26207
+ label: item.text,
26208
+ isLeaf: false
26209
+ });
26210
+ })) || [];
26211
+ setHandSource(data);
26212
+ case 6:
26213
+ case "end":
26214
+ return _context.stop();
26215
+ }
26206
26216
  }
26207
26217
  }, _callee);
26208
26218
  })), []);
@@ -26334,18 +26344,20 @@ function getRegularThresholdRange(_x) {
26334
26344
  function _getRegularThresholdRange() {
26335
26345
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
26336
26346
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26337
- while (1) switch (_context.prev = _context.next) {
26338
- case 0:
26339
- return _context.abrupt("return", axios__default['default']({
26340
- url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26341
- method: 'POST',
26342
- data: _objectSpread2(_objectSpread2({}, params), {}, {
26343
- queryIdentify: undefined
26344
- })
26345
- }));
26346
- case 1:
26347
- case "end":
26348
- return _context.stop();
26347
+ while (1) {
26348
+ switch (_context.prev = _context.next) {
26349
+ case 0:
26350
+ return _context.abrupt("return", axios__default['default']({
26351
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26352
+ method: 'POST',
26353
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26354
+ queryIdentify: undefined
26355
+ })
26356
+ }));
26357
+ case 1:
26358
+ case "end":
26359
+ return _context.stop();
26360
+ }
26349
26361
  }
26350
26362
  }, _callee);
26351
26363
  }));
@@ -26484,136 +26496,137 @@ var RuleField = /*#__PURE__*/function (_Component) {
26484
26496
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
26485
26497
  });
26486
26498
  };
26487
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
26488
26499
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
26489
26500
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
26490
26501
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
26491
26502
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26492
- while (1) switch (_context.prev = _context.next) {
26493
- case 0:
26494
- if (queryIdentify) {
26495
- _context.next = 2;
26496
- break;
26497
- }
26498
- return _context.abrupt("return");
26499
- case 2:
26500
- thresholdQuery = _this.state.thresholdQuery;
26501
- extraRequestUrl = '';
26502
- querParams = setParams(propertyCode, thresholdQuery);
26503
- if (!queryIdentityInfo.find(function (item) {
26504
- return item.identity == propertyCode;
26505
- })) {
26506
- _context.next = 10;
26507
- break;
26508
- }
26509
- //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26510
- needQueryList = queryIdentityInfo.find(function (item) {
26511
- return item.identity == propertyCode;
26512
- }).queryParam.filter(function (item) {
26513
- return item.isRequired;
26514
- }).map(function (item) {
26515
- return item.queryKey;
26516
- });
26517
- if (!needQueryList.some(function (item) {
26518
- return !querParams[item] || !querParams[item].length;
26519
- })) {
26520
- _context.next = 9;
26521
- break;
26522
- }
26523
- return _context.abrupt("return");
26524
- case 9:
26525
- extraRequestUrl = queryIdentityInfo.find(function (item) {
26526
- return item.identity == propertyCode;
26527
- }).requestUrl || '';
26528
- case 10:
26529
- if (queryIdentifyType === 'dictCodeIdentify') {
26530
- extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26531
- querParams = {
26532
- dictCode: queryIdentify
26533
- };
26534
- } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26535
- extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26536
- // querParams = { dictCode: queryIdentify }
26537
- }
26538
- if (!extraRequestUrl) {
26539
- _context.next = 16;
26540
- break;
26541
- }
26542
- if (queryIdentify == 'maintain_area_code') {
26543
- extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
26544
- } else if (queryIdentifyType == 'dictCodeIdentify') {
26545
- extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
26546
- } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26547
- extraRequestUrl = "/basic/".concat(extraRequestUrl);
26548
- }
26549
- bssula.request({
26550
- url: extraRequestUrl,
26551
- method: 'get',
26552
- converter: function converter(res) {
26553
- if (handleError(res)) {
26554
- var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26555
- if (queryIdentifyType === 'dictCodeIdentify') {
26556
- var _handleData2;
26557
- _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26558
- return {
26559
- code: i.dictItemCode,
26560
- name: i.dictItemName
26561
- };
26562
- }) : [];
26563
- }
26564
- if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26565
- var _handleData3;
26566
- _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26567
- return {
26568
- code: i.code.toString(),
26569
- name: i.name
26570
- };
26571
- }) : [];
26503
+ while (1) {
26504
+ switch (_context.prev = _context.next) {
26505
+ case 0:
26506
+ if (queryIdentify) {
26507
+ _context.next = 2;
26508
+ break;
26509
+ }
26510
+ return _context.abrupt("return");
26511
+ case 2:
26512
+ thresholdQuery = _this.state.thresholdQuery;
26513
+ extraRequestUrl = '';
26514
+ querParams = setParams(propertyCode, thresholdQuery);
26515
+ if (!queryIdentityInfo.find(function (item) {
26516
+ return item.identity == propertyCode;
26517
+ })) {
26518
+ _context.next = 10;
26519
+ break;
26520
+ }
26521
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26522
+ needQueryList = queryIdentityInfo.find(function (item) {
26523
+ return item.identity == propertyCode;
26524
+ }).queryParam.filter(function (item) {
26525
+ return item.isRequired;
26526
+ }).map(function (item) {
26527
+ return item.queryKey;
26528
+ });
26529
+ if (!needQueryList.some(function (item) {
26530
+ return !querParams[item] || !querParams[item].length;
26531
+ })) {
26532
+ _context.next = 9;
26533
+ break;
26534
+ }
26535
+ return _context.abrupt("return");
26536
+ case 9:
26537
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26538
+ return item.identity == propertyCode;
26539
+ }).requestUrl || '';
26540
+ case 10:
26541
+ if (queryIdentifyType === 'dictCodeIdentify') {
26542
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26543
+ querParams = {
26544
+ dictCode: queryIdentify
26545
+ };
26546
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26547
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26548
+ // querParams = { dictCode: queryIdentify }
26549
+ }
26550
+ if (!extraRequestUrl) {
26551
+ _context.next = 16;
26552
+ break;
26553
+ }
26554
+ if (queryIdentify == 'maintain_area_code') {
26555
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
26556
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26557
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
26558
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26559
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26560
+ }
26561
+ bssula.request({
26562
+ url: extraRequestUrl,
26563
+ method: 'get',
26564
+ converter: function converter(res) {
26565
+ if (handleError(res)) {
26566
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26567
+ if (queryIdentifyType === 'dictCodeIdentify') {
26568
+ var _handleData2;
26569
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26570
+ return {
26571
+ code: i.dictItemCode,
26572
+ name: i.dictItemName
26573
+ };
26574
+ }) : [];
26575
+ }
26576
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26577
+ var _handleData3;
26578
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26579
+ return {
26580
+ code: i.code.toString(),
26581
+ name: i.name
26582
+ };
26583
+ }) : [];
26584
+ }
26585
+ _this.setState({
26586
+ thresholdList: _handleData
26587
+ });
26572
26588
  }
26573
- _this.setState({
26574
- thresholdList: _handleData
26575
- });
26589
+ return handleData;
26576
26590
  }
26577
- return handleData;
26578
- }
26579
- });
26580
- _context.next = 29;
26581
- break;
26582
- case 16:
26583
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26584
- _context.next = 20;
26591
+ });
26592
+ _context.next = 29;
26585
26593
  break;
26586
- }
26587
- _this.setState({
26588
- thresholdList: queryIdentify
26589
- });
26590
- _context.next = 29;
26591
- break;
26592
- case 20:
26593
- if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26594
- _context.next = 24;
26594
+ case 16:
26595
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26596
+ _context.next = 20;
26597
+ break;
26598
+ }
26599
+ _this.setState({
26600
+ thresholdList: queryIdentify
26601
+ });
26602
+ _context.next = 29;
26595
26603
  break;
26596
- }
26597
- // TODO待处理
26598
- _this.setState({
26599
- thresholdList: []
26600
- });
26601
- _context.next = 29;
26602
- break;
26603
- case 24:
26604
- querParams.queryIdentify = queryIdentify;
26605
- _context.next = 27;
26606
- return getRegularThresholdRange(querParams);
26607
- case 27:
26608
- res = _context.sent;
26609
- if (handleError(res)) {
26604
+ case 20:
26605
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26606
+ _context.next = 24;
26607
+ break;
26608
+ }
26609
+ // TODO待处理
26610
26610
  _this.setState({
26611
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26611
+ thresholdList: []
26612
26612
  });
26613
- }
26614
- case 29:
26615
- case "end":
26616
- return _context.stop();
26613
+ _context.next = 29;
26614
+ break;
26615
+ case 24:
26616
+ querParams.queryIdentify = queryIdentify;
26617
+ _context.next = 27;
26618
+ return getRegularThresholdRange(querParams);
26619
+ case 27:
26620
+ res = _context.sent;
26621
+ if (handleError(res)) {
26622
+ _this.setState({
26623
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26624
+ });
26625
+ }
26626
+ case 29:
26627
+ case "end":
26628
+ return _context.stop();
26629
+ }
26617
26630
  }
26618
26631
  }, _callee);
26619
26632
  }));
@@ -27432,30 +27445,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27432
27445
  notChangeOnSelect: true,
27433
27446
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
27434
27447
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
27435
- while (1) switch (_context2.prev = _context2.next) {
27436
- case 0:
27437
- _context2.next = 2;
27438
- return bssula.request({
27439
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27440
- method: 'get',
27441
- converter: function converter(_ref3) {
27442
- var data = _ref3.data;
27443
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27444
- return {
27445
- text: item.name,
27446
- value: item.id,
27447
- level: item.level,
27448
- id: item.id
27449
- };
27450
- }) : [];
27451
- return handleData;
27452
- }
27453
- });
27454
- case 2:
27455
- return _context2.abrupt("return", _context2.sent);
27456
- case 3:
27457
- case "end":
27458
- return _context2.stop();
27448
+ while (1) {
27449
+ switch (_context2.prev = _context2.next) {
27450
+ case 0:
27451
+ _context2.next = 2;
27452
+ return bssula.request({
27453
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27454
+ method: 'get',
27455
+ converter: function converter(_ref3) {
27456
+ var data = _ref3.data;
27457
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27458
+ return {
27459
+ text: item.name,
27460
+ value: item.id,
27461
+ level: item.level,
27462
+ id: item.id
27463
+ };
27464
+ }) : [];
27465
+ return handleData;
27466
+ }
27467
+ });
27468
+ case 2:
27469
+ return _context2.abrupt("return", _context2.sent);
27470
+ case 3:
27471
+ case "end":
27472
+ return _context2.stop();
27473
+ }
27459
27474
  }
27460
27475
  }, _callee2);
27461
27476
  })),
@@ -27481,30 +27496,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27481
27496
  notChangeOnSelect: true,
27482
27497
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
27483
27498
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
27484
- while (1) switch (_context3.prev = _context3.next) {
27485
- case 0:
27486
- _context3.next = 2;
27487
- return bssula.request({
27488
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27489
- method: 'get',
27490
- converter: function converter(_ref5) {
27491
- var data = _ref5.data;
27492
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27493
- return {
27494
- text: item.name,
27495
- value: item.id,
27496
- level: item.level,
27497
- id: item.id
27498
- };
27499
- }) : [];
27500
- return handleData;
27501
- }
27502
- });
27503
- case 2:
27504
- return _context3.abrupt("return", _context3.sent);
27505
- case 3:
27506
- case "end":
27507
- return _context3.stop();
27499
+ while (1) {
27500
+ switch (_context3.prev = _context3.next) {
27501
+ case 0:
27502
+ _context3.next = 2;
27503
+ return bssula.request({
27504
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27505
+ method: 'get',
27506
+ converter: function converter(_ref5) {
27507
+ var data = _ref5.data;
27508
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27509
+ return {
27510
+ text: item.name,
27511
+ value: item.id,
27512
+ level: item.level,
27513
+ id: item.id
27514
+ };
27515
+ }) : [];
27516
+ return handleData;
27517
+ }
27518
+ });
27519
+ case 2:
27520
+ return _context3.abrupt("return", _context3.sent);
27521
+ case 3:
27522
+ case "end":
27523
+ return _context3.stop();
27524
+ }
27508
27525
  }
27509
27526
  }, _callee3);
27510
27527
  })),
@@ -27532,30 +27549,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27532
27549
  notChangeOnSelect: true,
27533
27550
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
27534
27551
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
27535
- while (1) switch (_context4.prev = _context4.next) {
27536
- case 0:
27537
- _context4.next = 2;
27538
- return bssula.request({
27539
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27540
- method: 'get',
27541
- converter: function converter(_ref7) {
27542
- var data = _ref7.data;
27543
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27544
- return {
27545
- text: item.name,
27546
- value: item.id,
27547
- level: item.level,
27548
- id: item.id
27549
- };
27550
- }) : [];
27551
- return handleData;
27552
- }
27553
- });
27554
- case 2:
27555
- return _context4.abrupt("return", _context4.sent);
27556
- case 3:
27557
- case "end":
27558
- return _context4.stop();
27552
+ while (1) {
27553
+ switch (_context4.prev = _context4.next) {
27554
+ case 0:
27555
+ _context4.next = 2;
27556
+ return bssula.request({
27557
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27558
+ method: 'get',
27559
+ converter: function converter(_ref7) {
27560
+ var data = _ref7.data;
27561
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27562
+ return {
27563
+ text: item.name,
27564
+ value: item.id,
27565
+ level: item.level,
27566
+ id: item.id
27567
+ };
27568
+ }) : [];
27569
+ return handleData;
27570
+ }
27571
+ });
27572
+ case 2:
27573
+ return _context4.abrupt("return", _context4.sent);
27574
+ case 3:
27575
+ case "end":
27576
+ return _context4.stop();
27577
+ }
27559
27578
  }
27560
27579
  }, _callee4);
27561
27580
  })),
@@ -28672,6 +28691,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
28672
28691
  });
28673
28692
  }
28674
28693
  }
28694
+
28695
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28675
28696
  }, {
28676
28697
  key: "render",
28677
28698
  value: function render() {
@@ -29502,7 +29523,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29502
29523
  callBack(ruleClassData);
29503
29524
  });
29504
29525
  };
29505
- // 树结构 转化成 平行树 (递归函数)
29506
29526
  _this.coverToParallel = function (treeData, result) {
29507
29527
  treeData.forEach(function (el) {
29508
29528
  result.push(el);
@@ -29758,7 +29778,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29758
29778
  callBack(ruleClassData);
29759
29779
  });
29760
29780
  };
29761
- // 场景需要返回值2022.11.15
29762
29781
  _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
29763
29782
  var _ruleReturnConfig$rig;
29764
29783
  var isShowResponse = itemDetail.response['enable'];
@@ -30056,30 +30075,32 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30056
30075
  notChangeOnSelect: true,
30057
30076
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
30058
30077
  return _regeneratorRuntime().wrap(function _callee$(_context) {
30059
- while (1) switch (_context.prev = _context.next) {
30060
- case 0:
30061
- _context.next = 2;
30062
- return bssula.request({
30063
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
30064
- method: 'get',
30065
- converter: function converter(_ref2) {
30066
- var data = _ref2.data;
30067
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
30068
- return {
30069
- text: item.name,
30070
- value: item.id,
30071
- level: item.level,
30072
- id: item.id
30073
- };
30074
- }) : [];
30075
- return handleData;
30076
- }
30077
- });
30078
- case 2:
30079
- return _context.abrupt("return", _context.sent);
30080
- case 3:
30081
- case "end":
30082
- return _context.stop();
30078
+ while (1) {
30079
+ switch (_context.prev = _context.next) {
30080
+ case 0:
30081
+ _context.next = 2;
30082
+ return bssula.request({
30083
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
30084
+ method: 'get',
30085
+ converter: function converter(_ref2) {
30086
+ var data = _ref2.data;
30087
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
30088
+ return {
30089
+ text: item.name,
30090
+ value: item.id,
30091
+ level: item.level,
30092
+ id: item.id
30093
+ };
30094
+ }) : [];
30095
+ return handleData;
30096
+ }
30097
+ });
30098
+ case 2:
30099
+ return _context.abrupt("return", _context.sent);
30100
+ case 3:
30101
+ case "end":
30102
+ return _context.stop();
30103
+ }
30083
30104
  }
30084
30105
  }, _callee);
30085
30106
  })),
@@ -30413,7 +30434,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30413
30434
  }
30414
30435
  }, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
30415
30436
  };
30416
- //添加同一层级条件
30417
30437
  _this.addPeerRule = function (itemDetail) {
30418
30438
  var ruleClassData = _this.state.ruleClassData;
30419
30439
  var _this$props4 = _this.props,
@@ -30434,7 +30454,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30434
30454
  callBack(ruleClassData);
30435
30455
  });
30436
30456
  };
30437
- //添加子层级条件
30438
30457
  _this.addChildRules = function (itemDetail) {
30439
30458
  var ruleClassData = _this.state.ruleClassData;
30440
30459
  var callBack = _this.props.callBack;
@@ -30510,7 +30529,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30510
30529
  callBack(ruleClassData);
30511
30530
  });
30512
30531
  };
30513
- // 新增执行顺序
30514
30532
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
30515
30533
  callback();
30516
30534
  var callBack = _this.props.callBack;