@bit-sun/business-component 2.3.18 → 2.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +5 -5
  3. package/.gitlab-ci.yml +179 -179
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -1
  9. package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +1 -1
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  11. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  12. package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +2 -2
  13. package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +2 -2
  14. package/dist/components/Business/BsLayouts/index.d.ts +2 -2
  15. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +2 -2
  16. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  17. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  18. package/dist/components/Functional/BsAntdSula/BsCascader/index.d.ts +1 -1
  19. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  20. package/dist/index.esm.js +994 -932
  21. package/dist/index.js +993 -931
  22. package/dist/utils/LocalstorageUtils.d.ts +1 -0
  23. package/dist/utils/TableUtils.d.ts +2 -2
  24. package/dist/utils/utils.d.ts +1 -1
  25. package/docs/index.md +21 -21
  26. package/lib/assets/drag.svg +17 -17
  27. package/lib/assets/exportFail.svg +37 -37
  28. package/lib/assets/exportProcessing.svg +28 -28
  29. package/lib/assets/exportSuccess.svg +34 -34
  30. package/lib/assets/label_icon_bottom.svg +25 -25
  31. package/lib/assets/upExport.svg +22 -22
  32. package/package.json +78 -78
  33. package/src/assets/32.svg +27 -27
  34. package/src/assets/addIcon.svg +17 -17
  35. package/src/assets/allfunc.svg +27 -27
  36. package/src/assets/arrowRight.svg +24 -24
  37. package/src/assets/btn-delete.svg +29 -29
  38. package/src/assets/btn-edit.svg +19 -19
  39. package/src/assets/btn-more.svg +17 -17
  40. package/src/assets/btn-submit.svg +19 -19
  41. package/src/assets/caidan.svg +11 -11
  42. package/src/assets/close.svg +26 -26
  43. package/src/assets/drag.svg +17 -17
  44. package/src/assets/exportFail.svg +37 -37
  45. package/src/assets/exportProcessing.svg +28 -28
  46. package/src/assets/exportSuccess.svg +34 -34
  47. package/src/assets/fixed-left-active.svg +11 -11
  48. package/src/assets/fixed-left.svg +15 -15
  49. package/src/assets/fixed-right-active.svg +11 -11
  50. package/src/assets/fixed-right.svg +15 -15
  51. package/src/assets/guanbi.svg +15 -15
  52. package/src/assets/icon-quanping.svg +15 -15
  53. package/src/assets/icon-shezhi.svg +17 -17
  54. package/src/assets/label_icon_bottom.svg +25 -25
  55. package/src/assets/list-no-img.svg +21 -21
  56. package/src/assets/morentouxiang-32.svg +23 -23
  57. package/src/assets/scanning.svg +24 -24
  58. package/src/assets/upExport.svg +22 -22
  59. package/src/common/ENUM.ts +41 -41
  60. package/src/components/Business/AddSelectBusiness/index.md +162 -161
  61. package/src/components/Business/AddSelectBusiness/index.tsx +895 -861
  62. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  63. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  64. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  65. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  66. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  67. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  68. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  69. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  70. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  71. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  72. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  73. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  74. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  75. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  76. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  77. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  78. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  79. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  80. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  81. package/src/components/Business/BsLayouts/index.less +79 -79
  82. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  83. package/src/components/Business/BsLayouts/service.ts +10 -10
  84. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  85. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
  86. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  87. package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
  88. package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
  89. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  90. package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
  91. package/src/components/Business/CommodityEntry/index.md +70 -70
  92. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  93. package/src/components/Business/CommonAlert/index.tsx +23 -23
  94. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  95. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  96. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  97. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  98. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  99. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  100. package/src/components/Business/HomePageWrapper/index.less +33 -33
  101. package/src/components/Business/HomePageWrapper/index.md +45 -45
  102. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  103. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  104. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
  105. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  106. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  107. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  108. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  109. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  110. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  111. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  112. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  113. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  114. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  115. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  116. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  117. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  118. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  119. package/src/components/Business/JsonQueryTable/index.less +16 -16
  120. package/src/components/Business/JsonQueryTable/index.md +328 -328
  121. package/src/components/Business/JsonQueryTable/index.tsx +535 -535
  122. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  123. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  124. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  125. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  126. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  127. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  128. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  129. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  130. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  131. package/src/components/Business/SearchSelect/BusinessUtils.ts +1762 -1762
  132. package/src/components/Business/SearchSelect/common.ts +75 -75
  133. package/src/components/Business/SearchSelect/index.md +1329 -1329
  134. package/src/components/Business/SearchSelect/index.tsx +55 -52
  135. package/src/components/Business/SearchSelect/utils.ts +100 -100
  136. package/src/components/Business/StateFlow/index.less +130 -130
  137. package/src/components/Business/StateFlow/index.md +60 -60
  138. package/src/components/Business/StateFlow/index.tsx +29 -29
  139. package/src/components/Business/TreeSearchSelect/index.md +156 -156
  140. package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
  141. package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
  142. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  143. package/src/components/Business/columnSettingTable/index.less +247 -247
  144. package/src/components/Business/columnSettingTable/index.md +357 -357
  145. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  146. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  147. package/src/components/Business/columnSettingTable/utils.tsx +69 -69
  148. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -86
  149. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  150. package/src/components/Business/moreTreeTable/index.less +99 -99
  151. package/src/components/Business/moreTreeTable/index.md +448 -448
  152. package/src/components/Business/moreTreeTable/index.tsx +387 -387
  153. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  154. package/src/components/Functional/AddSelect/helps.ts +14 -14
  155. package/src/components/Functional/AddSelect/index.less +367 -367
  156. package/src/components/Functional/AddSelect/index.md +155 -155
  157. package/src/components/Functional/AddSelect/index.tsx +1282 -1279
  158. package/src/components/Functional/BillEntry/index.less +371 -371
  159. package/src/components/Functional/BillEntry/index.md +39 -39
  160. package/src/components/Functional/BillEntry/index.tsx +772 -772
  161. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  162. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  163. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  164. package/src/components/Functional/DataImport/index.less +63 -63
  165. package/src/components/Functional/DataImport/index.md +44 -44
  166. package/src/components/Functional/DataImport/index.tsx +695 -695
  167. package/src/components/Functional/DataValidation/index.less +63 -63
  168. package/src/components/Functional/DataValidation/index.md +39 -39
  169. package/src/components/Functional/DataValidation/index.tsx +687 -687
  170. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  171. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  172. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  173. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  174. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  175. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  176. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  177. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  178. package/src/components/Functional/SearchSelect/index.less +115 -115
  179. package/src/components/Functional/SearchSelect/index.md +141 -141
  180. package/src/components/Functional/SearchSelect/index.tsx +879 -870
  181. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  182. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  183. package/src/components/Functional/TreeSearchSelect/index.tsx +199 -199
  184. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  185. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  186. package/src/components/Solution/RuleComponent/index.js +2032 -2028
  187. package/src/components/Solution/RuleComponent/index.less +230 -230
  188. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  189. package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
  190. package/src/components/Solution/RuleComponent/services.ts +13 -13
  191. package/src/components/Solution/RuleComponent/util.js +139 -139
  192. package/src/index.ts +38 -38
  193. package/src/plugin/TableColumnSetting/index.less +247 -247
  194. package/src/plugin/TableColumnSetting/index.md +50 -50
  195. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  196. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  197. package/src/styles/bsDefault.less +1912 -1912
  198. package/src/utils/CheckOneUser/index.md +39 -39
  199. package/src/utils/CheckOneUser/index.ts +51 -51
  200. package/src/utils/LocalstorageUtils.ts +95 -90
  201. package/src/utils/TableUtils.tsx +18 -18
  202. package/src/utils/checkUtils.ts +39 -39
  203. package/src/utils/enumConfig.ts +11 -11
  204. package/src/utils/getFormMode.js +12 -12
  205. package/src/utils/index.ts +4 -4
  206. package/src/utils/requestUtils.ts +34 -34
  207. package/src/utils/serialize.js +7 -7
  208. package/src/utils/utils.ts +212 -212
  209. package/tsconfig.json +29 -29
  210. package/typings.d.ts +4 -4
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import axios from 'axios';
2
- import { message as message$1, Popover, Card, Avatar, Tooltip, Image, Menu, Space, Dropdown, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch } from 'antd';
2
+ import { message as message$1, Image, Popover, Card, Avatar, Tooltip, Menu, Space, Dropdown, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch } from 'antd';
3
3
  import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
4
4
  import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
5
5
  import isEqual from 'lodash/isEqual';
@@ -136,33 +136,6 @@ axios.interceptors.request.use(function (config) {
136
136
  return config;
137
137
  });
138
138
 
