@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.js CHANGED
@@ -155,6 +155,33 @@ axios__default['default'].interceptors.request.use(function (config) {
155
155
  return config;
156
156
  });
157
157
 
158
+ function _iterableToArrayLimit(arr, i) {
159
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
160
+ if (null != _i) {
161
+ var _s,
162
+ _e,
163
+ _x,
164
+ _r,
165
+ _arr = [],
166
+ _n = !0,
167
+ _d = !1;
168
+ try {
169
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
170
+ if (Object(_i) !== _i) return;
171
+ _n = !1;
172
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
173
+ } catch (err) {
174
+ _d = !0, _e = err;
175
+ } finally {
176
+ try {
177
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
178
+ } finally {
179
+ if (_d) throw _e;
180
+ }
181
+ }
182
+ return _arr;
183
+ }
184
+ }
158
185
  function ownKeys(object, enumerableOnly) {
159
186
  var keys = Object.keys(object);
160
187
  if (Object.getOwnPropertySymbols) {
@@ -311,14 +338,9 @@ function _regeneratorRuntime() {
311
338
  };
312
339
  }
313
340
  function maybeInvokeDelegate(delegate, context) {
314
- var method = delegate.iterator[context.method];
315
- if (undefined === method) {
316
- if (context.delegate = null, "throw" === context.method) {
317
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
318
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
319
- }
320
- return ContinueSentinel;
321
- }
341
+ var methodName = context.method,
342
+ method = delegate.iterator[methodName];
343
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
322
344
  var record = tryCatch(method, delegate.iterator, context.arg);
323
345
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
324
346
  var info = record.arg;
@@ -532,7 +554,7 @@ function _defineProperties(target, props) {
532
554
  descriptor.enumerable = descriptor.enumerable || false;
533
555
  descriptor.configurable = true;
534
556
  if ("value" in descriptor) descriptor.writable = true;
535
- Object.defineProperty(target, descriptor.key, descriptor);
557
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
536
558
  }
537
559
  }
538
560
  function _createClass(Constructor, protoProps, staticProps) {
@@ -544,6 +566,7 @@ function _createClass(Constructor, protoProps, staticProps) {
544
566
  return Constructor;
545
567
  }
546
568
  function _defineProperty(obj, key, value) {
569
+ key = _toPropertyKey(key);
547
570
  if (key in obj) {
548
571
  Object.defineProperty(obj, key, {
549
572
  value: value,
@@ -686,30 +709,6 @@ function _arrayWithHoles(arr) {
686
709
  function _iterableToArray(iter) {
687
710
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
688
711
  }
689
- function _iterableToArrayLimit(arr, i) {
690
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
691
- if (_i == null) return;
692
- var _arr = [];
693
- var _n = true;
694
- var _d = false;
695
- var _s, _e;
696
- try {
697
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
698
- _arr.push(_s.value);
699
- if (i && _arr.length === i) break;
700
- }
701
- } catch (err) {
702
- _d = true;
703
- _e = err;
704
- } finally {
705
- try {
706
- if (!_n && _i["return"] != null) _i["return"]();
707
- } finally {
708
- if (_d) throw _e;
709
- }
710
- }
711
- return _arr;
712
- }
713
712
  function _unsupportedIterableToArray(o, minLen) {
714
713
  if (!o) return;
715
714
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -729,6 +728,20 @@ function _nonIterableSpread() {
729
728
  function _nonIterableRest() {
730
729
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
731
730
  }
731
+ function _toPrimitive(input, hint) {
732
+ if (typeof input !== "object" || input === null) return input;
733
+ var prim = input[Symbol.toPrimitive];
734
+ if (prim !== undefined) {
735
+ var res = prim.call(input, hint || "default");
736
+ if (typeof res !== "object") return res;
737
+ throw new TypeError("@@toPrimitive must return a primitive value.");
738
+ }
739
+ return (hint === "string" ? String : Number)(input);
740
+ }
741
+ function _toPropertyKey(arg) {
742
+ var key = _toPrimitive(arg, "string");
743
+ return typeof key === "symbol" ? key : String(key);
744
+ }
732
745
 
733
746
  var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
734
747
  var errorMessage = _objectSpread2({
@@ -981,32 +994,35 @@ function handleCommonTimeRender(text, format) {
981
994
  }
982
995
  //设置queryTable默认列宽
983
996
  var getItemDefaultWidth = function getItemDefaultWidth(item) {
997
+ var _ref;
984
998
  var defaultWidth = 200;
985
- var lowerCaseKey = (item.key || item.dataIndex).toLowerCase();
986
- switch (true) {
987
- case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
988
- defaultWidth = 60;
989
- break;
990
- case lowerCaseKey.indexOf('number') > -1:
991
- case lowerCaseKey.indexOf('quantity') > -1:
992
- case lowerCaseKey.indexOf('amount') > -1:
993
- defaultWidth = 90;
994
- break;
995
- case lowerCaseKey.indexOf('no') > -1:
996
- defaultWidth = 200;
997
- break;
998
- case lowerCaseKey.indexOf('code') > -1:
999
- defaultWidth = 170;
1000
- break;
1001
- case lowerCaseKey.indexOf('time') > -1:
1002
- defaultWidth = 130;
1003
- break;
1004
- case lowerCaseKey.indexOf('status') > -1:
1005
- defaultWidth = 100;
1006
- break;
1007
- case lowerCaseKey.indexOf('user') > -1:
1008
- defaultWidth = 130;
1009
- break;
999
+ var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
1000
+ if (lowerCaseKey) {
1001
+ switch (true) {
1002
+ case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
1003
+ defaultWidth = 60;
1004
+ break;
1005
+ case lowerCaseKey.indexOf('number') > -1:
1006
+ case lowerCaseKey.indexOf('quantity') > -1:
1007
+ case lowerCaseKey.indexOf('amount') > -1:
1008
+ defaultWidth = 90;
1009
+ break;
1010
+ case lowerCaseKey.indexOf('no') > -1:
1011
+ defaultWidth = 200;
1012
+ break;
1013
+ case lowerCaseKey.indexOf('code') > -1:
1014
+ defaultWidth = 170;
1015
+ break;
1016
+ case lowerCaseKey.indexOf('time') > -1:
1017
+ defaultWidth = 130;
1018
+ break;
1019
+ case lowerCaseKey.indexOf('status') > -1:
1020
+ defaultWidth = 100;
1021
+ break;
1022
+ case lowerCaseKey.indexOf('user') > -1:
1023
+ defaultWidth = 130;
1024
+ break;
1025
+ }
1010
1026
  }
1011
1027
  return defaultWidth;
1012
1028
  };
@@ -1016,58 +1032,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
1016
1032
  * @returns 返回处理后的查询参数
1017
1033
  */
1018
1034
  function queryParams(params, flag) {
1019
- for (var key in params) {
1035
+ var _loop = function _loop() {
1020
1036
  if (Object.prototype.hasOwnProperty.call(params, key)) {
1021
- (function () {
1022
- var element = params[key];
1023
- if (element && key.indexOf('*number*') >= 0) {
1024
- var dataParams = key.split('*number*');
1025
- dataParams.forEach(function (value, index) {
1026
- params[value] = element[index];
1027
- });
1028
- delete params[key];
1029
- } else if (element && key.indexOf('*address*') >= 0) {
1030
- var _dataParams = key.split('*address*');
1031
- _dataParams.forEach(function (value, index) {
1032
- params[value] = element.PCDCode[index];
1033
- });
1034
- delete params[key];
1035
- } else if (element && key.indexOf('*costType*') >= 0) {
1036
- var _dataParams2 = key.split('*costType*');
1037
- // eslint-disable-next-line prefer-destructuring
1038
- params[_dataParams2[0]] = element[1];
1039
- delete params[key];
1040
- } else if (element && key.indexOf('*fullDate*') >= 0) {
1041
- var _dataParams3 = key.split('*fullDate*');
1042
- _dataParams3.forEach(function (value, index) {
1043
- if (index === 0) {
1044
- params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1045
- } else {
1046
- params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1047
- }
1048
- });
1049
- delete params[key];
1050
- } else if (element && key.indexOf('*') >= 0) {
1051
- var _dataParams4 = key.split('*');
1052
- _dataParams4.forEach(function (value, index) {
1053
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1054
- });
1055
- delete params[key];
1056
- } else if (element && key.indexOf('_likeIn_') >= 0) {
1057
- var _dataParams5 = key.split('_likeIn_');
1058
- if (element.indexOf(',') >= 0) {
1059
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1060
- params["qp-".concat(_dataParams5[0], "-like")] = null;
1037
+ var element = params[key];
1038
+ if (element && key.indexOf('*number*') >= 0) {
1039
+ var dataParams = key.split('*number*');
1040
+ dataParams.forEach(function (value, index) {
1041
+ params[value] = element[index];
1042
+ });
1043
+ delete params[key];
1044
+ } else if (element && key.indexOf('*address*') >= 0) {
1045
+ var _dataParams = key.split('*address*');
1046
+ _dataParams.forEach(function (value, index) {
1047
+ params[value] = element.PCDCode[index];
1048
+ });
1049
+ delete params[key];
1050
+ } else if (element && key.indexOf('*costType*') >= 0) {
1051
+ var _dataParams2 = key.split('*costType*');
1052
+ // eslint-disable-next-line prefer-destructuring
1053
+ params[_dataParams2[0]] = element[1];
1054
+ delete params[key];
1055
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
1056
+ var _dataParams3 = key.split('*fullDate*');
1057
+ _dataParams3.forEach(function (value, index) {
1058
+ if (index === 0) {
1059
+ params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1061
1060
  } else {
1062
- params["qp-".concat(_dataParams5[0], "-like")] = element;
1063
- params["qp-".concat(_dataParams5[0], "-in")] = null;
1061
+ params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1064
1062
  }
1065
- delete params[key];
1066
- } else if (Array.isArray(element)) {
1067
- params[key] = element.join(',');
1063
+ });
1064
+ delete params[key];
1065
+ } else if (element && key.indexOf('*') >= 0) {
1066
+ var _dataParams4 = key.split('*');
1067
+ _dataParams4.forEach(function (value, index) {
1068
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1069
+ });
1070
+ delete params[key];
1071
+ } else if (element && key.indexOf('_likeIn_') >= 0) {
1072
+ var _dataParams5 = key.split('_likeIn_');
1073
+ if (element.indexOf(',') >= 0) {
1074
+ params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1075
+ params["qp-".concat(_dataParams5[0], "-like")] = null;
1076
+ } else {
1077
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
1078
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
1068
1079
  }
1069
- })();
1080
+ delete params[key];
1081
+ } else if (Array.isArray(element)) {
1082
+ params[key] = element.join(',');
1083
+ }
1070
1084
  }
1085
+ };
1086
+ for (var key in params) {
1087
+ _loop();
1071
1088
  }
1072
1089
  return flag ? params : qs.stringify(params);
1073
1090
  }
@@ -2796,84 +2813,85 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2796
2813
  });
2797
2814
  }
2798
2815
  // 数组对象处理,对带有特殊标记的name进行处理
2799
- for (var key in params) {
2816
+ var _loop = function _loop() {
2800
2817
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2801
- (function () {
2802
- var element = params[key];
2803
- if (element && key.indexOf('*number*') >= 0) {
2804
- var dataParams = key.split('*number*');
2805
- dataParams.forEach(function (value, index) {
2806
- params[value] = element[index];
2807
- });
2808
- delete params[key];
2809
- } else if (element && key.indexOf('*address*') >= 0) {
2810
- var _dataParams = key.split('*address*');
2811
- _dataParams.forEach(function (value, index) {
2812
- params[value] = element.PCDCode[index];
2813
- });
2814
- delete params[key];
2815
- } else if (element && key.indexOf('*costType*') >= 0) {
2816
- var _dataParams2 = key.split('*costType*');
2817
- // eslint-disable-next-line prefer-destructuring
2818
- params[_dataParams2[0]] = element[1];
2819
- delete params[key];
2820
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2821
- var _dataParams3 = key.split('*fullDate*');
2822
- _dataParams3.forEach(function (value, index) {
2823
- if (index === 0) {
2824
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2825
- } else {
2826
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2827
- }
2828
- });
2829
- delete params[key];
2830
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2831
- var _dataParams4 = key.split('*checkBox*');
2832
- if (element) {
2833
- params[_dataParams4[0]] = 0;
2818
+ var element = params[key];
2819
+ if (element && key.indexOf('*number*') >= 0) {
2820
+ var dataParams = key.split('*number*');
2821
+ dataParams.forEach(function (value, index) {
2822
+ params[value] = element[index];
2823
+ });
2824
+ delete params[key];
2825
+ } else if (element && key.indexOf('*address*') >= 0) {
2826
+ var _dataParams = key.split('*address*');
2827
+ _dataParams.forEach(function (value, index) {
2828
+ params[value] = element.PCDCode[index];
2829
+ });
2830
+ delete params[key];
2831
+ } else if (element && key.indexOf('*costType*') >= 0) {
2832
+ var _dataParams2 = key.split('*costType*');
2833
+ // eslint-disable-next-line prefer-destructuring
2834
+ params[_dataParams2[0]] = element[1];
2835
+ delete params[key];
2836
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2837
+ var _dataParams3 = key.split('*fullDate*');
2838
+ _dataParams3.forEach(function (value, index) {
2839
+ if (index === 0) {
2840
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2841
+ } else {
2842
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2834
2843
  }
2835
- delete params[key];
2836
- } else if (element && key.indexOf('*cascader*') >= 0) {
2837
- var _dataParams5 = key.split('*cascader*');
2838
- params[_dataParams5[0]] = element[element.length - 1];
2839
- delete params[key];
2840
- } else if (element && key.indexOf('*date*') >= 0) {
2841
- var _dataParams6 = key.split('*date*');
2842
- _dataParams6.forEach(function (value, index) {
2843
- if (index === 0) {
2844
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2845
- } else {
2846
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2847
- }
2848
- });
2849
- delete params[key];
2850
- } else if (element && key.indexOf('*') >= 0) {
2851
- var _dataParams7 = key.split('*');
2852
- _dataParams7.forEach(function (value, index) {
2853
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2854
- });
2855
- delete params[key];
2856
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2857
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2858
- var _dataParams8 = key.split('_selectNumberRange')[0];
2859
- if (params[key][0] === 'range') {
2860
- if (params[key][1][0]) {
2861
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2862
- }
2863
- if (params[key][1][1]) {
2864
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2865
- }
2844
+ });
2845
+ delete params[key];
2846
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2847
+ var _dataParams4 = key.split('*checkBox*');
2848
+ if (element) {
2849
+ params[_dataParams4[0]] = 0;
2850
+ }
2851
+ delete params[key];
2852
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2853
+ var _dataParams5 = key.split('*cascader*');
2854
+ params[_dataParams5[0]] = element[element.length - 1];
2855
+ delete params[key];
2856
+ } else if (element && key.indexOf('*date*') >= 0) {
2857
+ var _dataParams6 = key.split('*date*');
2858
+ _dataParams6.forEach(function (value, index) {
2859
+ if (index === 0) {
2860
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2866
2861
  } else {
2867
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2862
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2863
+ }
2864
+ });
2865
+ delete params[key];
2866
+ } else if (element && key.indexOf('*') >= 0) {
2867
+ var _dataParams7 = key.split('*');
2868
+ _dataParams7.forEach(function (value, index) {
2869
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2870
+ });
2871
+ delete params[key];
2872
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2873
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2874
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2875
+ if (params[key][0] === 'range') {
2876
+ if (params[key][1][0]) {
2877
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2868
2878
  }
2869
- delete params[key];
2870
- } else if (Array.isArray(element)) {
2871
- params[key] = element.join(',');
2872
- } else if (element == null || element === undefined || String(element).trim() === '') {
2873
- delete params[key];
2879
+ if (params[key][1][1]) {
2880
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2881
+ }
2882
+ } else {
2883
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2874
2884
  }
2875
- })();
2885
+ delete params[key];
2886
+ } else if (Array.isArray(element)) {
2887
+ params[key] = element.join(',');
2888
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2889
+ delete params[key];
2890
+ }
2876
2891
  }
2892
+ };
2893
+ for (var key in params) {
2894
+ _loop();
2877
2895
  }
2878
2896
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2879
2897
  pageSize: pageSize,
@@ -3270,7 +3288,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3270
3288
  }
3271
3289
  };
3272
3290
  var themeColor = {
3273
- color: '#1890ff'
3291
+ color: '#02B56E'
3274
3292
  };
3275
3293
  var formItem = function formItem(list) {
3276
3294
  if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
@@ -4222,30 +4240,32 @@ var getItemDefaultWidth$1 = function getItemDefaultWidth(item) {
4222
4240
  var _ref;
4223
4241
  var defaultWidth = 200;
4224
4242
  var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
4225
- switch (true) {
4226
- case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
4227
- defaultWidth = 60;
4228
- break;
4229
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('number')) > -1:
4230
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('quantity')) > -1:
4231
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('amount')) > -1:
4232
- defaultWidth = 90;
4233
- break;
4234
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('no')) > -1:
4235
- defaultWidth = 200;
4236
- break;
4237
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('code')) > -1:
4238
- defaultWidth = 170;
4239
- break;
4240
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('time')) > -1:
4241
- defaultWidth = 130;
4242
- break;
4243
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('status')) > -1:
4244
- defaultWidth = 100;
4245
- break;
4246
- case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('user')) > -1:
4247
- defaultWidth = 130;
4248
- break;
4243
+ if (lowerCaseKey) {
4244
+ switch (true) {
4245
+ case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
4246
+ defaultWidth = 60;
4247
+ break;
4248
+ case lowerCaseKey.indexOf('number') > -1:
4249
+ case lowerCaseKey.indexOf('quantity') > -1:
4250
+ case lowerCaseKey.indexOf('amount') > -1:
4251
+ defaultWidth = 90;
4252
+ break;
4253
+ case lowerCaseKey.indexOf('no') > -1:
4254
+ defaultWidth = 200;
4255
+ break;
4256
+ case lowerCaseKey.indexOf('code') > -1:
4257
+ defaultWidth = 170;
4258
+ break;
4259
+ case lowerCaseKey.indexOf('time') > -1:
4260
+ defaultWidth = 130;
4261
+ break;
4262
+ case lowerCaseKey.indexOf('status') > -1:
4263
+ defaultWidth = 100;
4264
+ break;
4265
+ case lowerCaseKey.indexOf('user') > -1:
4266
+ defaultWidth = 130;
4267
+ break;
4268
+ }
4249
4269
  }
4250
4270
  return defaultWidth;
4251
4271
  };
@@ -4270,8 +4290,6 @@ var getSelectDataList = function getSelectDataList(record, item, selectKey) {
4270
4290
  }
4271
4291
  return result;
4272
4292
  };
4273
-
4274
- var _excluded$3 = ["onResize", "width"];
4275
4293
  var loadSelectSource = function loadSelectSource(url, params) {
4276
4294
  return new Promise(function (resolve, reject) {
4277
4295
  axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(params))).then(function (result) {
@@ -4279,6 +4297,7 @@ var loadSelectSource = function loadSelectSource(url, params) {
4279
4297
  result = result.data;
4280
4298
  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') {
4281
4299
  antd.message.error(result.msg);
4300
+ resolve(result);
4282
4301
  return;
4283
4302
  }
4284
4303
  resolve(result);
@@ -4287,38 +4306,6 @@ var loadSelectSource = function loadSelectSource(url, params) {
4287
4306
  });
4288
4307
  });
4289
4308
  };
4290
- var checkSpuMatchCode = function checkSpuMatchCode(data) {
4291
- return new Promise(function (resolve, reject) {
4292
- axios__default['default'].post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
4293
- var _result3, _result4;
4294
- result = result.data;
4295
- 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') {
4296
- antd.message.error(result.msg);
4297
- reject(false);
4298
- return;
4299
- }
4300
- resolve(result);
4301
- }).catch(function (err) {
4302
- reject(err);
4303
- });
4304
- });
4305
- };
4306
- var ResizeableTitle = function ResizeableTitle(props) {
4307
- var onResize = props.onResize,
4308
- width = props.width,
4309
- restProps = _objectWithoutProperties(props, _excluded$3);
4310
- if (!width) {
4311
- return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
4312
- }
4313
- return /*#__PURE__*/React__default['default'].createElement(reactResizable.Resizable, {
4314
- width: width,
4315
- height: 0,
4316
- onResize: onResize,
4317
- draggableOpts: {
4318
- enableUserSelectHack: false
4319
- }
4320
- }, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
4321
- };
4322
4309
  var formatSource = function formatSource(reData, position, changePosition, changeSearchForm) {
4323
4310
  var _reData$position;
4324
4311
  var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['code', 'name'];
@@ -4358,6 +4345,52 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
4358
4345
  }) || [];
4359
4346
  changeSearchForm[changePosition].field.props.treeData = formatData;
4360
4347
  };
