@bit-sun/business-component 2.3.20 → 2.3.22-beta1

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 (212) 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/BsLayouts/service.d.ts +1 -1
  16. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +2 -2
  17. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  18. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  19. package/dist/components/Functional/AddSelect/helps.d.ts +13 -0
  20. package/dist/components/Functional/BsAntdSula/BsCascader/index.d.ts +1 -1
  21. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  22. package/dist/components/Solution/RuleComponent/services.d.ts +1 -1
  23. package/dist/index.esm.js +1401 -1292
  24. package/dist/index.js +1401 -1292
  25. package/dist/utils/TableUtils.d.ts +2 -2
  26. package/dist/utils/utils.d.ts +1 -1
  27. package/docs/index.md +21 -21
  28. package/lib/assets/drag.svg +17 -17
  29. package/lib/assets/exportFail.svg +37 -37
  30. package/lib/assets/exportProcessing.svg +28 -28
  31. package/lib/assets/exportSuccess.svg +34 -34
  32. package/lib/assets/label_icon_bottom.svg +25 -25
  33. package/lib/assets/upExport.svg +22 -22
  34. package/package.json +78 -78
  35. package/src/assets/32.svg +27 -27
  36. package/src/assets/addIcon.svg +17 -17
  37. package/src/assets/allfunc.svg +27 -27
  38. package/src/assets/arrowRight.svg +24 -24
  39. package/src/assets/btn-delete.svg +29 -29
  40. package/src/assets/btn-edit.svg +19 -19
  41. package/src/assets/btn-more.svg +17 -17
  42. package/src/assets/btn-submit.svg +19 -19
  43. package/src/assets/caidan.svg +11 -11
  44. package/src/assets/close.svg +26 -26
  45. package/src/assets/drag.svg +17 -17
  46. package/src/assets/exportFail.svg +37 -37
  47. package/src/assets/exportProcessing.svg +28 -28
  48. package/src/assets/exportSuccess.svg +34 -34
  49. package/src/assets/fixed-left-active.svg +11 -11
  50. package/src/assets/fixed-left.svg +15 -15
  51. package/src/assets/fixed-right-active.svg +11 -11
  52. package/src/assets/fixed-right.svg +15 -15
  53. package/src/assets/guanbi.svg +15 -15
  54. package/src/assets/icon-quanping.svg +15 -15
  55. package/src/assets/icon-shezhi.svg +17 -17
  56. package/src/assets/label_icon_bottom.svg +25 -25
  57. package/src/assets/list-no-img.svg +21 -21
  58. package/src/assets/morentouxiang-32.svg +23 -23
  59. package/src/assets/scanning.svg +24 -24
  60. package/src/assets/upExport.svg +22 -22
  61. package/src/common/ENUM.ts +41 -41
  62. package/src/components/Business/AddSelectBusiness/index.md +162 -162
  63. package/src/components/Business/AddSelectBusiness/index.tsx +1060 -895
  64. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  65. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  66. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  67. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  68. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  69. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  70. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  71. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  72. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  73. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  74. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  75. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  76. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  77. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  78. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  79. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  80. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  81. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  82. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  83. package/src/components/Business/BsLayouts/index.less +79 -79
  84. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  85. package/src/components/Business/BsLayouts/service.ts +10 -10
  86. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  87. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
  88. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  89. package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
  90. package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
  91. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  92. package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -688
  93. package/src/components/Business/CommodityEntry/index.md +70 -70
  94. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  95. package/src/components/Business/CommonAlert/index.tsx +23 -23
  96. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  97. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  98. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  99. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  100. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  101. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  102. package/src/components/Business/HomePageWrapper/index.less +33 -33
  103. package/src/components/Business/HomePageWrapper/index.md +45 -45
  104. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  105. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  106. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
  107. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  108. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  109. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  110. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  111. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  112. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  113. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  114. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  115. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  116. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  117. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  118. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  119. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  120. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  121. package/src/components/Business/JsonQueryTable/index.less +16 -16
  122. package/src/components/Business/JsonQueryTable/index.md +328 -328
  123. package/src/components/Business/JsonQueryTable/index.tsx +535 -535
  124. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  125. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  126. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  127. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  128. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  129. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  130. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  131. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  132. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  133. package/src/components/Business/SearchSelect/BusinessUtils.ts +1762 -1762
  134. package/src/components/Business/SearchSelect/common.ts +75 -75
  135. package/src/components/Business/SearchSelect/index.md +1329 -1329
  136. package/src/components/Business/SearchSelect/index.tsx +55 -55
  137. package/src/components/Business/SearchSelect/utils.ts +100 -100
  138. package/src/components/Business/StateFlow/index.less +130 -130
  139. package/src/components/Business/StateFlow/index.md +60 -60
  140. package/src/components/Business/StateFlow/index.tsx +29 -29
  141. package/src/components/Business/TreeSearchSelect/index.md +156 -156
  142. package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
  143. package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
  144. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  145. package/src/components/Business/columnSettingTable/index.less +247 -247
  146. package/src/components/Business/columnSettingTable/index.md +357 -357
  147. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  148. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  149. package/src/components/Business/columnSettingTable/utils.tsx +71 -69
  150. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
  151. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  152. package/src/components/Business/moreTreeTable/index.less +99 -99
  153. package/src/components/Business/moreTreeTable/index.md +448 -448
  154. package/src/components/Business/moreTreeTable/index.tsx +387 -387
  155. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  156. package/src/components/Functional/AddSelect/helps.ts +79 -14
  157. package/src/components/Functional/AddSelect/index.less +367 -367
  158. package/src/components/Functional/AddSelect/index.md +155 -155
  159. package/src/components/Functional/AddSelect/index.tsx +1170 -1282
  160. package/src/components/Functional/BillEntry/index.less +371 -371
  161. package/src/components/Functional/BillEntry/index.md +39 -39
  162. package/src/components/Functional/BillEntry/index.tsx +772 -772
  163. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  164. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  165. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  166. package/src/components/Functional/DataImport/index.less +63 -63
  167. package/src/components/Functional/DataImport/index.md +44 -44
  168. package/src/components/Functional/DataImport/index.tsx +695 -695
  169. package/src/components/Functional/DataValidation/index.less +63 -63
  170. package/src/components/Functional/DataValidation/index.md +39 -39
  171. package/src/components/Functional/DataValidation/index.tsx +687 -687
  172. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  173. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  174. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  175. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  176. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  177. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  178. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  179. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  180. package/src/components/Functional/SearchSelect/index.less +115 -115
  181. package/src/components/Functional/SearchSelect/index.md +141 -141
  182. package/src/components/Functional/SearchSelect/index.tsx +879 -879
  183. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  184. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  185. package/src/components/Functional/TreeSearchSelect/index.tsx +199 -199
  186. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  187. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  188. package/src/components/Solution/RuleComponent/index.js +2032 -2032
  189. package/src/components/Solution/RuleComponent/index.less +230 -230
  190. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  191. package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
  192. package/src/components/Solution/RuleComponent/services.ts +13 -13
  193. package/src/components/Solution/RuleComponent/util.js +139 -139
  194. package/src/index.ts +38 -38
  195. package/src/plugin/TableColumnSetting/index.less +247 -247
  196. package/src/plugin/TableColumnSetting/index.md +50 -50
  197. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  198. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  199. package/src/styles/bsDefault.less +1912 -1912
  200. package/src/utils/CheckOneUser/index.md +39 -39
  201. package/src/utils/CheckOneUser/index.ts +51 -51
  202. package/src/utils/LocalstorageUtils.ts +95 -95
  203. package/src/utils/TableUtils.tsx +18 -18
  204. package/src/utils/checkUtils.ts +39 -39
  205. package/src/utils/enumConfig.ts +11 -11
  206. package/src/utils/getFormMode.js +12 -12
  207. package/src/utils/index.ts +4 -4
  208. package/src/utils/requestUtils.ts +34 -34
  209. package/src/utils/serialize.js +7 -7
  210. package/src/utils/utils.ts +212 -212
  211. package/tsconfig.json +29 -29
  212. package/typings.d.ts +4 -4
package/dist/index.esm.js CHANGED
@@ -136,6 +136,33 @@ axios.interceptors.request.use(function (config) {
136
136
  return config;
137
137
  });
138
138
 