139
- function _iterableToArrayLimit(arr, i) {
140
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
141
- if (null != _i) {
142
- var _s,
143
- _e,
144
- _x,
145
- _r,
146
- _arr = [],
147
- _n = !0,
148
- _d = !1;
149
- try {
150
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
151
- if (Object(_i) !== _i) return;
152
- _n = !1;
153
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
154
- } catch (err) {
155
- _d = !0, _e = err;
156
- } finally {
157
- try {
158
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
159
- } finally {
160
- if (_d) throw _e;
161
- }
162
- }
163
- return _arr;
164
- }
165
- }
166
139
  function ownKeys(object, enumerableOnly) {
167
140
  var keys = Object.keys(object);
168
141
  if (Object.getOwnPropertySymbols) {
@@ -319,9 +292,14 @@ function _regeneratorRuntime() {
319
292
  };
320
293
  }
321
294
  function maybeInvokeDelegate(delegate, context) {
322
- var methodName = context.method,
323
- method = delegate.iterator[methodName];
324
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
295
+ var method = delegate.iterator[context.method];
296
+ if (undefined === method) {
297
+ if (context.delegate = null, "throw" === context.method) {
298
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
299
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
300
+ }
301
+ return ContinueSentinel;
302
+ }
325
303
  var record = tryCatch(method, delegate.iterator, context.arg);
326
304
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
327
305
  var info = record.arg;
@@ -535,7 +513,7 @@ function _defineProperties(target, props) {
535
513
  descriptor.enumerable = descriptor.enumerable || false;
536
514
  descriptor.configurable = true;
537
515
  if ("value" in descriptor) descriptor.writable = true;
538
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
516
+ Object.defineProperty(target, descriptor.key, descriptor);
539
517
  }
540
518
  }
541
519
  function _createClass(Constructor, protoProps, staticProps) {
@@ -547,7 +525,6 @@ function _createClass(Constructor, protoProps, staticProps) {
547
525
  return Constructor;
548
526
  }
549
527
  function _defineProperty(obj, key, value) {
550
- key = _toPropertyKey(key);
551
528
  if (key in obj) {
552
529
  Object.defineProperty(obj, key, {
553
530
  value: value,
@@ -690,6 +667,30 @@ function _arrayWithHoles(arr) {
690
667
  function _iterableToArray(iter) {
691
668
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
692
669
  }
670
+ function _iterableToArrayLimit(arr, i) {
671
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
672
+ if (_i == null) return;
673
+ var _arr = [];
674
+ var _n = true;
675
+ var _d = false;
676
+ var _s, _e;
677
+ try {
678
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
679
+ _arr.push(_s.value);
680
+ if (i && _arr.length === i) break;
681
+ }
682
+ } catch (err) {
683
+ _d = true;
684
+ _e = err;
685
+ } finally {
686
+ try {
687
+ if (!_n && _i["return"] != null) _i["return"]();
688
+ } finally {
689
+ if (_d) throw _e;
690
+ }
691
+ }
692
+ return _arr;
693
+ }
693
694
  function _unsupportedIterableToArray(o, minLen) {
694
695
  if (!o) return;
695
696
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -709,20 +710,6 @@ function _nonIterableSpread() {
709
710
  function _nonIterableRest() {
710
711
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
711
712
  }
712
- function _toPrimitive(input, hint) {
713
- if (typeof input !== "object" || input === null) return input;
714
- var prim = input[Symbol.toPrimitive];
715
- if (prim !== undefined) {
716
- var res = prim.call(input, hint || "default");
717
- if (typeof res !== "object") return res;
718
- throw new TypeError("@@toPrimitive must return a primitive value.");
719
- }
720
- return (hint === "string" ? String : Number)(input);
721
- }
722
- function _toPropertyKey(arg) {
723
- var key = _toPrimitive(arg, "string");
724
- return typeof key === "symbol" ? key : String(key);
725
- }
726
713
 
727
714
  var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
728
715
  var errorMessage = _objectSpread2({
@@ -1010,59 +997,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
1010
997
  * @returns 返回处理后的查询参数
1011
998
  */
1012
999
  function queryParams(params, flag) {
1013
- var _loop = function _loop() {
1000
+ for (var key in params) {
1014
1001
  if (Object.prototype.hasOwnProperty.call(params, key)) {
1015
- var element = params[key];
1016
- if (element && key.indexOf('*number*') >= 0) {
1017
- var dataParams = key.split('*number*');
1018
- dataParams.forEach(function (value, index) {
1019
- params[value] = element[index];
1020
- });
1021
- delete params[key];
1022
- } else if (element && key.indexOf('*address*') >= 0) {
1023
- var _dataParams = key.split('*address*');
1024
- _dataParams.forEach(function (value, index) {
1025
- params[value] = element.PCDCode[index];
1026
- });
1027
- delete params[key];
1028
- } else if (element && key.indexOf('*costType*') >= 0) {
1029
- var _dataParams2 = key.split('*costType*');
1030
- // eslint-disable-next-line prefer-destructuring
1031
- params[_dataParams2[0]] = element[1];
1032
- delete params[key];
1033
- } else if (element && key.indexOf('*fullDate*') >= 0) {
1034
- var _dataParams3 = key.split('*fullDate*');
1035
- _dataParams3.forEach(function (value, index) {
1036
- if (index === 0) {
1037
- params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1002
+ (function () {
1003
+ var element = params[key];
1004
+ if (element && key.indexOf('*number*') >= 0) {
1005
+ var dataParams = key.split('*number*');
1006
+ dataParams.forEach(function (value, index) {
1007
+ params[value] = element[index];
1008
+ });
1009
+ delete params[key];
1010
+ } else if (element && key.indexOf('*address*') >= 0) {
1011
+ var _dataParams = key.split('*address*');
1012
+ _dataParams.forEach(function (value, index) {
1013
+ params[value] = element.PCDCode[index];
1014
+ });
1015
+ delete params[key];
1016
+ } else if (element && key.indexOf('*costType*') >= 0) {
1017
+ var _dataParams2 = key.split('*costType*');
1018
+ // eslint-disable-next-line prefer-destructuring
1019
+ params[_dataParams2[0]] = element[1];
1020
+ delete params[key];
1021
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
1022
+ var _dataParams3 = key.split('*fullDate*');
1023
+ _dataParams3.forEach(function (value, index) {
1024
+ if (index === 0) {
1025
+ params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1026
+ } else {
1027
+ params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1028
+ }
1029
+ });
1030
+ delete params[key];
1031
+ } else if (element && key.indexOf('*') >= 0) {
1032
+ var _dataParams4 = key.split('*');
1033
+ _dataParams4.forEach(function (value, index) {
1034
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1035
+ });
1036
+ delete params[key];
1037
+ } else if (element && key.indexOf('_likeIn_') >= 0) {
1038
+ var _dataParams5 = key.split('_likeIn_');
1039
+ if (element.indexOf(',') >= 0) {
1040
+ params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1041
+ params["qp-".concat(_dataParams5[0], "-like")] = null;
1038
1042
  } else {
1039
- params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1043
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
1044
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
1040
1045
  }
1041
- });
1042
- delete params[key];
1043
- } else if (element && key.indexOf('*') >= 0) {
1044
- var _dataParams4 = key.split('*');
1045
- _dataParams4.forEach(function (value, index) {
1046
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1047
- });
1048
- delete params[key];
1049
- } else if (element && key.indexOf('_likeIn_') >= 0) {
1050
- var _dataParams5 = key.split('_likeIn_');
1051
- if (element.indexOf(',') >= 0) {
1052
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1053
- params["qp-".concat(_dataParams5[0], "-like")] = null;
1054
- } else {
1055
- params["qp-".concat(_dataParams5[0], "-like")] = element;
1056
- params["qp-".concat(_dataParams5[0], "-in")] = null;
1046
+ delete params[key];
1047
+ } else if (Array.isArray(element)) {
1048
+ params[key] = element.join(',');
1057
1049
  }
1058
- delete params[key];
1059
- } else if (Array.isArray(element)) {
1060
- params[key] = element.join(',');
1061
- }
1050
+ })();
1062
1051
  }
1063
- };
1064
- for (var key in params) {
1065
- _loop();
1066
1052
  }
1067
1053
  return flag ? params : qs.stringify(params);
1068
1054
  }
@@ -2579,7 +2565,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2579
2565
  needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
2580
2566
  _props$getPopupContai = props.getPopupContainer,
2581
2567
  _getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai,
2582
- fieldComponent = props.fieldComponent;
2568
+ fieldComponent = props.fieldComponent,
2569
+ selectBusinessType = props.selectBusinessType;
2583
2570
  var _ref = requestConfig || {},
2584
2571
  url = _ref.url,
2585
2572
  otherParams = _ref.otherParams,
@@ -2790,85 +2777,84 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2790
2777
  });
2791
2778
  }
2792
2779
  // 数组对象处理,对带有特殊标记的name进行处理
2793
- var _loop = function _loop() {
2780
+ for (var key in params) {
2794
2781
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2795
- var element = params[key];
2796
- if (element && key.indexOf('*number*') >= 0) {
2797
- var dataParams = key.split('*number*');
2798
- dataParams.forEach(function (value, index) {
2799
- params[value] = element[index];
2800
- });
2801
- delete params[key];
2802
- } else if (element && key.indexOf('*address*') >= 0) {
2803
- var _dataParams = key.split('*address*');
2804
- _dataParams.forEach(function (value, index) {
2805
- params[value] = element.PCDCode[index];
2806
- });
2807
- delete params[key];
2808
- } else if (element && key.indexOf('*costType*') >= 0) {
2809
- var _dataParams2 = key.split('*costType*');
2810
- // eslint-disable-next-line prefer-destructuring
2811
- params[_dataParams2[0]] = element[1];
2812
- delete params[key];
2813
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2814
- var _dataParams3 = key.split('*fullDate*');
2815
- _dataParams3.forEach(function (value, index) {
2816
- if (index === 0) {
2817
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2818
- } else {
2819
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2782
+ (function () {
2783
+ var element = params[key];
2784
+ if (element && key.indexOf('*number*') >= 0) {
2785
+ var dataParams = key.split('*number*');
2786
+ dataParams.forEach(function (value, index) {
2787
+ params[value] = element[index];
2788
+ });
2789
+ delete params[key];
2790
+ } else if (element && key.indexOf('*address*') >= 0) {
2791
+ var _dataParams = key.split('*address*');
2792
+ _dataParams.forEach(function (value, index) {
2793
+ params[value] = element.PCDCode[index];
2794
+ });
2795
+ delete params[key];
2796
+ } else if (element && key.indexOf('*costType*') >= 0) {
2797
+ var _dataParams2 = key.split('*costType*');
2798
+ // eslint-disable-next-line prefer-destructuring
2799
+ params[_dataParams2[0]] = element[1];
2800
+ delete params[key];
2801
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2802
+ var _dataParams3 = key.split('*fullDate*');
2803
+ _dataParams3.forEach(function (value, index) {
2804
+ if (index === 0) {
2805
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2806
+ } else {
2807
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2808
+ }
2809
+ });
2810
+ delete params[key];
2811
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2812
+ var _dataParams4 = key.split('*checkBox*');
2813
+ if (element) {
2814
+ params[_dataParams4[0]] = 0;
2820
2815
  }
2821
- });
2822
- delete params[key];
2823
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2824
- var _dataParams4 = key.split('*checkBox*');
2825
- if (element) {
2826
- params[_dataParams4[0]] = 0;
2827
- }
2828
- delete params[key];
2829
- } else if (element && key.indexOf('*cascader*') >= 0) {
2830
- var _dataParams5 = key.split('*cascader*');
2831
- params[_dataParams5[0]] = element[element.length - 1];
2832
- delete params[key];
2833
- } else if (element && key.indexOf('*date*') >= 0) {
2834
- var _dataParams6 = key.split('*date*');
2835
- _dataParams6.forEach(function (value, index) {
2836
- if (index === 0) {
2837
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2816
+ delete params[key];
2817
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2818
+ var _dataParams5 = key.split('*cascader*');
2819
+ params[_dataParams5[0]] = element[element.length - 1];
2820
+ delete params[key];
2821
+ } else if (element && key.indexOf('*date*') >= 0) {
2822
+ var _dataParams6 = key.split('*date*');
2823
+ _dataParams6.forEach(function (value, index) {
2824
+ if (index === 0) {
2825
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2826
+ } else {
2827
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2828
+ }
2829
+ });
2830
+ delete params[key];
2831
+ } else if (element && key.indexOf('*') >= 0) {
2832
+ var _dataParams7 = key.split('*');
2833
+ _dataParams7.forEach(function (value, index) {
2834
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2835
+ });
2836
+ delete params[key];
2837
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2838
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2839
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2840
+ if (params[key][0] === 'range') {
2841
+ if (params[key][1][0]) {
2842
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2843
+ }
2844
+ if (params[key][1][1]) {
2845
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2846
+ }
2838
2847
  } else {
2839
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2840
- }
2841
- });
2842
- delete params[key];
2843
- } else if (element && key.indexOf('*') >= 0) {
2844
- var _dataParams7 = key.split('*');
2845
- _dataParams7.forEach(function (value, index) {
2846
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2847
- });
2848
- delete params[key];
2849
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2850
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2851
- var _dataParams8 = key.split('_selectNumberRange')[0];
2852
- if (params[key][0] === 'range') {
2853
- if (params[key][1][0]) {
2854
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2848
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2855
2849
  }
2856
- if (params[key][1][1]) {
2857
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2858
- }
2859
- } else {
2860
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2850
+ delete params[key];
2851
+ } else if (Array.isArray(element)) {
2852
+ params[key] = element.join(',');
2853
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2854
+ delete params[key];
2861
2855
  }
2862
- delete params[key];
2863
- } else if (Array.isArray(element)) {
2864
- params[key] = element.join(',');
2865
- } else if (element == null || element === undefined || String(element).trim() === '') {
2866
- delete params[key];
2867
- }
2856
+ })();
2868
2857
  }
2869
- };
2870
- for (var key in params) {
2871
- _loop();
2872
2858
  }
2873
2859
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2874
2860
  pageSize: pageSize,
@@ -2996,6 +2982,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2996
2982
  useEffect(function () {
2997
2983
  makeUniqueValue();
2998
2984
  }, [resultSourceKey]);
2985
+ useEffect(function () {
2986
+ if (init) {
2987
+ setItems([]);
2988
+ setItemsTotal(0);
2989
+ run('init');
2990
+ }
2991
+ }, [selectBusinessType]);
2999
2992
  var showModal = function showModal() {
3000
2993
  getData({
3001
2994
  pageSize: tableInitPageSize,
@@ -4207,30 +4200,31 @@ var noEmptyArray = function noEmptyArray(arr) {
4207
4200
  };
4208
4201
  //设置queryTable默认列宽
4209
4202
  var getItemDefaultWidth$1 = function getItemDefaultWidth(item) {
4203
+ var _ref;
4210
4204
  var defaultWidth = 200;
4211
- var lowerCaseKey = (item.key || item.dataIndex).toLowerCase();
4205
+ var lowerCaseKey = (_ref = item.key || item.dataIndex) === null || _ref === void 0 ? void 0 : _ref.toLowerCase();
4212
4206
  switch (true) {
4213
4207
  case (item === null || item === void 0 ? void 0 : item.title) === '操作' || lowerCaseKey === 'operate':
4214
4208
  defaultWidth = 60;
4215
4209
  break;
4216
- case lowerCaseKey.indexOf('number') > -1:
4217
- case lowerCaseKey.indexOf('quantity') > -1:
4218
- case lowerCaseKey.indexOf('amount') > -1:
4210
+ case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('number')) > -1:
4211
+ case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('quantity')) > -1:
4212
+ case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('amount')) > -1:
4219
4213
  defaultWidth = 90;
4220
4214
  break;
4221
- case lowerCaseKey.indexOf('no') > -1:
4215
+ case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('no')) > -1:
4222
4216
  defaultWidth = 200;
4223
4217
  break;
4224
- case lowerCaseKey.indexOf('code') > -1:
4218
+ case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('code')) > -1:
4225
4219
  defaultWidth = 170;
4226
4220
  break;
4227
- case lowerCaseKey.indexOf('time') > -1:
4221
+ case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('time')) > -1:
4228
4222
  defaultWidth = 130;
4229
4223
  break;
4230
- case lowerCaseKey.indexOf('status') > -1:
4224
+ case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('status')) > -1:
4231
4225
  defaultWidth = 100;
4232
4226
  break;
4233
- case lowerCaseKey.indexOf('user') > -1:
4227
+ case (lowerCaseKey === null || lowerCaseKey === void 0 ? void 0 : lowerCaseKey.indexOf('user')) > -1:
4234
4228
  defaultWidth = 130;
4235
4229
  break;
4236
4230
  }
@@ -4377,7 +4371,9 @@ var AddSelect = function AddSelect(props) {
4377
4371
  _props$businessType = props.businessType,
4378
4372
  businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
4379
4373
  _props$isAllowRepeate = props.isAllowRepeatedSelect,
4380
- isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate;
4374
+ isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate,
4375
+ _props$noUseItemEanco = props.noUseItemEancode,
4376
+ noUseItemEancode = _props$noUseItemEanco === void 0 ? true : _props$noUseItemEanco;
4381
4377
  var _ref = requestConfig || {},
4382
4378
  url = _ref.url,
4383
4379
  otherParams = _ref.otherParams,
@@ -4534,74 +4530,76 @@ var AddSelect = function AddSelect(props) {
4534
4530
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4535
4531
  var result;
4536
4532
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4537
- while (1) switch (_context.prev = _context.next) {
4538
- case 0:
4539
- if (!(bType == 'skc' && tList.some(function (i) {
4540
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4541
- }))) {
4542
- _context.next = 3;
4543
- break;
4544
- }
4545
- message$1.warning('相同skc配码不可设置相同哦');
4546
- return _context.abrupt("return", false);
4547
- case 3:
4548
- if (!(bType == 'spu')) {
4549
- _context.next = 26;
4550
- break;
4551
- }
4552
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4553
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4554
- }))) {
4555
- _context.next = 7;
4556
- break;
4557
- }
4558
- message$1.warning('相同商品相同配码颜色不可设置相同哦');
4559
- return _context.abrupt("return", false);
4560
- case 7:
4561
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4562
- _context.next = 10;
4563
- break;
4564
- }
4565
- message$1.warning('请先选择颜色!');
4566
- return _context.abrupt("return", false);
4567
- case 10:
4568
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4569
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4570
- }))) {
4571
- _context.next = 13;
4572
- break;
4573
- }
4574
- message$1.warning('相同商品相同颜色配码不可设置相同哦');
4575
- return _context.abrupt("return", false);
4576
- case 13:
4577
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4578
- _context.next = 26;
4533
+ while (1) {
4534
+ switch (_context.prev = _context.next) {
4535
+ case 0:
4536
+ if (!(bType == 'skc' && tList.some(function (i) {
4537
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4538
+ }))) {
4539
+ _context.next = 3;
4540
+ break;
4541
+ }
4542
+ message$1.warning('相同skc配码不可设置相同哦');
4543
+ return _context.abrupt("return", false);
4544
+ case 3:
4545
+ if (!(bType == 'spu')) {
4546
+ _context.next = 26;
4547
+ break;
4548
+ }
4549
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4550
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4551
+ }))) {
4552
+ _context.next = 7;
4553
+ break;
4554
+ }
4555
+ message$1.warning('相同商品相同配码颜色不可设置相同哦');
4556
+ return _context.abrupt("return", false);
4557
+ case 7:
4558
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4559
+ _context.next = 10;
4560
+ break;
4561
+ }
4562
+ message$1.warning('请先选择颜色!');
4563
+ return _context.abrupt("return", false);
4564
+ case 10:
4565
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4566
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4567
+ }))) {
4568
+ _context.next = 13;
4569
+ break;
4570
+ }
4571
+ message$1.warning('相同商品相同颜色配码不可设置相同哦');
4572
+ return _context.abrupt("return", false);
4573
+ case 13:
4574
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4575
+ _context.next = 26;
4576
+ break;
4577
+ }
4578
+ result = true;
4579
+ _context.prev = 15;
4580
+ _context.next = 18;
4581
+ return checkSpuMatchCode({
4582
+ skcCode: recordItem[recordKey],
4583
+ matchingCode: changeValue,
4584
+ ext1: recordItem.colorName
4585
+ });
4586
+ case 18:
4587
+ result = _context.sent;
4588
+ result = true;
4589
+ _context.next = 25;
4579
4590
  break;