4348
+ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearchForm) {
4349
+ loadList.forEach(function (i, index) {
4350
+ if (i.resType == 'list') {
4351
+ var resKeyValue = i.resKeyValue || ['code', 'name'];
4352
+ formatSource(x, index, i.resPosition, tableSearchForm, resKeyValue);
4353
+ }
4354
+ if (i.resType == 'treeList') {
4355
+ var _resKeyValue = i.resKeyValue || ['id', 'name'];
4356
+ formatTreeDataSource(x, index, i.resPosition, tableSearchForm, _resKeyValue);
4357
+ }
4358
+ });
4359
+ };
4360
+
4361
+ var _excluded$3 = ["onResize", "width"];
4362
+ var checkSpuMatchCode = function checkSpuMatchCode(data) {
4363
+ return new Promise(function (resolve, reject) {
4364
+ axios__default['default'].post("/stock/rwFrontRecordSkcDetail/checkSpuMatchCode", data).then(function (result) {
4365
+ var _result, _result2;
4366
+ result = result.data;
4367
+ 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') {
4368
+ antd.message.error(result.msg);
4369
+ reject(false);
4370
+ return;
4371
+ }
4372
+ resolve(result);
4373
+ }).catch(function (err) {
4374
+ reject(err);
4375
+ });
4376
+ });
4377
+ };
4378
+ var ResizeableTitle = function ResizeableTitle(props) {
4379
+ var onResize = props.onResize,
4380
+ width = props.width,
4381
+ restProps = _objectWithoutProperties(props, _excluded$3);
4382
+ if (!width) {
4383
+ return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
4384
+ }
4385
+ return /*#__PURE__*/React__default['default'].createElement(reactResizable.Resizable, {
4386
+ width: width,
4387
+ height: 0,
4388
+ onResize: onResize,
4389
+ draggableOpts: {
4390
+ enableUserSelectHack: false
4391
+ }
4392
+ }, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
4393
+ };
4361
4394
  var initTableCode = {
4362
4395
  'sku': ['skuSelect-tableOptionsToChoosePartCode', 'skuSelect-tableSelectedItemPartCode'],
4363
4396
  'skc': ['skcSelect-tableOptionsToChoosePartCode', 'skcSelect-tableSelectedItemPartCode'],
@@ -4390,9 +4423,7 @@ var AddSelect = function AddSelect(props) {
4390
4423
  _props$businessType = props.businessType,
4391
4424
  businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
4392
4425
  _props$isAllowRepeate = props.isAllowRepeatedSelect,
4393
- isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate,
4394
- _props$noUseItemEanco = props.noUseItemEancode,
4395
- noUseItemEancode = _props$noUseItemEanco === void 0 ? true : _props$noUseItemEanco;
4426
+ isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate;
4396
4427
  var _ref = requestConfig || {},
4397
4428
  url = _ref.url,
4398
4429
  otherParams = _ref.otherParams,
@@ -4549,76 +4580,74 @@ var AddSelect = function AddSelect(props) {
4549
4580
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4550
4581
  var result;
4551
4582
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4552
- while (1) {
4553
- switch (_context.prev = _context.next) {
4554
- case 0:
4555
- if (!(bType == 'skc' && tList.some(function (i) {
4556
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4557
- }))) {
4558
- _context.next = 3;
4559
- break;
4560
- }
4561
- antd.message.warning('相同skc配码不可设置相同哦');
4562
- return _context.abrupt("return", false);
4563
- case 3:
4564
- if (!(bType == 'spu')) {
4565
- _context.next = 26;
4566
- break;
4567
- }
4568
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4569
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4570
- }))) {
4571
- _context.next = 7;
4572
- break;
4573
- }
4574
- antd.message.warning('相同商品相同配码颜色不可设置相同哦');
4575
- return _context.abrupt("return", false);
4576
- case 7:
4577
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4578
- _context.next = 10;
4579
- break;
4580
- }
4581
- antd.message.warning('请先选择颜色!');
4582
- return _context.abrupt("return", false);
4583
- case 10:
4584
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4585
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4586
- }))) {
4587
- _context.next = 13;
4588
- break;
4589
- }
4590
- antd.message.warning('相同商品相同颜色配码不可设置相同哦');
4591
- return _context.abrupt("return", false);
4592
- case 13:
4593
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4594
- _context.next = 26;
4595
- break;
4596
- }
4597
- result = true;
4598
- _context.prev = 15;
4599
- _context.next = 18;
4600
- return checkSpuMatchCode({
4601
- skcCode: recordItem[recordKey],
4602
- matchingCode: changeValue,
4603
- ext1: recordItem.colorName
4604
- });
4605
- case 18:
4606
- result = _context.sent;
4607
- result = true;
4608
- _context.next = 25;
4583
+ while (1) switch (_context.prev = _context.next) {
4584
+ case 0:
4585
+ if (!(bType == 'skc' && tList.some(function (i) {
4586
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4587
+ }))) {
4588
+ _context.next = 3;
4609
4589
  break;
4610
- case 22:
4611
- _context.prev = 22;
4612
- _context.t0 = _context["catch"](15);
4613
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4614
- case 25:
4615
- return _context.abrupt("return", result);
4616
- case 26:
4617
- return _context.abrupt("return", true);
4618
- case 27:
4619
- case "end":
4620
- return _context.stop();
4621
- }
4590
+ }
4591
+ antd.message.warning('相同skc配码不可设置相同哦');
4592
+ return _context.abrupt("return", false);
4593
+ case 3:
4594
+ if (!(bType == 'spu')) {
4595
+ _context.next = 26;
4596
+ break;
4597
+ }
4598
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4599
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4600
+ }))) {
4601
+ _context.next = 7;
4602
+ break;
4603
+ }
4604
+ antd.message.warning('相同商品相同配码颜色不可设置相同哦');
4605
+ return _context.abrupt("return", false);
4606
+ case 7:
4607
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4608
+ _context.next = 10;
4609
+ break;
4610
+ }
4611
+ antd.message.warning('请先选择颜色!');
4612
+ return _context.abrupt("return", false);
4613
+ case 10:
4614
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4615
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4616
+ }))) {
4617
+ _context.next = 13;
4618
+ break;
4619
+ }
4620
+ antd.message.warning('相同商品相同颜色配码不可设置相同哦');
4621
+ return _context.abrupt("return", false);
4622
+ case 13:
4623
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4624
+ _context.next = 26;
4625
+ break;
4626
+ }
4627
+ result = true;
4628
+ _context.prev = 15;
4629
+ _context.next = 18;
4630
+ return checkSpuMatchCode({
4631
+ skcCode: recordItem[recordKey],
4632
+ matchingCode: changeValue,
4633
+ ext1: recordItem.colorName
4634
+ });
4635
+ case 18:
4636
+ result = _context.sent;
4637
+ result = true;
4638
+ _context.next = 25;
4639
+ break;
4640
+ case 22:
4641
+ _context.prev = 22;
4642
+ _context.t0 = _context["catch"](15);
4643
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4644
+ case 25:
4645
+ return _context.abrupt("return", result);
4646
+ case 26:
4647
+ return _context.abrupt("return", true);
4648
+ case 27:
4649
+ case "end":
4650
+ return _context.stop();
4622
4651
  }