139
+ function _iterableToArrayLimit(arr, i) {
140
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
141
+ if (null != _i) {
142
+ var _s,
143
+ _e,
144
+ _x,
145
+ _r,
146
+ _arr = [],
147
+ _n = !0,
148
+ _d = !1;
149
+ try {
150
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
151
+ if (Object(_i) !== _i) return;
152
+ _n = !1;
153
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
154
+ } catch (err) {
155
+ _d = !0, _e = err;
156
+ } finally {
157
+ try {
158
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
159
+ } finally {
160
+ if (_d) throw _e;
161
+ }
162
+ }
163
+ return _arr;
164
+ }
165
+ }
139
166
  function ownKeys(object, enumerableOnly) {
140
167
  var keys = Object.keys(object);
141
168
  if (Object.getOwnPropertySymbols) {
@@ -292,14 +319,9 @@ function _regeneratorRuntime() {
292
319
  };
293
320
  }
294
321
  function maybeInvokeDelegate(delegate, context) {
295
- var method = delegate.iterator[context.method];
296
- if (undefined === method) {
297
- if (context.delegate = null, "throw" === context.method) {
298
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
299
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
300
- }
301
- return ContinueSentinel;
302
- }
322
+ var methodName = context.method,
323
+ method = delegate.iterator[methodName];
324
+ 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;
303
325
  var record = tryCatch(method, delegate.iterator, context.arg);
304
326
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
305
327
  var info = record.arg;
@@ -513,7 +535,7 @@ function _defineProperties(target, props) {
513
535
  descriptor.enumerable = descriptor.enumerable || false;
514
536
  descriptor.configurable = true;
515
537
  if ("value" in descriptor) descriptor.writable = true;
516
- Object.defineProperty(target, descriptor.key, descriptor);
538
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
517
539
  }
518
540
  }
519
541
  function _createClass(Constructor, protoProps, staticProps) {
@@ -525,6 +547,7 @@ function _createClass(Constructor, protoProps, staticProps) {
525
547
  return Constructor;
526
548
  }
527
549
  function _defineProperty(obj, key, value) {
550
+ key = _toPropertyKey(key);
528
551
  if (key in obj) {
529
552
  Object.defineProperty(obj, key, {
530
553
  value: value,
@@ -667,30 +690,6 @@ function _arrayWithHoles(arr) {
667
690
  function _iterableToArray(iter) {
668
691
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
669
692
  }
670
- function _iterableToArrayLimit(arr, i) {
671
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
672
- if (_i == null) return;
673
- var _arr = [];
674
- var _n = true;
675
- var _d = false;
676
- var _s, _e;
677
- try {
678
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
679
- _arr.push(_s.value);
680
- if (i && _arr.length === i) break;
681
- }
682
- } catch (err) {
683
- _d = true;
684
- _e = err;
685
- } finally {
686
- try {
687
- if (!_n && _i["return"] != null) _i["return"]();
688
- } finally {
689
- if (_d) throw _e;
690
- }
691
- }
692
- return _arr;
693
- }
694
693
  function _unsupportedIterableToArray(o, minLen) {
695
694
  if (!o) return;
696
695
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -710,6 +709,20 @@ function _nonIterableSpread() {
710
709
  function _nonIterableRest() {
711
710
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
712
711
  }
712
+ function _toPrimitive(input, hint) {
713
+ if (typeof input !== "object" || input === null) return input;
714
+ var prim = input[Symbol.toPrimitive];
715
+ if (prim !== undefined) {
716
+ var res = prim.call(input, hint || "default");
717
+ if (typeof res !== "object") return res;
718
+ throw new TypeError("@@toPrimitive must return a primitive value.");
719
+ }
720
+ return (hint === "string" ? String : Number)(input);
721
+ }
722
+ function _toPropertyKey(arg) {
723
+ var key = _toPrimitive(arg, "string");
724
+ return typeof key === "symbol" ? key : String(key);
725
+ }
713
726
 
714
727
  var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
715
728
  var errorMessage = _objectSpread2({
@@ -962,32 +975,35 @@ function handleCommonTimeRender(text, format) {
962
975
  }
963
976
  //设置queryTable默认列宽
964
977
  var getItemDefaultWidth = function getItemDefaultWidth(item) {
978
+ var _ref;
965
979
  var defaultWidth = 200;
966
- var lowerCaseKey = (item.key || item.dataIndex).toLowerCase();
967
- switch (true) {
968
- case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
969
- defaultWidth = 60;
970
- break;
971
- case lowerCaseKey.indexOf('number') > -1:
972
- case lowerCaseKey.indexOf('quantity') > -1:
973
- case lowerCaseKey.indexOf('amount') > -1:
974
- defaultWidth = 90;
975
- break;
976
- case lowerCaseKey.indexOf('no') > -1:
977
- defaultWidth = 200;
978
- break;
979
- case lowerCaseKey.indexOf('code') > -1:
980
- defaultWidth = 170;
981
- break;
982
- case lowerCaseKey.indexOf('time') > -1:
983
- defaultWidth = 130;
984
- break;
985
- case lowerCaseKey.indexOf('status') > -1:
986
- defaultWidth = 100;
987
- break;
988
- case lowerCaseKey.indexOf('user') > -1:
989
- defaultWidth = 130;
990
- break;
980
+ var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
981
+ if (lowerCaseKey) {
982
+ switch (true) {
983
+ case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
984
+ defaultWidth = 60;
985
+ break;
986
+ case lowerCaseKey.indexOf('number') > -1:
987
+ case lowerCaseKey.indexOf('quantity') > -1:
988
+ case lowerCaseKey.indexOf('amount') > -1:
989
+ defaultWidth = 90;
990
+ break;
991
+ case lowerCaseKey.indexOf('no') > -1:
992
+ defaultWidth = 200;
993
+ break;
994
+ case lowerCaseKey.indexOf('code') > -1:
995
+ defaultWidth = 170;
996
+ break;
997
+ case lowerCaseKey.indexOf('time') > -1:
998
+ defaultWidth = 130;
999
+ break;
1000
+ case lowerCaseKey.indexOf('status') > -1:
1001
+ defaultWidth = 100;
1002
+ break;
1003
+ case lowerCaseKey.indexOf('user') > -1:
1004
+ defaultWidth = 130;
1005
+ break;
1006
+ }
991
1007
  }
992
1008
  return defaultWidth;
993
1009
  };
@@ -997,58 +1013,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
997
1013
  * @returns 返回处理后的查询参数
998
1014
  */
999
1015
  function queryParams(params, flag) {
1000
- for (var key in params) {
1016
+ var _loop = function _loop() {
1001
1017
  if (Object.prototype.hasOwnProperty.call(params, key)) {
1002
- (function () {
1003
- var element = params[key];
1004
- if (element && key.indexOf('*number*') >= 0) {
1005
- var dataParams = key.split('*number*');
1006
- dataParams.forEach(function (value, index) {
1007
- params[value] = element[index];
1008
- });
1009
- delete params[key];
1010
- } else if (element && key.indexOf('*address*') >= 0) {
1011
- var _dataParams = key.split('*address*');
1012
- _dataParams.forEach(function (value, index) {
1013
- params[value] = element.PCDCode[index];
1014
- });
1015
- delete params[key];
1016
- } else if (element && key.indexOf('*costType*') >= 0) {
1017
- var _dataParams2 = key.split('*costType*');
1018
- // eslint-disable-next-line prefer-destructuring
1019
- params[_dataParams2[0]] = element[1];
1020
- delete params[key];
1021
- } else if (element && key.indexOf('*fullDate*') >= 0) {
1022
- var _dataParams3 = key.split('*fullDate*');
1023
- _dataParams3.forEach(function (value, index) {
1024
- if (index === 0) {
1025
- params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1026
- } else {
1027
- params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1028
- }
1029
- });
1030
- delete params[key];
1031
- } else if (element && key.indexOf('*') >= 0) {
1032
- var _dataParams4 = key.split('*');
1033
- _dataParams4.forEach(function (value, index) {
1034
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1035
- });
1036
- delete params[key];
1037
- } else if (element && key.indexOf('_likeIn_') >= 0) {
1038
- var _dataParams5 = key.split('_likeIn_');
1039
- if (element.indexOf(',') >= 0) {
1040
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1041
- params["qp-".concat(_dataParams5[0], "-like")] = null;
1018
+ var element = params[key];
1019
+ if (element && key.indexOf('*number*') >= 0) {
1020
+ var dataParams = key.split('*number*');
1021
+ dataParams.forEach(function (value, index) {
1022
+ params[value] = element[index];
1023
+ });
1024
+ delete params[key];
1025
+ } else if (element && key.indexOf('*address*') >= 0) {
1026
+ var _dataParams = key.split('*address*');
1027
+ _dataParams.forEach(function (value, index) {
1028
+ params[value] = element.PCDCode[index];
1029
+ });
1030
+ delete params[key];
1031
+ } else if (element && key.indexOf('*costType*') >= 0) {
1032
+ var _dataParams2 = key.split('*costType*');
1033
+ // eslint-disable-next-line prefer-destructuring
1034
+ params[_dataParams2[0]] = element[1];
1035
+ delete params[key];
1036
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
1037
+ var _dataParams3 = key.split('*fullDate*');
1038
+ _dataParams3.forEach(function (value, index) {
1039
+ if (index === 0) {
1040
+ params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1042
1041
  } else {
1043
- params["qp-".concat(_dataParams5[0], "-like")] = element;
1044
- params["qp-".concat(_dataParams5[0], "-in")] = null;
1042
+ params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1045
1043
  }
1046
- delete params[key];
1047
- } else if (Array.isArray(element)) {
1048
- params[key] = element.join(',');
1044
+ });
1045
+ delete params[key];
1046
+ } else if (element && key.indexOf('*') >= 0) {
1047
+ var _dataParams4 = key.split('*');
1048
+ _dataParams4.forEach(function (value, index) {
1049
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1050
+ });
1051
+ delete params[key];
1052
+ } else if (element && key.indexOf('_likeIn_') >= 0) {
1053
+ var _dataParams5 = key.split('_likeIn_');
1054
+ if (element.indexOf(',') >= 0) {
1055
+ params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1056
+ params["qp-".concat(_dataParams5[0], "-like")] = null;
1057
+ } else {
1058
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
1059
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
1049
1060
  }
1050
- })();
1061
+ delete params[key];
1062
+ } else if (Array.isArray(element)) {
1063
+ params[key] = element.join(',');
1064
+ }
1051
1065
  }
1066
+ };
1067
+ for (var key in params) {
1068
+ _loop();
1052
1069
  }
1053
1070
  return flag ? params : qs.stringify(params);
1054
1071
  }
@@ -2777,84 +2794,85 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2777
2794
  });
2778
2795
  }
2779
2796
  // 数组对象处理,对带有特殊标记的name进行处理
2780
- for (var key in params) {
2797
+ var _loop = function _loop() {
2781
2798
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2782
- (function () {
2783
- var element = params[key];
2784
- if (element && key.indexOf('*number*') >= 0) {
2785
- var dataParams = key.split('*number*');
2786
- dataParams.forEach(function (value, index) {
2787
- params[value] = element[index];
2788
- });
2789
- delete params[key];
2790
- } else if (element && key.indexOf('*address*') >= 0) {
2791
- var _dataParams = key.split('*address*');
2792
- _dataParams.forEach(function (value, index) {
2793
- params[value] = element.PCDCode[index];
2794
- });
2795
- delete params[key];
2796
- } else if (element && key.indexOf('*costType*') >= 0) {
2797
- var _dataParams2 = key.split('*costType*');
2798
- // eslint-disable-next-line prefer-destructuring
2799
- params[_dataParams2[0]] = element[1];
2800
- delete params[key];
2801
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2802
- var _dataParams3 = key.split('*fullDate*');
2803
- _dataParams3.forEach(function (value, index) {
2804
- if (index === 0) {
2805
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2806
- } else {
2807
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2808
- }
2809
- });
2810
- delete params[key];
2811
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2812
- var _dataParams4 = key.split('*checkBox*');
2813
- if (element) {
2814
- params[_dataParams4[0]] = 0;
2799
+ var element = params[key];
2800
+ if (element && key.indexOf('*number*') >= 0) {
2801
+ var dataParams = key.split('*number*');
2802
+ dataParams.forEach(function (value, index) {
2803
+ params[value] = element[index];
2804
+ });
2805
+ delete params[key];
2806
+ } else if (element && key.indexOf('*address*') >= 0) {
2807
+ var _dataParams = key.split('*address*');
2808
+ _dataParams.forEach(function (value, index) {
2809
+ params[value] = element.PCDCode[index];
2810
+ });
2811
+ delete params[key];
2812
+ } else if (element && key.indexOf('*costType*') >= 0) {
2813
+ var _dataParams2 = key.split('*costType*');
2814
+ // eslint-disable-next-line prefer-destructuring
2815
+ params[_dataParams2[0]] = element[1];
2816
+ delete params[key];
2817
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2818
+ var _dataParams3 = key.split('*fullDate*');
2819
+ _dataParams3.forEach(function (value, index) {
2820
+ if (index === 0) {
2821
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2822
+ } else {
2823
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2815
2824
  }
2816
- delete params[key];
2817
- } else if (element && key.indexOf('*cascader*') >= 0) {
2818
- var _dataParams5 = key.split('*cascader*');
2819
- params[_dataParams5[0]] = element[element.length - 1];
2820
- delete params[key];
2821
- } else if (element && key.indexOf('*date*') >= 0) {
2822
- var _dataParams6 = key.split('*date*');
2823
- _dataParams6.forEach(function (value, index) {
2824
- if (index === 0) {
2825
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2826
- } else {
2827
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2828
- }
2829
- });
2830
- delete params[key];
2831
- } else if (element && key.indexOf('*') >= 0) {
2832
- var _dataParams7 = key.split('*');
2833
- _dataParams7.forEach(function (value, index) {
2834
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2835
- });
2836
- delete params[key];
2837
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2838
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2839
- var _dataParams8 = key.split('_selectNumberRange')[0];
2840
- if (params[key][0] === 'range') {
2841
- if (params[key][1][0]) {
2842
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2843
- }
2844
- if (params[key][1][1]) {
2845
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2846
- }
2825
+ });
2826
+ delete params[key];
2827
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2828
+ var _dataParams4 = key.split('*checkBox*');
2829
+ if (element) {
2830
+ params[_dataParams4[0]] = 0;
2831
+ }
2832
+ delete params[key];
2833
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2834
+ var _dataParams5 = key.split('*cascader*');
2835
+ params[_dataParams5[0]] = element[element.length - 1];
2836
+ delete params[key];
2837
+ } else if (element && key.indexOf('*date*') >= 0) {
2838
+ var _dataParams6 = key.split('*date*');
2839
+ _dataParams6.forEach(function (value, index) {
2840
+ if (index === 0) {
2841
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2847
2842
  } else {
2848
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2843
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2844
+ }
2845
+ });
2846
+ delete params[key];
2847
+ } else if (element && key.indexOf('*') >= 0) {
2848
+ var _dataParams7 = key.split('*');
2849
+ _dataParams7.forEach(function (value, index) {
2850
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2851
+ });
2852
+ delete params[key];
2853
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2854
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2855
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2856
+ if (params[key][0] === 'range') {
2857
+ if (params[key][1][0]) {
2858
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2849
2859
  }
2850
- delete params[key];
2851
- } else if (Array.isArray(element)) {
2852
- params[key] = element.join(',');
2853
- } else if (element == null || element === undefined || String(element).trim() === '') {
2854
- delete params[key];
2860
+ if (params[key][1][1]) {
2861
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2862
+ }
2863
+ } else {
2864
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2855
2865
  }
2856
- })();
2866
+ delete params[key];
2867
+ } else if (Array.isArray(element)) {
2868
+ params[key] = element.join(',');
2869
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2870
+ delete params[key];
2871
+ }
2857
2872
  }
2873
+ };
2874
+ for (var key in params) {
2875
+ _loop();
2858
2876
  }
2859
2877
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2860
2878
  pageSize: pageSize,
@@ -3251,7 +3269,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
3251
3269
  }
3252
3270
  };
3253
3271
  var themeColor = {
3254
- color: '#1890ff'
3272
+ color: '#02B56E'
3255
3273
  };
3256
3274
  var formItem = function formItem(list) {
3257
3275
  if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
@@ -4203,30 +4221,32 @@ var getItemDefaultWidth$1 = function getItemDefaultWidth(item) {
4203
4221
  var _ref;
4204
4222
  var defaultWidth = 200;
4205
4223
  var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
4206
- switch (true) {
4207
- case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
4208
- defaultWidth = 60;
4209
- break;
4210
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('number')) > -1:
4211
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('quantity')) > -1:
4212
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('amount')) > -1:
4213
- defaultWidth = 90;
4214
- break;
4215
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('no')) > -1:
4216
- defaultWidth = 200;
4217
- break;
4218
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('code')) > -1:
4219
- defaultWidth = 170;
4220
- break;
4221
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('time')) > -1:
4222
- defaultWidth = 130;
4223
- break;
4224
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('status')) > -1:
4225
- defaultWidth = 100;
4226
- break;
4227
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('user')) > -1:
4228
- defaultWidth = 130;
4229
- break;
4224
+ if (lowerCaseKey) {
4225
+ switch (true) {
4226
+ case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
4227
+ defaultWidth = 60;
4228
+ break;
4229
+ case lowerCaseKey.indexOf('number') > -1:
4230
+ case lowerCaseKey.indexOf('quantity') > -1:
4231
+ case lowerCaseKey.indexOf('amount') > -1:
4232
+ defaultWidth = 90;
4233
+ break;
4234
+ case lowerCaseKey.indexOf('no') > -1:
4235
+ defaultWidth = 200;
4236
+ break;
4237
+ case lowerCaseKey.indexOf('code') > -1:
4238
+ defaultWidth = 170;
4239
+ break;
4240
+ case lowerCaseKey.indexOf('time') > -1:
4241
+ defaultWidth = 130;
4242
+ break;
4243
+ case lowerCaseKey.indexOf('status') > -1:
4244
+ defaultWidth = 100;
4245
+ break;
4246
+ case lowerCaseKey.indexOf('user') > -1:
4247
+ defaultWidth = 130;
4248
+ break;
4249
+ }
4230
4250
  }
4231
4251
  return defaultWidth;
4232
4252
  };
@@ -4251,8 +4271,6 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
4251
4271
  }
4252
4272
  return result;
4253
4273
  };
4254
-
4255
- var _excluded$3 = ["onResize", "width"];
4256
4274
  var loadSelectSource = function loadSelectSource(url, params) {
4257
4275
  return new Promise(function (resolve, reject) {
4258
4276
  axios.get("".concat(url, "?").concat(stringify(params))).then(function (result) {
@@ -4260,6 +4278,7 @@ var loadSelectSource = function loadSelectSource(url, params) {
4260
4278
  result = result.data;
4261
4279
  if (((_result = result) === null || _result === void 0 ? void 0 : _result.status) && result.status !== '0' || ((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.code) && result.code !== '000000') {
4262
4280
  message$1.error(result.msg);
4281
+ resolve(result);
4263
4282
  return;
4264
4283
  }
4265
4284
  resolve(result);
@@ -4268,38 +4287,6 @@ var loadSelectSource = function loadSelectSource(url, params) {
4268
4287
  });
4269
4288
  });
4270
4289
  };
4271
- var checkSpuMatchCode = function checkSpuMatchCode(data) {
4272
- return new Promise(function (resolve, reject) {
4273
- axios.post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
4274
- var _result3, _result4;
4275
- result = result.data;
4276
- if (((_result3 = result) === null || _result3 === void 0 ? void 0 : _result3.status) && result.status !== '0' || ((_result4 = result) === null || _result4 === void 0 ? void 0 : _result4.code) && result.code !== '000000') {
4277
- message$1.error(result.msg);
4278
- reject(false);
4279
- return;
4280
- }
4281
- resolve(result);
4282
- }).catch(function (err) {
4283
- reject(err);
4284
- });
4285
- });
4286
- };
4287
- var ResizeableTitle = function ResizeableTitle(props) {
4288
- var onResize = props.onResize,
4289
- width = props.width,
4290
- restProps = _objectWithoutProperties(props, _excluded$3);
4291
- if (!width) {
4292
- return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
4293
- }
4294
- return /*#__PURE__*/React.createElement(Resizable, {
4295
- width: width,
4296
- height: 0,
4297
- onResize: onResize,
4298
- draggableOpts: {
4299
- enableUserSelectHack: false
4300
- }
4301
- }, /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps)));
4302
- };
4303
4290
  var formatSource = function formatSource(reData, position, changePosition, changeSearchForm) {
4304
4291
  var _reData$position;
4305
4292
  var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['code', 'name'];
@@ -4339,6 +4326,52 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
4339
4326
  }) || [];
4340
4327
  changeSearchForm[changePosition].field.props.treeData = formatData;
4341
4328
  };
4329
+ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearchForm) {
4330
+ loadList.forEach(function (i, index) {
4331
+ if (i.resType == 'list') {
4332
+ var resKeyValue = i.resKeyValue || ['code', 'name'];
4333
+ formatSource(x, index, i.resPosition, tableSearchForm, resKeyValue);
4334
+ }
4335
+ if (i.resType == 'treeList') {
4336
+ var _resKeyValue = i.resKeyValue || ['id', 'name'];
4337
+ formatTreeDataSource(x, index, i.resPosition, tableSearchForm, _resKeyValue);
4338
+ }
4339
+ });
4340
+ };
4341
+
4342
+ var _excluded$3 = ["onResize", "width"];
4343
+ var checkSpuMatchCode = function checkSpuMatchCode(data) {
4344
+ return new Promise(function (resolve, reject) {
4345
+ axios.post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
4346
+ var _result, _result2;
4347
+ result = result.data;
4348
+ if (((_result = result) === null || _result === void 0 ? void 0 : _result.status) && result.status !== '0' || ((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.code) && result.code !== '000000') {
4349
+ message$1.error(result.msg);
4350
+ reject(false);
4351
+ return;
4352
+ }
4353
+ resolve(result);
4354
+ }).catch(function (err) {
4355
+ reject(err);
4356
+ });
4357
+ });
4358
+ };
4359
+ var ResizeableTitle = function ResizeableTitle(props) {
4360
+ var onResize = props.onResize,
4361
+ width = props.width,
4362
+ restProps = _objectWithoutProperties(props, _excluded$3);
4363
+ if (!width) {
4364
+ return /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps));
4365
+ }
4366
+ return /*#__PURE__*/React.createElement(Resizable, {
4367
+ width: width,
4368
+ height: 0,
4369
+ onResize: onResize,
4370
+ draggableOpts: {
4371
+ enableUserSelectHack: false
4372
+ }
4373
+ }, /*#__PURE__*/React.createElement("th", _objectSpread2({}, restProps)));
4374
+ };
4342
4375
  var initTableCode = {
4343
4376
  'sku': ['skuSelect-tableOptionsToChoosePartCode', 'skuSelect-tableSelectedItemPartCode'],
4344
4377
  'skc': ['skcSelect-tableOptionsToChoosePartCode', 'skcSelect-tableSelectedItemPartCode'],
@@ -4371,9 +4404,7 @@ var AddSelect = function AddSelect(props) {
4371
4404
  _props$businessType = props.businessType,
4372
4405
  businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
4373
4406
  _props$isAllowRepeate = props.isAllowRepeatedSelect,
4374
- isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate,
4375
- _props$noUseItemEanco = props.noUseItemEancode,
4376
- noUseItemEancode = _props$noUseItemEanco === void 0 ? true : _props$noUseItemEanco;
4407
+ isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate;
4377
4408
  var _ref = requestConfig || {},
4378
4409
  url = _ref.url,
4379
4410
  otherParams = _ref.otherParams,
@@ -4530,76 +4561,74 @@ var AddSelect = function AddSelect(props) {
4530
4561
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4531
4562
  var result;
4532
4563
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4533
- while (1) {
4534
- switch (_context.prev = _context.next) {
4535
- case 0:
4536
- if (!(bType == 'skc' && tList.some(function (i) {
4537
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4538
- }))) {
4539
- _context.next = 3;
4540
- break;
4541
- }
4542
- message$1.warning('相同skc配码不可设置相同哦');
4543
- return _context.abrupt("return", false);
4544
- case 3:
4545
- if (!(bType == 'spu')) {
4546
- _context.next = 26;
4547
- break;
4548
- }
4549
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4550
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4551
- }))) {
4552
- _context.next = 7;
4553
- break;
4554
- }
4555
- message$1.warning('相同商品相同配码颜色不可设置相同哦');
4556
- return _context.abrupt("return", false);
4557
- case 7:
4558
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4559
- _context.next = 10;
4560
- break;
4561
- }
4562
- message$1.warning('请先选择颜色!');
4563
- return _context.abrupt("return", false);
4564
- case 10:
4565
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4566
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4567
- }))) {
4568
- _context.next = 13;
4569
- break;
4570
- }
4571
- message$1.warning('相同商品相同颜色配码不可设置相同哦');
4572
- return _context.abrupt("return", false);
4573
- case 13:
4574
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4575
- _context.next = 26;
4576
- break;
4577
- }
4578
- result = true;
4579
- _context.prev = 15;
4580
- _context.next = 18;
4581
- return checkSpuMatchCode({
4582
- skcCode: recordItem[recordKey],
4583
- matchingCode: changeValue,
4584
- ext1: recordItem.colorName
4585
- });
4586
- case 18:
4587
- result = _context.sent;
4588
- result = true;
4589
- _context.next = 25;
4564
+ while (1) switch (_context.prev = _context.next) {
4565
+ case 0:
4566
+ if (!(bType == 'skc' && tList.some(function (i) {
4567
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4568
+ }))) {
4569
+ _context.next = 3;
4590
4570
  break;
4591
- case 22:
4592
- _context.prev = 22;
4593
- _context.t0 = _context["catch"](15);
4594
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4595
- case 25:
4596
- return _context.abrupt("return", result);
4597
- case 26:
4598
- return _context.abrupt("return", true);
4599
- case 27:
4600
- case "end":
4601
- return _context.stop();
4602
- }
4571
+ }
4572
+ message$1.warning('相同skc配码不可设置相同哦');
4573
+ return _context.abrupt("return", false);
4574
+ case 3:
4575
+ if (!(bType == 'spu')) {
4576
+ _context.next = 26;
4577
+ break;
4578
+ }
4579
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4580
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4581
+ }))) {
4582
+ _context.next = 7;
4583
+ break;
4584
+ }
4585
+ message$1.warning('相同商品相同配码颜色不可设置相同哦');
4586
+ return _context.abrupt("return", false);
4587
+ case 7:
4588
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4589
+ _context.next = 10;
4590
+ break;
4591
+ }
4592
+ message$1.warning('请先选择颜色!');
4593
+ return _context.abrupt("return", false);
4594
+ case 10:
4595
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4596
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4597
+ }))) {
4598
+ _context.next = 13;
4599
+ break;
4600
+ }
4601
+ message$1.warning('相同商品相同颜色配码不可设置相同哦');
4602
+ return _context.abrupt("return", false);
4603
+ case 13:
4604
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4605
+ _context.next = 26;
4606
+ break;
4607
+ }
4608
+ result = true;
4609
+ _context.prev = 15;
4610
+ _context.next = 18;
4611
+ return checkSpuMatchCode({
4612
+ skcCode: recordItem[recordKey],
4613
+ matchingCode: changeValue,
4614
+ ext1: recordItem.colorName
4615
+ });
4616
+ case 18:
4617
+ result = _context.sent;
4618
+ result = true;
4619
+ _context.next = 25;
4620
+ break;
4621
+ case 22:
4622
+ _context.prev = 22;
4623
+ _context.t0 = _context["catch"](15);
4624
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4625
+ case 25:
4626
+ return _context.abrupt("return", result);
4627
+ case 26:
4628
+ return _context.abrupt("return", true);
4629
+ case 27:
4630
+ case "end":
4631
+ return _context.stop();
4603
4632
  }