4580
- }
4581
- result = true;
4582
- _context.prev = 15;
4583
- _context.next = 18;
4584
- return checkSpuMatchCode({
4585
- skcCode: recordItem[recordKey],
4586
- matchingCode: changeValue,
4587
- ext1: recordItem.colorName
4588
- });
4589
- case 18:
4590
- result = _context.sent;
4591
- result = true;
4592
- _context.next = 25;
4593
- break;
4594
- case 22:
4595
- _context.prev = 22;
4596
- _context.t0 = _context["catch"](15);
4597
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4598
- case 25:
4599
- return _context.abrupt("return", result);
4600
- case 26:
4601
- return _context.abrupt("return", true);
4602
- case 27:
4603
- case "end":
4604
- return _context.stop();
4591
+ case 22:
4592
+ _context.prev = 22;
4593
+ _context.t0 = _context["catch"](15);
4594
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4595
+ case 25:
4596
+ return _context.abrupt("return", result);
4597
+ case 26:
4598
+ return _context.abrupt("return", true);
4599
+ case 27:
4600
+ case "end":
4601
+ return _context.stop();
4602
+ }
4605
4603
  }
4606
4604
  }, _callee, null, [[15, 22]]);
4607
4605
  }));
@@ -4793,27 +4791,29 @@ var AddSelect = function AddSelect(props) {
4793
4791
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4794
4792
  var isConformToTheRules, newPopValue;
4795
4793
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4796
- while (1) switch (_context2.prev = _context2.next) {
4797
- case 0:
4798
- _context2.next = 2;
4799
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4800
- case 2:
4801
- isConformToTheRules = _context2.sent;
4802
- if (isConformToTheRules) {
4803
- record[item.dataIndex] = value;
4804
- } else {
4805
- record[item.dataIndex] = null;
4806
- }
4807
- newPopValue = popvalue.map(function (i, innerIndex) {
4808
- if (innerIndex == index) {
4809
- i[item.dataIndex] = record[item.dataIndex];
4794
+ while (1) {
4795
+ switch (_context2.prev = _context2.next) {
4796
+ case 0:
4797
+ _context2.next = 2;
4798
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4799
+ case 2:
4800
+ isConformToTheRules = _context2.sent;
4801
+ if (isConformToTheRules) {
4802
+ record[item.dataIndex] = value;
4803
+ } else {
4804
+ record[item.dataIndex] = null;
4810
4805
  }
4811
- return i;
4812
- });
4813
- setPopValue(newPopValue);
4814
- case 6:
4815
- case "end":
4816
- return _context2.stop();
4806
+ newPopValue = popvalue.map(function (i, innerIndex) {
4807
+ if (innerIndex == index) {
4808
+ i[item.dataIndex] = record[item.dataIndex];
4809
+ }
4810
+ return i;
4811
+ });
4812
+ setPopValue(newPopValue);
4813
+ case 6:
4814
+ case "end":
4815
+ return _context2.stop();
4816
+ }
4817
4817
  }
4818
4818
  }, _callee2);
4819
4819
  }));
@@ -4873,85 +4873,84 @@ var AddSelect = function AddSelect(props) {
4873
4873
  });
4874
4874
  }
4875
4875
  // 数组对象处理,对带有特殊标记的name进行处理