4623
4652
  }, _callee, null, [[15, 22]]);
4624
4653
  }));
@@ -4810,29 +4839,27 @@ var AddSelect = function AddSelect(props) {
4810
4839
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4811
4840
  var isConformToTheRules, newPopValue;
4812
4841
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4813
- while (1) {
4814
- switch (_context2.prev = _context2.next) {
4815
- case 0:
4816
- _context2.next = 2;
4817
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4818
- case 2:
4819
- isConformToTheRules = _context2.sent;
4820
- if (isConformToTheRules) {
4821
- record[item.dataIndex] = value;
4822
- } else {
4823
- record[item.dataIndex] = null;
4842
+ while (1) switch (_context2.prev = _context2.next) {
4843
+ case 0:
4844
+ _context2.next = 2;
4845
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4846
+ case 2:
4847
+ isConformToTheRules = _context2.sent;
4848
+ if (isConformToTheRules) {
4849
+ record[item.dataIndex] = value;
4850
+ } else {
4851
+ record[item.dataIndex] = null;
4852
+ }
4853
+ newPopValue = popvalue.map(function (i, innerIndex) {
4854
+ if (innerIndex == index) {
4855
+ i[item.dataIndex] = record[item.dataIndex];
4824
4856
  }
4825
- newPopValue = popvalue.map(function (i, innerIndex) {
4826
- if (innerIndex == index) {
4827
- i[item.dataIndex] = record[item.dataIndex];
4828
- }
4829
- return i;
4830
- });
4831
- setPopValue(newPopValue);
4832
- case 6:
4833
- case "end":
4834
- return _context2.stop();
4835
- }
4857
+ return i;
4858
+ });
4859
+ setPopValue(newPopValue);
4860
+ case 6:
4861
+ case "end":
4862
+ return _context2.stop();
4836
4863
  }
4837
4864
  }, _callee2);
4838
4865
  }));
@@ -4892,94 +4919,95 @@ var AddSelect = function AddSelect(props) {
4892
4919
  });
4893
4920
  }
4894
4921
  // 数组对象处理,对带有特殊标记的name进行处理
4895
- for (var key in params) {
4922
+ var _loop = function _loop() {
4896
4923
  if (Object.prototype.hasOwnProperty.call(params, key)) {
4897
- (function () {
4898
- var element = params[key];
4899
- if (element && key.indexOf('*number*') >= 0) {
4900
- var dataParams = key.split('*number*');
4901
- dataParams.forEach(function (value, index) {
4902
- params[value] = element[index];
4903
- });
4904
- delete params[key];
4905
- } else if (element && key.indexOf('*address*') >= 0) {
4906
- var _dataParams = key.split('*address*');
4907
- _dataParams.forEach(function (value, index) {
4908
- params[value] = element.PCDCode[index];
4909
- });
4910
- delete params[key];
4911
- } else if (element && key.indexOf('*costType*') >= 0) {
4912
- var _dataParams2 = key.split('*costType*');
4913
- // eslint-disable-next-line prefer-destructuring
4914
- params[_dataParams2[0]] = element[1];
4915
- delete params[key];
4916
- } else if (element && key.indexOf('*fullDate*') >= 0) {
4917
- var _dataParams3 = key.split('*fullDate*');
4918
- _dataParams3.forEach(function (value, index) {
4919
- if (index === 0) {
4920
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4921
- } else {
4922
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4923
- }
4924
- });
4925
- delete params[key];
4926
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4927
- var _dataParams4 = key.split('*checkBox*');
4928
- if (element) {
4929
- params[_dataParams4[0]] = 0;
4924
+ var element = params[key];
4925
+ if (element && key.indexOf('*number*') >= 0) {
4926
+ var dataParams = key.split('*number*');
4927
+ dataParams.forEach(function (value, index) {
4928
+ params[value] = element[index];
4929
+ });
4930
+ delete params[key];
4931
+ } else if (element && key.indexOf('*address*') >= 0) {
4932
+ var _dataParams = key.split('*address*');
4933
+ _dataParams.forEach(function (value, index) {
4934
+ params[value] = element.PCDCode[index];
4935
+ });
4936
+ delete params[key];
4937
+ } else if (element && key.indexOf('*costType*') >= 0) {
4938
+ var _dataParams2 = key.split('*costType*');
4939
+ // eslint-disable-next-line prefer-destructuring
4940
+ params[_dataParams2[0]] = element[1];
4941
+ delete params[key];
4942
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4943
+ var _dataParams3 = key.split('*fullDate*');
4944
+ _dataParams3.forEach(function (value, index) {
4945
+ if (index === 0) {
4946
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4947
+ } else {
4948
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4930
4949
  }
4931
- delete params[key];
4932
- } else if (element && key.indexOf('*cascader*') >= 0) {
4933
- var _dataParams5 = key.split('*cascader*');
4934
- params[_dataParams5[0]] = element[element.length - 1];
4935
- delete params[key];
4936
- } else if (element && key.indexOf('*date*') >= 0) {
4937
- var _dataParams6 = key.split('*date*');
4938
- _dataParams6.forEach(function (value, index) {
4939
- if (index === 0) {
4940
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4941
- } else {
4942
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4943
- }
4944
- });
4945
- delete params[key];
4946
- } else if (element && key.indexOf('*') >= 0) {
4947
- var _dataParams7 = key.split('*');
4948
- _dataParams7.forEach(function (value, index) {
4949
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4950
- });
4951
- delete params[key];
4952
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4953
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
4954
- var _dataParams8 = key.split('_selectNumberRange')[0];
4955
- if (params[key][0] === 'range') {
4956
- if (params[key][1][0]) {
4957
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4958
- }
4959
- if (params[key][1][1]) {
4960
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4961
- }
4950
+ });
4951
+ delete params[key];
4952
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4953
+ var _dataParams4 = key.split('*checkBox*');
4954
+ if (element) {
4955
+ params[_dataParams4[0]] = 0;
4956
+ }
4957
+ delete params[key];
4958
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4959
+ var _dataParams5 = key.split('*cascader*');
4960
+ params[_dataParams5[0]] = element[element.length - 1];
4961
+ delete params[key];
4962
+ } else if (element && key.indexOf('*date*') >= 0) {
4963
+ var _dataParams6 = key.split('*date*');
4964
+ _dataParams6.forEach(function (value, index) {
4965
+ if (index === 0) {
4966
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4962
4967
  } else {
4963
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4968
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4964
4969
  }
4965
- delete params[key];
4966
- } else if (Array.isArray(element)) {
4967
- params[key] = element.join(',');
4968
- } else if (element == null || element === undefined || String(element).trim() === '') {
4969
- delete params[key];
4970
+ });
4971
+ delete params[key];
4972
+ } else if (element && key.indexOf('*') >= 0) {
4973
+ var _dataParams7 = key.split('*');
4974
+ _dataParams7.forEach(function (value, index) {
4975
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4976
+ });
4977
+ delete params[key];
4978
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4979
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4980
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4981
+ if (params[key][0] === 'range') {
4982
+ if (params[key][1][0]) {
4983
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4984
+ }
4985
+ if (params[key][1][1]) {
4986
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4987
+ }
4988
+ } else {
4989
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4970
4990
  }
4971
- })();
4991
+ delete params[key];
4992
+ } else if (Array.isArray(element)) {
4993
+ params[key] = element.join(',');
4994
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4995
+ delete params[key];
4996
+ }
4972
4997
  }
4998
+ };
4999
+ for (var key in params) {
5000
+ _loop();
4973
5001
  }
4974
5002
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4975
5003
  pageSize: pageSize,
4976
5004
  currentPage: currentPage
4977
5005
  }, otherParams), fixedParam), params);
4978
5006
  axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(queryParams))).then(function (result) {
4979
- var _result5, _result6;
5007
+ var _result3, _result4;
4980
5008
  setFetching(false);
4981
5009
  result = result.data;
4982
- 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') {
5010
+ 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') {
4983
5011
  antd.message.error(result.msg);
4984
5012
  return;
4985
5013
  }
@@ -5060,65 +5088,14 @@ var AddSelect = function AddSelect(props) {
5060
5088
  };
5061
5089
 
5062
5090
  React.useEffect(function () {
5063
- if (businessType == 'sku') {
5064
- Promise.all([loadSelectSource("/items/brand/queryBrandList", {
5065
- pageSize: 5000,
5066
- currentPage: 1,
5067
- 'ctl-withAuth': true
5068
- }), loadSelectSource("/items/category/queryCategoryTree", {
5069
- pageSize: 5000,
5070
- currentPage: 1
5071
- })]).then(function (x) {
5072
- var searchPosition1 = noUseItemEancode ? 3 : 2;
5073
- var searchPosition2 = noUseItemEancode ? 4 : 3;
5074
- formatSource(x, 0, searchPosition1, tableSearchForm, ['id', 'name']);
5075
- formatTreeDataSource(x, 1, searchPosition2, tableSearchForm);
5076
- });
5077
- }
5078
- if (businessType == 'skc') {
5079
- Promise.all([loadSelectSource("/items/item/propertyValue/sizeBySkcConfig", {
5080
- pageSize: 10000,
5081
- currentPage: 1,
5082
- type: 2 // 类型:1尺码;2颜色
5083
- }), loadSelectSource("/items/category/queryCategoryTree", {
5084
- pageSize: 5000,
5085
- currentPage: 1
5086
- }), loadSelectSource("/items/class/withProperty", {
5087
- pageSize: 5000,
5088
- currentPage: 1
5089
- }), loadSelectSource("/items/brand/queryBrandList", {
5090
- pageSize: 5000,
5091
- currentPage: 1,
5092
- 'ctl-withAuth': true
5093
- })]).then(function (x) {
5094
- formatSource(x, 0, 3, tableSearchForm, ['value', 'value']);
5095
- formatTreeDataSource(x, 1, 4, tableSearchForm);
5096
- formatSource(x, 2, 5, tableSearchForm, ['id', 'name']);
5097
- formatSource(x, 3, 6, tableSearchForm, ['id', 'name']);
5098
- });
5099
- }
5100
- if (businessType == 'spu') {
5101
- Promise.all([loadSelectSource("/user/orgViewNode/listNoPage", {
5102
- 'qp-employeeId-eq': getEmployeeId(),
5103
- 'qp-orgViewCode-eq': 'business-organizational-view',
5104
- 'ctl-withDefaultOrg': true
5105
- }), loadSelectSource("/items/brand/queryBrandList", {
5106
- pageSize: 5000,
5107
- currentPage: 1,
5108
- 'ctl-withAuth': true
5109
- }), loadSelectSource("/items/category/queryCategoryTree", {
5110
- pageSize: 5000,
5111
- currentPage: 1
5112
- }), loadSelectSource("/items/class/withProperty", {
5113
- pageSize: 5000,
5114
- currentPage: 1
5115
- })]).then(function (x) {
5116
- formatSource(x, 0, 2, tableSearchForm, ['targetId', 'name']);
5117
- formatSource(x, 1, 3, tableSearchForm, ['id', 'name']);
5118
- formatTreeDataSource(x, 2, 4, tableSearchForm);
5119
- formatSource(x, 3, 5, tableSearchForm, ['id', 'name']);
5120
- });
5121
- }
5091
+ var pList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.promiseLoadList) || [];
5092
+ if (!(pList === null || pList === void 0 ? void 0 : pList.length)) return;
5093
+ var list = pList.map(function (i) {
5094
+ return loadSelectSource(i.url, i.params);
5095
+ });
5096
+ Promise.all(list).then(function (x) {
5097
+ formatFormSourceList(x, pList, tableSearchForm);
5098
+ });
5122
5099
  }, [businessType]);