4604
4633
  }, _callee, null, [[15, 22]]);
4605
4634
  }));
@@ -4791,29 +4820,27 @@ var AddSelect = function AddSelect(props) {
4791
4820
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4792
4821
  var isConformToTheRules, newPopValue;
4793
4822
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4794
- while (1) {
4795
- switch (_context2.prev = _context2.next) {
4796
- case 0:
4797
- _context2.next = 2;
4798
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4799
- case 2:
4800
- isConformToTheRules = _context2.sent;
4801
- if (isConformToTheRules) {
4802
- record[item.dataIndex] = value;
4803
- } else {
4804
- record[item.dataIndex] = null;
4823
+ while (1) switch (_context2.prev = _context2.next) {
4824
+ case 0:
4825
+ _context2.next = 2;
4826
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4827
+ case 2:
4828
+ isConformToTheRules = _context2.sent;
4829
+ if (isConformToTheRules) {
4830
+ record[item.dataIndex] = value;
4831
+ } else {
4832
+ record[item.dataIndex] = null;
4833
+ }
4834
+ newPopValue = popvalue.map(function (i, innerIndex) {
4835
+ if (innerIndex == index) {
4836
+ i[item.dataIndex] = record[item.dataIndex];
4805
4837
  }
4806
- newPopValue = popvalue.map(function (i, innerIndex) {
4807
- if (innerIndex == index) {
4808
- i[item.dataIndex] = record[item.dataIndex];
4809
- }
4810
- return i;
4811
- });
4812
- setPopValue(newPopValue);
4813
- case 6:
4814
- case "end":
4815
- return _context2.stop();
4816
- }
4838
+ return i;
4839
+ });
4840
+ setPopValue(newPopValue);
4841
+ case 6:
4842
+ case "end":
4843
+ return _context2.stop();
4817
4844
  }
4818
4845
  }, _callee2);
4819
4846
  }));
@@ -4873,94 +4900,95 @@ var AddSelect = function AddSelect(props) {
4873
4900
  });
4874
4901
  }
4875
4902
  // 数组对象处理,对带有特殊标记的name进行处理
4876
- for (var key in params) {
4903
+ var _loop = function _loop() {
4877
4904
  if (Object.prototype.hasOwnProperty.call(params, key)) {
4878
- (function () {
4879
- var element = params[key];
4880
- if (element && key.indexOf('*number*') >= 0) {
4881
- var dataParams = key.split('*number*');
4882
- dataParams.forEach(function (value, index) {
4883
- params[value] = element[index];
4884
- });
4885
- delete params[key];
4886
- } else if (element && key.indexOf('*address*') >= 0) {
4887
- var _dataParams = key.split('*address*');
4888
- _dataParams.forEach(function (value, index) {
4889
- params[value] = element.PCDCode[index];
4890
- });
4891
- delete params[key];
4892
- } else if (element && key.indexOf('*costType*') >= 0) {
4893
- var _dataParams2 = key.split('*costType*');
4894
- // eslint-disable-next-line prefer-destructuring
4895
- params[_dataParams2[0]] = element[1];
4896
- delete params[key];
4897
- } else if (element && key.indexOf('*fullDate*') >= 0) {
4898
- var _dataParams3 = key.split('*fullDate*');
4899
- _dataParams3.forEach(function (value, index) {
4900
- if (index === 0) {
4901
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4902
- } else {
4903
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4904
- }
4905
- });
4906
- delete params[key];
4907
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4908
- var _dataParams4 = key.split('*checkBox*');
4909
- if (element) {
4910
- params[_dataParams4[0]] = 0;
4905
+ var element = params[key];
4906
+ if (element && key.indexOf('*number*') >= 0) {
4907
+ var dataParams = key.split('*number*');
4908
+ dataParams.forEach(function (value, index) {
4909
+ params[value] = element[index];
4910
+ });
4911
+ delete params[key];
4912
+ } else if (element && key.indexOf('*address*') >= 0) {
4913
+ var _dataParams = key.split('*address*');
4914
+ _dataParams.forEach(function (value, index) {
4915
+ params[value] = element.PCDCode[index];
4916
+ });
4917
+ delete params[key];
4918
+ } else if (element && key.indexOf('*costType*') >= 0) {
4919
+ var _dataParams2 = key.split('*costType*');
4920
+ // eslint-disable-next-line prefer-destructuring
4921
+ params[_dataParams2[0]] = element[1];
4922
+ delete params[key];
4923
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4924
+ var _dataParams3 = key.split('*fullDate*');
4925
+ _dataParams3.forEach(function (value, index) {
4926
+ if (index === 0) {
4927
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4928
+ } else {
4929
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4911
4930
  }
4912
- delete params[key];
4913
- } else if (element && key.indexOf('*cascader*') >= 0) {
4914
- var _dataParams5 = key.split('*cascader*');
4915
- params[_dataParams5[0]] = element[element.length - 1];
4916
- delete params[key];
4917
- } else if (element && key.indexOf('*date*') >= 0) {
4918
- var _dataParams6 = key.split('*date*');
4919
- _dataParams6.forEach(function (value, index) {
4920
- if (index === 0) {
4921
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4922
- } else {
4923
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4924
- }
4925
- });
4926
- delete params[key];
4927
- } else if (element && key.indexOf('*') >= 0) {
4928
- var _dataParams7 = key.split('*');
4929
- _dataParams7.forEach(function (value, index) {
4930
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4931
- });
4932
- delete params[key];
4933
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4934
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
4935
- var _dataParams8 = key.split('_selectNumberRange')[0];
4936
- if (params[key][0] === 'range') {
4937
- if (params[key][1][0]) {
4938
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4939
- }
4940
- if (params[key][1][1]) {
4941
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4942
- }
4931
+ });
4932
+ delete params[key];
4933
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4934
+ var _dataParams4 = key.split('*checkBox*');
4935
+ if (element) {
4936
+ params[_dataParams4[0]] = 0;
4937
+ }
4938
+ delete params[key];
4939
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4940
+ var _dataParams5 = key.split('*cascader*');
4941
+ params[_dataParams5[0]] = element[element.length - 1];
4942
+ delete params[key];
4943
+ } else if (element && key.indexOf('*date*') >= 0) {
4944
+ var _dataParams6 = key.split('*date*');
4945
+ _dataParams6.forEach(function (value, index) {
4946
+ if (index === 0) {
4947
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4943
4948
  } else {
4944
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4949
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4945
4950
  }
4946
- delete params[key];
4947
- } else if (Array.isArray(element)) {
4948
- params[key] = element.join(',');
4949
- } else if (element == null || element === undefined || String(element).trim() === '') {
4950
- delete params[key];
4951
+ });
4952
+ delete params[key];
4953
+ } else if (element && key.indexOf('*') >= 0) {
4954
+ var _dataParams7 = key.split('*');
4955
+ _dataParams7.forEach(function (value, index) {
4956
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4957
+ });
4958
+ delete params[key];
4959
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4960
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4961
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4962
+ if (params[key][0] === 'range') {
4963
+ if (params[key][1][0]) {
4964
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4965
+ }
4966
+ if (params[key][1][1]) {
4967
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4968
+ }
4969
+ } else {
4970
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4951
4971
  }
4952
- })();
4972
+ delete params[key];
4973
+ } else if (Array.isArray(element)) {
4974
+ params[key] = element.join(',');
4975
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4976
+ delete params[key];
4977
+ }
4953
4978
  }
4979
+ };
4980
+ for (var key in params) {
4981
+ _loop();
4954
4982
  }
4955
4983
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4956
4984
  pageSize: pageSize,
4957
4985
  currentPage: currentPage
4958
4986
  }, otherParams), fixedParam), params);