4876
- var _loop = function _loop() {
4876
+ for (var key in params) {
4877
4877
  if (Object.prototype.hasOwnProperty.call(params, key)) {
4878
- var element = params[key];
4879
- if (element && key.indexOf('*number*') >= 0) {
4880
- var dataParams = key.split('*number*');
4881
- dataParams.forEach(function (value, index) {
4882
- params[value] = element[index];
4883
- });
4884
- delete params[key];
4885
- } else if (element && key.indexOf('*address*') >= 0) {
4886
- var _dataParams = key.split('*address*');
4887
- _dataParams.forEach(function (value, index) {
4888
- params[value] = element.PCDCode[index];
4889
- });
4890
- delete params[key];
4891
- } else if (element && key.indexOf('*costType*') >= 0) {
4892
- var _dataParams2 = key.split('*costType*');
4893
- // eslint-disable-next-line prefer-destructuring
4894
- params[_dataParams2[0]] = element[1];
4895
- delete params[key];
4896
- } else if (element && key.indexOf('*fullDate*') >= 0) {
4897
- var _dataParams3 = key.split('*fullDate*');
4898
- _dataParams3.forEach(function (value, index) {
4899
- if (index === 0) {
4900
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4901
- } else {
4902
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4878
+ (function () {
4879
+ var element = params[key];
4880
+ if (element && key.indexOf('*number*') >= 0) {
4881
+ var dataParams = key.split('*number*');
4882
+ dataParams.forEach(function (value, index) {
4883
+ params[value] = element[index];
4884
+ });
4885
+ delete params[key];
4886
+ } else if (element && key.indexOf('*address*') >= 0) {
4887
+ var _dataParams = key.split('*address*');
4888
+ _dataParams.forEach(function (value, index) {
4889
+ params[value] = element.PCDCode[index];
4890
+ });
4891
+ delete params[key];
4892
+ } else if (element && key.indexOf('*costType*') >= 0) {
4893
+ var _dataParams2 = key.split('*costType*');
4894
+ // eslint-disable-next-line prefer-destructuring
4895
+ params[_dataParams2[0]] = element[1];
4896
+ delete params[key];
4897
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4898
+ var _dataParams3 = key.split('*fullDate*');
4899
+ _dataParams3.forEach(function (value, index) {
4900
+ if (index === 0) {
4901
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4902
+ } else {
4903
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4904
+ }
4905
+ });
4906
+ delete params[key];
4907
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4908
+ var _dataParams4 = key.split('*checkBox*');
4909
+ if (element) {
4910
+ params[_dataParams4[0]] = 0;
4903
4911
  }
4904
- });
4905
- delete params[key];
4906
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4907
- var _dataParams4 = key.split('*checkBox*');
4908
- if (element) {
4909
- params[_dataParams4[0]] = 0;
4910
- }
4911
- delete params[key];
4912
- } else if (element && key.indexOf('*cascader*') >= 0) {
4913
- var _dataParams5 = key.split('*cascader*');
4914
- params[_dataParams5[0]] = element[element.length - 1];
4915
- delete params[key];
4916
- } else if (element && key.indexOf('*date*') >= 0) {
4917
- var _dataParams6 = key.split('*date*');
4918
- _dataParams6.forEach(function (value, index) {
4919
- if (index === 0) {
4920
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4912
+ delete params[key];
4913
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4914
+ var _dataParams5 = key.split('*cascader*');
4915
+ params[_dataParams5[0]] = element[element.length - 1];
4916
+ delete params[key];
4917
+ } else if (element && key.indexOf('*date*') >= 0) {
4918
+ var _dataParams6 = key.split('*date*');
4919
+ _dataParams6.forEach(function (value, index) {
4920
+ if (index === 0) {
4921
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4922
+ } else {
4923
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4924
+ }
4925
+ });
4926
+ delete params[key];
4927
+ } else if (element && key.indexOf('*') >= 0) {
4928
+ var _dataParams7 = key.split('*');
4929
+ _dataParams7.forEach(function (value, index) {
4930
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4931
+ });
4932
+ delete params[key];
4933
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4934
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4935
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4936
+ if (params[key][0] === 'range') {
4937
+ if (params[key][1][0]) {
4938
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4939
+ }
4940
+ if (params[key][1][1]) {
4941
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4942
+ }
4921
4943
  } else {
4922
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4944
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4923
4945
  }
4924
- });
4925
- delete params[key];
4926
- } else if (element && key.indexOf('*') >= 0) {
4927
- var _dataParams7 = key.split('*');
4928
- _dataParams7.forEach(function (value, index) {
4929
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4930
- });
4931
- delete params[key];
4932
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4933
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
4934
- var _dataParams8 = key.split('_selectNumberRange')[0];
4935
- if (params[key][0] === 'range') {
4936
- if (params[key][1][0]) {
4937
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4938
- }
4939
- if (params[key][1][1]) {
4940
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4941
- }
4942
- } else {
4943
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4946
+ delete params[key];
4947
+ } else if (Array.isArray(element)) {
4948
+ params[key] = element.join(',');
4949
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4950
+ delete params[key];
4944
4951
  }
4945
- delete params[key];
4946
- } else if (Array.isArray(element)) {
4947
- params[key] = element.join(',');
4948
- } else if (element == null || element === undefined || String(element).trim() === '') {
4949
- delete params[key];
4950
- }
4952
+ })();
4951
4953
  }
4952
- };
4953
- for (var key in params) {
4954
- _loop();
4955
4954
  }
4956
4955
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4957
4956
  pageSize: pageSize,
@@ -5051,8 +5050,10 @@ var AddSelect = function AddSelect(props) {
5051
5050
  pageSize: 5000,
5052
5051
  currentPage: 1
5053
5052
  })]).then(function (x) {
5054
- formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
5055
- formatTreeDataSource(x, 1, 3, tableSearchForm);
5053
+ var searchPosition1 = noUseItemEancode ? 3 : 2;
5054
+ var searchPosition2 = noUseItemEancode ? 4 : 3;
5055
+ formatSource(x, 0, searchPosition1, tableSearchForm, ['id', 'name']);
5056
+ formatTreeDataSource(x, 1, searchPosition2, tableSearchForm);
5056
5057
  });
5057
5058
  }
5058
5059
  if (businessType == 'skc') {
@@ -6406,70 +6407,72 @@ var BillEntry = function BillEntry(_ref3) {
6406
6407
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6407
6408
  var canEntryObject, _canEntryObject$error, messageInfo;
6408
6409
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6409
- while (1) switch (_context.prev = _context.next) {
6410
- case 0:
6411
- if (data === null || data === void 0 ? void 0 : data.length) {
6412
- _context.next = 3;
6413
- break;
6414
- }
6415
- message$1.warning('至少录入一条数据');
6416
- return _context.abrupt("return");
6417
- case 3:
6418
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6419
- return d.skuCode && d.name;
6420
- })) {
6421
- _context.next = 6;
6422
- break;
6423
- }
6424
- message$1.warning('请选择商品!');
6425
- return _context.abrupt("return");
6426
- case 6:
6427
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6428
- return d.count;
6429
- })) {
6430
- _context.next = 9;
6431
- break;
6432
- }
6433
- message$1.warning('请填写商品数量!');
6434
- return _context.abrupt("return");
6435
- case 9:
6436
- _context.next = 11;
6437
- return isSkuCanEntry(data);
6438
- case 11:
6439
- canEntryObject = _context.sent;
6440
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6441
- _context.next = 16;
6442
- break;
6443
- }
6444
- 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) {
6445
- return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6446
- }));
6447
- messageInfo && message$1.warning({
6448
- content: messageInfo,
6449
- duration: 6
6450
- });
6451
- return _context.abrupt("return");
6452
- case 16:
6453
- setLoading(true);
6454
- onSaveCallback(data).then(function (res) {
6455
- {
6456
- var _Object$keys;
6457
- var initSuccessMessage = '保存成功';
6458
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6459
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6460
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6461
- } else {
6462
- message$1.success(initSuccessMessage);
6463
- }
6410
+ while (1) {
6411
+ switch (_context.prev = _context.next) {
6412
+ case 0:
6413
+ if (data === null || data === void 0 ? void 0 : data.length) {
6414
+ _context.next = 3;
6415
+ break;
6464
6416
  }
6465
- setLoading(false);
6466
- }).catch(function (Error) {
6467
- message$1.error(Error);
6468
- setLoading(false);
6469
- });
6470
- case 18:
6471
- case "end":
6472
- return _context.stop();
6417
+ message$1.warning('至少录入一条数据');
6418
+ return _context.abrupt("return");
6419
+ case 3:
6420
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6421
+ return d.skuCode && d.name;
6422
+ })) {
6423
+ _context.next = 6;
6424
+ break;
6425
+ }
6426
+ message$1.warning('请选择商品!');
6427
+ return _context.abrupt("return");
6428
+ case 6:
6429
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6430
+ return d.count;
6431
+ })) {
6432
+ _context.next = 9;
6433
+ break;
6434
+ }
6435
+ message$1.warning('请填写商品数量!');
6436
+ return _context.abrupt("return");
6437
+ case 9:
6438
+ _context.next = 11;
6439
+ return isSkuCanEntry(data);
6440
+ case 11:
6441
+ canEntryObject = _context.sent;
6442
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6443
+ _context.next = 16;
6444
+ break;
6445
+ }
6446
+ messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
6447
+ return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6448
+ }));
6449
+ messageInfo && message$1.warning({
6450
+ content: messageInfo,
6451
+ duration: 6
6452
+ });
6453
+ return _context.abrupt("return");
6454
+ case 16:
6455
+ setLoading(true);
6456
+ onSaveCallback(data).then(function (res) {
6457
+ {
6458
+ var _Object$keys;
6459
+ var initSuccessMessage = '保存成功';
6460
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6461
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6462
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6463
+ } else {
6464
+ message$1.success(initSuccessMessage);
6465
+ }
6466
+ }
6467
+ setLoading(false);
6468
+ }).catch(function (Error) {
6469
+ message$1.error(Error);
6470
+ setLoading(false);
6471
+ });
6472
+ case 18:
6473
+ case "end":
6474
+ return _context.stop();
6475
+ }
6473
6476
  }
6474
6477
  }, _callee);
6475
6478
  }));
@@ -8682,7 +8685,7 @@ var BusinessSearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
8682
8685
  needModalTable: needModalTable,
8683
8686
  modalTableProps: modalTableProps
8684
8687
  });
8685
- }, [props === null || props === void 0 ? void 0 : props.value, props.disabled]);
8688
+ }, [props === null || props === void 0 ? void 0 : props.value, props.disabled, props.selectBusinessType]);
8686
8689
  useImperativeHandle(ref, function () {
8687
8690
  return {
8688
8691
  getRef: function getRef() {
@@ -8704,9 +8707,13 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React.memo(BusinessSearchSelect, funct
8704
8707
  if (props && props.disabled !== nextProps.disabled) {
8705
8708
  return false;
8706
8709
  }
8710
+ if (props && props.selectBusinessType !== nextProps.selectBusinessType) {
8711
+ return false;
8712
+ }
8707
8713
  return true;
8708
8714
  });
8709
8715
 
8716
+ // import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
8710
8717
  function handleSelectColumn(c, parentProps) {
8711
8718
  var result = c;
8712
8719
  var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
@@ -8718,7 +8725,7 @@ function handleSelectColumn(c, parentProps) {
8718
8725
  return !exceptColumns.includes(i.dataIndex);
8719
8726
  });
8720
8727
  }
8721
- // 追加
8728
+ // 追加(最好不用这个,当组件不固定时候会有影响)
8722
8729
  if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) {
8723
8730
  additionColumns.forEach(function (i) {
8724
8731
  result.splice(i.position, 0, i.column);
@@ -8731,6 +8738,7 @@ function handleSelectColumn(c, parentProps) {
8731
8738
  return result;
8732
8739
  }
8733
8740
  var AddSkuSelect = function AddSkuSelect(parProps) {
8741
+ var _parProps$requestConf, _parProps$requestConf2;
8734
8742
  var selectProps = {
8735
8743
  mode: 'multiple'
8736
8744
  };
@@ -8738,12 +8746,26 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
8738
8746
  _useState2 = _slicedToArray(_useState, 2),
8739
8747
  value = _useState2[0],
8740
8748
  setValue = _useState2[1];
8749
+ var isNoUseItemBarcode = (parProps === null || parProps === void 0 ? void 0 : parProps.noUseItemEancode) !== undefined ? parProps === null || parProps === void 0 ? void 0 : parProps.noUseItemEancode : true; // 默认不加商品条码,兼容老项目
8741
8750
  //注⚠️:自定义过表头的请记得传tableCodeList参数
8742
8751
  var initialSelectColumn = [{
8743
8752
  title: 'SKU编码',
8744
8753
  width: 150,
8745
8754
  dataIndex: 'skuCode'
8746
- }, {
8755
+ }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
8756
+ title: '商品条码',
8757
+ width: 100,
8758
+ ellipsis: {
8759
+ showTitle: false
8760
+ },
8761
+ dataIndex: 'itemEancode',
8762
+ render: function render(text) {
8763
+ return /*#__PURE__*/React.createElement(Tooltip, {
8764
+ placement: "topLeft",
8765
+ title: text
8766
+ }, text);
8767
+ }
8768
+ }]), [{
8747
8769
  title: 'SKU名称',
8748
8770
  width: 200,
8749
8771
  ellipsis: {
@@ -8819,7 +8841,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
8819
8841
  }, text);
8820
8842
  },
8821
8843
  dataIndex: 'propertyNameAndValue'
8822
- }];
8844
+ }]);
8823
8845
  var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