5123
5100
  React.useEffect(function () {
5124
5101
  if (value) {
@@ -5399,10 +5376,10 @@ var AddSelect = function AddSelect(props) {
5399
5376
  setSelectedRowKeys([]);
5400
5377
  } else {
5401
5378
  setPopValue(popvalue.filter(function (item) {
5402
- return item.skuCode !== record.skuCode;
5379
+ return item[selectRowKey] !== record[selectRowKey];
5403
5380
  }));
5404
5381
  setSelectedRowKeys(_toConsumableArray(selectedRowKeys.filter(function (item) {
5405
- return item !== record.skuCode;
5382
+ return item !== record[selectRowKey];
5406
5383
  })));
5407
5384
  }
5408
5385
  };
@@ -6426,72 +6403,70 @@ var BillEntry = function BillEntry(_ref3) {
6426
6403
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6427
6404
  var canEntryObject, _canEntryObject$error, messageInfo;
6428
6405
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6429
- while (1) {
6430
- switch (_context.prev = _context.next) {
6431
- case 0:
6432
- if (data === null || data === void 0 ? void 0 : data.length) {
6433
- _context.next = 3;
6434
- break;
6435
- }
6436
- antd.message.warning('至少录入一条数据');
6437
- return _context.abrupt("return");
6438
- case 3:
6439
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6440
- return d.skuCode && d.name;
6441
- })) {
6442
- _context.next = 6;
6443
- break;
6444
- }
6445
- antd.message.warning('请选择商品!');
6446
- return _context.abrupt("return");
6447
- case 6:
6448
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6449
- return d.count;
6450
- })) {
6451
- _context.next = 9;
6452
- break;
6453
- }
6454
- antd.message.warning('请填写商品数量!');
6455
- return _context.abrupt("return");
6456
- case 9:
6457
- _context.next = 11;
6458
- return isSkuCanEntry(data);
6459
- case 11:
6460
- canEntryObject = _context.sent;
6461
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6462
- _context.next = 16;
6463
- break;
6464
- }
6465
- messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
6466
- return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6467
- }));
6468
- messageInfo && antd.message.warning({
6469
- content: messageInfo,
6470
- duration: 6
6471
- });
6472
- return _context.abrupt("return");
6473
- case 16:
6474
- setLoading(true);
6475
- onSaveCallback(data).then(function (res) {
6476
- {
6477
- var _Object$keys;
6478
- var initSuccessMessage = '保存成功';
6479
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6480
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6481
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6482
- } else {
6483
- antd.message.success(initSuccessMessage);
6484
- }
6406
+ while (1) switch (_context.prev = _context.next) {
6407
+ case 0:
6408
+ if (data === null || data === void 0 ? void 0 : data.length) {
6409
+ _context.next = 3;
6410
+ break;
6411
+ }
6412
+ antd.message.warning('至少录入一条数据');
6413
+ return _context.abrupt("return");
6414
+ case 3:
6415
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6416
+ return d.skuCode && d.name;
6417
+ })) {
6418
+ _context.next = 6;
6419
+ break;
6420
+ }
6421
+ antd.message.warning('请选择商品!');
6422
+ return _context.abrupt("return");
6423
+ case 6:
6424
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6425
+ return d.count;
6426
+ })) {
6427
+ _context.next = 9;
6428
+ break;
6429
+ }
6430
+ antd.message.warning('请填写商品数量!');
6431
+ return _context.abrupt("return");
6432
+ case 9:
6433
+ _context.next = 11;
6434
+ return isSkuCanEntry(data);
6435
+ case 11:
6436
+ canEntryObject = _context.sent;
6437
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6438
+ _context.next = 16;
6439
+ break;
6440
+ }
6441
+ 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) {
6442
+ return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6443
+ }));
6444
+ messageInfo && antd.message.warning({
6445
+ content: messageInfo,
6446
+ duration: 6
6447
+ });
6448
+ return _context.abrupt("return");
6449
+ case 16:
6450
+ setLoading(true);
6451
+ onSaveCallback(data).then(function (res) {
6452
+ {
6453
+ var _Object$keys;
6454
+ var initSuccessMessage = '保存成功';
6455
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6456
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6457
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6458
+ } else {
6459
+ antd.message.success(initSuccessMessage);
6485
6460
  }
6486
- setLoading(false);
6487
- }).catch(function (Error) {
6488
- antd.message.error(Error);
6489
- setLoading(false);
6490
- });
6491
- case 18:
6492
- case "end":
6493
- return _context.stop();
6494
- }
6461
+ }
6462
+ setLoading(false);
6463
+ }).catch(function (Error) {
6464
+ antd.message.error(Error);
6465
+ setLoading(false);
6466
+ });
6467
+ case 18:
6468
+ case "end":
6469
+ return _context.stop();
6495
6470
  }
6496
6471
  }, _callee);
6497
6472
  }));
@@ -8735,9 +8710,16 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Busines
8735
8710
  // import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
8736
8711
  function handleSelectColumn(c, parentProps) {
8737
8712
  var result = c;
8713
+ var showColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showColumns) || [];
8738
8714
  var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
8739
8715
  var coverColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverColumns) || [];
8740
8716
  var additionColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.additionColumns) || [];
8717
+ // 仅展示内容
8718
+ if (showColumns === null || showColumns === void 0 ? void 0 : showColumns.length) {
8719
+ result = result.filter(function (i) {
8720
+ return showColumns.includes(i.dataIndex);
8721
+ });
8722
+ }
8741
8723
  // 过滤不需要展示内容
8742
8724
  if (exceptColumns === null || exceptColumns === void 0 ? void 0 : exceptColumns.length) {
8743
8725
  result = result.filter(function (i) {
@@ -8756,6 +8738,57 @@ function handleSelectColumn(c, parentProps) {
8756
8738
  }
8757
8739
  return result;
8758
8740
  }
8741
+ function handleSearchForm(c, parentProps) {
8742
+ var result = c;
8743
+ var showTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showTableSearchForm) || [];
8744
+ var exceptTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableSearchForm) || [];
8745
+ var coverTableSearchForm = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableSearchForm) || [];
8746
+ // 仅展示内容
8747
+ if (showTableSearchForm === null || showTableSearchForm === void 0 ? void 0 : showTableSearchForm.length) {
8748
+ result = result.filter(function (i) {
8749
+ return showTableSearchForm.includes(i.name);
8750
+ });
8751
+ }
8752
+ // 过滤不需要展示内容
8753
+ if (exceptTableSearchForm === null || exceptTableSearchForm === void 0 ? void 0 : exceptTableSearchForm.length) {
8754
+ result = result.filter(function (i) {
8755
+ return !exceptTableSearchForm.includes(i.name);
8756
+ });
8757
+ }
8758
+ // 覆盖内容
8759
+ if (coverTableSearchForm === null || coverTableSearchForm === void 0 ? void 0 : coverTableSearchForm.length) {
8760
+ result = coverTableSearchForm;
8761
+ }
8762
+ return result;
8763
+ }
8764
+ function handleFormSearchSourceLoad(c, parentProps) {
8765
+ var result = c;
8766
+ var showTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.showTableFormSearchSourceLoad) || [];
8767
+ var exceptTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptTableFormSearchSourceLoad) || [];
8768
+ var coverTableFormSearchSourceLoad = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.coverTableFormSearchSourceLoad) || [];
8769
+ var noNeedTableFormSearchSourceLoad = parentProps === null || parentProps === void 0 ? void 0 : parentProps.noNeedTableFormSearchSourceLoad;
8770
+ // 仅展示内容
8771
+ if (showTableFormSearchSourceLoad === null || showTableFormSearchSourceLoad === void 0 ? void 0 : showTableFormSearchSourceLoad.length) {
8772
+ result = result.filter(function (i) {
8773
+ return showTableFormSearchSourceLoad.includes(i.url);
8774
+ });
8775
+ }
8776
+ // 过滤不需要展示内容
8777
+ if (exceptTableFormSearchSourceLoad === null || exceptTableFormSearchSourceLoad === void 0 ? void 0 : exceptTableFormSearchSourceLoad.length) {
8778
+ result = result.filter(function (i) {
8779
+ return !exceptTableFormSearchSourceLoad.includes(i.url);
8780
+ });
8781
+ }
8782
+ // 覆盖内容
8783
+ if (coverTableFormSearchSourceLoad === null || coverTableFormSearchSourceLoad === void 0 ? void 0 : coverTableFormSearchSourceLoad.length) {
8784
+ result = coverTableFormSearchSourceLoad;
8785
+ }
8786
+ // 不需要默认请求
8787
+ if (noNeedTableFormSearchSourceLoad) {
8788
+ result = [];
8789
+ }
8790
+ return result;
8791
+ }
8759
8792
  var AddSkuSelect = function AddSkuSelect(parProps) {
8760
8793
  var _parProps$requestConf, _parProps$requestConf2;
8761
8794
  var selectProps = {
@@ -8862,234 +8895,258 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
8862
8895
  dataIndex: 'propertyNameAndValue'
8863
8896
  }]);
8864
8897
  var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