4959
4987
  axios.get("".concat(url, "?").concat(stringify(queryParams))).then(function (result) {
4960
- var _result5, _result6;
4988
+ var _result3, _result4;
4961
4989
  setFetching(false);
4962
4990
  result = result.data;
4963
- if (((_result5 = result) === null || _result5 === void 0 ? void 0 : _result5.status) && result.status !== '0' || ((_result6 = result) === null || _result6 === void 0 ? void 0 : _result6.code) && result.code !== '000000') {
4991
+ if (((_result3 = result) === null || _result3 === void 0 ? void 0 : _result3.status) && result.status !== '0' || ((_result4 = result) === null || _result4 === void 0 ? void 0 : _result4.code) && result.code !== '000000') {
4964
4992
  message$1.error(result.msg);
4965
4993
  return;
4966
4994
  }
@@ -5041,65 +5069,14 @@ var AddSelect = function AddSelect(props) {
5041
5069
  };
5042
5070
 
5043
5071
  useEffect(function () {
5044
- if (businessType == 'sku') {
5045
- Promise.all([loadSelectSource("/items/brand/queryBrandList", {
5046
- pageSize: 5000,
5047
- currentPage: 1,
5048
- 'ctl-withAuth': true
5049
- }), loadSelectSource("/items/category/queryCategoryTree", {
5050
- pageSize: 5000,
5051
- currentPage: 1
5052
- })]).then(function (x) {
5053
- var searchPosition1 = noUseItemEancode ? 3 : 2;
5054
- var searchPosition2 = noUseItemEancode ? 4 : 3;
5055
- formatSource(x, 0, searchPosition1, tableSearchForm, ['id', 'name']);
5056
- formatTreeDataSource(x, 1, searchPosition2, tableSearchForm);
5057
- });
5058
- }
5059
- if (businessType == 'skc') {
5060
- Promise.all([loadSelectSource("/items/item/propertyValue/sizeBySkcConfig", {
5061
- pageSize: 10000,
5062
- currentPage: 1,
5063
- type: 2 // 类型:1尺码;2颜色
5064
- }), loadSelectSource("/items/category/queryCategoryTree", {
5065
- pageSize: 5000,
5066
- currentPage: 1
5067
- }), loadSelectSource("/items/class/withProperty", {
5068
- pageSize: 5000,
5069
- currentPage: 1
5070
- }), loadSelectSource("/items/brand/queryBrandList", {
5071
- pageSize: 5000,
5072
- currentPage: 1,
5073
- 'ctl-withAuth': true
5074
- })]).then(function (x) {
5075
- formatSource(x, 0, 3, tableSearchForm, ['value', 'value']);
5076
- formatTreeDataSource(x, 1, 4, tableSearchForm);
5077
- formatSource(x, 2, 5, tableSearchForm, ['id', 'name']);
5078
- formatSource(x, 3, 6, tableSearchForm, ['id', 'name']);
5079
- });
5080
- }
5081
- if (businessType == 'spu') {
5082
- Promise.all([loadSelectSource("/user/orgViewNode/listNoPage", {
5083
- 'qp-employeeId-eq': getEmployeeId(),
5084
- 'qp-orgViewCode-eq': 'business-organizational-view',
5085
- 'ctl-withDefaultOrg': true
5086
- }), loadSelectSource("/items/brand/queryBrandList", {
5087
- pageSize: 5000,
5088
- currentPage: 1,
5089
- 'ctl-withAuth': true
5090
- }), loadSelectSource("/items/category/queryCategoryTree", {
5091
- pageSize: 5000,
5092
- currentPage: 1
5093
- }), loadSelectSource("/items/class/withProperty", {
5094
- pageSize: 5000,
5095
- currentPage: 1
5096
- })]).then(function (x) {
5097
- formatSource(x, 0, 2, tableSearchForm, ['targetId', 'name']);
5098
- formatSource(x, 1, 3, tableSearchForm, ['id', 'name']);
5099
- formatTreeDataSource(x, 2, 4, tableSearchForm);
5100
- formatSource(x, 3, 5, tableSearchForm, ['id', 'name']);
5101
- });
5102
- }
5072
+ var pList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.promiseLoadList) || [];
5073
+ if (!(pList === null || pList === void 0 ? void 0 : pList.length)) return;
5074
+ var list = pList.map(function (i) {
5075
+ return loadSelectSource(i.url, i.params);
5076
+ });
5077
+ Promise.all(list).then(function (x) {
5078
+ formatFormSourceList(x, pList, tableSearchForm);
5079
+ });
5103
5080
  }, [businessType]);
5104
5081
  useEffect(function () {
5105
5082
  if (value) {
@@ -5380,10 +5357,10 @@ var AddSelect = function AddSelect(props) {
5380
5357
  setSelectedRowKeys([]);
5381
5358
  } else {
5382
5359
  setPopValue(popvalue.filter(function (item) {
5383
- return item.skuCode !== record.skuCode;
5360
+ return item[selectRowKey] !== record[selectRowKey];
5384
5361
  }));
5385
5362
  setSelectedRowKeys(_toConsumableArray(selectedRowKeys.filter(function (item) {
5386
- return item !== record.skuCode;
5363
+ return item !== record[selectRowKey];
5387
5364
  })));
5388
5365
  }
5389
5366
  };
@@ -6407,72 +6384,70 @@ var BillEntry = function BillEntry(_ref3) {
6407
6384
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6408
6385
  var canEntryObject, _canEntryObject$error, messageInfo;
6409
6386
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6410
- while (1) {
6411
- switch (_context.prev = _context.next) {
6412
- case 0:
6413
- if (data === null || data === void 0 ? void 0 : data.length) {
6414
- _context.next = 3;
6415
- break;
6416
- }
6417
- message$1.warning('至少录入一条数据');
6418
- return _context.abrupt("return");
6419
- case 3:
6420
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6421
- return d.skuCode && d.name;
6422
- })) {
6423
- _context.next = 6;
6424
- break;
6425
- }
6426
- message$1.warning('请选择商品!');
6427
- return _context.abrupt("return");
6428
- case 6:
6429
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6430
- return d.count;
6431
- })) {
6432
- _context.next = 9;
6433
- break;
6434
- }
6435
- message$1.warning('请填写商品数量!');
6436
- return _context.abrupt("return");
6437
- case 9:
6438
- _context.next = 11;
6439
- return isSkuCanEntry(data);
6440
- case 11:
6441
- canEntryObject = _context.sent;
6442
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6443
- _context.next = 16;
6444
- break;
6445
- }
6446
- 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) {
6447
- return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6448
- }));
6449
- messageInfo && message$1.warning({
6450
- content: messageInfo,
6451
- duration: 6
6452
- });
6453
- return _context.abrupt("return");
6454
- case 16:
6455
- setLoading(true);
6456
- onSaveCallback(data).then(function (res) {
6457
- {
6458
- var _Object$keys;
6459
- var initSuccessMessage = '保存成功';
6460
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6461
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6462
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6463
- } else {
6464
- message$1.success(initSuccessMessage);
6465
- }
6387
+ while (1) switch (_context.prev = _context.next) {
6388
+ case 0:
6389
+ if (data === null || data === void 0 ? void 0 : data.length) {
6390
+ _context.next = 3;
6391
+ break;
6392
+ }
6393
+ message$1.warning('至少录入一条数据');
6394
+ return _context.abrupt("return");
6395
+ case 3:
6396
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6397
+ return d.skuCode && d.name;
6398
+ })) {
6399
+ _context.next = 6;
6400
+ break;
6401
+ }
6402
+ message$1.warning('请选择商品!');
6403
+ return _context.abrupt("return");
6404
+ case 6:
6405
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6406
+ return d.count;
6407
+ })) {
6408
+ _context.next = 9;
6409
+ break;
6410
+ }
6411
+ message$1.warning('请填写商品数量!');
6412
+ return _context.abrupt("return");
6413
+ case 9:
6414
+ _context.next = 11;
6415
+ return isSkuCanEntry(data);
6416
+ case 11:
6417
+ canEntryObject = _context.sent;
6418
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6419
+ _context.next = 16;
6420
+ break;
6421
+ }
6422
+ 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) {
6423
+ return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6424
+ }));
6425
+ messageInfo && message$1.warning({
6426
+ content: messageInfo,
6427
+ duration: 6
6428
+ });
6429
+ return _context.abrupt("return");
6430
+ case 16:
6431
+ setLoading(true);
6432
+ onSaveCallback(data).then(function (res) {
6433
+ {
6434
+ var _Object$keys;
6435
+ var initSuccessMessage = '保存成功';
6436
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6437
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6438
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6439
+ } else {
6440
+ message$1.success(initSuccessMessage);
6466
6441
  }
6467
- setLoading(false);
6468
- }).catch(function (Error) {
6469
- message$1.error(Error);
6470
- setLoading(false);
6471
- });
6472
- case 18:
6473
- case "end":
6474
- return _context.stop();
6475
- }
6442
+ }
6443
+ setLoading(false);
6444
+ }).catch(function (Error) {
6445
+ message$1.error(Error);
6446
+ setLoading(false);
6447
+ });
6448
+ case 18:
6449
+ case "end":
6450
+ return _context.stop();
6476
6451
  }
6477
6452
  }, _callee);
6478
6453
  }));
@@ -8716,9 +8691,16 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React.memo(BusinessSearchSelect, funct
8716
8691
  // import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
8717
8692
  function handleSelectColumn(c, parentProps) {
8718
8693
  var result = c;
8694
+ var showColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showColumns) || [];
8719
8695
  var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
8720
8696
  var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
8721
8697
  var additionColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.additionColumns) || [];
8698
+ // 仅展示内容
8699
+ if (showColumns === null || showColumns === void 0 ? void 0 : showColumns.length) {
8700
+ result = result.filter(function (i) {
8701
+ return showColumns.includes(i.dataIndex);
8702
+ });
8703
+ }
8722
8704
  // 过滤不需要展示内容
8723
8705
  if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
8724
8706
  result = result.filter(function (i) {
@@ -8737,6 +8719,57 @@ function handleSelectColumn(c, parentProps) {
8737
8719
  }
8738
8720
  return result;
8739
8721
  }
8722
+ function handleSearchForm(c, parentProps) {
8723
+ var result = c;
8724
+ var showTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showTableSearchForm) || [];
8725
+ var exceptTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableSearchForm) || [];
8726
+ var coverTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableSearchForm) || [];
8727
+ // 仅展示内容
8728
+ if (showTableSearchForm === null || showTableSearchForm === void 0 ? void 0 : showTableSearchForm.length) {
8729
+ result = result.filter(function (i) {
8730
+ return showTableSearchForm.includes(i.name);
8731
+ });
8732
+ }
8733
+ // 过滤不需要展示内容
8734
+ if (exceptTableSearchForm === null || exceptTableSearchForm === void 0 ? void 0 : exceptTableSearchForm.length) {
8735
+ result = result.filter(function (i) {
8736
+ return !exceptTableSearchForm.includes(i.name);
8737
+ });
8738
+ }
8739
+ // 覆盖内容
8740
+ if (coverTableSearchForm === null || coverTableSearchForm === void 0 ? void 0 : coverTableSearchForm.length) {
8741
+ result = coverTableSearchForm;
8742
+ }
8743
+ return result;
8744
+ }
8745
+ function handleFormSearchSourceLoad(c, parentProps) {
8746
+ var result = c;
8747
+ var showTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showTableFormSearchSourceLoad) || [];
8748
+ var exceptTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableFormSearchSourceLoad) || [];
8749
+ var coverTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableFormSearchSourceLoad) || [];
8750
+ var noNeedTableFormSearchSourceLoad = parentProps === null || parentProps === void 0 ? void 0 : parentProps.noNeedTableFormSearchSourceLoad;
8751
+ // 仅展示内容
8752
+ if (showTableFormSearchSourceLoad === null || showTableFormSearchSourceLoad === void 0 ? void 0 : showTableFormSearchSourceLoad.length) {
8753
+ result = result.filter(function (i) {
8754
+ return showTableFormSearchSourceLoad.includes(i.url);
8755
+ });
8756
+ }
8757
+ // 过滤不需要展示内容
8758
+ if (exceptTableFormSearchSourceLoad === null || exceptTableFormSearchSourceLoad === void 0 ? void 0 : exceptTableFormSearchSourceLoad.length) {
8759
+ result = result.filter(function (i) {
8760
+ return !exceptTableFormSearchSourceLoad.includes(i.url);
8761
+ });
8762
+ }
8763
+ // 覆盖内容
8764
+ if (coverTableFormSearchSourceLoad === null || coverTableFormSearchSourceLoad === void 0 ? void 0 : coverTableFormSearchSourceLoad.length) {
8765
+ result = coverTableFormSearchSourceLoad;
8766
+ }
8767
+ // 不需要默认请求
8768
+ if (noNeedTableFormSearchSourceLoad) {
8769
+ result = [];
8770
+ }
8771
+ return result;
8772
+ }
8740
8773
  var AddSkuSelect = function AddSkuSelect(parProps) {
8741
8774
  var _parProps$requestConf, _parProps$requestConf2;
8742
8775
  var selectProps = {
@@ -8843,234 +8876,258 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
8843
8876
  dataIndex: 'propertyNameAndValue'
8844
8877
  }]);
8845
8878
  var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