8824
8846
  var props = {
8825
8847
  buttonText: parProps.buttonText || '新增',
@@ -8830,11 +8852,11 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
8830
8852
  requestConfig: _objectSpread2({
8831
8853
  url: "/items/sku/pager/v2",
8832
8854
  filter: 'qp-name-like',
8833
- otherParams: {
8855
+ otherParams: _objectSpread2({
8834
8856
  'qp-combination-eq': false,
8835
8857
  'qp-approveStatus-eq': 1,
8836
8858
  'qp-status-eq': 1
8837
- },
8859
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
8838
8860
  mappingTextField: 'name',
8839
8861
  mappingValueField: 'skuCode'
8840
8862
  }, parProps.requestConfig),
@@ -8846,7 +8868,8 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
8846
8868
  beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
8847
8869
  onSaveCallback: parProps.onSaveCallback,
8848
8870
  businessType: 'sku',
8849
- isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect)
8871
+ isAllowRepeatedSelect: !!(parProps === null || parProps === void 0 ? void 0 : parProps.isAllowRepeatedSelect),
8872
+ noUseItemEancode: isNoUseItemBarcode
8850
8873
  };
8851
8874
  var modalTableProps = {
8852
8875
  modalTableTitle: '选择商品',
@@ -8856,7 +8879,14 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
8856
8879
  }, {
8857
8880
  name: 'qp-skuName-like',
8858
8881
  label: 'SKU名称'
8859
- }, {
8882
+ }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
8883
+ name: 'qp-code-in',
8884
+ label: '商品条码',
8885
+ field: {
8886
+ type: 'multipleQueryInput',
8887
+ props: _objectSpread2({}, ((_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.itemEancodeValueRequestConfig) || {})
8888
+ }
8889
+ }]), [{
8860
8890
  name: 'qp-brandId-in',
8861
8891
  type: 'select',
8862
8892
  label: '品牌',
@@ -8901,7 +8931,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
8901
8931
  }
8902
8932
  }
8903
8933
  }
8904
- }],
8934
+ }]),
8905
8935
  tableColumns: [{
8906
8936
  title: 'SKU编码',
8907
8937
  width: 150,
@@ -8935,20 +8965,20 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
8935
8965
  height: 20
8936
8966
  }));
8937
8967
  }
8938
- }, {
8939
- title: '国际条码',
8968
+ }].concat(_toConsumableArray(isNoUseItemBarcode ? [] : [{
8969
+ title: '商品条码',
8940
8970
  width: 100,
8941
8971
  ellipsis: {
8942
8972
  showTitle: false
8943
8973
  },
8944
- dataIndex: 'barCode',
8974
+ dataIndex: 'itemEancode',
8945
8975
  render: function render(text) {
8946
8976
  return /*#__PURE__*/React.createElement(Tooltip, {
8947
8977
  placement: "topLeft",
8948
8978
  title: text
8949
8979
  }, text);
8950
8980
  }
8951
- }, {
8981
+ }]), [{
8952
8982
  title: '所属SPU名称',
8953
8983
  width: 100,
8954
8984
  ellipsis: {
@@ -9039,7 +9069,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
9039
9069
  }, text);
9040
9070
  },
9041
9071
  dataIndex: 'brandName'
9042
- }],
9072
+ }]),
9043
9073
  selectColumn: mTpSelectColumn
9044
9074
  };
9045
9075
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
@@ -9047,6 +9077,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
9047
9077
  })));
9048
9078
  };
9049
9079
  var AddSkcSelect = function AddSkcSelect(parProps) {
9080
+ var _parProps$requestConf3;
9050
9081
  var selectProps = {
9051
9082
  mode: 'multiple'
9052
9083
  };
@@ -9124,9 +9155,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
9124
9155
  requestConfig: _objectSpread2({
9125
9156
  url: "/items/skc/skcSelect",
9126
9157
  filter: 'qp-name-like',
9127
- otherParams: {
9158
+ otherParams: _objectSpread2({
9128
9159
  'qp-skcStatus-eq': 1
9129
- },
9160
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf3 = parProps.requestConfig) === null || _parProps$requestConf3 === void 0 ? void 0 : _parProps$requestConf3.addOtherParams) || {}),
9130
9161
  mappingTextField: 'name',
9131
9162
  mappingValueField: 'code'
9132
9163
  }, parProps.requestConfig),
@@ -9326,6 +9357,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
9326
9357
  })));
9327
9358
  };
9328
9359
  var AddSpuSelect = function AddSpuSelect(parProps) {
9360
+ var _parProps$requestConf4;
9329
9361
  var selectProps = {
9330
9362
  mode: 'multiple'
9331
9363
  };
@@ -9412,11 +9444,11 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
9412
9444
  requestConfig: _objectSpread2({
9413
9445
  url: "/items/item",
9414
9446
  filter: 'qp-itemCode,name-orGroup,like',
9415
- otherParams: {
9447
+ otherParams: _objectSpread2({
9416
9448
  'qp-approveStatus-eq': 1,
9417
9449
  'qp-status-eq': 1,
9418
9450
  sorter: 'desc-id'
9419
- },
9451
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf4 = parProps.requestConfig) === null || _parProps$requestConf4 === void 0 ? void 0 : _parProps$requestConf4.addOtherParams) || {}),
9420
9452
  mappingTextField: 'name',
9421
9453
  mappingValueField: 'itemCode'
9422
9454
  }, parProps.requestConfig),
@@ -9811,42 +9843,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9811
9843
  var _ctx$form;
9812
9844
  var resData, coverData, data, dataList;
9813
9845
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9814
- while (1) switch (_context.prev = _context.next) {
9815
- case 0:
9816
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9817
- if (!(resData.status === '0' || resData.code === '000000')) {
9818
- _context.next = 13;
9846
+ while (1) {
9847
+ switch (_context.prev = _context.next) {
9848
+ case 0:
9849
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9850
+ if (!(resData.status === '0' || resData.code === '000000')) {
9851
+ _context.next = 13;
9852
+ break;
9853
+ }
9854
+ data = resData.data;
9855
+ if (!remoteSource.converter) {
9856
+ _context.next = 9;
9857
+ break;
9858
+ }
9859
+ _context.next = 6;
9860
+ return remoteSource.converter({
9861
+ data: [data]
9862
+ });
9863
+ case 6:
9864
+ coverData = _context.sent;
9865
+ _context.next = 11;
9819
9866
  break;
9820
- }
9821
- data = resData.data;
9822
- if (!remoteSource.converter) {
9823
- _context.next = 9;
9867
+ case 9:
9868
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
9869
+ coverData = dataList.length && dataList.map(function (ites) {
9870
+ return mapSearchTree(ites);
9871
+ }) || [];
9872
+ case 11:
9873
+ _context.next = 14;
9824
9874
  break;
9825
- }
9826
- _context.next = 6;
9827
- return remoteSource.converter({
9828
- data: [data]
9829
- });
9830
- case 6:
9831
- coverData = _context.sent;
9832
- _context.next = 11;
9833
- break;
9834
- case 9:
9835
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
9836
- coverData = dataList.length && dataList.map(function (ites) {
9837
- return mapSearchTree(ites);
9838
- }) || [];
9839
- case 11:
9840
- _context.next = 14;
9841
- break;
9842
- case 13:
9843
- coverData = [];
9844
- case 14:
9845
- setTreeData(coverData);
9846
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9847
- case 16:
9848
- case "end":
9849
- return _context.stop();
9875
+ case 13:
9876
+ coverData = [];
9877
+ case 14:
9878
+ setTreeData(coverData);
9879
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9880
+ case 16:
9881
+ case "end":
9882
+ return _context.stop();
9883
+ }
9850
9884
  }
9851
9885
  }, _callee);
9852
9886
  }));
@@ -14036,19 +14070,21 @@ function _outLogin() {
14036
14070
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
14037
14071
  var res;
14038
14072
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14039
- while (1) switch (_context.prev = _context.next) {
14040
- case 0:
14041
- _context.next = 2;
14042
- return axios({
14043
- url: '/user/web/loginOut',
14044
- method: 'GET'
14045
- });
14046
- case 2:
14047
- res = _context.sent;
14048
- return _context.abrupt("return", res);
14049
- case 4:
14050
- case "end":
14051
- return _context.stop();
14073
+ while (1) {
14074
+ switch (_context.prev = _context.next) {
14075
+ case 0:
14076
+ _context.next = 2;
14077
+ return axios({
14078
+ url: '/user/web/loginOut',
14079
+ method: 'GET'
14080
+ });
14081
+ case 2:
14082
+ res = _context.sent;
14083
+ return _context.abrupt("return", res);
14084
+ case 4:
14085
+ case "end":
14086
+ return _context.stop();
14087
+ }
14052
14088
  }
14053
14089
  }, _callee);
14054
14090
  }));
@@ -14177,29 +14213,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14177
14213
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14178
14214
  var sessionId;
14179
14215
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14180
- while (1) switch (_context.prev = _context.next) {
14181
- case 0:
14182
- _context.next = 2;
14183
- return getSessionId();
14184
- case 2:
14185
- sessionId = _context.sent;
14186
- _context.next = 5;
14187
- return outLogin({
14188
- sessionId: sessionId
14189
- });
14190
- case 5:
14191
- // @ts-ignore
14192
- if (BUILD_TYPE) {
14193
- message$1.success('退出登录成功');
14194
- history.replace({
14195
- pathname: '/user/login'
14216
+ while (1) {
14217
+ switch (_context.prev = _context.next) {
14218
+ case 0:
14219
+ _context.next = 2;
14220
+ return getSessionId();
14221
+ case 2:
14222
+ sessionId = _context.sent;
14223
+ _context.next = 5;
14224
+ return outLogin({
14225
+ sessionId: sessionId
14196
14226
  });
14197
- } else {
14198
- setLoginOutPath();
14199
- }
14200
- case 6:
14201
- case "end":
14202
- return _context.stop();
14227
+ case 5:
14228
+ // @ts-ignore
14229
+ if (BUILD_TYPE) {
14230
+ message$1.success('退出登录成功');
14231
+ history.replace({
14232
+ pathname: '/user/login'
14233
+ });
14234
+ } else {
14235
+ setLoginOutPath();
14236
+ }
14237
+ case 6:
14238
+ case "end":
14239
+ return _context.stop();
14240
+ }
14203
14241
  }
14204
14242
  }, _callee);
14205
14243
  }));
@@ -16027,7 +16065,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16027
16065
  showSubMenu: isShow
16028
16066
  });
16029
16067
  }, 500);
16030
- //设置tabs标签左右滚动
16031
16068
  _this.setTabNavTransLate = function (num) {
16032
16069
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
16033
16070
  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];
@@ -16708,12 +16745,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16708
16745
  request: function () {
16709
16746
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16710
16747
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16711
- while (1) switch (_context.prev = _context.next) {
16712
- case 0:
16713
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16714
- case 1:
16715
- case "end":
16716
- return _context.stop();
16748
+ while (1) {
16749
+ switch (_context.prev = _context.next) {
16750
+ case 0:
16751
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16752
+ case 1:
16753
+ case "end":
16754
+ return _context.stop();
16755
+ }
16717
16756
  }
16718
16757
  }, _callee);
16719
16758
  }));
@@ -17056,6 +17095,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
17056
17095
  }
17057
17096
  };