8865
- var props = {
8866
- buttonText: parProps.buttonText || '新增',
8867
- buttonProps: parProps.buttonProps || {},
8868
- tableCodeList: parProps.tableCodeList || [],
8869
- value: value,
8870
- // labelInValue: true, // 非必填 默认为false
8871
- requestConfig: _objectSpread2({
8872
- url: "/items/sku/pager/v2",
8873
- filter: 'qp-name-like',
8874
- otherParams: _objectSpread2({
8875
- 'qp-combination-eq': false,
8876
- 'qp-approveStatus-eq': 1,
8877
- 'qp-status-eq': 1
8878
- }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
8879
- mappingTextField: 'name',
8880
- mappingValueField: 'skuCode'
8881
- }, parProps.requestConfig),
8882
- selectProps: selectProps,
8883
- onChange: function onChange(value) {
8884
- console.log(value);
8885
- setValue(value);
8898
+ var initialTableColumn = [{
8899
+ title: 'SKU编码',
8900
+ width: 150,
8901
+ dataIndex: 'skuCode'
8902
+ }, {
8903
+ title: 'SKU名称',
8904
+ width: 200,
8905
+ ellipsis: {
8906
+ showTitle: false
8886
8907
  },
8887
- beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
8888
- onSaveCallback: parProps.onSaveCallback,
8889
- businessType: 'sku',
8890
- isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect),
8891
- noUseItemEancode: isNoUseItemBarcode
8892
- };
8893
- var modalTableProps = {
8894
- modalTableTitle: '选择商品',
8895
- tableSearchForm: [{
8896
- name: 'qp-skuCode-like',
8897
- label: 'SKU编码'
8898
- }, {
8899
- name: 'qp-skuName-like',
8900
- label: 'SKU名称'
8901
- }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
8902
- name: 'qp-code-in',
8903
- label: '商品条码',
8904
- field: {
8905
- type: 'multipleQueryInput',
8906
- props: _objectSpread2({}, ((_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.itemEancodeValueRequestConfig) || {})
8907
- }
8908
- }]), [{
8909
- name: 'qp-brandId-in',
8908
+ render: function render(text) {
8909
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
8910
+ placement: "topLeft",
8911
+ title: text
8912
+ }, text);
8913
+ },
8914
+ dataIndex: 'name'
8915
+ }, {
8916
+ title: '图片',
8917
+ dataIndex: 'itemUrl',
8918
+ width: 200,
8919
+ ellipsis: {
8920
+ showTitle: false
8921
+ },
8922
+ render: function render(text, record) {
8923
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
8924
+ placement: "topLeft",
8925
+ title: text
8926
+ }, tableColumnsImage(getSkuImg(record), {
8927
+ width: 20,
8928
+ height: 20
8929
+ }));
8930
+ }
8931
+ }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
8932
+ title: '商品条码',
8933
+ width: 100,
8934
+ ellipsis: {
8935
+ showTitle: false
8936
+ },
8937
+ dataIndex: 'itemEancode',
8938
+ render: function render(text) {
8939
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
8940
+ placement: "topLeft",
8941
+ title: text
8942
+ }, text);
8943
+ }
8944
+ }]), [{
8945
+ title: '所属SPU名称',
8946
+ width: 100,
8947
+ ellipsis: {
8948
+ showTitle: false
8949
+ },
8950
+ dataIndex: 'itemName',
8951
+ render: function render(text) {
8952
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
8953
+ placement: "topLeft",
8954
+ title: text
8955
+ }, text);
8956
+ }
8957
+ }, {
8958
+ title: '所属SPU编码',
8959
+ width: 100,
8960
+ ellipsis: {
8961
+ showTitle: false
8962
+ },
8963
+ dataIndex: 'itemCode',
8964
+ render: function render(text) {
8965
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
8966
+ placement: "topLeft",
8967
+ title: text
8968
+ }, text);
8969
+ }
8970
+ }, {
8971
+ title: '外部编码',
8972
+ width: 100,
8973
+ ellipsis: {
8974
+ showTitle: false
8975
+ },
8976
+ render: function render(text) {
8977
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
8978
+ placement: "topLeft",
8979
+ title: text
8980
+ }, text);
8981
+ },
8982
+ dataIndex: 'externalCode'
8983
+ }, {
8984
+ title: '规格',
8985
+ width: 100,
8986
+ ellipsis: {
8987
+ showTitle: false
8988
+ },
8989
+ render: function render(text) {
8990
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
8991
+ placement: "topLeft",
8992
+ title: text
8993
+ }, text);
8994
+ },
8995
+ dataIndex: 'propertyNameAndValue'
8996
+ }, {
8997
+ title: '类目',
8998
+ width: 100,
8999
+ ellipsis: {
9000
+ showTitle: false
9001
+ },
9002
+ render: function render(text) {
9003
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
9004
+ placement: "topLeft",
9005
+ title: text
9006
+ }, text);
9007
+ },
9008
+ dataIndex: 'categoryName'
9009
+ }, {
9010
+ title: '品类',
9011
+ width: 100,
9012
+ ellipsis: {
9013
+ showTitle: false
9014
+ },
9015
+ render: function render(text) {
9016
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
9017
+ placement: "topLeft",
9018
+ title: text
9019
+ }, text);
9020
+ },
9021
+ dataIndex: 'className'
9022
+ }, {
9023
+ title: '品牌',
9024
+ width: 100,
9025
+ ellipsis: {
9026
+ showTitle: false
9027
+ },
9028
+ render: function render(text) {
9029
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
9030
+ placement: "topLeft",
9031
+ title: text
9032
+ }, text);
9033
+ },
9034
+ dataIndex: 'brandName'
9035
+ }]);
9036
+ var mTpTableColumn = handleSelectColumn(initialTableColumn, parProps);
9037
+ var initialTableSearchForm = [{
9038
+ name: 'qp-skuCode-like',
9039
+ label: 'SKU编码'
9040
+ }, {
9041
+ name: 'qp-skuName-like',
9042
+ label: 'SKU名称'
9043
+ }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
9044
+ name: 'qp-code-in',
9045
+ label: '商品条码',
9046
+ field: {
9047
+ type: 'multipleQueryInput',
9048
+ props: _objectSpread2({}, ((_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.itemEancodeValueRequestConfig) || {})
9049
+ }
9050
+ }]), [{
9051
+ name: 'qp-brandId-in',
9052
+ type: 'select',
9053
+ label: '品牌',
9054
+ field: {
8910
9055
  type: 'select',
8911
- label: '品牌',
8912
- field: {
8913
- type: 'select',
8914
- props: {
8915
- mode: 'multiple',
8916
- notFoundContent: '暂无数据',
8917
- allowClear: true,
8918
- showSearch: true,
8919
- showArrow: true,
8920
- maxTagCount: 1,
8921
- optionFilterProp: 'children',
8922
- filterOption: function filterOption(input, option) {
8923
- return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
8924
- }
8925
- }
8926
- }
8927
- }, {
8928
- name: 'qp-categoryId-in',
8929
- type: 'treeSelect',
8930
- label: '类目',
8931
- field: {
8932
- type: 'treeSelect',
8933
- props: {
8934
- treeData: [],
8935
- treeCheckable: true,
8936
- showSearch: true,
8937
- allowClear: true,
8938
- showArrow: true,
8939
- treeNodeFilterProp: 'title',
8940
- treeDefaultExpandAll: true,
8941
- maxTagCount: 1,
8942
- placeholder: '请选择',
8943
- style: {
8944
- width: '100%'
8945
- },
8946
- dropdownStyle: {
8947
- maxHeight: 400,
8948
- maxWidth: 100,
8949
- overflow: 'auto'
8950
- }
9056
+ props: {
9057
+ mode: 'multiple',
9058
+ notFoundContent: '暂无数据',
9059
+ allowClear: true,
9060
+ showSearch: true,
9061
+ showArrow: true,
9062
+ maxTagCount: 1,
9063
+ optionFilterProp: 'children',
9064
+ filterOption: function filterOption(input, option) {
9065
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
8951
9066
  }
8952
9067
  }
8953
- }]),
8954
- tableColumns: [{
8955
- title: 'SKU编码',
8956
- width: 150,
8957
- dataIndex: 'skuCode'
8958
- }, {
8959
- title: 'SKU名称',
8960
- width: 200,
8961
- ellipsis: {
8962
- showTitle: false
8963
- },
8964
- render: function render(text) {
8965
- return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
8966
- placement: "topLeft",
8967
- title: text
8968
- }, text);
8969
- },
8970
- dataIndex: 'name'
8971
- }, {
8972
- title: '图片',
8973
- dataIndex: 'itemUrl',
8974
- width: 200,
8975
- ellipsis: {
8976
- showTitle: false
8977
- },
8978
- render: function render(text, record) {
8979
- return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
8980
- placement: "topLeft",
8981
- title: text
8982
- }, tableColumnsImage(getSkuImg(record), {
8983
- width: 20,
8984
- height: 20
8985
- }));
8986
- }
8987
- }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
8988
- title: '商品条码',
8989
- width: 100,
8990
- ellipsis: {
8991
- showTitle: false
8992
- },
8993
- dataIndex: 'itemEancode',
8994
- render: function render(text) {
8995
- return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
8996
- placement: "topLeft",
8997
- title: text
8998
- }, text);
8999
- }
9000
- }]), [{
9001
- title: '所属SPU名称',
9002
- width: 100,
9003
- ellipsis: {
9004
- showTitle: false
9005
- },
9006
- dataIndex: 'itemName',
9007
- render: function render(text) {
9008
- return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
9009
- placement: "topLeft",
9010
- title: text
9011
- }, text);
9012
- }
9013
- }, {
9014
- title: '所属SPU编码',
9015
- width: 100,
9016
- ellipsis: {
9017
- showTitle: false
9018
- },
9019
- dataIndex: 'itemCode',
9020
- render: function render(text) {
9021
- return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
9022
- placement: "topLeft",
9023
- title: text
9024
- }, text);
9068
+ }
9069
+ }, {
9070
+ name: 'qp-categoryId-in',
9071
+ type: 'treeSelect',
9072
+ label: '类目',
9073
+ field: {
9074
+ type: 'treeSelect',
9075
+ props: {
9076
+ treeData: [],
9077
+ treeCheckable: true,
9078
+ showSearch: true,
9079
+ allowClear: true,
9080
+ showArrow: true,
9081
+ treeNodeFilterProp: 'title',
9082
+ treeDefaultExpandAll: true,
9083
+ maxTagCount: 1,
9084
+ placeholder: '请选择',
9085
+ style: {
9086
+ width: '100%'
9087
+ },
9088
+ dropdownStyle: {
9089
+ maxHeight: 400,
9090
+ maxWidth: 100,
9091
+ overflow: 'auto'
9092
+ }
9025
9093
  }
9026
- }, {
9027
- title: '外部编码',
9028
- width: 100,
9029
- ellipsis: {
9030
- showTitle: false
9031
- },
9032
- render: function render(text) {
9033
- return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
9034
- placement: "topLeft",
9035
- title: text
9036
- }, text);
9037
- },
9038
- dataIndex: 'externalCode'
9039
- }, {
9040
- title: '规格',
9041
- width: 100,
9042
- ellipsis: {
9043
- showTitle: false
9044
- },
9045
- render: function render(text) {
9046
- return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
9047
- placement: "topLeft",
9048
- title: text
9049
- }, text);
9050
- },
9051
- dataIndex: 'propertyNameAndValue'
9052
- }, {
9053
- title: '类目',
9054
- width: 100,
9055
- ellipsis: {
9056
- showTitle: false
9057
- },
9058
- render: function render(text) {
9059
- return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
9060
- placement: "topLeft",
9061
- title: text
9062
- }, text);
9063
- },
9064
- dataIndex: 'categoryName'
9065
- }, {
9066
- title: '品类',
9067
- width: 100,
9068
- ellipsis: {
9069
- showTitle: false
9070
- },
9071
- render: function render(text) {
9072
- return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
9073
- placement: "topLeft",
9074
- title: text
9075
- }, text);
9076
- },
9077
- dataIndex: 'className'
9078
- }, {
9079
- title: '品牌',
9080
- width: 100,
9081
- ellipsis: {
9082
- showTitle: false
9083
- },
9084
- render: function render(text) {
9085
- return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
9086
- placement: "topLeft",
9087
- title: text
9088
- }, text);
9089
- },
9090
- dataIndex: 'brandName'
9091
- }]),
9092
- selectColumn: mTpSelectColumn
9094
+ }
9095
+ }], _toConsumableArray((parProps === null || parProps === void 0 ? void 0 : parProps.addTableSearchForm) || []));
9096
+ var mTpTableSearchForm = handleSearchForm(initialTableSearchForm, parProps);
9097
+ var initialPromiseLoadList = [{
9098
+ url: "/items/brand/queryBrandList",
9099
+ params: {
9100
+ pageSize: 5000,
9101
+ currentPage: 1,
9102
+ 'ctl-withAuth': true
9103
+ },
9104
+ resType: 'list',
9105
+ resPosition: isNoUseItemBarcode ? 2 : 3,
9106
+ resKeyValue: ['id', 'name']
9107
+ }, {
9108
+ url: "/items/category/queryCategoryTree",
9109
+ params: {
9110
+ pageSize: 5000,
9111
+ currentPage: 1
9112
+ },
9113
+ resType: 'treeList',
9114
+ resPosition: isNoUseItemBarcode ? 3 : 4
9115
+ }];
9116
+ var mTpPromiseLoadList = handleFormSearchSourceLoad(initialPromiseLoadList, parProps);
9117
+ var props = {
9118
+ buttonText: parProps.buttonText || '新增',
9119
+ buttonProps: parProps.buttonProps || {},
9120
+ tableCodeList: parProps.tableCodeList || [],
9121
+ value: value,
9122
+ // labelInValue: true, // 非必填 默认为false
9123
+ requestConfig: _objectSpread2({
9124
+ url: "/items/sku/pager/v2",
9125
+ filter: 'qp-name-like',
9126
+ otherParams: _objectSpread2({
9127
+ 'qp-combination-eq': false,
9128
+ 'qp-approveStatus-eq': 1,
9129
+ 'qp-status-eq': 1
9130
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.addOtherParams) || {}),
9131
+ mappingTextField: 'name',
9132
+ mappingValueField: 'skuCode'
9133
+ }, parProps.requestConfig),
9134
+ selectProps: selectProps,
9135
+ onChange: function onChange(value) {
9136
+ console.log(value);
9137
+ setValue(value);
9138
+ },
9139
+ beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
9140
+ onSaveCallback: parProps.onSaveCallback,
9141
+ businessType: 'sku',
9142
+ isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect)
9143
+ };
9144
+ var modalTableProps = {
9145
+ modalTableTitle: '选择商品',
9146
+ tableSearchForm: mTpTableSearchForm,
9147
+ tableColumns: mTpTableColumn,
9148
+ selectColumn: mTpSelectColumn,
9149
+ promiseLoadList: mTpPromiseLoadList
9093
9150
  };
9094
9151
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
9095
9152
  modalTableProps: modalTableProps
@@ -9165,6 +9222,45 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
9165
9222
  dataIndex: 'count'
9166
9223
  }];
9167
9224
  var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
9225
+ var initialPromiseLoadList = [{
9226
+ url: "/items/item/propertyValue/sizeBySkcConfig",
9227
+ params: {
9228
+ pageSize: 10000,
9229
+ currentPage: 1,
9230
+ type: 2 // 类型:1尺码;2颜色
9231
+ },
9232
+
9233
+ resType: 'list',
9234
+ resPosition: 3,
9235
+ resKeyValue: ['value', 'value']
9236
+ }, {
9237
+ url: "/items/category/queryCategoryTree",
9238
+ params: {
9239
+ pageSize: 5000,
9240
+ currentPage: 1
9241
+ },
9242
+ resType: 'treeList',
9243
+ resPosition: 4
9244
+ }, {
9245
+ url: "/items/class/withProperty",
9246
+ params: {
9247
+ pageSize: 5000,
9248
+ currentPage: 1
9249
+ },
9250
+ resType: 'list',
9251
+ resPosition: 5,
9252
+ resKeyValue: ['id', 'name']
9253
+ }, {
9254
+ url: "/items/brand/queryBrandList",
9255
+ params: {
9256
+ pageSize: 5000,
9257
+ currentPage: 1,
9258
+ 'ctl-withAuth': true
9259
+ },
9260
+ resType: 'list',
9261
+ resPosition: 6,
9262
+ resKeyValue: ['id', 'name']
9263
+ }];
9168
9264
  var props = {
9169
9265
  buttonText: parProps.buttonText || '新增',
9170
9266
  buttonProps: parProps.buttonProps || {},
@@ -9369,7 +9465,8 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
9369
9465
  },
9370
9466
  dataIndex: 'brandName'
9371
9467
  }],
9372
- selectColumn: mTpSelectColumn
9468
+ selectColumn: mTpSelectColumn,
9469
+ promiseLoadList: initialPromiseLoadList
9373
9470
  };
9374
9471
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
9375
9472
  modalTableProps: modalTableProps
@@ -9454,6 +9551,44 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
9454
9551
  dataIndex: 'className'
9455
9552
  }];
9456
9553
  var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