8846
- var props = {
8847
- buttonText: parProps.buttonText || '新增',
8848
- buttonProps: parProps.buttonProps || {},
8849
- tableCodeList: parProps.tableCodeList || [],
8850
- value: value,
8851
- // labelInValue: true, // 非必填 默认为false
8852
- requestConfig: _objectSpread2({
8853
- url: "/items/sku/pager/v2",
8854
- filter: 'qp-name-like',
8855
- otherParams: _objectSpread2({
8856
- 'qp-combination-eq': false,
8857
- 'qp-approveStatus-eq': 1,
8858
- 'qp-status-eq': 1
8859
- }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
8860
- mappingTextField: 'name',
8861
- mappingValueField: 'skuCode'
8862
- }, parProps.requestConfig),
8863
- selectProps: selectProps,
8864
- onChange: function onChange(value) {
8865
- console.log(value);
8866
- setValue(value);
8879
+ var initialTableColumn = [{
8880
+ title: 'SKU编码',
8881
+ width: 150,
8882
+ dataIndex: 'skuCode'
8883
+ }, {
8884
+ title: 'SKU名称',
8885
+ width: 200,
8886
+ ellipsis: {
8887
+ showTitle: false
8867
8888
  },
8868
- beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
8869
- onSaveCallback: parProps.onSaveCallback,
8870
- businessType: 'sku',
8871
- isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect),
8872
- noUseItemEancode: isNoUseItemBarcode
8873
- };
8874
- var modalTableProps = {
8875
- modalTableTitle: '选择商品',
8876
- tableSearchForm: [{
8877
- name: 'qp-skuCode-like',
8878
- label: 'SKU编码'
8879
- }, {
8880
- name: 'qp-skuName-like',
8881
- label: 'SKU名称'
8882
- }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
8883
- name: 'qp-code-in',
8884
- label: '商品条码',
8885
- field: {
8886
- type: 'multipleQueryInput',
8887
- props: _objectSpread2({}, ((_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.itemEancodeValueRequestConfig) || {})
8888
- }
8889
- }]), [{
8890
- name: 'qp-brandId-in',
8889
+ render: function render(text) {
8890
+ return /*#__PURE__*/React.createElement(Tooltip, {
8891
+ placement: "topLeft",
8892
+ title: text
8893
+ }, text);
8894
+ },
8895
+ dataIndex: 'name'
8896
+ }, {
8897
+ title: '图片',
8898
+ dataIndex: 'itemUrl',
8899
+ width: 200,
8900
+ ellipsis: {
8901
+ showTitle: false
8902
+ },
8903
+ render: function render(text, record) {
8904
+ return /*#__PURE__*/React.createElement(Tooltip, {
8905
+ placement: "topLeft",
8906
+ title: text
8907
+ }, tableColumnsImage(getSkuImg(record), {
8908
+ width: 20,
8909
+ height: 20
8910
+ }));
8911
+ }
8912
+ }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
8913
+ title: '商品条码',
8914
+ width: 100,
8915
+ ellipsis: {
8916
+ showTitle: false
8917
+ },
8918
+ dataIndex: 'itemEancode',
8919
+ render: function render(text) {
8920
+ return /*#__PURE__*/React.createElement(Tooltip, {
8921
+ placement: "topLeft",
8922
+ title: text
8923
+ }, text);
8924
+ }
8925
+ }]), [{
8926
+ title: '所属SPU名称',
8927
+ width: 100,
8928
+ ellipsis: {
8929
+ showTitle: false
8930
+ },
8931
+ dataIndex: 'itemName',
8932
+ render: function render(text) {
8933
+ return /*#__PURE__*/React.createElement(Tooltip, {
8934
+ placement: "topLeft",
8935
+ title: text
8936
+ }, text);
8937
+ }
8938
+ }, {
8939
+ title: '所属SPU编码',
8940
+ width: 100,
8941
+ ellipsis: {
8942
+ showTitle: false
8943
+ },
8944
+ dataIndex: 'itemCode',
8945
+ render: function render(text) {
8946
+ return /*#__PURE__*/React.createElement(Tooltip, {
8947
+ placement: "topLeft",
8948
+ title: text
8949
+ }, text);
8950
+ }
8951
+ }, {
8952
+ title: '外部编码',
8953
+ width: 100,
8954
+ ellipsis: {
8955
+ showTitle: false
8956
+ },
8957
+ render: function render(text) {
8958
+ return /*#__PURE__*/React.createElement(Tooltip, {
8959
+ placement: "topLeft",
8960
+ title: text
8961
+ }, text);
8962
+ },
8963
+ dataIndex: 'externalCode'
8964
+ }, {
8965
+ title: '规格',
8966
+ width: 100,
8967
+ ellipsis: {
8968
+ showTitle: false
8969
+ },
8970
+ render: function render(text) {
8971
+ return /*#__PURE__*/React.createElement(Tooltip, {
8972
+ placement: "topLeft",
8973
+ title: text
8974
+ }, text);
8975
+ },
8976
+ dataIndex: 'propertyNameAndValue'
8977
+ }, {
8978
+ title: '类目',
8979
+ width: 100,
8980
+ ellipsis: {
8981
+ showTitle: false
8982
+ },
8983
+ render: function render(text) {
8984
+ return /*#__PURE__*/React.createElement(Tooltip, {
8985
+ placement: "topLeft",
8986
+ title: text
8987
+ }, text);
8988
+ },
8989
+ dataIndex: 'categoryName'
8990
+ }, {
8991
+ title: '品类',
8992
+ width: 100,
8993
+ ellipsis: {
8994
+ showTitle: false
8995
+ },
8996
+ render: function render(text) {
8997
+ return /*#__PURE__*/React.createElement(Tooltip, {
8998
+ placement: "topLeft",
8999
+ title: text
9000
+ }, text);
9001
+ },
9002
+ dataIndex: 'className'
9003
+ }, {
9004
+ title: '品牌',
9005
+ width: 100,
9006
+ ellipsis: {
9007
+ showTitle: false
9008
+ },
9009
+ render: function render(text) {
9010
+ return /*#__PURE__*/React.createElement(Tooltip, {
9011
+ placement: "topLeft",
9012
+ title: text
9013
+ }, text);
9014
+ },
9015
+ dataIndex: 'brandName'
9016
+ }]);
9017
+ var mTpTableColumn = handleSelectColumn(initialTableColumn, parProps);
9018
+ var initialTableSearchForm = [{
9019
+ name: 'qp-skuCode-like',
9020
+ label: 'SKU编码'
9021
+ }, {
9022
+ name: 'qp-skuName-like',
9023
+ label: 'SKU名称'
9024
+ }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
9025
+ name: 'qp-code-in',
9026
+ label: '商品条码',
9027
+ field: {
9028
+ type: 'multipleQueryInput',
9029
+ props: _objectSpread2({}, ((_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.itemEancodeValueRequestConfig) || {})
9030
+ }
9031
+ }]), [{
9032
+ name: 'qp-brandId-in',
9033
+ type: 'select',
9034
+ label: '品牌',
9035
+ field: {
8891
9036
  type: 'select',
8892
- label: '品牌',
8893
- field: {
8894
- type: 'select',
8895
- props: {
8896
- mode: 'multiple',
8897
- notFoundContent: '暂无数据',
8898
- allowClear: true,
8899
- showSearch: true,
8900
- showArrow: true,
8901
- maxTagCount: 1,
8902
- optionFilterProp: 'children',
8903
- filterOption: function filterOption(input, option) {
8904
- return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
8905
- }
8906
- }
8907
- }
8908
- }, {
8909
- name: 'qp-categoryId-in',
8910
- type: 'treeSelect',
8911
- label: '类目',
8912
- field: {
8913
- type: 'treeSelect',
8914
- props: {
8915
- treeData: [],
8916
- treeCheckable: true,
8917
- showSearch: true,
8918
- allowClear: true,
8919
- showArrow: true,
8920
- treeNodeFilterProp: 'title',
8921
- treeDefaultExpandAll: true,
8922
- maxTagCount: 1,
8923
- placeholder: '请选择',
8924
- style: {
8925
- width: '100%'
8926
- },
8927
- dropdownStyle: {
8928
- maxHeight: 400,
8929
- maxWidth: 100,
8930
- overflow: 'auto'
8931
- }
9037
+ props: {
9038
+ mode: 'multiple',
9039
+ notFoundContent: '暂无数据',
9040
+ allowClear: true,
9041
+ showSearch: true,
9042
+ showArrow: true,
9043
+ maxTagCount: 1,
9044
+ optionFilterProp: 'children',
9045
+ filterOption: function filterOption(input, option) {
9046
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
8932
9047
  }
8933
9048
  }
8934
- }]),
8935
- tableColumns: [{
8936
- title: 'SKU编码',
8937
- width: 150,
8938
- dataIndex: 'skuCode'
8939
- }, {
8940
- title: 'SKU名称',
8941
- width: 200,
8942
- ellipsis: {
8943
- showTitle: false
8944
- },
8945
- render: function render(text) {
8946
- return /*#__PURE__*/React.createElement(Tooltip, {
8947
- placement: "topLeft",
8948
- title: text
8949
- }, text);
8950
- },
8951
- dataIndex: 'name'
8952
- }, {
8953
- title: '图片',
8954
- dataIndex: 'itemUrl',
8955
- width: 200,
8956
- ellipsis: {
8957
- showTitle: false
8958
- },
8959
- render: function render(text, record) {
8960
- return /*#__PURE__*/React.createElement(Tooltip, {
8961
- placement: "topLeft",
8962
- title: text
8963
- }, tableColumnsImage(getSkuImg(record), {
8964
- width: 20,
8965
- height: 20
8966
- }));
8967
- }
8968
- }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
8969
- title: '商品条码',
8970
- width: 100,
8971
- ellipsis: {
8972
- showTitle: false
8973
- },
8974
- dataIndex: 'itemEancode',
8975
- render: function render(text) {
8976
- return /*#__PURE__*/React.createElement(Tooltip, {
8977
- placement: "topLeft",
8978
- title: text
8979
- }, text);
8980
- }
8981
- }]), [{
8982
- title: '所属SPU名称',
8983
- width: 100,
8984
- ellipsis: {
8985
- showTitle: false
8986
- },
8987
- dataIndex: 'itemName',
8988
- render: function render(text) {
8989
- return /*#__PURE__*/React.createElement(Tooltip, {
8990
- placement: "topLeft",
8991
- title: text
8992
- }, text);
8993
- }
8994
- }, {
8995
- title: '所属SPU编码',
8996
- width: 100,
8997
- ellipsis: {
8998
- showTitle: false
8999
- },
9000
- dataIndex: 'itemCode',
9001
- render: function render(text) {
9002
- return /*#__PURE__*/React.createElement(Tooltip, {
9003
- placement: "topLeft",
9004
- title: text
9005
- }, text);
9049
+ }
9050
+ }, {
9051
+ name: 'qp-categoryId-in',
9052
+ type: 'treeSelect',
9053
+ label: '类目',
9054
+ field: {
9055
+ type: 'treeSelect',
9056
+ props: {
9057
+ treeData: [],
9058
+ treeCheckable: true,
9059
+ showSearch: true,
9060
+ allowClear: true,
9061
+ showArrow: true,
9062
+ treeNodeFilterProp: 'title',
9063
+ treeDefaultExpandAll: true,
9064
+ maxTagCount: 1,
9065
+ placeholder: '请选择',
9066
+ style: {
9067
+ width: '100%'
9068
+ },
9069
+ dropdownStyle: {
9070
+ maxHeight: 400,
9071
+ maxWidth: 100,
9072
+ overflow: 'auto'
9073
+ }
9006
9074
  }
9007
- }, {
9008
- title: '外部编码',
9009
- width: 100,
9010
- ellipsis: {
9011
- showTitle: false
9012
- },
9013
- render: function render(text) {
9014
- return /*#__PURE__*/React.createElement(Tooltip, {
9015
- placement: "topLeft",
9016
- title: text
9017
- }, text);
9018
- },
9019
- dataIndex: 'externalCode'
9020
- }, {
9021
- title: '规格',
9022
- width: 100,
9023
- ellipsis: {
9024
- showTitle: false
9025
- },
9026
- render: function render(text) {
9027
- return /*#__PURE__*/React.createElement(Tooltip, {
9028
- placement: "topLeft",
9029
- title: text
9030
- }, text);
9031
- },
9032
- dataIndex: 'propertyNameAndValue'
9033
- }, {
9034
- title: '类目',
9035
- width: 100,
9036
- ellipsis: {
9037
- showTitle: false
9038
- },
9039
- render: function render(text) {
9040
- return /*#__PURE__*/React.createElement(Tooltip, {
9041
- placement: "topLeft",
9042
- title: text
9043
- }, text);
9044
- },
9045
- dataIndex: 'categoryName'
9046
- }, {
9047
- title: '品类',
9048
- width: 100,
9049
- ellipsis: {
9050
- showTitle: false
9051
- },
9052
- render: function render(text) {
9053
- return /*#__PURE__*/React.createElement(Tooltip, {
9054
- placement: "topLeft",
9055
- title: text
9056
- }, text);
9057
- },
9058
- dataIndex: 'className'
9059
- }, {
9060
- title: '品牌',
9061
- width: 100,
9062
- ellipsis: {
9063
- showTitle: false
9064
- },
9065
- render: function render(text) {
9066
- return /*#__PURE__*/React.createElement(Tooltip, {
9067
- placement: "topLeft",
9068
- title: text
9069
- }, text);
9070
- },
9071
- dataIndex: 'brandName'
9072
- }]),
9073
- selectColumn: mTpSelectColumn
9075
+ }
9076
+ }], _toConsumableArray((parProps === null || parProps === void 0 ? void 0 : parProps.addTableSearchForm) || []));
9077
+ var mTpTableSearchForm = handleSearchForm(initialTableSearchForm, parProps);
9078
+ var initialPromiseLoadList = [{
9079
+ url: "/items/brand/queryBrandList",
9080
+ params: {
9081
+ pageSize: 5000,
9082
+ currentPage: 1,
9083
+ 'ctl-withAuth': true
9084
+ },
9085
+ resType: 'list',
9086
+ resPosition: isNoUseItemBarcode ? 2 : 3,
9087
+ resKeyValue: ['id', 'name']
9088
+ }, {
9089
+ url: "/items/category/queryCategoryTree",
9090
+ params: {
9091
+ pageSize: 5000,
9092
+ currentPage: 1
9093
+ },
9094
+ resType: 'treeList',
9095
+ resPosition: isNoUseItemBarcode ? 3 : 4
9096
+ }];
9097
+ var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
9098
+ var props = {
9099
+ buttonText: parProps.buttonText || '新增',
9100
+ buttonProps: parProps.buttonProps || {},
9101
+ tableCodeList: parProps.tableCodeList || [],
9102
+ value: value,
9103
+ // labelInValue: true, // 非必填 默认为false
9104
+ requestConfig: _objectSpread2({
9105
+ url: "/items/sku/pager/v2",
9106
+ filter: 'qp-name-like',
9107
+ otherParams: _objectSpread2({
9108
+ 'qp-combination-eq': false,
9109
+ 'qp-approveStatus-eq': 1,
9110
+ 'qp-status-eq': 1
9111
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.addOtherParams) || {}),
9112
+ mappingTextField: 'name',
9113
+ mappingValueField: 'skuCode'
9114
+ }, parProps.requestConfig),
9115
+ selectProps: selectProps,
9116
+ onChange: function onChange(value) {
9117
+ console.log(value);
9118
+ setValue(value);
9119
+ },
9120
+ beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
9121
+ onSaveCallback: parProps.onSaveCallback,
9122
+ businessType: 'sku',
9123
+ isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect)
9124
+ };
9125
+ var modalTableProps = {
9126
+ modalTableTitle: '选择商品',
9127
+ tableSearchForm: mTpTableSearchForm,
9128
+ tableColumns: mTpTableColumn,
9129
+ selectColumn: mTpSelectColumn,
9130
+ promiseLoadList: mTpPromiseLoadList
9074
9131
  };
9075
9132
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
9076
9133
  modalTableProps: modalTableProps
@@ -9146,6 +9203,45 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
9146
9203
  dataIndex: 'count'
9147
9204
  }];
9148
9205
  var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
9206
+ var initialPromiseLoadList = [{
9207
+ url: "/items/item/propertyValue/sizeBySkcConfig",
9208
+ params: {
9209
+ pageSize: 10000,
9210
+ currentPage: 1,
9211
+ type: 2 // 类型:1尺码;2颜色
9212
+ },
9213
+
9214
+ resType: 'list',
9215
+ resPosition: 3,
9216
+ resKeyValue: ['value', 'value']
9217
+ }, {
9218
+ url: "/items/category/queryCategoryTree",
9219
+ params: {
9220
+ pageSize: 5000,
9221
+ currentPage: 1
9222
+ },
9223
+ resType: 'treeList',
9224
+ resPosition: 4
9225
+ }, {
9226
+ url: "/items/class/withProperty",
9227
+ params: {
9228
+ pageSize: 5000,
9229
+ currentPage: 1
9230
+ },
9231
+ resType: 'list',
9232
+ resPosition: 5,
9233
+ resKeyValue: ['id', 'name']
9234
+ }, {
9235
+ url: "/items/brand/queryBrandList",
9236
+ params: {
9237
+ pageSize: 5000,
9238
+ currentPage: 1,
9239
+ 'ctl-withAuth': true
9240
+ },
9241
+ resType: 'list',
9242
+ resPosition: 6,
9243
+ resKeyValue: ['id', 'name']
9244
+ }];
9149
9245
  var props = {
9150
9246
  buttonText: parProps.buttonText || '新增',
9151
9247
  buttonProps: parProps.buttonProps || {},
@@ -9350,7 +9446,8 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
9350
9446
  },