17058
17097
  useEffect(function () {
17098
+ onContainerScroll();
17059
17099
  var onscroll = throttle(onContainerScroll, 50);
17060
17100
  container.addEventListener('scroll', onscroll);
17061
17101
  return function () {
@@ -24393,26 +24433,28 @@ var valueType = {
24393
24433
  var getDynamicDict = /*#__PURE__*/function () {
24394
24434
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24395
24435
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24396
- while (1) switch (_context.prev = _context.next) {
24397
- case 0:
24398
- _context.next = 2;
24399
- return request$1({
24400
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24401
- converter: function converter(_ref2) {
24402
- var data = _ref2.data;
24403
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24404
- return {
24405
- text: d.name,
24406
- value: d.code || d.brandCode
24407
- };
24408
- });
24409
- }
24410
- });
24411
- case 2:
24412
- return _context.abrupt("return", _context.sent);
24413
- case 3:
24414
- case "end":
24415
- return _context.stop();
24436
+ while (1) {
24437
+ switch (_context.prev = _context.next) {
24438
+ case 0:
24439
+ _context.next = 2;
24440
+ return request$1({
24441
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24442
+ converter: function converter(_ref2) {
24443
+ var data = _ref2.data;
24444
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24445
+ return {
24446
+ text: d.name,
24447
+ value: d.code || d.brandCode
24448
+ };
24449
+ });
24450
+ }
24451
+ });
24452
+ case 2:
24453
+ return _context.abrupt("return", _context.sent);
24454
+ case 3:
24455
+ case "end":
24456
+ return _context.stop();
24457
+ }
24416
24458
  }
24417
24459
  }, _callee);
24418
24460
  }));
@@ -24462,53 +24504,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24462
24504
  useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24463
24505
  var _ref$current, source;
24464
24506
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24465
- while (1) switch (_context.prev = _context.next) {
24466
- case 0:
24467
- _context.next = 2;
24468
- return setIsShowAndType(function (prev) {
24469
- if (record.inputType === 20 || record.inputType === 30) {
24470
- return {
24471
- isShow: true,
24472
- singleOrMultiple: record.inputType,
24473
- type: record.choiceType
24474
- };
24507
+ while (1) {
24508
+ switch (_context.prev = _context.next) {
24509
+ case 0:
24510
+ _context.next = 2;
24511
+ return setIsShowAndType(function (prev) {
24512
+ if (record.inputType === 20 || record.inputType === 30) {
24513
+ return {
24514
+ isShow: true,
24515
+ singleOrMultiple: record.inputType,
24516
+ type: record.choiceType
24517
+ };
24518
+ }
24519
+ return prev;
24520
+ });
24521
+ case 2:
24522
+ if (!record.dictionaryCode) {
24523
+ _context.next = 17;
24524
+ break;
24475
24525
  }
24476
- return prev;
24477
- });
24478
- case 2:
24479
- if (!record.dictionaryCode) {
24480
- _context.next = 17;
24481
- break;
24482
- }
24483
- if (!(record.choiceType == 20)) {
24484
- _context.next = 7;
24526
+ if (!(record.choiceType == 20)) {
24527
+ _context.next = 7;
24528
+ break;
24529
+ }
24530
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24531
+ _context.next = 15;
24485
24532
  break;
24486
- }
24487
- _context.t0 = getDictionarySource(record.dictionaryCode);
24488
- _context.next = 15;
24489
- break;
24490
- case 7:
24491
- if (!(record.choiceType == 30)) {
24492
- _context.next = 13;
24533
+ case 7:
24534
+ if (!(record.choiceType == 30)) {
24535
+ _context.next = 13;
24536
+ break;
24537
+ }
24538
+ _context.next = 10;
24539
+ return getDynamicDict(record.dictionaryCode);
24540
+ case 10:
24541
+ _context.t1 = _context.sent;
24542
+ _context.next = 14;
24493
24543
  break;
24494
- }
24495
- _context.next = 10;
24496
- return getDynamicDict(record.dictionaryCode);
24497
- case 10:
24498
- _context.t1 = _context.sent;
24499
- _context.next = 14;
24500
- break;
24501
- case 13:
24502
- _context.t1 = [];
24503
- case 14:
24504
- _context.t0 = _context.t1;
24505
- case 15:
24506
- source = _context.t0;
24507
- // @ts-ignore
24508
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24509
- case 17:
24510
- case "end":
24511
- return _context.stop();
24544
+ case 13:
24545
+ _context.t1 = [];
24546
+ case 14:
24547
+ _context.t0 = _context.t1;
24548
+ case 15:
24549
+ source = _context.t0;
24550
+ // @ts-ignore
24551
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24552
+ case 17:
24553
+ case "end":
24554
+ return _context.stop();
24555
+ }
24512
24556
  }
24513
24557
  }, _callee);
24514
24558
  })));
@@ -24576,28 +24620,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24576
24620
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24577
24621
  var form, values, name, relates, source;
24578
24622
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
24579
- while (1) switch (_context2.prev = _context2.next) {
24580
- case 0:
24581
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24582
- if (values[0]) {
24623
+ while (1) {
24624
+ switch (_context2.prev = _context2.next) {
24625
+ case 0:
24626
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24627
+ if (values[0]) {
24628
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24629
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24630
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24631
+ }
24632
+ if (!values[1]) {
24633
+ _context2.next = 9;
24634
+ break;
24635
+ }
24636
+ _context2.next = 5;
24637
+ return getDynamicDict(record.dictionaryCode || values[1]);
24638
+ case 5:
24639
+ source = _context2.sent;
24583
24640
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24584
24641
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24585
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24586
- }
24587
- if (!values[1]) {
24588
- _context2.next = 9;
24589
- break;
24590
- }
24591
- _context2.next = 5;
24592
- return getDynamicDict(record.dictionaryCode || values[1]);
24593
- case 5:
24594
- source = _context2.sent;
24595
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24596
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24597
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24598
- case 9:
24599
- case "end":
24600
- return _context2.stop();
24642
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24643
+ case 9:
24644
+ case "end":
24645
+ return _context2.stop();
24646
+ }
24601
24647
  }
24602
24648
  }, _callee2);
24603
24649
  }));
@@ -25057,41 +25103,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25057
25103
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
25058
25104
  var values, name, form, source;
25059
25105
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
25060
- while (1) switch (_context3.prev = _context3.next) {
25061
- case 0:
25062
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
25063
- if (values[1] === 40) {
25064
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25065
- form.setFieldVisible(name, false);
25066
- }
25067
- if (!(values[0] === 30)) {
25068
- _context3.next = 10;
25069
- break;
25070
- }
25071
- _context3.next = 5;
25072
- return request$1({
25073
- url: '/basic/dictDynamicItem/queryList',
25074
- converter: function converter(_ref11) {
25075
- var data = _ref11.data;
25076
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
25077
- return {
25078
- text: d.dictCode,
25079
- value: d.dictCode
25080
- };
25081
- });
25106
+ while (1) {
25107
+ switch (_context3.prev = _context3.next) {
25108
+ case 0:
25109
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
25110
+ if (values[1] === 40) {
25111
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25112
+ form.setFieldVisible(name, false);
25082
25113
  }
25083
- });
25084
- case 5:
25085
- source = _context3.sent;
25086
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25087
- form.setFieldVisible(name, true);
25088
- _context3.next = 11;
25089
- break;
25090
- case 10:
25091
- form.setFieldVisible(name, false);
25092
- case 11:
25093
- case "end":
25094
- return _context3.stop();
25114
+ if (!(values[0] === 30)) {
25115
+ _context3.next = 10;
25116
+ break;
25117
+ }
25118
+ _context3.next = 5;
25119
+ return request$1({
25120
+ url: '/basic/dictDynamicItem/queryList',
25121
+ converter: function converter(_ref11) {
25122
+ var data = _ref11.data;
25123
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
25124
+ return {
25125
+ text: d.dictCode,
25126
+ value: d.dictCode
25127
+ };
25128
+ });
25129
+ }
25130
+ });
25131
+ case 5:
25132
+ source = _context3.sent;
25133
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25134
+ form.setFieldVisible(name, true);
25135
+ _context3.next = 11;
25136
+ break;
25137
+ case 10:
25138
+ form.setFieldVisible(name, false);
25139
+ case 11:
25140
+ case "end":
25141
+ return _context3.stop();
25142
+ }
25095
25143
  }
25096
25144
  }, _callee3);
25097
25145
  }));
@@ -25280,64 +25328,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25280
25328
  var _ref$current4, _res$editableStatus;
25281
25329
  var res, _res$defaultValue;
25282
25330
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
25283
- while (1) switch (_context4.prev = _context4.next) {
25284
- case 0:
25285
- _context4.next = 2;
25286
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25287
- case 2:
25288
- res = _context4.sent;
25289
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25290
- res.fieldGroup = record.fieldGroup;
25291
- res.businessType = record.businessType;
25292
- res.info = {
25293
- enumeration: res.enumeration,
25294
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25295
- formula: res.formula,
25296
- scale: res.scale,
25297
- variable: res.variable
25298
- };
25299
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25300
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25301
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25302
- if (res.inputType === 40) {
25303
- res.valueType = 22;
25304
- }
25305
- // 把数组处理成文本
25306
- if (res.inputType === 30) {
25307
- if (res.defaultValue) {
25308
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25331
+ while (1) {
25332
+ switch (_context4.prev = _context4.next) {
25333
+ case 0:
25334
+ _context4.next = 2;
25335
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25336
+ case 2:
25337
+ res = _context4.sent;
25338
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25339
+ res.fieldGroup = record.fieldGroup;
25340
+ res.businessType = record.businessType;
25341
+ res.info = {
25342
+ enumeration: res.enumeration,
25343
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25344
+ formula: res.formula,
25345
+ scale: res.scale,
25346
+ variable: res.variable
25347
+ };
25348
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25349
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25350
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25351
+ if (res.inputType === 40) {
25352
+ res.valueType = 22;
25309
25353
  }
25310
- }
25311
- res.fieldMapping = res.fieldMapping || '';
25312
- delete res.formula;
25313
- delete res.showValue;
25314
- if (!(mode === 'create')) {
25315
- _context4.next = 18;
25316
- break;
25317
- }
25318
- request$1({
25319
- url: "/basic/flow/businessField",
25320
- method: 'POST',
25321
- params: res,
25322
- successMessage: '创建成功!',
25323
- converter: function converter() {
25324
- onParentOk();
25354
+ // 把数组处理成文本
25355
+ if (res.inputType === 30) {
25356
+ if (res.defaultValue) {
25357
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25358
+ }
25325
25359
  }
25326
- });
25327
- return _context4.abrupt("return");
25328
- case 18:
25329
- request$1({
25330
- url: "/basic/flow/businessField/".concat(record.id),
25331
- method: 'PATCH',
25332
- params: res,
25333
- successMessage: '修改成功!',
25334
- converter: function converter() {
25335
- onParentOk();
25360
+ res.fieldMapping = res.fieldMapping || '';
25361
+ delete res.formula;
25362
+ delete res.showValue;
25363
+ if (!(mode === 'create')) {
25364
+ _context4.next = 18;
25365
+ break;
25336
25366
  }
25337
- });
25338
- case 19:
25339
- case "end":
25340
- return _context4.stop();
25367
+ request$1({
25368
+ url: "/basic/flow/businessField",
25369
+ method: 'POST',
25370
+ params: res,
25371
+ successMessage: '创建成功!',
25372
+ converter: function converter() {
25373
+ onParentOk();
25374
+ }
25375
+ });
25376
+ return _context4.abrupt("return");
25377
+ case 18:
25378
+ request$1({
25379
+ url: "/basic/flow/businessField/".concat(record.id),
25380
+ method: 'PATCH',
25381
+ params: res,
25382
+ successMessage: '修改成功!',
25383
+ converter: function converter() {
25384
+ onParentOk();
25385
+ }
25386
+ });
25387
+ case 19:
25388
+ case "end":
25389
+ return _context4.stop();
25390
+ }
25341
25391
  }
25342
25392
  }, _callee4);
25343
25393
  }));