9554
+ var initialPromiseLoadList = [{
9555
+ url: "/user/orgViewNode/listNoPage",
9556
+ params: {
9557
+ 'qp-employeeId-eq': getEmployeeId(),
9558
+ 'qp-orgViewCode-eq': 'business-organizational-view',
9559
+ 'ctl-withDefaultOrg': true
9560
+ },
9561
+ resType: 'list',
9562
+ resPosition: 2,
9563
+ resKeyValue: ['targetId', 'name']
9564
+ }, {
9565
+ url: "/items/brand/queryBrandList",
9566
+ params: {
9567
+ pageSize: 5000,
9568
+ currentPage: 1,
9569
+ 'ctl-withAuth': true
9570
+ },
9571
+ resType: 'list',
9572
+ resPosition: 3,
9573
+ resKeyValue: ['id', 'name']
9574
+ }, {
9575
+ url: "/items/category/queryCategoryTree",
9576
+ params: {
9577
+ pageSize: 5000,
9578
+ currentPage: 1
9579
+ },
9580
+ resType: 'treeList',
9581
+ resPosition: 4
9582
+ }, {
9583
+ url: "/items/class/withProperty",
9584
+ params: {
9585
+ pageSize: 5000,
9586
+ currentPage: 1
9587
+ },
9588
+ resType: 'list',
9589
+ resPosition: 5,
9590
+ resKeyValue: ['id', 'name']
9591
+ }];
9457
9592
  var props = {
9458
9593
  buttonText: parProps.buttonText || '新增',
9459
9594
  buttonProps: parProps.buttonProps || {},
@@ -9643,7 +9778,8 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
9643
9778
  },
9644
9779
  dataIndex: 'className'
9645
9780
  }],
9646
- selectColumn: mTpSelectColumn
9781
+ selectColumn: mTpSelectColumn,
9782
+ promiseLoadList: initialPromiseLoadList
9647
9783
  };
9648
9784
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
9649
9785
  modalTableProps: modalTableProps
@@ -9862,44 +9998,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9862
9998
  var _ctx$form;
9863
9999
  var resData, coverData, data, dataList;
9864
10000
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9865
- while (1) {
9866
- switch (_context.prev = _context.next) {
9867
- case 0:
9868
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9869
- if (!(resData.status === '0' || resData.code === '000000')) {
9870
- _context.next = 13;
9871
- break;
9872
- }
9873
- data = resData.data;
9874
- if (!remoteSource.converter) {
9875
- _context.next = 9;
9876
- break;
9877
- }
9878
- _context.next = 6;
9879
- return remoteSource.converter({
9880
- data: [data]
9881
- });
9882
- case 6:
9883
- coverData = _context.sent;
9884
- _context.next = 11;
10001
+ while (1) switch (_context.prev = _context.next) {
10002
+ case 0:
10003
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
10004
+ if (!(resData.status === '0' || resData.code === '000000')) {
10005
+ _context.next = 13;
9885
10006
  break;
9886
- case 9:
9887
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
9888
- coverData = dataList.length && dataList.map(function (ites) {
9889
- return mapSearchTree(ites);
9890
- }) || [];
9891
- case 11:
9892
- _context.next = 14;
10007
+ }
10008
+ data = resData.data;
10009
+ if (!remoteSource.converter) {
10010
+ _context.next = 9;
9893
10011
  break;
9894
- case 13:
9895
- coverData = [];
9896
- case 14:
9897
- setTreeData(coverData);
9898
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9899
- case 16:
9900
- case "end":
9901
- return _context.stop();
9902
- }
10012
+ }
10013
+ _context.next = 6;
10014
+ return remoteSource.converter({
10015
+ data: [data]
10016
+ });
10017
+ case 6:
10018
+ coverData = _context.sent;
10019
+ _context.next = 11;
10020
+ break;
10021
+ case 9:
10022
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
10023
+ coverData = dataList.length && dataList.map(function (ites) {
10024
+ return mapSearchTree(ites);
10025
+ }) || [];
10026
+ case 11:
10027
+ _context.next = 14;
10028
+ break;
10029
+ case 13:
10030
+ coverData = [];
10031
+ case 14:
10032
+ setTreeData(coverData);
10033
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
10034
+ case 16:
10035
+ case "end":
10036
+ return _context.stop();
9903
10037
  }
9904
10038
  }, _callee);
9905
10039
  }));
@@ -13873,7 +14007,7 @@ var AllFunc = function AllFunc(props) {
13873
14007
  })))));
13874
14008
  };
13875
14009
 
13876
- 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";
14010
+ 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";
13877
14011
  styleInject(css_248z$g);
13878
14012
 
13879
14013
  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";
@@ -14089,21 +14223,19 @@ function _outLogin() {
14089
14223
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
14090
14224
  var res;
14091
14225
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14092
- while (1) {
14093
- switch (_context.prev = _context.next) {
14094
- case 0:
14095
- _context.next = 2;
14096
- return axios__default['default']({
14097
- url: '/user/web/loginOut',
14098
- method: 'GET'
14099
- });
14100
- case 2:
14101
- res = _context.sent;
14102
- return _context.abrupt("return", res);
14103
- case 4:
14104
- case "end":
14105
- return _context.stop();
14106
- }
14226
+ while (1) switch (_context.prev = _context.next) {
14227
+ case 0:
14228
+ _context.next = 2;
14229
+ return axios__default['default']({
14230
+ url: '/user/web/loginOut',
14231
+ method: 'GET'
14232
+ });
14233
+ case 2:
14234
+ res = _context.sent;
14235
+ return _context.abrupt("return", res);
14236
+ case 4:
14237
+ case "end":
14238
+ return _context.stop();
14107
14239
  }
14108
14240
  }, _callee);
14109
14241
  }));
@@ -14232,31 +14364,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14232
14364
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14233
14365
  var sessionId;
14234
14366
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14235
- while (1) {
14236
- switch (_context.prev = _context.next) {
14237
- case 0:
14238
- _context.next = 2;
14239
- return getSessionId();
14240
- case 2:
14241
- sessionId = _context.sent;
14242
- _context.next = 5;
14243
- return outLogin({
14244
- sessionId: sessionId
14367
+ while (1) switch (_context.prev = _context.next) {
14368
+ case 0:
14369
+ _context.next = 2;
14370
+ return getSessionId();
14371
+ case 2:
14372
+ sessionId = _context.sent;
14373
+ _context.next = 5;
14374
+ return outLogin({
14375
+ sessionId: sessionId
14376
+ });
14377
+ case 5:
14378
+ // @ts-ignore
14379
+ if (BUILD_TYPE) {
14380
+ antd.message.success('退出登录成功');
14381
+ umi.history.replace({
14382
+ pathname: '/user/login'
14245
14383
  });
14246
- case 5:
14247
- // @ts-ignore
14248
- if (BUILD_TYPE) {
14249
- antd.message.success('退出登录成功');
14250
- umi.history.replace({
14251
- pathname: '/user/login'
14252
- });
14253
- } else {
14254
- setLoginOutPath();
14255
- }
14256
- case 6:
14257
- case "end":
14258
- return _context.stop();
14259
- }
14384
+ } else {
14385
+ setLoginOutPath();
14386
+ }
14387
+ case 6:
14388
+ case "end":
14389
+ return _context.stop();
14260
14390
  }
14261
14391
  }, _callee);
14262
14392
  }));
@@ -14402,7 +14532,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
14402
14532
  var afterStr = newName.substr(index + keyWord.length);
14403
14533
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, beforeStr), /*#__PURE__*/React__default['default'].createElement("span", {
14404
14534
  style: {
14405
- color: '#1890ff'
14535
+ color: '#02B56E'
14406
14536
  }
14407
14537
  }, keyWord), /*#__PURE__*/React__default['default'].createElement("span", null, afterStr));
14408
14538
  }
@@ -15247,7 +15377,7 @@ var CustomerMenu = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15247
15377
  })));
15248
15378
  });
15249
15379
 
15250
- 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";
15380
+ 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";
15251
15381
  styleInject(css_248z$l);
15252
15382
 
15253
15383
  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=";
@@ -15412,8 +15542,8 @@ var DrawContent$1 = function DrawContent(_ref) {
15412
15542
  return /*#__PURE__*/React__default['default'].createElement("div", {
15413
15543
  className: 'left_item',
15414
15544
  style: {
15415
- borderLeft: currentOneLevel === item.path ? '2px solid #1890ff' : 'none',
15416
- color: currentOneLevel === item.path ? '#1890ff' : '#000000'
15545
+ borderLeft: currentOneLevel === item.path ? '2px solid #02B56E' : 'none',
15546
+ color: currentOneLevel === item.path ? '#02B56E' : '#000000'
15417
15547
  },
15418
15548
  onClick: function onClick(e) {
15419
15549
  e.stopPropagation();
@@ -15663,7 +15793,7 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
15663
15793
  })));
15664
15794
  };
15665
15795
 
15666
- 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";
15796
+ 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";
15667
15797
  styleInject(css_248z$m);
15668
15798
 
15669
15799
  var _excluded$g = ["route"];
@@ -16084,6 +16214,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16084
16214
  showSubMenu: isShow
16085
16215
  });
16086
16216
  }, 500);
16217
+ //设置tabs标签左右滚动
16087
16218
  _this.setTabNavTransLate = function (num) {
16088
16219
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
16089
16220
  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];
@@ -16763,15 +16894,13 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16763
16894
  menu: {
16764
16895
  request: function () {
16765
16896
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16766
- return _regeneratorRuntime().wrap(function _callee$(_context) {
16767
- while (1) {
16768
- switch (_context.prev = _context.next) {
16769
- case 0:
16770
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16771
- case 1:
16772
- case "end":
16773
- return _context.stop();
16774
- }
16897
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
16898
+ while (1) switch (_context.prev = _context.next) {
16899
+ case 0:
16900
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16901
+ case 1:
16902
+ case "end":
16903
+ return _context.stop();
16775
16904
  }
16776
16905
  }, _callee);
16777
16906
  }));
@@ -23501,7 +23630,7 @@ function registerSuggestions(monaco) {
23501
23630
  });
23502
23631
  }
23503
23632
 
23504
- 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";
23633
+ 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";
23505
23634
  styleInject(css_248z$p);
23506
23635
 
23507
23636
  var Title = antd.Typography.Title;
@@ -24452,28 +24581,26 @@ var valueType = {
24452
24581
  var getDynamicDict = /*#__PURE__*/function () {
24453
24582
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24454
24583
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24455
- while (1) {
24456
- switch (_context.prev = _context.next) {
24457
- case 0:
24458
- _context.next = 2;
24459
- return bssula.request({
24460
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24461
- converter: function converter(_ref2) {
24462
- var data = _ref2.data;
24463
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24464
- return {
24465
- text: d.name,
24466
- value: d.code || d.brandCode
24467
- };
24468
- });
24469
- }
24470
- });
24471
- case 2:
24472
- return _context.abrupt("return", _context.sent);
24473
- case 3:
24474
- case "end":
24475
- return _context.stop();
24476
- }
24584
+ while (1) switch (_context.prev = _context.next) {
24585
+ case 0:
24586
+ _context.next = 2;
24587
+ return bssula.request({
24588
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24589
+ converter: function converter(_ref2) {
24590
+ var data = _ref2.data;
24591
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24592
+ return {
24593
+ text: d.name,
24594
+ value: d.code || d.brandCode
24595
+ };
24596
+ });
24597
+ }
24598
+ });
24599
+ case 2:
24600
+ return _context.abrupt("return", _context.sent);
24601
+ case 3:
24602
+ case "end":
24603
+ return _context.stop();
24477
24604
  }
24478
24605
  }, _callee);
24479
24606
  }));
@@ -24523,55 +24650,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24523
24650
  ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24524
24651
  var _ref$current, source;
24525
24652
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24526
- while (1) {
24527
- switch (_context.prev = _context.next) {
24528
- case 0:
24529
- _context.next = 2;
24530
- return setIsShowAndType(function (prev) {
24531
- if (record.inputType === 20 || record.inputType === 30) {
24532
- return {
24533
- isShow: true,
24534
- singleOrMultiple: record.inputType,
24535
- type: record.choiceType
24536
- };
24537
- }
24538
- return prev;
24539
- });
24540
- case 2:
24541
- if (!record.dictionaryCode) {
24542
- _context.next = 17;
24543
- break;
24544
- }
24545
- if (!(record.choiceType == 20)) {
24546
- _context.next = 7;
24547
- break;
24653
+ while (1) switch (_context.prev = _context.next) {
24654
+ case 0:
24655
+ _context.next = 2;
24656
+ return setIsShowAndType(function (prev) {
24657
+ if (record.inputType === 20 || record.inputType === 30) {
24658
+ return {
24659
+ isShow: true,
24660
+ singleOrMultiple: record.inputType,
24661
+ type: record.choiceType
24662
+ };
24548
24663
  }
24549
- _context.t0 = getDictionarySource(record.dictionaryCode);
24550
- _context.next = 15;
24664
+ return prev;
24665
+ });
24666
+ case 2:
24667
+ if (!record.dictionaryCode) {
24668
+ _context.next = 17;
24551
24669
  break;
24552
- case 7:
24553
- if (!(record.choiceType == 30)) {
24554
- _context.next = 13;
24555
- break;
24556
- }
24557
- _context.next = 10;
24558
- return getDynamicDict(record.dictionaryCode);
24559
- case 10:
24560
- _context.t1 = _context.sent;
24561
- _context.next = 14;
24670
+ }
24671
+ if (!(record.choiceType == 20)) {
24672
+ _context.next = 7;
24562
24673
  break;
24563
- case 13:
24564
- _context.t1 = [];
24565
- case 14:
24566
- _context.t0 = _context.t1;
24567
- case 15:
24568
- source = _context.t0;
24569
- // @ts-ignore
24570
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24571
- case 17:
24572
- case "end":
24573
- return _context.stop();
24574
- }
24674
+ }
24675
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24676
+ _context.next = 15;
24677
+ break;
24678
+ case 7:
24679
+ if (!(record.choiceType == 30)) {
24680
+ _context.next = 13;
24681
+ break;
24682
+ }
24683
+ _context.next = 10;
24684
+ return getDynamicDict(record.dictionaryCode);
24685
+ case 10:
24686
+ _context.t1 = _context.sent;
24687
+ _context.next = 14;
24688
+ break;
24689
+ case 13:
24690
+ _context.t1 = [];
24691
+ case 14:
24692
+ _context.t0 = _context.t1;
24693
+ case 15:
24694
+ source = _context.t0;
24695
+ // @ts-ignore
24696
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24697
+ case 17:
24698
+ case "end":
24699
+ return _context.stop();
24575
24700
  }
24576
24701
  }, _callee);