9351
9447
  dataIndex: 'brandName'
9352
9448
  }],
9353
- selectColumn: mTpSelectColumn
9449
+ selectColumn: mTpSelectColumn,
9450
+ promiseLoadList: initialPromiseLoadList
9354
9451
  };
9355
9452
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
9356
9453
  modalTableProps: modalTableProps
@@ -9435,6 +9532,44 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
9435
9532
  dataIndex: 'className'
9436
9533
  }];
9437
9534
  var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
9535
+ var initialPromiseLoadList = [{
9536
+ url: "/user/orgViewNode/listNoPage",
9537
+ params: {
9538
+ 'qp-employeeId-eq': getEmployeeId(),
9539
+ 'qp-orgViewCode-eq': 'business-organizational-view',
9540
+ 'ctl-withDefaultOrg': true
9541
+ },
9542
+ resType: 'list',
9543
+ resPosition: 2,
9544
+ resKeyValue: ['targetId', 'name']
9545
+ }, {
9546
+ url: "/items/brand/queryBrandList",
9547
+ params: {
9548
+ pageSize: 5000,
9549
+ currentPage: 1,
9550
+ 'ctl-withAuth': true
9551
+ },
9552
+ resType: 'list',
9553
+ resPosition: 3,
9554
+ resKeyValue: ['id', 'name']
9555
+ }, {
9556
+ url: "/items/category/queryCategoryTree",
9557
+ params: {
9558
+ pageSize: 5000,
9559
+ currentPage: 1
9560
+ },
9561
+ resType: 'treeList',
9562
+ resPosition: 4
9563
+ }, {
9564
+ url: "/items/class/withProperty",
9565
+ params: {
9566
+ pageSize: 5000,
9567
+ currentPage: 1
9568
+ },
9569
+ resType: 'list',
9570
+ resPosition: 5,
9571
+ resKeyValue: ['id', 'name']
9572
+ }];
9438
9573
  var props = {
9439
9574
  buttonText: parProps.buttonText || '新增',
9440
9575
  buttonProps: parProps.buttonProps || {},
@@ -9624,7 +9759,8 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
9624
9759
  },
9625
9760
  dataIndex: 'className'
9626
9761
  }],
9627
- selectColumn: mTpSelectColumn
9762
+ selectColumn: mTpSelectColumn,
9763
+ promiseLoadList: initialPromiseLoadList
9628
9764
  };
9629
9765
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
9630
9766
  modalTableProps: modalTableProps
@@ -9843,44 +9979,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9843
9979
  var _ctx$form;
9844
9980
  var resData, coverData, data, dataList;
9845
9981
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9846
- while (1) {
9847
- switch (_context.prev = _context.next) {
9848
- case 0:
9849
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9850
- if (!(resData.status === '0' || resData.code === '000000')) {
9851
- _context.next = 13;
9852
- break;
9853
- }
9854
- data = resData.data;
9855
- if (!remoteSource.converter) {
9856
- _context.next = 9;
9857
- break;
9858
- }
9859
- _context.next = 6;
9860
- return remoteSource.converter({
9861
- data: [data]
9862
- });
9863
- case 6:
9864
- coverData = _context.sent;
9865
- _context.next = 11;
9982
+ while (1) switch (_context.prev = _context.next) {
9983
+ case 0:
9984
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9985
+ if (!(resData.status === '0' || resData.code === '000000')) {
9986
+ _context.next = 13;
9866
9987
  break;
9867
- case 9:
9868
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
9869
- coverData = dataList.length && dataList.map(function (ites) {
9870
- return mapSearchTree(ites);
9871
- }) || [];
9872
- case 11:
9873
- _context.next = 14;
9988
+ }
9989
+ data = resData.data;
9990
+ if (!remoteSource.converter) {
9991
+ _context.next = 9;
9874
9992
  break;
9875
- case 13:
9876
- coverData = [];
9877
- case 14:
9878
- setTreeData(coverData);
9879
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9880
- case 16:
9881
- case "end":
9882
- return _context.stop();
9883
- }
9993
+ }
9994
+ _context.next = 6;
9995
+ return remoteSource.converter({
9996
+ data: [data]
9997
+ });
9998
+ case 6:
9999
+ coverData = _context.sent;
10000
+ _context.next = 11;
10001
+ break;
10002
+ case 9:
10003
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
10004
+ coverData = dataList.length && dataList.map(function (ites) {
10005
+ return mapSearchTree(ites);
10006
+ }) || [];
10007
+ case 11:
10008
+ _context.next = 14;
10009
+ break;
10010
+ case 13:
10011
+ coverData = [];
10012
+ case 14:
10013
+ setTreeData(coverData);
10014
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
10015
+ case 16:
10016
+ case "end":
10017
+ return _context.stop();
9884
10018
  }
9885
10019
  }, _callee);
9886
10020
  }));
@@ -13854,7 +13988,7 @@ var AllFunc = function AllFunc(props) {
13854
13988
  })))));
13855
13989
  };
13856
13990
 
13857
- var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
13991
+ var css_248z$g = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #02B56E;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
13858
13992
  styleInject(css_248z$g);
13859
13993
 
13860
13994
  var allfunc = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Eicon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-20.000000%2C%20-1016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%280.000000%2C%20900.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9F%A5%E7%9C%8B%E5%85%A8%E9%83%A8%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%2810.000000%2C%2046.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%2810.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22navigation-icon-allfunctions%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22category%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%205.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.24999999%2C12.3585414%20L2.24999999%2C14%20L0%2C14%20L0%2C12.3585414%20L2.24999999%2C12.3585414%20Z%20M18%2C12.3585414%20L18%2C14%20L3.375%2C14%20L3.375%2C12.3585414%20L18%2C12.3585414%20Z%20M2.24999999%2C6.17954431%20L2.24999999%2C7.82100286%20L0%2C7.82100286%20L0%2C6.17954431%20L2.24999999%2C6.17954431%20L2.24999999%2C6.17954431%20Z%20M18%2C6.17954431%20L18%2C7.82100286%20L3.375%2C7.82100286%20L3.375%2C6.17954431%20L18%2C6.17954431%20L18%2C6.17954431%20Z%20M2.24999999%2C0%20L2.24999999%2C1.64145855%20L0%2C1.64145855%20L0%2C0%20L2.24999999%2C0%20L2.24999999%2C0%20Z%20M18%2C0%20L18%2C1.64145855%20L3.375%2C1.64145855%20L3.375%2C0%20L18%2C0%20L18%2C0%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
@@ -14070,21 +14204,19 @@ function _outLogin() {
14070
14204
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
14071
14205
  var res;
14072
14206
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14073
- while (1) {
14074
- switch (_context.prev = _context.next) {
14075
- case 0:
14076
- _context.next = 2;
14077
- return axios({
14078
- url: '/user/web/loginOut',
14079
- method: 'GET'
14080
- });
14081
- case 2:
14082
- res = _context.sent;
14083
- return _context.abrupt("return", res);
14084
- case 4:
14085
- case "end":
14086
- return _context.stop();
14087
- }
14207
+ while (1) switch (_context.prev = _context.next) {
14208
+ case 0:
14209
+ _context.next = 2;
14210
+ return axios({
14211
+ url: '/user/web/loginOut',
14212
+ method: 'GET'
14213
+ });
14214
+ case 2:
14215
+ res = _context.sent;
14216
+ return _context.abrupt("return", res);
14217
+ case 4:
14218
+ case "end":
14219
+ return _context.stop();
14088
14220
  }
14089
14221
  }, _callee);
14090
14222
  }));
@@ -14213,31 +14345,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14213
14345
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14214
14346
  var sessionId;
14215
14347
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14216
- while (1) {
14217
- switch (_context.prev = _context.next) {
14218
- case 0:
14219
- _context.next = 2;
14220
- return getSessionId();
14221
- case 2:
14222
- sessionId = _context.sent;
14223
- _context.next = 5;
14224
- return outLogin({
14225
- sessionId: sessionId
14348
+ while (1) switch (_context.prev = _context.next) {
14349
+ case 0:
14350
+ _context.next = 2;
14351
+ return getSessionId();
14352
+ case 2:
14353
+ sessionId = _context.sent;
14354
+ _context.next = 5;
14355
+ return outLogin({
14356
+ sessionId: sessionId
14357
+ });
14358
+ case 5:
14359
+ // @ts-ignore
14360
+ if (BUILD_TYPE) {
14361
+ message$1.success('退出登录成功');
14362
+ history.replace({
14363
+ pathname: '/user/login'
14226
14364
  });
14227
- case 5:
14228
- // @ts-ignore
14229
- if (BUILD_TYPE) {
14230
- message$1.success('退出登录成功');
14231
- history.replace({
14232
- pathname: '/user/login'
14233
- });
14234
- } else {
14235
- setLoginOutPath();
14236
- }
14237
- case 6:
14238
- case "end":
14239
- return _context.stop();
14240
- }
14365
+ } else {
14366
+ setLoginOutPath();
14367
+ }
14368
+ case 6:
14369
+ case "end":
14370
+ return _context.stop();
14241
14371
  }
14242
14372
  }, _callee);
14243
14373
  }));
@@ -14383,7 +14513,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
14383
14513
  var afterStr = newName.substr(index + keyWord.length);
14384
14514
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", null, beforeStr), /*#__PURE__*/React.createElement("span", {
14385
14515
  style: {
14386
- color: '#1890ff'
14516
+ color: '#02B56E'
14387
14517
  }
14388
14518
  }, keyWord), /*#__PURE__*/React.createElement("span", null, afterStr));
14389
14519
  }
@@ -15228,7 +15358,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
15228
15358
  })));
15229
15359
  });
15230
15360
 
15231
- var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #1890ff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #1890ff !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
15361
+ var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #02B56E;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #02B56E !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
15232
15362
  styleInject(css_248z$l);
15233
15363
 
15234
15364
  var closeicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAiZJREFUSEvFll1LVFEUhh/1QqjAxALrot+ggR9RQWh1UZl9kNCtv8ALf0Q3/YVuiyIqLKOUyI80RP0VXVSU+UGKF2W88q7hzPacOY4QHhiGmVn7fdZe691rTwP/+WlI9Bv9eQfQq55HWqH3NxamgOz3+q0SWEJSYpFQVWIBUIDE+oARYBj4ATQBf0rEI+Yk8Ah4CHwEdjUDoHeRnwN3gBngJrBaAgnxVmAMOA88A4aKAAp8A5wzZABYK4Dkic8CWqPEdpPO9iB20Qa8BnqBae9EkCijKhbixx2rzOeAG8CvEFdg2uRYKIh20mOIslo3RGvUlxaLXwDmgesWr+pbnovyIFPe+oYbLnHV/CLw2eIreaUssmlATngn3YAg17yL8f2I55Uo68is/VSuLuC9AZeBBQN/1nJa0Q4ClHVKuEu/fXJZihxWSbQMEM5pBlQWHUQ9E+7JduKuPWeyFiDEj7mhl2xFrdE5+WAL/64FKQJkxV858yXgqq09CXQAer8FFELyAFnxl0A/sOiaf3cN2u2usy7X7SJI3rjW0DsKSFxuUeY6RN/sFjF00ARRXzrtLkE203LljQqJvwCuAMu2YojHZA13nTJE5XrnQSlIjJ3KqIgvjlhctZa4Mv9aMuxOu1yCvAXuAlvpsAvAU+DePsTTc5KFPAHup+M6GjsIjDrgS50XzhngMfDAtq66cNIRoUYf5MqUaNUNeCiXfsUB9fylcOyetf8AAkCfGYuSNSEAAAAASUVORK5CYII=";
@@ -15393,8 +15523,8 @@ var DrawContent$1 = function DrawContent(_ref) {
15393
15523
  return /*#__PURE__*/React.createElement("div", {
15394
15524
  className: 'left_item',
15395
15525
  style: {
15396
- borderLeft: currentOneLevel === item.path ? '2px solid #1890ff' : 'none',
15397
- color: currentOneLevel === item.path ? '#1890ff' : '#000000'
15526
+ borderLeft: currentOneLevel === item.path ? '2px solid #02B56E' : 'none',
15527
+ color: currentOneLevel === item.path ? '#02B56E' : '#000000'
15398
15528
  },
15399
15529
  onClick: function onClick(e) {
15400
15530
  e.stopPropagation();
@@ -15644,7 +15774,7 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
15644
15774
  })));
15645
15775
  };
15646
15776
 
15647
- var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #1890ff;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
15777
+ var css_248z$m = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #02B56E;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
15648
15778
  styleInject(css_248z$m);
15649
15779
 
15650
15780
  var _excluded$g = ["route"];
@@ -16065,6 +16195,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16065
16195
  showSubMenu: isShow
16066
16196
  });
16067
16197
  }, 500);
16198
+ //设置tabs标签左右滚动
16068
16199
  _this.setTabNavTransLate = function (num) {
16069
16200
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
16070
16201
  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];
@@ -16744,15 +16875,13 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16744
16875
  menu: {
16745
16876
  request: function () {
16746
16877
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16747
- return _regeneratorRuntime().wrap(function _callee$(_context) {
16748
- while (1) {
16749
- switch (_context.prev = _context.next) {
16750
- case 0:
16751
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16752
- case 1:
16753
- case "end":
16754
- return _context.stop();
16755
- }
16878
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
16879
+ while (1) switch (_context.prev = _context.next) {
16880
+ case 0:
16881
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16882
+ case 1:
16883
+ case "end":
16884
+ return _context.stop();
16756
16885
  }
16757
16886
  }, _callee);
16758
16887
  }));
@@ -23482,7 +23611,7 @@ function registerSuggestions(monaco) {
23482
23611
  });
23483
23612
  }
23484
23613
 
23485
- var css_248z$p = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #1890ff;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
23614
+ var css_248z$p = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #02B56E;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
23486
23615
  styleInject(css_248z$p);
23487
23616
 
23488
23617
  var Title = Typography.Title;