@@ -26122,26 +26172,28 @@ var BsCascader = function BsCascader(_ref) {
26122
26172
  useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26123
26173
  var resData, data;
26124
26174
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26125
- while (1) switch (_context.prev = _context.next) {
26126
- case 0:
26127
- if (!(!source && initRequestSource)) {
26128
- _context.next = 6;
26129
- break;
26130
- }
26131
- _context.next = 3;
26132
- return initRequestSource();
26133
- case 3:
26134
- resData = _context.sent;
26135
- data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26136
- return _objectSpread2(_objectSpread2({}, item), {}, {
26137
- label: item.text,
26138
- isLeaf: false
26139
- });
26140
- })) || [];
26141
- setHandSource(data);
26142
- case 6:
26143
- case "end":
26144
- return _context.stop();
26175
+ while (1) {
26176
+ switch (_context.prev = _context.next) {
26177
+ case 0:
26178
+ if (!(!source && initRequestSource)) {
26179
+ _context.next = 6;
26180
+ break;
26181
+ }
26182
+ _context.next = 3;
26183
+ return initRequestSource();
26184
+ case 3:
26185
+ resData = _context.sent;
26186
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26187
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26188
+ label: item.text,
26189
+ isLeaf: false
26190
+ });
26191
+ })) || [];
26192
+ setHandSource(data);
26193
+ case 6:
26194
+ case "end":
26195
+ return _context.stop();
26196
+ }
26145
26197
  }
26146
26198
  }, _callee);
26147
26199
  })), []);
@@ -26273,18 +26325,20 @@ function getRegularThresholdRange(_x) {
26273
26325
  function _getRegularThresholdRange() {
26274
26326
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
26275
26327
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26276
- while (1) switch (_context.prev = _context.next) {
26277
- case 0:
26278
- return _context.abrupt("return", axios({
26279
- url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26280
- method: 'POST',
26281
- data: _objectSpread2(_objectSpread2({}, params), {}, {
26282
- queryIdentify: undefined
26283
- })
26284
- }));
26285
- case 1:
26286
- case "end":
26287
- return _context.stop();
26328
+ while (1) {
26329
+ switch (_context.prev = _context.next) {
26330
+ case 0:
26331
+ return _context.abrupt("return", axios({
26332
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26333
+ method: 'POST',
26334
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26335
+ queryIdentify: undefined
26336
+ })
26337
+ }));
26338
+ case 1:
26339
+ case "end":
26340
+ return _context.stop();
26341
+ }
26288
26342
  }
26289
26343
  }, _callee);
26290
26344
  }));
@@ -26423,136 +26477,137 @@ var RuleField = /*#__PURE__*/function (_Component) {
26423
26477
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
26424
26478
  });
26425
26479
  };
26426
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
26427
26480
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
26428
26481
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
26429
26482
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
26430
26483
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26431
- while (1) switch (_context.prev = _context.next) {
26432
- case 0:
26433
- if (queryIdentify) {
26434
- _context.next = 2;
26435
- break;
26436
- }
26437
- return _context.abrupt("return");
26438
- case 2:
26439
- thresholdQuery = _this.state.thresholdQuery;
26440
- extraRequestUrl = '';
26441
- querParams = setParams(propertyCode, thresholdQuery);
26442
- if (!queryIdentityInfo.find(function (item) {
26443
- return item.identity == propertyCode;
26444
- })) {
26445
- _context.next = 10;
26446
- break;
26447
- }
26448
- //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26449
- needQueryList = queryIdentityInfo.find(function (item) {
26450
- return item.identity == propertyCode;
26451
- }).queryParam.filter(function (item) {
26452
- return item.isRequired;
26453
- }).map(function (item) {
26454
- return item.queryKey;
26455
- });
26456
- if (!needQueryList.some(function (item) {
26457
- return !querParams[item] || !querParams[item].length;
26458
- })) {
26459
- _context.next = 9;
26460
- break;
26461
- }
26462
- return _context.abrupt("return");
26463
- case 9:
26464
- extraRequestUrl = queryIdentityInfo.find(function (item) {
26465
- return item.identity == propertyCode;
26466
- }).requestUrl || '';
26467
- case 10:
26468
- if (queryIdentifyType === 'dictCodeIdentify') {
26469
- extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26470
- querParams = {
26471
- dictCode: queryIdentify
26472
- };
26473
- } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26474
- extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26475
- // querParams = { dictCode: queryIdentify }
26476
- }
26477
- if (!extraRequestUrl) {
26478
- _context.next = 16;
26479
- break;
26480
- }
26481
- if (queryIdentify == 'maintain_area_code') {
26482
- extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26483
- } else if (queryIdentifyType == 'dictCodeIdentify') {
26484
- extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26485
- } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26486
- extraRequestUrl = "/basic/".concat(extraRequestUrl);
26487
- }
26488
- request$1({
26489
- url: extraRequestUrl,
26490
- method: 'get',
26491
- converter: function converter(res) {
26492
- if (handleError(res)) {
26493
- var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26494
- if (queryIdentifyType === 'dictCodeIdentify') {
26495
- var _handleData2;
26496
- _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26497
- return {
26498
- code: i.dictItemCode,
26499
- name: i.dictItemName
26500
- };
26501
- }) : [];
26502
- }
26503
- if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26504
- var _handleData3;
26505
- _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26506
- return {
26507
- code: i.code.toString(),
26508
- name: i.name
26509
- };
26510
- }) : [];
26484
+ while (1) {
26485
+ switch (_context.prev = _context.next) {
26486
+ case 0:
26487
+ if (queryIdentify) {
26488
+ _context.next = 2;
26489
+ break;
26490
+ }
26491
+ return _context.abrupt("return");
26492
+ case 2:
26493
+ thresholdQuery = _this.state.thresholdQuery;
26494
+ extraRequestUrl = '';
26495
+ querParams = setParams(propertyCode, thresholdQuery);
26496
+ if (!queryIdentityInfo.find(function (item) {
26497
+ return item.identity == propertyCode;
26498
+ })) {
26499
+ _context.next = 10;
26500
+ break;
26501
+ }
26502
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26503
+ needQueryList = queryIdentityInfo.find(function (item) {
26504
+ return item.identity == propertyCode;
26505
+ }).queryParam.filter(function (item) {
26506
+ return item.isRequired;
26507
+ }).map(function (item) {
26508
+ return item.queryKey;
26509
+ });
26510
+ if (!needQueryList.some(function (item) {
26511
+ return !querParams[item] || !querParams[item].length;
26512
+ })) {
26513
+ _context.next = 9;
26514
+ break;
26515
+ }
26516
+ return _context.abrupt("return");
26517
+ case 9:
26518
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26519
+ return item.identity == propertyCode;
26520
+ }).requestUrl || '';
26521
+ case 10:
26522
+ if (queryIdentifyType === 'dictCodeIdentify') {
26523
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26524
+ querParams = {
26525
+ dictCode: queryIdentify
26526
+ };
26527
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26528
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26529
+ // querParams = { dictCode: queryIdentify }
26530
+ }
26531
+ if (!extraRequestUrl) {
26532
+ _context.next = 16;
26533
+ break;
26534
+ }
26535
+ if (queryIdentify == 'maintain_area_code') {
26536
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26537
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26538
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26539
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26540
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26541
+ }
26542
+ request$1({
26543
+ url: extraRequestUrl,
26544
+ method: 'get',
26545
+ converter: function converter(res) {
26546
+ if (handleError(res)) {
26547
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26548
+ if (queryIdentifyType === 'dictCodeIdentify') {
26549
+ var _handleData2;
26550
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26551
+ return {
26552
+ code: i.dictItemCode,
26553
+ name: i.dictItemName
26554
+ };
26555
+ }) : [];
26556
+ }
26557
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26558
+ var _handleData3;
26559
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26560
+ return {
26561
+ code: i.code.toString(),
26562
+ name: i.name
26563
+ };
26564
+ }) : [];
26565
+ }
26566
+ _this.setState({
26567
+ thresholdList: _handleData
26568
+ });
26511
26569
  }
26512
- _this.setState({
26513
- thresholdList: _handleData
26514
- });
26570
+ return handleData;
26515
26571
  }
26516
- return handleData;
26517
- }
26518
- });
26519
- _context.next = 29;
26520
- break;
26521
- case 16:
26522
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26523
- _context.next = 20;
26572
+ });
26573
+ _context.next = 29;
26524
26574
  break;
26525
- }
26526
- _this.setState({
26527
- thresholdList: queryIdentify
26528
- });
26529
- _context.next = 29;
26530
- break;
26531
- case 20:
26532
- if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26533
- _context.next = 24;
26575
+ case 16:
26576
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26577
+ _context.next = 20;
26578
+ break;
26579
+ }
26580
+ _this.setState({
26581
+ thresholdList: queryIdentify
26582
+ });
26583
+ _context.next = 29;
26534
26584
  break;
26535
- }
26536
- // TODO待处理
26537
- _this.setState({
26538
- thresholdList: []
26539
- });
26540
- _context.next = 29;
26541
- break;
26542
- case 24:
26543
- querParams.queryIdentify = queryIdentify;
26544
- _context.next = 27;
26545
- return getRegularThresholdRange(querParams);
26546
- case 27:
26547
- res = _context.sent;
26548
- if (handleError(res)) {
26585
+ case 20:
26586
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26587
+ _context.next = 24;
26588
+ break;
26589
+ }
26590
+ // TODO待处理
26549
26591
  _this.setState({
26550
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26592
+ thresholdList: []
26551
26593
  });
26552
- }
26553
- case 29:
26554
- case "end":
26555
- return _context.stop();
26594
+ _context.next = 29;
26595
+ break;
26596
+ case 24:
26597
+ querParams.queryIdentify = queryIdentify;
26598
+ _context.next = 27;
26599
+ return getRegularThresholdRange(querParams);
26600
+ case 27:
26601
+ res = _context.sent;
26602
+ if (handleError(res)) {
26603
+ _this.setState({
26604
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26605
+ });
26606
+ }
26607
+ case 29:
26608
+ case "end":
26609
+ return _context.stop();
26610
+ }
26556
26611
  }
26557
26612
  }, _callee);
26558
26613
  }));
@@ -27371,30 +27426,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27371
27426
  notChangeOnSelect: true,
27372
27427
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
27373
27428
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
27374
- while (1) switch (_context2.prev = _context2.next) {
27375
- case 0:
27376
- _context2.next = 2;
27377
- return request$1({
27378
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27379
- method: 'get',
27380
- converter: function converter(_ref3) {
27381
- var data = _ref3.data;
27382
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27383
- return {
27384
- text: item.name,
27385
- value: item.id,
27386
- level: item.level,
27387
- id: item.id
27388
- };
27389
- }) : [];
27390
- return handleData;
27391
- }
27392
- });
27393
- case 2:
27394
- return _context2.abrupt("return", _context2.sent);
27395
- case 3:
27396
- case "end":
27397
- return _context2.stop();
27429
+ while (1) {
27430
+ switch (_context2.prev = _context2.next) {
27431
+ case 0:
27432
+ _context2.next = 2;
27433
+ return request$1({
27434
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27435
+ method: 'get',
27436
+ converter: function converter(_ref3) {
27437
+ var data = _ref3.data;
27438
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27439
+ return {
27440
+ text: item.name,
27441
+ value: item.id,
27442
+ level: item.level,
27443
+ id: item.id
27444
+ };
27445
+ }) : [];
27446
+ return handleData;
27447
+ }
27448
+ });
27449
+ case 2:
27450
+ return _context2.abrupt("return", _context2.sent);
27451
+ case 3:
27452
+ case "end":
27453
+ return _context2.stop();
27454
+ }
27398
27455
  }