24577
24702
  })));
@@ -24639,30 +24764,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24639
24764
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24640
24765
  var form, values, name, relates, source;
24641
24766
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
24642
- while (1) {
24643
- switch (_context2.prev = _context2.next) {
24644
- case 0:
24645
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24646
- if (values[0]) {
24647
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24648
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24649
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24650
- }
24651
- if (!values[1]) {
24652
- _context2.next = 9;
24653
- break;
24654
- }
24655
- _context2.next = 5;
24656
- return getDynamicDict(record.dictionaryCode || values[1]);
24657
- case 5:
24658
- source = _context2.sent;
24767
+ while (1) switch (_context2.prev = _context2.next) {
24768
+ case 0:
24769
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24770
+ if (values[0]) {
24659
24771
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24660
24772
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24661
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24662
- case 9:
24663
- case "end":
24664
- return _context2.stop();
24665
- }
24773
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24774
+ }
24775
+ if (!values[1]) {
24776
+ _context2.next = 9;
24777
+ break;
24778
+ }
24779
+ _context2.next = 5;
24780
+ return getDynamicDict(record.dictionaryCode || values[1]);
24781
+ case 5:
24782
+ source = _context2.sent;
24783
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24784
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24785
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24786
+ case 9:
24787
+ case "end":
24788
+ return _context2.stop();
24666
24789
  }
24667
24790
  }, _callee2);
24668
24791
  }));
@@ -25122,43 +25245,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25122
25245
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
25123
25246
  var values, name, form, source;
25124
25247
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
25125
- while (1) {
25126
- switch (_context3.prev = _context3.next) {
25127
- case 0:
25128
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
25129
- if (values[1] === 40) {
25130
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25131
- form.setFieldVisible(name, false);
25132
- }
25133
- if (!(values[0] === 30)) {
25134
- _context3.next = 10;
25135
- break;
25136
- }
25137
- _context3.next = 5;
25138
- return bssula.request({
25139
- url: '/basic/dictDynamicItem/queryList',
25140
- converter: function converter(_ref11) {
25141
- var data = _ref11.data;
25142
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
25143
- return {
25144
- text: d.dictCode,
25145
- value: d.dictCode
25146
- };
25147
- });
25148
- }
25149
- });
25150
- case 5:
25151
- source = _context3.sent;
25152
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25153
- form.setFieldVisible(name, true);
25154
- _context3.next = 11;
25155
- break;
25156
- case 10:
25248
+ while (1) switch (_context3.prev = _context3.next) {
25249
+ case 0:
25250
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
25251
+ if (values[1] === 40) {
25252
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25157
25253
  form.setFieldVisible(name, false);
25158
- case 11:
25159
- case "end":
25160
- return _context3.stop();
25161
- }
25254
+ }
25255
+ if (!(values[0] === 30)) {
25256
+ _context3.next = 10;
25257
+ break;
25258
+ }
25259
+ _context3.next = 5;
25260
+ return bssula.request({
25261
+ url: '/basic/dictDynamicItem/queryList',
25262
+ converter: function converter(_ref11) {
25263
+ var data = _ref11.data;
25264
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
25265
+ return {
25266
+ text: d.dictCode,
25267
+ value: d.dictCode
25268
+ };
25269
+ });
25270
+ }
25271
+ });
25272
+ case 5:
25273
+ source = _context3.sent;
25274
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25275
+ form.setFieldVisible(name, true);
25276
+ _context3.next = 11;
25277
+ break;
25278
+ case 10:
25279
+ form.setFieldVisible(name, false);
25280
+ case 11:
25281
+ case "end":
25282
+ return _context3.stop();
25162
25283
  }
25163
25284
  }, _callee3);
25164
25285
  }));
@@ -25347,66 +25468,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25347
25468
  var _ref$current4, _res$editableStatus;
25348
25469
  var res, _res$defaultValue;
25349
25470
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
25350
- while (1) {
25351
- switch (_context4.prev = _context4.next) {
25352
- case 0:
25353
- _context4.next = 2;
25354
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25355
- case 2:
25356
- res = _context4.sent;
25357
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25358
- res.fieldGroup = record.fieldGroup;
25359
- res.businessType = record.businessType;
25360
- res.info = {
25361
- enumeration: res.enumeration,
25362
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25363
- formula: res.formula,
25364
- scale: res.scale,
25365
- variable: res.variable
25366
- };
25367
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25368
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25369
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25370
- if (res.inputType === 40) {
25371
- res.valueType = 22;
25471
+ while (1) switch (_context4.prev = _context4.next) {
25472
+ case 0:
25473
+ _context4.next = 2;
25474
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25475
+ case 2:
25476
+ res = _context4.sent;
25477
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25478
+ res.fieldGroup = record.fieldGroup;
25479
+ res.businessType = record.businessType;
25480
+ res.info = {
25481
+ enumeration: res.enumeration,
25482
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25483
+ formula: res.formula,
25484
+ scale: res.scale,
25485
+ variable: res.variable
25486
+ };
25487
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25488
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25489
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25490
+ if (res.inputType === 40) {
25491
+ res.valueType = 22;
25492
+ }
25493
+ // 把数组处理成文本
25494
+ if (res.inputType === 30) {
25495
+ if (res.defaultValue) {
25496
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25372
25497
  }
25373
- // 把数组处理成文本
25374
- if (res.inputType === 30) {
25375
- if (res.defaultValue) {
25376
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25377
- }
25498
+ }
25499
+ res.fieldMapping = res.fieldMapping || '';
25500
+ delete res.formula;
25501
+ delete res.showValue;
25502
+ if (!(mode === 'create')) {
25503
+ _context4.next = 18;
25504
+ break;
25505
+ }
25506
+ bssula.request({
25507
+ url: "/basic/flow/businessField",
25508
+ method: 'POST',
25509
+ params: res,
25510
+ successMessage: '创建成功!',
25511
+ converter: function converter() {
25512
+ onParentOk();
25378
25513
  }
25379
- res.fieldMapping = res.fieldMapping || '';
25380
- delete res.formula;
25381
- delete res.showValue;
25382
- if (!(mode === 'create')) {
25383
- _context4.next = 18;
25384
- break;
25514
+ });
25515
+ return _context4.abrupt("return");
25516
+ case 18:
25517
+ bssula.request({
25518
+ url: "/basic/flow/businessField/".concat(record.id),
25519
+ method: 'PATCH',
25520
+ params: res,
25521
+ successMessage: '修改成功!',
25522
+ converter: function converter() {
25523
+ onParentOk();
25385
25524
  }
25386
- bssula.request({
25387
- url: "/basic/flow/businessField",
25388
- method: 'POST',
25389
- params: res,
25390
- successMessage: '创建成功!',
25391
- converter: function converter() {
25392
- onParentOk();
25393
- }
25394
- });
25395
- return _context4.abrupt("return");
25396
- case 18:
25397
- bssula.request({
25398
- url: "/basic/flow/businessField/".concat(record.id),
25399
- method: 'PATCH',
25400
- params: res,
25401
- successMessage: '修改成功!',
25402
- converter: function converter() {
25403
- onParentOk();
25404
- }
25405
- });
25406
- case 19:
25407
- case "end":
25408
- return _context4.stop();
25409
- }
25525
+ });
25526
+ case 19:
25527
+ case "end":
25528
+ return _context4.stop();
25410
25529
  }
25411
25530
  }, _callee4);
25412
25531
  }));
@@ -26191,28 +26310,26 @@ var BsCascader = function BsCascader(_ref) {
26191
26310
  React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26192
26311
  var resData, data;
26193
26312
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26194
- while (1) {
26195
- switch (_context.prev = _context.next) {
26196
- case 0:
26197
- if (!(!source && initRequestSource)) {
26198
- _context.next = 6;
26199
- break;
26200
- }
26201
- _context.next = 3;
26202
- return initRequestSource();
26203
- case 3:
26204
- resData = _context.sent;
26205
- data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26206
- return _objectSpread2(_objectSpread2({}, item), {}, {
26207
- label: item.text,
26208
- isLeaf: false
26209
- });
26210
- })) || [];
26211
- setHandSource(data);
26212
- case 6:
26213
- case "end":
26214
- return _context.stop();
26215
- }
26313
+ while (1) switch (_context.prev = _context.next) {
26314
+ case 0:
26315
+ if (!(!source && initRequestSource)) {
26316
+ _context.next = 6;
26317
+ break;
26318
+ }
26319
+ _context.next = 3;
26320
+ return initRequestSource();
26321
+ case 3:
26322
+ resData = _context.sent;
26323
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26324
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26325
+ label: item.text,
26326
+ isLeaf: false
26327
+ });
26328
+ })) || [];
26329
+ setHandSource(data);
26330
+ case 6:
26331
+ case "end":
26332
+ return _context.stop();
26216
26333
  }
26217
26334
  }, _callee);
26218
26335
  })), []);
@@ -26344,20 +26461,18 @@ function getRegularThresholdRange(_x) {
26344
26461
  function _getRegularThresholdRange() {
26345
26462
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
26346
26463
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26347
- while (1) {
26348
- switch (_context.prev = _context.next) {
26349
- case 0:
26350
- return _context.abrupt("return", axios__default['default']({
26351
- url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26352
- method: 'POST',
26353
- data: _objectSpread2(_objectSpread2({}, params), {}, {
26354
- queryIdentify: undefined
26355
- })
26356
- }));
26357
- case 1:
26358
- case "end":
26359
- return _context.stop();
26360
- }
26464
+ while (1) switch (_context.prev = _context.next) {
26465
+ case 0:
26466
+ return _context.abrupt("return", axios__default['default']({
26467
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26468
+ method: 'POST',
26469
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26470
+ queryIdentify: undefined
26471
+ })
26472
+ }));
26473
+ case 1:
26474
+ case "end":
26475
+ return _context.stop();
26361
26476
  }
26362
26477
  }, _callee);
26363
26478
  }));
@@ -26496,137 +26611,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
26496
26611
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
26497
26612
  });
26498
26613
  };