@@ -24433,28 +24562,26 @@ var valueType = {
24433
24562
  var getDynamicDict = /*#__PURE__*/function () {
24434
24563
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24435
24564
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24436
- while (1) {
24437
- switch (_context.prev = _context.next) {
24438
- case 0:
24439
- _context.next = 2;
24440
- return request$1({
24441
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24442
- converter: function converter(_ref2) {
24443
- var data = _ref2.data;
24444
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24445
- return {
24446
- text: d.name,
24447
- value: d.code || d.brandCode
24448
- };
24449
- });
24450
- }
24451
- });
24452
- case 2:
24453
- return _context.abrupt("return", _context.sent);
24454
- case 3:
24455
- case "end":
24456
- return _context.stop();
24457
- }
24565
+ while (1) switch (_context.prev = _context.next) {
24566
+ case 0:
24567
+ _context.next = 2;
24568
+ return request$1({
24569
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24570
+ converter: function converter(_ref2) {
24571
+ var data = _ref2.data;
24572
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24573
+ return {
24574
+ text: d.name,
24575
+ value: d.code || d.brandCode
24576
+ };
24577
+ });
24578
+ }
24579
+ });
24580
+ case 2:
24581
+ return _context.abrupt("return", _context.sent);
24582
+ case 3:
24583
+ case "end":
24584
+ return _context.stop();
24458
24585
  }
24459
24586
  }, _callee);
24460
24587
  }));
@@ -24504,55 +24631,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24504
24631
  useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24505
24632
  var _ref$current, source;
24506
24633
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24507
- while (1) {
24508
- switch (_context.prev = _context.next) {
24509
- case 0:
24510
- _context.next = 2;
24511
- return setIsShowAndType(function (prev) {
24512
- if (record.inputType === 20 || record.inputType === 30) {
24513
- return {
24514
- isShow: true,
24515
- singleOrMultiple: record.inputType,
24516
- type: record.choiceType
24517
- };
24518
- }
24519
- return prev;
24520
- });
24521
- case 2:
24522
- if (!record.dictionaryCode) {
24523
- _context.next = 17;
24524
- break;
24525
- }
24526
- if (!(record.choiceType == 20)) {
24527
- _context.next = 7;
24528
- break;
24634
+ while (1) switch (_context.prev = _context.next) {
24635
+ case 0:
24636
+ _context.next = 2;
24637
+ return setIsShowAndType(function (prev) {
24638
+ if (record.inputType === 20 || record.inputType === 30) {
24639
+ return {
24640
+ isShow: true,
24641
+ singleOrMultiple: record.inputType,
24642
+ type: record.choiceType
24643
+ };
24529
24644
  }
24530
- _context.t0 = getDictionarySource(record.dictionaryCode);
24531
- _context.next = 15;
24645
+ return prev;
24646
+ });
24647
+ case 2:
24648
+ if (!record.dictionaryCode) {
24649
+ _context.next = 17;
24532
24650
  break;
24533
- case 7:
24534
- if (!(record.choiceType == 30)) {
24535
- _context.next = 13;
24536
- break;
24537
- }
24538
- _context.next = 10;
24539
- return getDynamicDict(record.dictionaryCode);
24540
- case 10:
24541
- _context.t1 = _context.sent;
24542
- _context.next = 14;
24651
+ }
24652
+ if (!(record.choiceType == 20)) {
24653
+ _context.next = 7;
24543
24654
  break;
24544
- case 13:
24545
- _context.t1 = [];
24546
- case 14:
24547
- _context.t0 = _context.t1;
24548
- case 15:
24549
- source = _context.t0;
24550
- // @ts-ignore
24551
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24552
- case 17:
24553
- case "end":
24554
- return _context.stop();
24555
- }
24655
+ }
24656
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24657
+ _context.next = 15;
24658
+ break;
24659
+ case 7:
24660
+ if (!(record.choiceType == 30)) {
24661
+ _context.next = 13;
24662
+ break;
24663
+ }
24664
+ _context.next = 10;
24665
+ return getDynamicDict(record.dictionaryCode);
24666
+ case 10:
24667
+ _context.t1 = _context.sent;
24668
+ _context.next = 14;
24669
+ break;
24670
+ case 13:
24671
+ _context.t1 = [];
24672
+ case 14:
24673
+ _context.t0 = _context.t1;
24674
+ case 15:
24675
+ source = _context.t0;
24676
+ // @ts-ignore
24677
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24678
+ case 17:
24679
+ case "end":
24680
+ return _context.stop();
24556
24681
  }
24557
24682
  }, _callee);
24558
24683
  })));
@@ -24620,30 +24745,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24620
24745
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24621
24746
  var form, values, name, relates, source;
24622
24747
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
24623
- while (1) {
24624
- switch (_context2.prev = _context2.next) {
24625
- case 0:
24626
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24627
- if (values[0]) {
24628
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24629
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24630
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24631
- }
24632
- if (!values[1]) {
24633
- _context2.next = 9;
24634
- break;
24635
- }
24636
- _context2.next = 5;
24637
- return getDynamicDict(record.dictionaryCode || values[1]);
24638
- case 5:
24639
- source = _context2.sent;
24748
+ while (1) switch (_context2.prev = _context2.next) {
24749
+ case 0:
24750
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24751
+ if (values[0]) {
24640
24752
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24641
24753
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24642
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24643
- case 9:
24644
- case "end":
24645
- return _context2.stop();
24646
- }
24754
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24755
+ }
24756
+ if (!values[1]) {
24757
+ _context2.next = 9;
24758
+ break;
24759
+ }
24760
+ _context2.next = 5;
24761
+ return getDynamicDict(record.dictionaryCode || values[1]);
24762
+ case 5:
24763
+ source = _context2.sent;
24764
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24765
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24766
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24767
+ case 9:
24768
+ case "end":
24769
+ return _context2.stop();
24647
24770
  }
24648
24771
  }, _callee2);
24649
24772
  }));
@@ -25103,43 +25226,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25103
25226
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
25104
25227
  var values, name, form, source;
25105
25228
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
25106
- while (1) {
25107
- switch (_context3.prev = _context3.next) {
25108
- case 0:
25109
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
25110
- if (values[1] === 40) {
25111
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25112
- form.setFieldVisible(name, false);
25113
- }
25114
- if (!(values[0] === 30)) {
25115
- _context3.next = 10;
25116
- break;
25117
- }
25118
- _context3.next = 5;
25119
- return request$1({
25120
- url: '/basic/dictDynamicItem/queryList',
25121
- converter: function converter(_ref11) {
25122
- var data = _ref11.data;
25123
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
25124
- return {
25125
- text: d.dictCode,
25126
- value: d.dictCode
25127
- };
25128
- });
25129
- }
25130
- });
25131
- case 5:
25132
- source = _context3.sent;
25133
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25134
- form.setFieldVisible(name, true);
25135
- _context3.next = 11;
25136
- break;
25137
- case 10:
25229
+ while (1) switch (_context3.prev = _context3.next) {
25230
+ case 0:
25231
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
25232
+ if (values[1] === 40) {
25233
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25138
25234
  form.setFieldVisible(name, false);
25139
- case 11:
25140
- case "end":
25141
- return _context3.stop();
25142
- }
25235
+ }
25236
+ if (!(values[0] === 30)) {
25237
+ _context3.next = 10;
25238
+ break;
25239
+ }
25240
+ _context3.next = 5;
25241
+ return request$1({
25242
+ url: '/basic/dictDynamicItem/queryList',
25243
+ converter: function converter(_ref11) {
25244
+ var data = _ref11.data;
25245
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
25246
+ return {
25247
+ text: d.dictCode,
25248
+ value: d.dictCode
25249
+ };
25250
+ });
25251
+ }
25252
+ });
25253
+ case 5:
25254
+ source = _context3.sent;
25255
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25256
+ form.setFieldVisible(name, true);
25257
+ _context3.next = 11;
25258
+ break;
25259
+ case 10:
25260
+ form.setFieldVisible(name, false);
25261
+ case 11:
25262
+ case "end":
25263
+ return _context3.stop();
25143
25264
  }
25144
25265
  }, _callee3);
25145
25266
  }));
@@ -25328,66 +25449,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25328
25449
  var _ref$current4, _res$editableStatus;
25329
25450
  var res, _res$defaultValue;
25330
25451
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
25331
- while (1) {
25332
- switch (_context4.prev = _context4.next) {
25333
- case 0:
25334
- _context4.next = 2;
25335
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25336
- case 2:
25337
- res = _context4.sent;
25338
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25339
- res.fieldGroup = record.fieldGroup;
25340
- res.businessType = record.businessType;
25341
- res.info = {
25342
- enumeration: res.enumeration,
25343
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25344
- formula: res.formula,
25345
- scale: res.scale,
25346
- variable: res.variable
25347
- };
25348
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25349
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25350
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25351
- if (res.inputType === 40) {
25352
- res.valueType = 22;
25452
+ while (1) switch (_context4.prev = _context4.next) {
25453
+ case 0:
25454
+ _context4.next = 2;
25455
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25456
+ case 2:
25457
+ res = _context4.sent;
25458
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25459
+ res.fieldGroup = record.fieldGroup;
25460
+ res.businessType = record.businessType;
25461
+ res.info = {
25462
+ enumeration: res.enumeration,
25463
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25464
+ formula: res.formula,
25465
+ scale: res.scale,
25466
+ variable: res.variable
25467
+ };
25468
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25469
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25470
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25471
+ if (res.inputType === 40) {
25472
+ res.valueType = 22;
25473
+ }
25474
+ // 把数组处理成文本
25475
+ if (res.inputType === 30) {
25476
+ if (res.defaultValue) {
25477
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25353
25478
  }
25354
- // 把数组处理成文本
25355
- if (res.inputType === 30) {
25356
- if (res.defaultValue) {
25357
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25358
- }
25479
+ }
25480
+ res.fieldMapping = res.fieldMapping || '';
25481
+ delete res.formula;
25482
+ delete res.showValue;
25483
+ if (!(mode === 'create')) {
25484
+ _context4.next = 18;
25485
+ break;
25486
+ }
25487
+ request$1({
25488
+ url: "/basic/flow/businessField",
25489
+ method: 'POST',
25490
+ params: res,
25491
+ successMessage: '创建成功!',
25492
+ converter: function converter() {
25493
+ onParentOk();
25359
25494
  }
25360
- res.fieldMapping = res.fieldMapping || '';
25361
- delete res.formula;
25362
- delete res.showValue;
25363
- if (!(mode === 'create')) {
25364
- _context4.next = 18;
25365
- break;
25495
+ });
25496
+ return _context4.abrupt("return");
25497
+ case 18:
25498
+ request$1({
25499
+ url: "/basic/flow/businessField/".concat(record.id),
25500
+ method: 'PATCH',
25501
+ params: res,
25502
+ successMessage: '修改成功!',
25503
+ converter: function converter() {
25504
+ onParentOk();
25366
25505
  }
25367
- request$1({
25368
- url: "/basic/flow/businessField",
25369
- method: 'POST',
25370
- params: res,
25371
- successMessage: '创建成功!',
25372
- converter: function converter() {
25373
- onParentOk();
25374
- }
25375
- });
25376
- return _context4.abrupt("return");
25377
- case 18:
25378
- request$1({
25379
- url: "/basic/flow/businessField/".concat(record.id),
25380
- method: 'PATCH',
25381
- params: res,
25382
- successMessage: '修改成功!',
25383
- converter: function converter() {
25384
- onParentOk();
25385
- }
25386
- });
25387
- case 19:
25388
- case "end":
25389
- return _context4.stop();
25390
- }
25506
+ });
25507
+ case 19:
25508
+ case "end":
25509
+ return _context4.stop();
25391
25510
  }
25392
25511
  }, _callee4);
25393
25512
  }));
@@ -26172,28 +26291,26 @@ var BsCascader = function BsCascader(_ref) {
26172
26291
  useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26173
26292
  var resData, data;
26174
26293
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26175
- while (1) {
26176
- switch (_context.prev = _context.next) {
26177
- case 0:
26178
- if (!(!source && initRequestSource)) {
26179
- _context.next = 6;
26180
- break;
26181
- }
26182
- _context.next = 3;
26183
- return initRequestSource();
26184
- case 3:
26185
- resData = _context.sent;
26186
- data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26187
- return _objectSpread2(_objectSpread2({}, item), {}, {
26188
- label: item.text,
26189
- isLeaf: false
26190
- });
26191
- })) || [];
26192
- setHandSource(data);
26193
- case 6:
26194
- case "end":
26195
- return _context.stop();
26196
- }
26294
+ while (1) switch (_context.prev = _context.next) {
26295
+ case 0:
26296
+ if (!(!source && initRequestSource)) {
26297
+ _context.next = 6;
26298
+ break;
26299
+ }
26300
+ _context.next = 3;
26301
+ return initRequestSource();
26302
+ case 3:
26303
+ resData = _context.sent;
26304
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26305
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26306
+ label: item.text,
26307
+ isLeaf: false
26308
+ });
26309
+ })) || [];
26310
+ setHandSource(data);
26311
+ case 6:
26312
+ case "end":
26313
+ return _context.stop();
26197
26314
  }
26198
26315
  }, _callee);
26199
26316
  })), []);
@@ -26325,20 +26442,18 @@ function getRegularThresholdRange(_x) {
26325
26442
  function _getRegularThresholdRange() {
26326
26443
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
26327
26444
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26328
- while (1) {
26329
- switch (_context.prev = _context.next) {
26330
- case 0:
26331
- return _context.abrupt("return", axios({
26332
- url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26333
- method: 'POST',
26334
- data: _objectSpread2(_objectSpread2({}, params), {}, {
26335
- queryIdentify: undefined
26336
- })
26337
- }));
26338
- case 1:
26339
- case "end":
26340
- return _context.stop();
26341
- }
26445
+ while (1) switch (_context.prev = _context.next) {
26446
+ case 0:
26447
+ return _context.abrupt("return", axios({
26448
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26449
+ method: 'POST',
26450
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26451
+ queryIdentify: undefined
26452
+ })
26453
+ }));
26454
+ case 1:
26455
+ case "end":
26456
+ return _context.stop();
26342
26457
  }
26343
26458
  }, _callee);
26344
26459
  }));
@@ -26477,137 +26592,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
26477
26592
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
26478
26593
  });
26479
26594
  };