27399
27456
  }, _callee2);
27400
27457
  })),
@@ -27420,30 +27477,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27420
27477
  notChangeOnSelect: true,
27421
27478
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
27422
27479
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
27423
- while (1) switch (_context3.prev = _context3.next) {
27424
- case 0:
27425
- _context3.next = 2;
27426
- return request$1({
27427
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27428
- method: 'get',
27429
- converter: function converter(_ref5) {
27430
- var data = _ref5.data;
27431
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27432
- return {
27433
- text: item.name,
27434
- value: item.id,
27435
- level: item.level,
27436
- id: item.id
27437
- };
27438
- }) : [];
27439
- return handleData;
27440
- }
27441
- });
27442
- case 2:
27443
- return _context3.abrupt("return", _context3.sent);
27444
- case 3:
27445
- case "end":
27446
- return _context3.stop();
27480
+ while (1) {
27481
+ switch (_context3.prev = _context3.next) {
27482
+ case 0:
27483
+ _context3.next = 2;
27484
+ return request$1({
27485
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27486
+ method: 'get',
27487
+ converter: function converter(_ref5) {
27488
+ var data = _ref5.data;
27489
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27490
+ return {
27491
+ text: item.name,
27492
+ value: item.id,
27493
+ level: item.level,
27494
+ id: item.id
27495
+ };
27496
+ }) : [];
27497
+ return handleData;
27498
+ }
27499
+ });
27500
+ case 2:
27501
+ return _context3.abrupt("return", _context3.sent);
27502
+ case 3:
27503
+ case "end":
27504
+ return _context3.stop();
27505
+ }
27447
27506
  }
27448
27507
  }, _callee3);
27449
27508
  })),
@@ -27471,30 +27530,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27471
27530
  notChangeOnSelect: true,
27472
27531
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
27473
27532
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
27474
- while (1) switch (_context4.prev = _context4.next) {
27475
- case 0:
27476
- _context4.next = 2;
27477
- return request$1({
27478
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27479
- method: 'get',
27480
- converter: function converter(_ref7) {
27481
- var data = _ref7.data;
27482
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27483
- return {
27484
- text: item.name,
27485
- value: item.id,
27486
- level: item.level,
27487
- id: item.id
27488
- };
27489
- }) : [];
27490
- return handleData;
27491
- }
27492
- });
27493
- case 2:
27494
- return _context4.abrupt("return", _context4.sent);
27495
- case 3:
27496
- case "end":
27497
- return _context4.stop();
27533
+ while (1) {
27534
+ switch (_context4.prev = _context4.next) {
27535
+ case 0:
27536
+ _context4.next = 2;
27537
+ return request$1({
27538
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27539
+ method: 'get',
27540
+ converter: function converter(_ref7) {
27541
+ var data = _ref7.data;
27542
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27543
+ return {
27544
+ text: item.name,
27545
+ value: item.id,
27546
+ level: item.level,
27547
+ id: item.id
27548
+ };
27549
+ }) : [];
27550
+ return handleData;
27551
+ }
27552
+ });
27553
+ case 2:
27554
+ return _context4.abrupt("return", _context4.sent);
27555
+ case 3:
27556
+ case "end":
27557
+ return _context4.stop();
27558
+ }
27498
27559
  }
27499
27560
  }, _callee4);
27500
27561
  })),
@@ -28611,6 +28672,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
28611
28672
  });
28612
28673
  }
28613
28674
  }
28675
+
28676
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28614
28677
  }, {
28615
28678
  key: "render",
28616
28679
  value: function render() {
@@ -29441,7 +29504,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29441
29504
  callBack(ruleClassData);
29442
29505
  });
29443
29506
  };
29444
- // 树结构 转化成 平行树 (递归函数)
29445
29507
  _this.coverToParallel = function (treeData, result) {
29446
29508
  treeData.forEach(function (el) {
29447
29509
  result.push(el);
@@ -29480,7 +29542,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29480
29542
  }
29481
29543
  var parallelTreeData = _this.coverToParallel(ruleTreeData, []) || [];
29482
29544
  var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
29483
- return i.key === (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId);
29545
+ var _i$key;
29546
+ return ((i === null || i === void 0 ? void 0 : (_i$key = i.key) === null || _i$key === void 0 ? void 0 : _i$key.indexOf('.')) > -1 ? i.id : i.key) === (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId);
29484
29547
  });
29485
29548
  var dataChoiceBusinessType = currentTreeItem === null || currentTreeItem === void 0 ? void 0 : currentTreeItem.dataChoiceBusinessType;
29486
29549
  var dataInputBusinessType = currentTreeItem === null || currentTreeItem === void 0 ? void 0 : currentTreeItem.dataInputBusinessType;
@@ -29685,18 +29748,18 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29685
29748
  }
29686
29749
  }), "\u6DFB\u52A0\u6761\u4EF6"))));
29687
29750
  };
29688
- _this.handleEditExtraInfoResponse = function (code, val, parentDetail) {
29751
+ _this.handleEditExtraInfoResponse = function (code, val, parentDetail, classDataIndex) {
29689
29752
  var ruleClassData = _this.state.ruleClassData;
29690
29753
  var callBack = _this.props.callBack;
29691
29754
  parentDetail.extraInfo.response[code] = val;
29755
+ ruleClassData[classDataIndex].extraInfo.response[code] = val;
29692
29756
  _this.setState({
29693
29757
  ruleClassData: ruleClassData
29694
29758
  }, function () {
29695
29759
  callBack(ruleClassData);
29696
29760
  });
29697
29761
  };
29698
- // 场景需要返回值2022.11.15
29699
- _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
29762
+ _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, classDataIndex, disabled, boxStyle) {
29700
29763
  var _ruleReturnConfig$rig;
29701
29764
  var isShowResponse = itemDetail.response['enable'];
29702
29765
  var isRightText = ruleReturnConfig === null || ruleReturnConfig === void 0 ? void 0 : (_ruleReturnConfig$rig = ruleReturnConfig.rightText) === null || _ruleReturnConfig$rig === void 0 ? void 0 : _ruleReturnConfig$rig.length;
@@ -29712,7 +29775,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29712
29775
  var value = val;
29713
29776
  if (isObj(code)) {
29714
29777
  Object.keys(code).forEach(function (ite) {
29715
- _this.handleEditExtraInfoResponse(ite, code[ite], parentDetail);
29778
+ _this.handleEditExtraInfoResponse(ite, code[ite], parentDetail, classDataIndex);
29716
29779
  });
29717
29780
  return;
29718
29781
  }
@@ -29725,7 +29788,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29725
29788
  var _val$PCDCode;
29726
29789
  value = val.value || ((_val$PCDCode = val.PCDCode) === null || _val$PCDCode === void 0 ? void 0 : _val$PCDCode.join('/'));
29727
29790
  }
29728
- _this.handleEditExtraInfoResponse('value', value, parentDetail);
29791
+ _this.handleEditExtraInfoResponse('value', value, parentDetail, classDataIndex);
29729
29792
  };
29730
29793
  return isShowResponse && /*#__PURE__*/React.createElement("div", {
29731
29794
  style: {
@@ -29734,7 +29797,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29734
29797
  }, _this.renderFormCompItem(ruleReturnConfig, showValue, handleEdit, {}, boxStyle, disabled), /*#__PURE__*/React.createElement(MinusCircleOutlined, {
29735
29798
  className: 'icon_btn_style',
29736
29799
  onClick: function onClick() {
29737
- _this.handleEditExtraInfoResponse('enable', false, parentDetail);
29800
+ _this.handleEditExtraInfoResponse('enable', false, parentDetail, classDataIndex);
29738
29801
  },
29739
29802
  style: {
29740
29803
  color: 'gray',
@@ -29993,30 +30056,32 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29993
30056
  notChangeOnSelect: true,
29994
30057
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29995
30058
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29996
- while (1) switch (_context.prev = _context.next) {
29997
- case 0:
29998
- _context.next = 2;
29999
- return request$1({
30000
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
30001
- method: 'get',
30002
- converter: function converter(_ref2) {
30003
- var data = _ref2.data;
30004
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
30005
- return {
30006
- text: item.name,
30007
- value: item.id,
30008
- level: item.level,
30009
- id: item.id
30010
- };
30011
- }) : [];
30012
- return handleData;
30013
- }
30014
- });
30015
- case 2:
30016
- return _context.abrupt("return", _context.sent);
30017
- case 3:
30018
- case "end":
30019
- return _context.stop();
30059
+ while (1) {
30060
+ switch (_context.prev = _context.next) {
30061
+ case 0:
30062
+ _context.next = 2;
30063
+ return request$1({
30064
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
30065
+ method: 'get',
30066
+ converter: function converter(_ref2) {
30067
+ var data = _ref2.data;
30068
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
30069
+ return {
30070
+ text: item.name,
30071
+ value: item.id,
30072
+ level: item.level,
30073
+ id: item.id
30074
+ };
30075
+ }) : [];
30076
+ return handleData;
30077
+ }
30078
+ });
30079
+ case 2:
30080
+ return _context.abrupt("return", _context.sent);
30081
+ case 3:
30082
+ case "end":
30083
+ return _context.stop();
30084
+ }
30020
30085
  }
30021
30086
  }, _callee);
30022
30087
  })),
@@ -30343,14 +30408,13 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30343
30408
  type: "link",
30344
30409
  onClick: function onClick() {
30345
30410
  if (isHaveRuleReturnConfig) {
30346
- _this.handleEditExtraInfoResponse('enable', true, parentDetail);
30411
+ _this.handleEditExtraInfoResponse('enable', true, parentDetail, classDataIndex);
30347
30412
  } else {
30348
30413
  message$1.warn('未配置返回');
30349
30414
  }
30350
30415
  }
30351
- }, "\u65B0\u589E\u8FD4\u56DE\u503C")), isHaveRuleReturnConfig && _this.renderResItem(itemDetail, parentDetail, ruleReturnConfig, disabled, RuleActionItemStyle) || null, isHaveRuleTypeData && _this.renderActionList(itemDetail, parentDetail, handleRuleTypeData, selectRuleActionData, classDataIndex, disabled, RuleActionItemStyle) || null);
30416
+ }, "\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);
30352
30417
  };
30353
- //添加同一层级条件
30354
30418
  _this.addPeerRule = function (itemDetail) {
30355
30419
  var ruleClassData = _this.state.ruleClassData;
30356
30420
  var _this$props4 = _this.props,
@@ -30371,7 +30435,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30371
30435
  callBack(ruleClassData);
30372
30436
  });
30373
30437
  };
30374
- //添加子层级条件
30375
30438
  _this.addChildRules = function (itemDetail) {
30376
30439
  var ruleClassData = _this.state.ruleClassData;
30377
30440
  var callBack = _this.props.callBack;
@@ -30447,7 +30510,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30447
30510
  callBack(ruleClassData);
30448
30511
  });
30449
30512
  };
30450
- // 新增执行顺序
30451
30513
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
30452
30514
  callback();
30453
30515
  var callBack = _this.props.callBack;