26614
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
26499
26615
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
26500
26616
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
26501
26617
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
26502
26618
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26503
- while (1) {
26504
- switch (_context.prev = _context.next) {
26505
- case 0:
26506
- if (queryIdentify) {
26507
- _context.next = 2;
26508
- break;
26509
- }
26510
- return _context.abrupt("return");
26511
- case 2:
26512
- thresholdQuery = _this.state.thresholdQuery;
26513
- extraRequestUrl = '';
26514
- querParams = setParams(propertyCode, thresholdQuery);
26515
- if (!queryIdentityInfo.find(function (item) {
26516
- return item.identity == propertyCode;
26517
- })) {
26518
- _context.next = 10;
26519
- break;
26520
- }
26521
- //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26522
- needQueryList = queryIdentityInfo.find(function (item) {
26523
- return item.identity == propertyCode;
26524
- }).queryParam.filter(function (item) {
26525
- return item.isRequired;
26526
- }).map(function (item) {
26527
- return item.queryKey;
26528
- });
26529
- if (!needQueryList.some(function (item) {
26530
- return !querParams[item] || !querParams[item].length;
26531
- })) {
26532
- _context.next = 9;
26533
- break;
26534
- }
26535
- return _context.abrupt("return");
26536
- case 9:
26537
- extraRequestUrl = queryIdentityInfo.find(function (item) {
26538
- return item.identity == propertyCode;
26539
- }).requestUrl || '';
26540
- case 10:
26541
- if (queryIdentifyType === 'dictCodeIdentify') {
26542
- extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26543
- querParams = {
26544
- dictCode: queryIdentify
26545
- };
26546
- } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26547
- extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26548
- // querParams = { dictCode: queryIdentify }
26549
- }
26550
- if (!extraRequestUrl) {
26551
- _context.next = 16;
26552
- break;
26553
- }
26554
- if (queryIdentify == 'maintain_area_code') {
26555
- extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
26556
- } else if (queryIdentifyType == 'dictCodeIdentify') {
26557
- extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
26558
- } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26559
- extraRequestUrl = "/basic/".concat(extraRequestUrl);
26560
- }
26561
- bssula.request({
26562
- url: extraRequestUrl,
26563
- method: 'get',
26564
- converter: function converter(res) {
26565
- if (handleError(res)) {
26566
- var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26567
- if (queryIdentifyType === 'dictCodeIdentify') {
26568
- var _handleData2;
26569
- _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26570
- return {
26571
- code: i.dictItemCode,
26572
- name: i.dictItemName
26573
- };
26574
- }) : [];
26575
- }
26576
- if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26577
- var _handleData3;
26578
- _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26579
- return {
26580
- code: i.code.toString(),
26581
- name: i.name
26582
- };
26583
- }) : [];
26584
- }
26585
- _this.setState({
26586
- thresholdList: _handleData
26587
- });
26619
+ while (1) switch (_context.prev = _context.next) {
26620
+ case 0:
26621
+ if (queryIdentify) {
26622
+ _context.next = 2;
26623
+ break;
26624
+ }
26625
+ return _context.abrupt("return");
26626
+ case 2:
26627
+ thresholdQuery = _this.state.thresholdQuery;
26628
+ extraRequestUrl = '';
26629
+ querParams = setParams(propertyCode, thresholdQuery);
26630
+ if (!queryIdentityInfo.find(function (item) {
26631
+ return item.identity == propertyCode;
26632
+ })) {
26633
+ _context.next = 10;
26634
+ break;
26635
+ }
26636
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26637
+ needQueryList = queryIdentityInfo.find(function (item) {
26638
+ return item.identity == propertyCode;
26639
+ }).queryParam.filter(function (item) {
26640
+ return item.isRequired;
26641
+ }).map(function (item) {
26642
+ return item.queryKey;
26643
+ });
26644
+ if (!needQueryList.some(function (item) {
26645
+ return !querParams[item] || !querParams[item].length;
26646
+ })) {
26647
+ _context.next = 9;
26648
+ break;
26649
+ }
26650
+ return _context.abrupt("return");
26651
+ case 9:
26652
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26653
+ return item.identity == propertyCode;
26654
+ }).requestUrl || '';
26655
+ case 10:
26656
+ if (queryIdentifyType === 'dictCodeIdentify') {
26657
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26658
+ querParams = {
26659
+ dictCode: queryIdentify
26660
+ };
26661
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26662
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26663
+ // querParams = { dictCode: queryIdentify }
26664
+ }
26665
+ if (!extraRequestUrl) {
26666
+ _context.next = 16;
26667
+ break;
26668
+ }
26669
+ if (queryIdentify == 'maintain_area_code') {
26670
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
26671
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26672
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
26673
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26674
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26675
+ }
26676
+ bssula.request({
26677
+ url: extraRequestUrl,
26678
+ method: 'get',
26679
+ converter: function converter(res) {
26680
+ if (handleError(res)) {
26681
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26682
+ if (queryIdentifyType === 'dictCodeIdentify') {
26683
+ var _handleData2;
26684
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26685
+ return {
26686
+ code: i.dictItemCode,
26687
+ name: i.dictItemName
26688
+ };
26689
+ }) : [];
26588
26690
  }
26589
- return handleData;
26691
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26692
+ var _handleData3;
26693
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26694
+ return {
26695
+ code: i.code.toString(),
26696
+ name: i.name
26697
+ };
26698
+ }) : [];
26699
+ }
26700
+ _this.setState({
26701
+ thresholdList: _handleData
26702
+ });
26590
26703
  }
26591
- });
26592
- _context.next = 29;
26593
- break;
26594
- case 16:
26595
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26596
- _context.next = 20;
26597
- break;
26704
+ return handleData;
26598
26705
  }
26599
- _this.setState({
26600
- thresholdList: queryIdentify
26601
- });
26602
- _context.next = 29;
26706
+ });
26707
+ _context.next = 29;
26708
+ break;
26709
+ case 16:
26710
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26711
+ _context.next = 20;
26603
26712
  break;
26604
- case 20:
26605
- if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26606
- _context.next = 24;
26607
- break;
26608
- }
26609
- // TODO待处理
26713
+ }
26714
+ _this.setState({
26715
+ thresholdList: queryIdentify
26716
+ });
26717
+ _context.next = 29;
26718
+ break;
26719
+ case 20:
26720
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26721
+ _context.next = 24;
26722
+ break;
26723
+ }
26724
+ // TODO待处理
26725
+ _this.setState({
26726
+ thresholdList: []
26727
+ });
26728
+ _context.next = 29;
26729
+ break;
26730
+ case 24:
26731
+ querParams.queryIdentify = queryIdentify;
26732
+ _context.next = 27;
26733
+ return getRegularThresholdRange(querParams);
26734
+ case 27:
26735
+ res = _context.sent;
26736
+ if (handleError(res)) {
26610
26737
  _this.setState({
26611
- thresholdList: []
26738
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26612
26739
  });
26613
- _context.next = 29;
26614
- break;
26615
- case 24:
26616
- querParams.queryIdentify = queryIdentify;
26617
- _context.next = 27;
26618
- return getRegularThresholdRange(querParams);
26619
- case 27:
26620
- res = _context.sent;
26621
- if (handleError(res)) {
26622
- _this.setState({
26623
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26624
- });
26625
- }
26626
- case 29:
26627
- case "end":
26628
- return _context.stop();
26629
- }
26740
+ }
26741
+ case 29:
26742
+ case "end":
26743
+ return _context.stop();
26630
26744
  }
26631
26745
  }, _callee);
26632
26746
  }));
@@ -27445,32 +27559,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27445
27559
  notChangeOnSelect: true,
27446
27560
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
27447
27561
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
27448
- while (1) {
27449
- switch (_context2.prev = _context2.next) {
27450
- case 0:
27451
- _context2.next = 2;
27452
- return bssula.request({
27453
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27454
- method: 'get',
27455
- converter: function converter(_ref3) {
27456
- var data = _ref3.data;
27457
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27458
- return {
27459
- text: item.name,
27460
- value: item.id,
27461
- level: item.level,
27462
- id: item.id
27463
- };
27464
- }) : [];
27465
- return handleData;
27466
- }
27467
- });
27468
- case 2:
27469
- return _context2.abrupt("return", _context2.sent);
27470
- case 3:
27471
- case "end":
27472
- return _context2.stop();
27473
- }
27562
+ while (1) switch (_context2.prev = _context2.next) {
27563
+ case 0:
27564
+ _context2.next = 2;
27565
+ return bssula.request({
27566
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27567
+ method: 'get',
27568
+ converter: function converter(_ref3) {
27569
+ var data = _ref3.data;
27570
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27571
+ return {
27572
+ text: item.name,
27573
+ value: item.id,
27574
+ level: item.level,
27575
+ id: item.id
27576
+ };
27577
+ }) : [];
27578
+ return handleData;
27579
+ }
27580
+ });
27581
+ case 2:
27582
+ return _context2.abrupt("return", _context2.sent);
27583
+ case 3:
27584
+ case "end":
27585
+ return _context2.stop();
27474
27586
  }
27475
27587
  }, _callee2);
27476
27588
  })),
@@ -27496,32 +27608,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27496
27608
  notChangeOnSelect: true,
27497
27609
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
27498
27610
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
27499
- while (1) {
27500
- switch (_context3.prev = _context3.next) {
27501
- case 0:
27502
- _context3.next = 2;
27503
- return bssula.request({
27504
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27505
- method: 'get',
27506
- converter: function converter(_ref5) {
27507
- var data = _ref5.data;
27508
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27509
- return {
27510
- text: item.name,
27511
- value: item.id,
27512
- level: item.level,
27513
- id: item.id
27514
- };
27515
- }) : [];
27516
- return handleData;
27517
- }
27518
- });
27519
- case 2:
27520
- return _context3.abrupt("return", _context3.sent);
27521
- case 3:
27522
- case "end":
27523
- return _context3.stop();
27524
- }
27611
+ while (1) switch (_context3.prev = _context3.next) {
27612
+ case 0:
27613
+ _context3.next = 2;
27614
+ return bssula.request({
27615
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27616
+ method: 'get',
27617
+ converter: function converter(_ref5) {
27618
+ var data = _ref5.data;
27619
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27620
+ return {
27621
+ text: item.name,
27622
+ value: item.id,
27623
+ level: item.level,
27624
+ id: item.id
27625
+ };
27626
+ }) : [];
27627
+ return handleData;
27628
+ }
27629
+ });
27630
+ case 2:
27631
+ return _context3.abrupt("return", _context3.sent);
27632
+ case 3:
27633
+ case "end":
27634
+ return _context3.stop();
27525
27635
  }
27526
27636
  }, _callee3);
27527
27637
  })),
@@ -27549,32 +27659,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27549
27659
  notChangeOnSelect: true,
27550
27660
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
27551
27661
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
27552
- while (1) {
27553
- switch (_context4.prev = _context4.next) {
27554
- case 0:
27555
- _context4.next = 2;
27556
- return bssula.request({
27557
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27558
- method: 'get',
27559
- converter: function converter(_ref7) {
27560
- var data = _ref7.data;
27561
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27562
- return {
27563
- text: item.name,
27564
- value: item.id,
27565
- level: item.level,
27566
- id: item.id
27567
- };
27568
- }) : [];
27569
- return handleData;
27570
- }
27571
- });
27572
- case 2:
27573
- return _context4.abrupt("return", _context4.sent);
27574
- case 3:
27575
- case "end":
27576
- return _context4.stop();
27577
- }
27662
+ while (1) switch (_context4.prev = _context4.next) {
27663
+ case 0:
27664
+ _context4.next = 2;
27665
+ return bssula.request({
27666
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27667
+ method: 'get',
27668
+ converter: function converter(_ref7) {
27669
+ var data = _ref7.data;
27670
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27671
+ return {
27672
+ text: item.name,
27673
+ value: item.id,
27674
+ level: item.level,
27675
+ id: item.id
27676
+ };
27677
+ }) : [];
27678
+ return handleData;
27679
+ }
27680
+ });
27681
+ case 2:
27682
+ return _context4.abrupt("return", _context4.sent);
27683
+ case 3:
27684
+ case "end":
27685
+ return _context4.stop();
27578
27686
  }
27579
27687
  }, _callee4);
27580
27688
  })),
@@ -28691,8 +28799,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
28691
28799
  });
28692
28800
  }
28693
28801
  }
28694
-
28695
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28696
28802
  }, {
28697
28803
  key: "render",
28698
28804
  value: function render() {
@@ -29523,6 +29629,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29523
29629
  callBack(ruleClassData);
29524
29630
  });
29525
29631
  };
29632
+ // 树结构 转化成 平行树 (递归函数)
29526
29633
  _this.coverToParallel = function (treeData, result) {
29527
29634
  treeData.forEach(function (el) {
29528
29635
  result.push(el);
@@ -29778,6 +29885,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29778
29885
  callBack(ruleClassData);
29779
29886
  });
29780
29887
  };
29888
+ // 场景需要返回值2022.11.15
29781
29889
  _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
29782
29890
  var _ruleReturnConfig$rig;
29783
29891
  var isShowResponse = itemDetail.response['enable'];
@@ -30075,32 +30183,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30075
30183
  notChangeOnSelect: true,
30076
30184
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
30077
30185
  return _regeneratorRuntime().wrap(function _callee$(_context) {
30078
- while (1) {
30079
- switch (_context.prev = _context.next) {
30080
- case 0:
30081
- _context.next = 2;
30082
- return bssula.request({
30083
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
30084
- method: 'get',
30085
- converter: function converter(_ref2) {
30086
- var data = _ref2.data;
30087
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
30088
- return {
30089
- text: item.name,
30090
- value: item.id,
30091
- level: item.level,
30092
- id: item.id
30093
- };
30094
- }) : [];
30095
- return handleData;
30096
- }
30097
- });
30098
- case 2:
30099
- return _context.abrupt("return", _context.sent);
30100
- case 3:
30101
- case "end":
30102
- return _context.stop();
30103
- }
30186
+ while (1) switch (_context.prev = _context.next) {
30187
+ case 0:
30188
+ _context.next = 2;
30189
+ return bssula.request({
30190
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
30191
+ method: 'get',
30192
+ converter: function converter(_ref2) {
30193
+ var data = _ref2.data;
30194
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
30195
+ return {
30196
+ text: item.name,
30197
+ value: item.id,
30198
+ level: item.level,
30199
+ id: item.id
30200
+ };
30201
+ }) : [];
30202
+ return handleData;
30203
+ }
30204
+ });
30205
+ case 2:
30206
+ return _context.abrupt("return", _context.sent);
30207
+ case 3:
30208
+ case "end":
30209
+ return _context.stop();
30104
30210
  }
30105
30211
  }, _callee);
30106
30212
  })),
@@ -30434,6 +30540,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30434
30540
  }
30435
30541
  }, "\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);
30436
30542
  };
30543
+ //添加同一层级条件
30437
30544
  _this.addPeerRule = function (itemDetail) {
30438
30545
  var ruleClassData = _this.state.ruleClassData;
30439
30546
  var _this$props4 = _this.props,
@@ -30454,6 +30561,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30454
30561
  callBack(ruleClassData);
30455
30562
  });
30456
30563
  };
30564
+ //添加子层级条件
30457
30565
  _this.addChildRules = function (itemDetail) {
30458
30566
  var ruleClassData = _this.state.ruleClassData;
30459
30567
  var callBack = _this.props.callBack;
@@ -30529,6 +30637,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30529
30637
  callBack(ruleClassData);
30530
30638
  });
30531
30639
  };
30640
+ // 新增执行顺序
30532
30641
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
30533
30642
  callback();
30534
30643
  var callBack = _this.props.callBack;