26595
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
26480
26596
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
26481
26597
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
26482
26598
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
26483
26599
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26484
- while (1) {
26485
- switch (_context.prev = _context.next) {
26486
- case 0:
26487
- if (queryIdentify) {
26488
- _context.next = 2;
26489
- break;
26490
- }
26491
- return _context.abrupt("return");
26492
- case 2:
26493
- thresholdQuery = _this.state.thresholdQuery;
26494
- extraRequestUrl = '';
26495
- querParams = setParams(propertyCode, thresholdQuery);
26496
- if (!queryIdentityInfo.find(function (item) {
26497
- return item.identity == propertyCode;
26498
- })) {
26499
- _context.next = 10;
26500
- break;
26501
- }
26502
- //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26503
- needQueryList = queryIdentityInfo.find(function (item) {
26504
- return item.identity == propertyCode;
26505
- }).queryParam.filter(function (item) {
26506
- return item.isRequired;
26507
- }).map(function (item) {
26508
- return item.queryKey;
26509
- });
26510
- if (!needQueryList.some(function (item) {
26511
- return !querParams[item] || !querParams[item].length;
26512
- })) {
26513
- _context.next = 9;
26514
- break;
26515
- }
26516
- return _context.abrupt("return");
26517
- case 9:
26518
- extraRequestUrl = queryIdentityInfo.find(function (item) {
26519
- return item.identity == propertyCode;
26520
- }).requestUrl || '';
26521
- case 10:
26522
- if (queryIdentifyType === 'dictCodeIdentify') {
26523
- extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26524
- querParams = {
26525
- dictCode: queryIdentify
26526
- };
26527
- } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26528
- extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26529
- // querParams = { dictCode: queryIdentify }
26530
- }
26531
- if (!extraRequestUrl) {
26532
- _context.next = 16;
26533
- break;
26534
- }
26535
- if (queryIdentify == 'maintain_area_code') {
26536
- extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26537
- } else if (queryIdentifyType == 'dictCodeIdentify') {
26538
- extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26539
- } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26540
- extraRequestUrl = "/basic/".concat(extraRequestUrl);
26541
- }
26542
- request$1({
26543
- url: extraRequestUrl,
26544
- method: 'get',
26545
- converter: function converter(res) {
26546
- if (handleError(res)) {
26547
- var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26548
- if (queryIdentifyType === 'dictCodeIdentify') {
26549
- var _handleData2;
26550
- _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26551
- return {
26552
- code: i.dictItemCode,
26553
- name: i.dictItemName
26554
- };
26555
- }) : [];
26556
- }
26557
- if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26558
- var _handleData3;
26559
- _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26560
- return {
26561
- code: i.code.toString(),
26562
- name: i.name
26563
- };
26564
- }) : [];
26565
- }
26566
- _this.setState({
26567
- thresholdList: _handleData
26568
- });
26600
+ while (1) switch (_context.prev = _context.next) {
26601
+ case 0:
26602
+ if (queryIdentify) {
26603
+ _context.next = 2;
26604
+ break;
26605
+ }
26606
+ return _context.abrupt("return");
26607
+ case 2:
26608
+ thresholdQuery = _this.state.thresholdQuery;
26609
+ extraRequestUrl = '';
26610
+ querParams = setParams(propertyCode, thresholdQuery);
26611
+ if (!queryIdentityInfo.find(function (item) {
26612
+ return item.identity == propertyCode;
26613
+ })) {
26614
+ _context.next = 10;
26615
+ break;
26616
+ }
26617
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26618
+ needQueryList = queryIdentityInfo.find(function (item) {
26619
+ return item.identity == propertyCode;
26620
+ }).queryParam.filter(function (item) {
26621
+ return item.isRequired;
26622
+ }).map(function (item) {
26623
+ return item.queryKey;
26624
+ });
26625
+ if (!needQueryList.some(function (item) {
26626
+ return !querParams[item] || !querParams[item].length;
26627
+ })) {
26628
+ _context.next = 9;
26629
+ break;
26630
+ }
26631
+ return _context.abrupt("return");
26632
+ case 9:
26633
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26634
+ return item.identity == propertyCode;
26635
+ }).requestUrl || '';
26636
+ case 10:
26637
+ if (queryIdentifyType === 'dictCodeIdentify') {
26638
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26639
+ querParams = {
26640
+ dictCode: queryIdentify
26641
+ };
26642
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26643
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26644
+ // querParams = { dictCode: queryIdentify }
26645
+ }
26646
+ if (!extraRequestUrl) {
26647
+ _context.next = 16;
26648
+ break;
26649
+ }
26650
+ if (queryIdentify == 'maintain_area_code') {
26651
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26652
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26653
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26654
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26655
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26656
+ }
26657
+ request$1({
26658
+ url: extraRequestUrl,
26659
+ method: 'get',
26660
+ converter: function converter(res) {
26661
+ if (handleError(res)) {
26662
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26663
+ if (queryIdentifyType === 'dictCodeIdentify') {
26664
+ var _handleData2;
26665
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26666
+ return {
26667
+ code: i.dictItemCode,
26668
+ name: i.dictItemName
26669
+ };
26670
+ }) : [];
26569
26671
  }
26570
- return handleData;
26672
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26673
+ var _handleData3;
26674
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26675
+ return {
26676
+ code: i.code.toString(),
26677
+ name: i.name
26678
+ };
26679
+ }) : [];
26680
+ }
26681
+ _this.setState({
26682
+ thresholdList: _handleData
26683
+ });
26571
26684
  }
26572
- });
26573
- _context.next = 29;
26574
- break;
26575
- case 16:
26576
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26577
- _context.next = 20;
26578
- break;
26685
+ return handleData;
26579
26686
  }
26580
- _this.setState({
26581
- thresholdList: queryIdentify
26582
- });
26583
- _context.next = 29;
26687
+ });
26688
+ _context.next = 29;
26689
+ break;
26690
+ case 16:
26691
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26692
+ _context.next = 20;
26584
26693
  break;
26585
- case 20:
26586
- if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26587
- _context.next = 24;
26588
- break;
26589
- }
26590
- // TODO待处理
26694
+ }
26695
+ _this.setState({
26696
+ thresholdList: queryIdentify
26697
+ });
26698
+ _context.next = 29;
26699
+ break;
26700
+ case 20:
26701
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26702
+ _context.next = 24;
26703
+ break;
26704
+ }
26705
+ // TODO待处理
26706
+ _this.setState({
26707
+ thresholdList: []
26708
+ });
26709
+ _context.next = 29;
26710
+ break;
26711
+ case 24:
26712
+ querParams.queryIdentify = queryIdentify;
26713
+ _context.next = 27;
26714
+ return getRegularThresholdRange(querParams);
26715
+ case 27:
26716
+ res = _context.sent;
26717
+ if (handleError(res)) {
26591
26718
  _this.setState({
26592
- thresholdList: []
26719
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26593
26720
  });
26594
- _context.next = 29;
26595
- break;
26596
- case 24:
26597
- querParams.queryIdentify = queryIdentify;
26598
- _context.next = 27;
26599
- return getRegularThresholdRange(querParams);
26600
- case 27:
26601
- res = _context.sent;
26602
- if (handleError(res)) {
26603
- _this.setState({
26604
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26605
- });
26606
- }
26607
- case 29:
26608
- case "end":
26609
- return _context.stop();
26610
- }
26721
+ }
26722
+ case 29:
26723
+ case "end":
26724
+ return _context.stop();
26611
26725
  }
26612
26726
  }, _callee);
26613
26727
  }));
@@ -27426,32 +27540,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27426
27540
  notChangeOnSelect: true,
27427
27541
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
27428
27542
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
27429
- while (1) {
27430
- switch (_context2.prev = _context2.next) {
27431
- case 0:
27432
- _context2.next = 2;
27433
- return request$1({
27434
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27435
- method: 'get',
27436
- converter: function converter(_ref3) {
27437
- var data = _ref3.data;
27438
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27439
- return {
27440
- text: item.name,
27441
- value: item.id,
27442
- level: item.level,
27443
- id: item.id
27444
- };
27445
- }) : [];
27446
- return handleData;
27447
- }
27448
- });
27449
- case 2:
27450
- return _context2.abrupt("return", _context2.sent);
27451
- case 3:
27452
- case "end":
27453
- return _context2.stop();
27454
- }
27543
+ while (1) switch (_context2.prev = _context2.next) {
27544
+ case 0:
27545
+ _context2.next = 2;
27546
+ return request$1({
27547
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27548
+ method: 'get',
27549
+ converter: function converter(_ref3) {
27550
+ var data = _ref3.data;
27551
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27552
+ return {
27553
+ text: item.name,
27554
+ value: item.id,
27555
+ level: item.level,
27556
+ id: item.id
27557
+ };
27558
+ }) : [];
27559
+ return handleData;
27560
+ }
27561
+ });
27562
+ case 2:
27563
+ return _context2.abrupt("return", _context2.sent);
27564
+ case 3:
27565
+ case "end":
27566
+ return _context2.stop();
27455
27567
  }
27456
27568
  }, _callee2);
27457
27569
  })),
@@ -27477,32 +27589,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27477
27589
  notChangeOnSelect: true,
27478
27590
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
27479
27591
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
27480
- while (1) {
27481
- switch (_context3.prev = _context3.next) {
27482
- case 0:
27483
- _context3.next = 2;
27484
- return request$1({
27485
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27486
- method: 'get',
27487
- converter: function converter(_ref5) {
27488
- var data = _ref5.data;
27489
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27490
- return {
27491
- text: item.name,
27492
- value: item.id,
27493
- level: item.level,
27494
- id: item.id
27495
- };
27496
- }) : [];
27497
- return handleData;
27498
- }
27499
- });
27500
- case 2:
27501
- return _context3.abrupt("return", _context3.sent);
27502
- case 3:
27503
- case "end":
27504
- return _context3.stop();
27505
- }
27592
+ while (1) switch (_context3.prev = _context3.next) {
27593
+ case 0:
27594
+ _context3.next = 2;
27595
+ return request$1({
27596
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27597
+ method: 'get',
27598
+ converter: function converter(_ref5) {
27599
+ var data = _ref5.data;
27600
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27601
+ return {
27602
+ text: item.name,
27603
+ value: item.id,
27604
+ level: item.level,
27605
+ id: item.id
27606
+ };
27607
+ }) : [];
27608
+ return handleData;
27609
+ }
27610
+ });
27611
+ case 2:
27612
+ return _context3.abrupt("return", _context3.sent);
27613
+ case 3:
27614
+ case "end":
27615
+ return _context3.stop();
27506
27616
  }
27507
27617
  }, _callee3);
27508
27618
  })),
@@ -27530,32 +27640,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27530
27640
  notChangeOnSelect: true,
27531
27641
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
27532
27642
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
27533
- while (1) {
27534
- switch (_context4.prev = _context4.next) {
27535
- case 0:
27536
- _context4.next = 2;
27537
- return request$1({
27538
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27539
- method: 'get',
27540
- converter: function converter(_ref7) {
27541
- var data = _ref7.data;
27542
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27543
- return {
27544
- text: item.name,
27545
- value: item.id,
27546
- level: item.level,
27547
- id: item.id
27548
- };
27549
- }) : [];
27550
- return handleData;
27551
- }
27552
- });
27553
- case 2:
27554
- return _context4.abrupt("return", _context4.sent);
27555
- case 3:
27556
- case "end":
27557
- return _context4.stop();
27558
- }
27643
+ while (1) switch (_context4.prev = _context4.next) {
27644
+ case 0:
27645
+ _context4.next = 2;
27646
+ return request$1({
27647
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27648
+ method: 'get',
27649
+ converter: function converter(_ref7) {
27650
+ var data = _ref7.data;
27651
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27652
+ return {
27653
+ text: item.name,
27654
+ value: item.id,
27655
+ level: item.level,
27656
+ id: item.id
27657
+ };
27658
+ }) : [];
27659
+ return handleData;
27660
+ }
27661
+ });
27662
+ case 2:
27663
+ return _context4.abrupt("return", _context4.sent);
27664
+ case 3:
27665
+ case "end":
27666
+ return _context4.stop();
27559
27667
  }
27560
27668
  }, _callee4);
27561
27669
  })),
@@ -28672,8 +28780,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
28672
28780
  });
28673
28781
  }
28674
28782
  }
28675
-
28676
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28677
28783
  }, {
28678
28784
  key: "render",
28679
28785
  value: function render() {
@@ -29504,6 +29610,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29504
29610
  callBack(ruleClassData);
29505
29611
  });
29506
29612
  };
29613
+ // 树结构 转化成 平行树 (递归函数)
29507
29614
  _this.coverToParallel = function (treeData, result) {
29508
29615
  treeData.forEach(function (el) {
29509
29616
  result.push(el);
@@ -29759,6 +29866,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29759
29866
  callBack(ruleClassData);
29760
29867
  });
29761
29868
  };
29869
+ // 场景需要返回值2022.11.15
29762
29870
  _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
29763
29871
  var _ruleReturnConfig$rig;
29764
29872
  var isShowResponse = itemDetail.response['enable'];
@@ -30056,32 +30164,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30056
30164
  notChangeOnSelect: true,
30057
30165
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
30058
30166
  return _regeneratorRuntime().wrap(function _callee$(_context) {
30059
- while (1) {
30060
- switch (_context.prev = _context.next) {
30061
- case 0:
30062
- _context.next = 2;
30063
- return request$1({
30064
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
30065
- method: 'get',
30066
- converter: function converter(_ref2) {
30067
- var data = _ref2.data;
30068
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
30069
- return {
30070
- text: item.name,
30071
- value: item.id,
30072
- level: item.level,
30073
- id: item.id
30074
- };
30075
- }) : [];
30076
- return handleData;
30077
- }
30078
- });
30079
- case 2:
30080
- return _context.abrupt("return", _context.sent);
30081
- case 3:
30082
- case "end":
30083
- return _context.stop();
30084
- }
30167
+ while (1) switch (_context.prev = _context.next) {
30168
+ case 0:
30169
+ _context.next = 2;
30170
+ return request$1({
30171
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
30172
+ method: 'get',
30173
+ converter: function converter(_ref2) {
30174
+ var data = _ref2.data;
30175
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
30176
+ return {
30177
+ text: item.name,
30178
+ value: item.id,
30179
+ level: item.level,
30180
+ id: item.id
30181
+ };
30182
+ }) : [];
30183
+ return handleData;
30184
+ }
30185
+ });
30186
+ case 2:
30187
+ return _context.abrupt("return", _context.sent);
30188
+ case 3:
30189
+ case "end":
30190
+ return _context.stop();
30085
30191
  }
30086
30192
  }, _callee);
30087
30193
  })),
@@ -30415,6 +30521,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30415
30521
  }
30416
30522
  }, "\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);
30417
30523
  };
30524
+ //添加同一层级条件
30418
30525
  _this.addPeerRule = function (itemDetail) {
30419
30526
  var ruleClassData = _this.state.ruleClassData;
30420
30527
  var _this$props4 = _this.props,
@@ -30435,6 +30542,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30435
30542
  callBack(ruleClassData);
30436
30543
  });
30437
30544
  };
30545
+ //添加子层级条件
30438
30546
  _this.addChildRules = function (itemDetail) {
30439
30547
  var ruleClassData = _this.state.ruleClassData;
30440
30548
  var callBack = _this.props.callBack;
@@ -30510,6 +30618,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30510
30618
  callBack(ruleClassData);
30511
30619
  });
30512
30620
  };
30621
+ // 新增执行顺序
30513
30622
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
30514
30623
  callback();
30515
30624
  var callBack = _this.props.callBack;