@bit-sun/business-component 2.3.11 → 2.3.13

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 (202) 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/CustomerMenu/MenuSetting/index.d.ts +1 -1
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/SearchSelect/common.d.ts +5 -1
  11. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  12. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  13. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  14. package/dist/index.esm.js +965 -947
  15. package/dist/index.js +971 -953
  16. package/dist/utils/utils.d.ts +1 -1
  17. package/docs/index.md +21 -21
  18. package/lib/assets/drag.svg +17 -17
  19. package/lib/assets/exportFail.svg +37 -37
  20. package/lib/assets/exportProcessing.svg +28 -28
  21. package/lib/assets/exportSuccess.svg +34 -34
  22. package/lib/assets/label_icon_bottom.svg +25 -25
  23. package/lib/assets/upExport.svg +22 -22
  24. package/package.json +78 -78
  25. package/src/assets/32.svg +27 -27
  26. package/src/assets/addIcon.svg +17 -17
  27. package/src/assets/allfunc.svg +27 -27
  28. package/src/assets/arrowRight.svg +24 -24
  29. package/src/assets/btn-delete.svg +29 -29
  30. package/src/assets/btn-edit.svg +19 -19
  31. package/src/assets/btn-more.svg +17 -17
  32. package/src/assets/btn-submit.svg +19 -19
  33. package/src/assets/caidan.svg +11 -11
  34. package/src/assets/close.svg +26 -26
  35. package/src/assets/drag.svg +17 -17
  36. package/src/assets/exportFail.svg +37 -37
  37. package/src/assets/exportProcessing.svg +28 -28
  38. package/src/assets/exportSuccess.svg +34 -34
  39. package/src/assets/fixed-left-active.svg +11 -11
  40. package/src/assets/fixed-left.svg +15 -15
  41. package/src/assets/fixed-right-active.svg +11 -11
  42. package/src/assets/fixed-right.svg +15 -15
  43. package/src/assets/guanbi.svg +15 -15
  44. package/src/assets/icon-quanping.svg +15 -15
  45. package/src/assets/icon-shezhi.svg +17 -17
  46. package/src/assets/label_icon_bottom.svg +25 -25
  47. package/src/assets/list-no-img.svg +21 -21
  48. package/src/assets/morentouxiang-32.svg +23 -23
  49. package/src/assets/scanning.svg +24 -24
  50. package/src/assets/upExport.svg +22 -22
  51. package/src/common/ENUM.ts +41 -41
  52. package/src/components/Business/AddSelectBusiness/index.md +161 -161
  53. package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
  54. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  55. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  56. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  57. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  58. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  59. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  60. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  61. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  62. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  63. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  64. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  65. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  66. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  67. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  68. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  69. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  70. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  71. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  72. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  73. package/src/components/Business/BsLayouts/index.less +79 -79
  74. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  75. package/src/components/Business/BsLayouts/service.ts +10 -10
  76. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  77. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
  78. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  79. package/src/components/Business/BsSulaQueryTable/index.tsx +535 -532
  80. package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
  81. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  82. package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
  83. package/src/components/Business/CommodityEntry/index.md +70 -70
  84. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  85. package/src/components/Business/CommonAlert/index.tsx +23 -23
  86. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  87. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  88. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  89. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  90. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  91. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  92. package/src/components/Business/HomePageWrapper/index.less +33 -33
  93. package/src/components/Business/HomePageWrapper/index.md +45 -45
  94. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  95. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  96. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
  97. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  98. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  99. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  100. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  101. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  102. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  103. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  104. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  105. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  106. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  107. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  108. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  109. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  110. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  111. package/src/components/Business/JsonQueryTable/index.less +16 -16
  112. package/src/components/Business/JsonQueryTable/index.md +328 -328
  113. package/src/components/Business/JsonQueryTable/index.tsx +535 -535
  114. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  115. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  116. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  117. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  118. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  119. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  120. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  121. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  122. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  123. package/src/components/Business/SearchSelect/BusinessUtils.ts +1756 -1732
  124. package/src/components/Business/SearchSelect/common.ts +64 -53
  125. package/src/components/Business/SearchSelect/index.md +1326 -1319
  126. package/src/components/Business/SearchSelect/index.tsx +51 -51
  127. package/src/components/Business/SearchSelect/utils.ts +100 -100
  128. package/src/components/Business/StateFlow/index.less +130 -130
  129. package/src/components/Business/StateFlow/index.md +60 -60
  130. package/src/components/Business/StateFlow/index.tsx +29 -29
  131. package/src/components/Business/TreeSearchSelect/index.md +154 -154
  132. package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
  133. package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
  134. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  135. package/src/components/Business/columnSettingTable/index.less +247 -247
  136. package/src/components/Business/columnSettingTable/index.md +357 -357
  137. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  138. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  139. package/src/components/Business/columnSettingTable/utils.tsx +68 -68
  140. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +86 -86
  141. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  142. package/src/components/Business/moreTreeTable/index.less +99 -99
  143. package/src/components/Business/moreTreeTable/index.md +448 -448
  144. package/src/components/Business/moreTreeTable/index.tsx +387 -387
  145. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  146. package/src/components/Functional/AddSelect/helps.ts +14 -14
  147. package/src/components/Functional/AddSelect/index.less +367 -367
  148. package/src/components/Functional/AddSelect/index.md +155 -155
  149. package/src/components/Functional/AddSelect/index.tsx +1279 -1279
  150. package/src/components/Functional/BillEntry/index.less +371 -371
  151. package/src/components/Functional/BillEntry/index.md +39 -39
  152. package/src/components/Functional/BillEntry/index.tsx +772 -772
  153. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  154. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  155. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  156. package/src/components/Functional/DataImport/index.less +63 -63
  157. package/src/components/Functional/DataImport/index.md +44 -44
  158. package/src/components/Functional/DataImport/index.tsx +695 -695
  159. package/src/components/Functional/DataValidation/index.less +63 -63
  160. package/src/components/Functional/DataValidation/index.md +39 -39
  161. package/src/components/Functional/DataValidation/index.tsx +687 -687
  162. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  163. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  164. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  165. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  166. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  167. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  168. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  169. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  170. package/src/components/Functional/SearchSelect/index.less +115 -115
  171. package/src/components/Functional/SearchSelect/index.md +141 -141
  172. package/src/components/Functional/SearchSelect/index.tsx +858 -858
  173. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  174. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  175. package/src/components/Functional/TreeSearchSelect/index.tsx +163 -163
  176. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  177. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  178. package/src/components/Solution/RuleComponent/index.js +2028 -2028
  179. package/src/components/Solution/RuleComponent/index.less +230 -230
  180. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  181. package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
  182. package/src/components/Solution/RuleComponent/services.ts +13 -13
  183. package/src/components/Solution/RuleComponent/util.js +139 -139
  184. package/src/index.ts +38 -38
  185. package/src/plugin/TableColumnSetting/index.less +247 -247
  186. package/src/plugin/TableColumnSetting/index.md +50 -50
  187. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  188. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  189. package/src/styles/bsDefault.less +1912 -1912
  190. package/src/utils/CheckOneUser/index.md +39 -39
  191. package/src/utils/CheckOneUser/index.ts +51 -51
  192. package/src/utils/LocalstorageUtils.ts +90 -90
  193. package/src/utils/TableUtils.tsx +18 -18
  194. package/src/utils/checkUtils.ts +39 -39
  195. package/src/utils/enumConfig.ts +11 -11
  196. package/src/utils/getFormMode.js +12 -12
  197. package/src/utils/index.ts +4 -4
  198. package/src/utils/requestUtils.ts +34 -34
  199. package/src/utils/serialize.js +7 -7
  200. package/src/utils/utils.ts +212 -212
  201. package/tsconfig.json +29 -29
  202. package/typings.d.ts +4 -4
package/dist/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import axios from 'axios';
2
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';
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
- import isEqual$1 from 'lodash/isEqual';
5
+ import isEqual from 'lodash/isEqual';
6
6
  import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
7
7
  import moment$1 from 'moment';
8
8
  import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, EditOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
@@ -762,52 +762,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
762
762
  return '';
763
763
  };
764
764
 
765
- var safeIsNaN = Number.isNaN ||
766
- function ponyfill(value) {
767
- return typeof value === 'number' && value !== value;
768
- };
769
- function isEqual(first, second) {
770
- if (first === second) {
771
- return true;
772
- }
773
- if (safeIsNaN(first) && safeIsNaN(second)) {
774
- return true;
775
- }
776
- return false;
777
- }
778
- function areInputsEqual(newInputs, lastInputs) {
779
- if (newInputs.length !== lastInputs.length) {
780
- return false;
765
+ var simpleIsEqual = function simpleIsEqual(a, b) {
766
+ return a === b;
767
+ };
768
+
769
+ function index$1 (resultFn, isEqual) {
770
+ if (isEqual === void 0) {
771
+ isEqual = simpleIsEqual;
772
+ }
773
+
774
+ var lastThis;
775
+ var lastArgs = [];
776
+ var lastResult;
777
+ var calledOnce = false;
778
+
779
+ var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
780
+ return isEqual(newArg, lastArgs[index], index);
781
+ };
782
+
783
+ var result = function result() {
784
+ for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
785
+ newArgs[_key] = arguments[_key];
781
786
  }
782
- for (var i = 0; i < newInputs.length; i++) {
783
- if (!isEqual(newInputs[i], lastInputs[i])) {
784
- return false;
785
- }
787
+
788
+ if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
789
+ return lastResult;
786
790
  }
787
- return true;
788
- }
789
791
 
790
- function memoizeOne(resultFn, isEqual) {
791
- if (isEqual === void 0) { isEqual = areInputsEqual; }
792
- var lastThis;
793
- var lastArgs = [];
794
- var lastResult;
795
- var calledOnce = false;
796
- function memoized() {
797
- var newArgs = [];
798
- for (var _i = 0; _i < arguments.length; _i++) {
799
- newArgs[_i] = arguments[_i];
800
- }
801
- if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
802
- return lastResult;
803
- }
804
- lastResult = resultFn.apply(this, newArgs);
805
- calledOnce = true;
806
- lastThis = this;
807
- lastArgs = newArgs;
808
- return lastResult;
809
- }
810
- return memoized;
792
+ lastResult = resultFn.apply(this, newArgs);
793
+ calledOnce = true;
794
+ lastThis = this;
795
+ lastArgs = newArgs;
796
+ return lastResult;
797
+ };
798
+
799
+ return result;
811
800
  }
812
801
 
813
802
  function styleInject(css, ref) {
@@ -1021,58 +1010,59 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
1021
1010
  * @returns 返回处理后的查询参数
1022
1011
  */
1023
1012
  function queryParams(params, flag) {
1024
- for (var key in params) {
1013
+ var _loop = function _loop() {
1025
1014
  if (Object.prototype.hasOwnProperty.call(params, key)) {
1026
- (function () {
1027
- var element = params[key];
1028
- if (element && key.indexOf('*number*') >= 0) {
1029
- var dataParams = key.split('*number*');
1030
- dataParams.forEach(function (value, index) {
1031
- params[value] = element[index];
1032
- });
1033
- delete params[key];
1034
- } else if (element && key.indexOf('*address*') >= 0) {
1035
- var _dataParams = key.split('*address*');
1036
- _dataParams.forEach(function (value, index) {
1037
- params[value] = element.PCDCode[index];
1038
- });
1039
- delete params[key];
1040
- } else if (element && key.indexOf('*costType*') >= 0) {
1041
- var _dataParams2 = key.split('*costType*');
1042
- // eslint-disable-next-line prefer-destructuring
1043
- params[_dataParams2[0]] = element[1];
1044
- delete params[key];
1045
- } else if (element && key.indexOf('*fullDate*') >= 0) {
1046
- var _dataParams3 = key.split('*fullDate*');
1047
- _dataParams3.forEach(function (value, index) {
1048
- if (index === 0) {
1049
- params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1050
- } else {
1051
- params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1052
- }
1053
- });
1054
- delete params[key];
1055
- } else if (element && key.indexOf('*') >= 0) {
1056
- var _dataParams4 = key.split('*');
1057
- _dataParams4.forEach(function (value, index) {
1058
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1059
- });
1060
- delete params[key];
1061
- } else if (element && key.indexOf('_likeIn_') >= 0) {
1062
- var _dataParams5 = key.split('_likeIn_');
1063
- if (element.indexOf(',') >= 0) {
1064
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1065
- params["qp-".concat(_dataParams5[0], "-like")] = null;
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');
1066
1038
  } else {
1067
- params["qp-".concat(_dataParams5[0], "-like")] = element;
1068
- params["qp-".concat(_dataParams5[0], "-in")] = null;
1039
+ params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1069
1040
  }
1070
- delete params[key];
1071
- } else if (Array.isArray(element)) {
1072
- params[key] = element.join(',');
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;
1073
1057
  }
1074
- })();
1058
+ delete params[key];
1059
+ } else if (Array.isArray(element)) {
1060
+ params[key] = element.join(',');
1061
+ }
1075
1062
  }
1063
+ };
1064
+ for (var key in params) {
1065
+ _loop();
1076
1066
  }
1077
1067
  return flag ? params : qs.stringify(params);
1078
1068
  }
@@ -1118,7 +1108,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
1118
1108
  return item;
1119
1109
  });
1120
1110
  };
1121
- var memoizeOneFormatter = memoizeOne(formatter, isEqual$1);
1111
+ var memoizeOneFormatter = index$1(formatter, isEqual);
1122
1112
  var go2BackAndClose = function go2BackAndClose() {
1123
1113
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
1124
1114
  history.goBack();
@@ -2797,84 +2787,85 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2797
2787
  });
2798
2788
  }
2799
2789
  // 数组对象处理,对带有特殊标记的name进行处理
2800
- for (var key in params) {
2790
+ var _loop = function _loop() {
2801
2791
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2802
- (function () {
2803
- var element = params[key];
2804
- if (element && key.indexOf('*number*') >= 0) {
2805
- var dataParams = key.split('*number*');
2806
- dataParams.forEach(function (value, index) {
2807
- params[value] = element[index];
2808
- });
2809
- delete params[key];
2810
- } else if (element && key.indexOf('*address*') >= 0) {
2811
- var _dataParams = key.split('*address*');
2812
- _dataParams.forEach(function (value, index) {
2813
- params[value] = element.PCDCode[index];
2814
- });
2815
- delete params[key];
2816
- } else if (element && key.indexOf('*costType*') >= 0) {
2817
- var _dataParams2 = key.split('*costType*');
2818
- // eslint-disable-next-line prefer-destructuring
2819
- params[_dataParams2[0]] = element[1];
2820
- delete params[key];
2821
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2822
- var _dataParams3 = key.split('*fullDate*');
2823
- _dataParams3.forEach(function (value, index) {
2824
- if (index === 0) {
2825
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2826
- } else {
2827
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2828
- }
2829
- });
2830
- delete params[key];
2831
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2832
- var _dataParams4 = key.split('*checkBox*');
2833
- if (element) {
2834
- params[_dataParams4[0]] = 0;
2792
+ var element = params[key];
2793
+ if (element && key.indexOf('*number*') >= 0) {
2794
+ var dataParams = key.split('*number*');
2795
+ dataParams.forEach(function (value, index) {
2796
+ params[value] = element[index];
2797
+ });
2798
+ delete params[key];
2799
+ } else if (element && key.indexOf('*address*') >= 0) {
2800
+ var _dataParams = key.split('*address*');
2801
+ _dataParams.forEach(function (value, index) {
2802
+ params[value] = element.PCDCode[index];
2803
+ });
2804
+ delete params[key];
2805
+ } else if (element && key.indexOf('*costType*') >= 0) {
2806
+ var _dataParams2 = key.split('*costType*');
2807
+ // eslint-disable-next-line prefer-destructuring
2808
+ params[_dataParams2[0]] = element[1];
2809
+ delete params[key];
2810
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2811
+ var _dataParams3 = key.split('*fullDate*');
2812
+ _dataParams3.forEach(function (value, index) {
2813
+ if (index === 0) {
2814
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2815
+ } else {
2816
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2835
2817
  }
2836
- delete params[key];
2837
- } else if (element && key.indexOf('*cascader*') >= 0) {
2838
- var _dataParams5 = key.split('*cascader*');
2839
- params[_dataParams5[0]] = element[element.length - 1];
2840
- delete params[key];
2841
- } else if (element && key.indexOf('*date*') >= 0) {
2842
- var _dataParams6 = key.split('*date*');
2843
- _dataParams6.forEach(function (value, index) {
2844
- if (index === 0) {
2845
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2846
- } else {
2847
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2848
- }
2849
- });
2850
- delete params[key];
2851
- } else if (element && key.indexOf('*') >= 0) {
2852
- var _dataParams7 = key.split('*');
2853
- _dataParams7.forEach(function (value, index) {
2854
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2855
- });
2856
- delete params[key];
2857
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2858
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2859
- var _dataParams8 = key.split('_selectNumberRange')[0];
2860
- if (params[key][0] === 'range') {
2861
- if (params[key][1][0]) {
2862
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2863
- }
2864
- if (params[key][1][1]) {
2865
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2866
- }
2818
+ });
2819
+ delete params[key];
2820
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2821
+ var _dataParams4 = key.split('*checkBox*');
2822
+ if (element) {
2823
+ params[_dataParams4[0]] = 0;
2824
+ }
2825
+ delete params[key];
2826
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2827
+ var _dataParams5 = key.split('*cascader*');
2828
+ params[_dataParams5[0]] = element[element.length - 1];
2829
+ delete params[key];
2830
+ } else if (element && key.indexOf('*date*') >= 0) {
2831
+ var _dataParams6 = key.split('*date*');
2832
+ _dataParams6.forEach(function (value, index) {
2833
+ if (index === 0) {
2834
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2867
2835
  } else {
2868
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2836
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2837
+ }
2838
+ });
2839
+ delete params[key];
2840
+ } else if (element && key.indexOf('*') >= 0) {
2841
+ var _dataParams7 = key.split('*');
2842
+ _dataParams7.forEach(function (value, index) {
2843
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2844
+ });
2845
+ delete params[key];
2846
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2847
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2848
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2849
+ if (params[key][0] === 'range') {
2850
+ if (params[key][1][0]) {
2851
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2869
2852
  }
2870
- delete params[key];
2871
- } else if (Array.isArray(element)) {
2872
- params[key] = element.join(',');
2873
- } else if (element == null || element === undefined || String(element).trim() === '') {
2874
- delete params[key];
2853
+ if (params[key][1][1]) {
2854
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2855
+ }
2856
+ } else {
2857
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2875
2858
  }
2876
- })();
2859
+ delete params[key];
2860
+ } else if (Array.isArray(element)) {
2861
+ params[key] = element.join(',');
2862
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2863
+ delete params[key];
2864
+ }
2877
2865
  }
2866
+ };
2867
+ for (var key in params) {
2868
+ _loop();
2878
2869
  }
2879
2870
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2880
2871
  pageSize: pageSize,
@@ -4533,76 +4524,74 @@ var AddSelect = function AddSelect(props) {
4533
4524
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4534
4525
  var result;
4535
4526
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4536
- while (1) {
4537
- 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;
4579
- 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;
4527
+ while (1) switch (_context.prev = _context.next) {
4528
+ case 0:
4529
+ if (!(bType == 'skc' && tList.some(function (i) {
4530
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4531
+ }))) {
4532
+ _context.next = 3;
4593
4533
  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();
4605
- }
4534
+ }
4535
+ message$1.warning('相同skc配码不可设置相同哦');
4536
+ return _context.abrupt("return", false);
4537
+ case 3:
4538
+ if (!(bType == 'spu')) {
4539
+ _context.next = 26;
4540
+ break;
4541
+ }
4542
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4543
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4544
+ }))) {
4545
+ _context.next = 7;
4546
+ break;
4547
+ }
4548
+ message$1.warning('相同商品相同配码颜色不可设置相同哦');
4549
+ return _context.abrupt("return", false);
4550
+ case 7:
4551
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4552
+ _context.next = 10;
4553
+ break;
4554
+ }
4555
+ message$1.warning('请先选择颜色!');
4556
+ return _context.abrupt("return", false);
4557
+ case 10:
4558
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4559
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4560
+ }))) {
4561
+ _context.next = 13;
4562
+ break;
4563
+ }
4564
+ message$1.warning('相同商品相同颜色配码不可设置相同哦');
4565
+ return _context.abrupt("return", false);
4566
+ case 13:
4567
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4568
+ _context.next = 26;
4569
+ break;
4570
+ }
4571
+ result = true;
4572
+ _context.prev = 15;
4573
+ _context.next = 18;
4574
+ return checkSpuMatchCode({
4575
+ skcCode: recordItem[recordKey],
4576
+ matchingCode: changeValue,
4577
+ ext1: recordItem.colorName
4578
+ });
4579
+ case 18:
4580
+ result = _context.sent;
4581
+ result = true;
4582
+ _context.next = 25;
4583
+ break;
4584
+ case 22:
4585
+ _context.prev = 22;
4586
+ _context.t0 = _context["catch"](15);
4587
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4588
+ case 25:
4589
+ return _context.abrupt("return", result);
4590
+ case 26:
4591
+ return _context.abrupt("return", true);
4592
+ case 27:
4593
+ case "end":
4594
+ return _context.stop();
4606
4595
  }
4607
4596
  }, _callee, null, [[15, 22]]);
4608
4597
  }));
@@ -4794,29 +4783,27 @@ var AddSelect = function AddSelect(props) {
4794
4783
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4795
4784
  var isConformToTheRules, newPopValue;
4796
4785
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4797
- while (1) {
4798
- switch (_context2.prev = _context2.next) {
4799
- case 0:
4800
- _context2.next = 2;
4801
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4802
- case 2:
4803
- isConformToTheRules = _context2.sent;
4804
- if (isConformToTheRules) {
4805
- record[item.dataIndex] = value;
4806
- } else {
4807
- record[item.dataIndex] = null;
4786
+ while (1) switch (_context2.prev = _context2.next) {
4787
+ case 0:
4788
+ _context2.next = 2;
4789
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4790
+ case 2:
4791
+ isConformToTheRules = _context2.sent;
4792
+ if (isConformToTheRules) {
4793
+ record[item.dataIndex] = value;
4794
+ } else {
4795
+ record[item.dataIndex] = null;
4796
+ }
4797
+ newPopValue = popvalue.map(function (i, innerIndex) {
4798
+ if (innerIndex == index) {
4799
+ i[item.dataIndex] = record[item.dataIndex];
4808
4800
  }
4809
- newPopValue = popvalue.map(function (i, innerIndex) {
4810
- if (innerIndex == index) {
4811
- i[item.dataIndex] = record[item.dataIndex];
4812
- }
4813
- return i;
4814
- });
4815
- setPopValue(newPopValue);
4816
- case 6:
4817
- case "end":
4818
- return _context2.stop();
4819
- }
4801
+ return i;
4802
+ });
4803
+ setPopValue(newPopValue);
4804
+ case 6:
4805
+ case "end":
4806
+ return _context2.stop();
4820
4807
  }
4821
4808
  }, _callee2);
4822
4809
  }));
@@ -4876,84 +4863,85 @@ var AddSelect = function AddSelect(props) {
4876
4863
  });
4877
4864
  }
4878
4865
  // 数组对象处理,对带有特殊标记的name进行处理
4879
- for (var key in params) {
4866
+ var _loop = function _loop() {
4880
4867
  if (Object.prototype.hasOwnProperty.call(params, key)) {
4881
- (function () {
4882
- var element = params[key];
4883
- if (element && key.indexOf('*number*') >= 0) {
4884
- var dataParams = key.split('*number*');
4885
- dataParams.forEach(function (value, index) {
4886
- params[value] = element[index];
4887
- });
4888
- delete params[key];
4889
- } else if (element && key.indexOf('*address*') >= 0) {
4890
- var _dataParams = key.split('*address*');
4891
- _dataParams.forEach(function (value, index) {
4892
- params[value] = element.PCDCode[index];
4893
- });
4894
- delete params[key];
4895
- } else if (element && key.indexOf('*costType*') >= 0) {
4896
- var _dataParams2 = key.split('*costType*');
4897
- // eslint-disable-next-line prefer-destructuring
4898
- params[_dataParams2[0]] = element[1];
4899
- delete params[key];
4900
- } else if (element && key.indexOf('*fullDate*') >= 0) {
4901
- var _dataParams3 = key.split('*fullDate*');
4902
- _dataParams3.forEach(function (value, index) {
4903
- if (index === 0) {
4904
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4905
- } else {
4906
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4907
- }
4908
- });
4909
- delete params[key];
4910
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4911
- var _dataParams4 = key.split('*checkBox*');
4912
- if (element) {
4913
- params[_dataParams4[0]] = 0;
4868
+ var element = params[key];
4869
+ if (element && key.indexOf('*number*') >= 0) {
4870
+ var dataParams = key.split('*number*');
4871
+ dataParams.forEach(function (value, index) {
4872
+ params[value] = element[index];
4873
+ });
4874
+ delete params[key];
4875
+ } else if (element && key.indexOf('*address*') >= 0) {
4876
+ var _dataParams = key.split('*address*');
4877
+ _dataParams.forEach(function (value, index) {
4878
+ params[value] = element.PCDCode[index];
4879
+ });
4880
+ delete params[key];
4881
+ } else if (element && key.indexOf('*costType*') >= 0) {
4882
+ var _dataParams2 = key.split('*costType*');
4883
+ // eslint-disable-next-line prefer-destructuring
4884
+ params[_dataParams2[0]] = element[1];
4885
+ delete params[key];
4886
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4887
+ var _dataParams3 = key.split('*fullDate*');
4888
+ _dataParams3.forEach(function (value, index) {
4889
+ if (index === 0) {
4890
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4891
+ } else {
4892
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4914
4893
  }
4915
- delete params[key];
4916
- } else if (element && key.indexOf('*cascader*') >= 0) {
4917
- var _dataParams5 = key.split('*cascader*');
4918
- params[_dataParams5[0]] = element[element.length - 1];
4919
- delete params[key];
4920
- } else if (element && key.indexOf('*date*') >= 0) {
4921
- var _dataParams6 = key.split('*date*');
4922
- _dataParams6.forEach(function (value, index) {
4923
- if (index === 0) {
4924
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4925
- } else {
4926
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4927
- }
4928
- });
4929
- delete params[key];
4930
- } else if (element && key.indexOf('*') >= 0) {
4931
- var _dataParams7 = key.split('*');
4932
- _dataParams7.forEach(function (value, index) {
4933
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4934
- });
4935
- delete params[key];
4936
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4937
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
4938
- var _dataParams8 = key.split('_selectNumberRange')[0];
4939
- if (params[key][0] === 'range') {
4940
- if (params[key][1][0]) {
4941
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4942
- }
4943
- if (params[key][1][1]) {
4944
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4945
- }
4894
+ });
4895
+ delete params[key];
4896
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4897
+ var _dataParams4 = key.split('*checkBox*');
4898
+ if (element) {
4899
+ params[_dataParams4[0]] = 0;
4900
+ }
4901
+ delete params[key];
4902
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4903
+ var _dataParams5 = key.split('*cascader*');
4904
+ params[_dataParams5[0]] = element[element.length - 1];
4905
+ delete params[key];
4906
+ } else if (element && key.indexOf('*date*') >= 0) {
4907
+ var _dataParams6 = key.split('*date*');
4908
+ _dataParams6.forEach(function (value, index) {
4909
+ if (index === 0) {
4910
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4946
4911
  } else {
4947
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4912
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4948
4913
  }
4949
- delete params[key];
4950
- } else if (Array.isArray(element)) {
4951
- params[key] = element.join(',');
4952
- } else if (element == null || element === undefined || String(element).trim() === '') {
4953
- delete params[key];
4914
+ });
4915
+ delete params[key];
4916
+ } else if (element && key.indexOf('*') >= 0) {
4917
+ var _dataParams7 = key.split('*');
4918
+ _dataParams7.forEach(function (value, index) {
4919
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4920
+ });
4921
+ delete params[key];
4922
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4923
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4924
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4925
+ if (params[key][0] === 'range') {
4926
+ if (params[key][1][0]) {
4927
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4928
+ }
4929
+ if (params[key][1][1]) {
4930
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4931
+ }
4932
+ } else {
4933
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4954
4934
  }
4955
- })();
4935
+ delete params[key];
4936
+ } else if (Array.isArray(element)) {
4937
+ params[key] = element.join(',');
4938
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4939
+ delete params[key];
4940
+ }
4956
4941
  }
4942
+ };
4943
+ for (var key in params) {
4944
+ _loop();
4957
4945
  }
4958
4946
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4959
4947
  pageSize: pageSize,
@@ -6408,72 +6396,70 @@ var BillEntry = function BillEntry(_ref3) {
6408
6396
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6409
6397
  var canEntryObject, _canEntryObject$error, messageInfo;
6410
6398
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6411
- while (1) {
6412
- switch (_context.prev = _context.next) {
6413
- case 0:
6414
- if (data === null || data === void 0 ? void 0 : data.length) {
6415
- _context.next = 3;
6416
- break;
6417
- }
6418
- message$1.warning('至少录入一条数据');
6419
- return _context.abrupt("return");
6420
- case 3:
6421
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6422
- return d.skuCode && d.name;
6423
- })) {
6424
- _context.next = 6;
6425
- break;
6426
- }
6427
- message$1.warning('请选择商品!');
6428
- return _context.abrupt("return");
6429
- case 6:
6430
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6431
- return d.count;
6432
- })) {
6433
- _context.next = 9;
6434
- break;
6435
- }
6436
- message$1.warning('请填写商品数量!');
6437
- return _context.abrupt("return");
6438
- case 9:
6439
- _context.next = 11;
6440
- return isSkuCanEntry(data);
6441
- case 11:
6442
- canEntryObject = _context.sent;
6443
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6444
- _context.next = 16;
6445
- break;
6446
- }
6447
- 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) {
6448
- return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6449
- }));
6450
- messageInfo && message$1.warning({
6451
- content: messageInfo,
6452
- duration: 6
6453
- });
6454
- return _context.abrupt("return");
6455
- case 16:
6456
- setLoading(true);
6457
- onSaveCallback(data).then(function (res) {
6458
- {
6459
- var _Object$keys;
6460
- var initSuccessMessage = '保存成功';
6461
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6462
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6463
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6464
- } else {
6465
- message$1.success(initSuccessMessage);
6466
- }
6399
+ while (1) switch (_context.prev = _context.next) {
6400
+ case 0:
6401
+ if (data === null || data === void 0 ? void 0 : data.length) {
6402
+ _context.next = 3;
6403
+ break;
6404
+ }
6405
+ message$1.warning('至少录入一条数据');
6406
+ return _context.abrupt("return");
6407
+ case 3:
6408
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6409
+ return d.skuCode && d.name;
6410
+ })) {
6411
+ _context.next = 6;
6412
+ break;
6413
+ }
6414
+ message$1.warning('请选择商品!');
6415
+ return _context.abrupt("return");
6416
+ case 6:
6417
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6418
+ return d.count;
6419
+ })) {
6420
+ _context.next = 9;
6421
+ break;
6422
+ }
6423
+ message$1.warning('请填写商品数量!');
6424
+ return _context.abrupt("return");
6425
+ case 9:
6426
+ _context.next = 11;
6427
+ return isSkuCanEntry(data);
6428
+ case 11:
6429
+ canEntryObject = _context.sent;
6430
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6431
+ _context.next = 16;
6432
+ break;
6433
+ }
6434
+ 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) {
6435
+ return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6436
+ }));
6437
+ messageInfo && message$1.warning({
6438
+ content: messageInfo,
6439
+ duration: 6
6440
+ });
6441
+ return _context.abrupt("return");
6442
+ case 16:
6443
+ setLoading(true);
6444
+ onSaveCallback(data).then(function (res) {
6445
+ {
6446
+ var _Object$keys;
6447
+ var initSuccessMessage = '保存成功';
6448
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6449
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6450
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message$1.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6451
+ } else {
6452
+ message$1.success(initSuccessMessage);
6467
6453
  }
6468
- setLoading(false);
6469
- }).catch(function (Error) {
6470
- message$1.error(Error);
6471
- setLoading(false);
6472
- });
6473
- case 18:
6474
- case "end":
6475
- return _context.stop();
6476
- }
6454
+ }
6455
+ setLoading(false);
6456
+ }).catch(function (Error) {
6457
+ message$1.error(Error);
6458
+ setLoading(false);
6459
+ });
6460
+ case 18:
6461
+ case "end":
6462
+ return _context.stop();
6477
6463
  }
6478
6464
  }, _callee);
6479
6465
  }));
@@ -6599,6 +6585,13 @@ var shopFile2Type = [{
6599
6585
  text: "自营B2C",
6600
6586
  value: 'B2C'
6601
6587
  }];
6588
+ var shopFile2Status = [{
6589
+ text: "启用",
6590
+ value: 10
6591
+ }, {
6592
+ text: "禁用",
6593
+ value: 20
6594
+ }];
6602
6595
  var arrivalPaySupportList = [{
6603
6596
  text: "支持",
6604
6597
  value: 1
@@ -7554,10 +7547,11 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
7554
7547
  mappingTextField: 'physicalWarehouseName',
7555
7548
  mappingTextShowKeyField: 'physicalWarehouseCode',
7556
7549
  mappingValueField: 'id',
7557
- otherParams: {
7558
- 'qp-isEnable-eq': 1,
7550
+ otherParams: _objectSpread2(_objectSpread2({}, (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? {} : {
7551
+ 'qp-isEnable-eq': 1
7552
+ }), {}, {
7559
7553
  sorter: 'desc-id'
7560
- },
7554
+ }),
7561
7555
  sourceName: 'warehouseIds'
7562
7556
  }, requestConfigProp);
7563
7557
  tableSearchForm = [{
@@ -7590,7 +7584,12 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
7590
7584
  }
7591
7585
  }
7592
7586
  }
7593
- }];
7587
+ }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
7588
+ name: 'qp-isEnable-eq',
7589
+ type: 'select',
7590
+ label: '物理仓状态',
7591
+ initialSource: getDictionarySource$1('SC00001')
7592
+ }] : []));
7594
7593
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
7595
7594
  pageSize: 5000,
7596
7595
  currentPage: 1,
@@ -7613,10 +7612,16 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
7613
7612
  render: function render(text) {
7614
7613
  return getDictionaryTextByValue('SC00002', text);
7615
7614
  }
7616
- }, {
7615
+ }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
7616
+ title: '状态',
7617
+ dataIndex: 'isEnable',
7618
+ render: function render(text) {
7619
+ return getDictionaryTextByValue('SC00001', text);
7620
+ }
7621
+ }] : []), [{
7617
7622
  title: '所属公司',
7618
7623
  dataIndex: 'companyName'
7619
- }]
7624
+ }])
7620
7625
  }, modalTableBusProps);
7621
7626
  }
7622
7627
  if (type === 'realWarehouse') {
@@ -7626,10 +7631,11 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
7626
7631
  mappingTextField: 'realWarehouseName',
7627
7632
  mappingTextShowKeyField: 'realWarehouseCode',
7628
7633
  mappingValueField: 'id',
7629
- otherParams: {
7630
- 'qp-isEnable-eq': 1,
7634
+ otherParams: _objectSpread2(_objectSpread2({}, (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? {} : {
7635
+ 'qp-isEnable-eq': 1
7636
+ }), {}, {
7631
7637
  sorter: 'desc-id'
7632
- },
7638
+ }),
7633
7639
  sourceName: 'warehouseIds'
7634
7640
  }, requestConfigProp);
7635
7641
  tableSearchForm = [{
@@ -7643,7 +7649,12 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
7643
7649
  type: 'select',
7644
7650
  label: '逻辑仓类型',
7645
7651
  initialSource: getDictionarySource$1('SC00004')
7646
- }];
7652
+ }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
7653
+ name: 'qp-isEnable-eq',
7654
+ type: 'select',
7655
+ label: '逻辑仓状态',
7656
+ initialSource: getDictionarySource$1('SC00001')
7657
+ }] : []));
7647
7658
  modalTableProps = _objectSpread2({
7648
7659
  modalTableTitle: '选择逻辑仓',
7649
7660
  tableSearchForm: tableSearchForm,
@@ -7659,7 +7670,13 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
7659
7670
  render: function render(text) {
7660
7671
  return getDictionaryTextByValue('SC00004', text);
7661
7672
  }
7662
- }]
7673
+ }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
7674
+ title: '状态',
7675
+ dataIndex: 'isEnable',
7676
+ render: function render(text) {
7677
+ return getDictionaryTextByValue('SC00001', text);
7678
+ }
7679
+ }] : []))
7663
7680
  }, modalTableBusProps);
7664
7681
  }
7665
7682
  if (type === 'ownerWarehouse') {
@@ -7669,10 +7686,11 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
7669
7686
  mappingTextField: 'name',
7670
7687
  mappingTextShowKeyField: 'operationWarehouseCode',
7671
7688
  mappingValueField: 'operationWarehouseCode',
7672
- otherParams: {
7673
- 'qp-status-eq': 1,
7689
+ otherParams: _objectSpread2(_objectSpread2({}, (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? {} : {
7690
+ 'qp-status-eq': 1
7691
+ }), {}, {
7674
7692
  sorter: 'desc-id'
7675
- },
7693
+ }),
7676
7694
  sourceName: 'qp-operationWarehouseCode-in'
7677
7695
  }, requestConfigProp);
7678
7696
  tableSearchForm = [{
@@ -7700,7 +7718,12 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
7700
7718
  }
7701
7719
  }
7702
7720
  }
7703
- }];
7721
+ }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
7722
+ name: 'qp-status-eq',
7723
+ type: 'select',
7724
+ label: '运营仓状态',
7725
+ initialSource: getDictionarySource$1('SC00001')
7726
+ }] : []));
7704
7727
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
7705
7728
  'qp-status-eq': 1
7706
7729
  })]).then(function (x) {
@@ -7718,7 +7741,13 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
7718
7741
  }, {
7719
7742
  title: '运营组',
7720
7743
  dataIndex: 'groupName'
7721
- }]
7744
+ }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
7745
+ title: '状态',
7746
+ dataIndex: 'status',
7747
+ render: function render(text) {
7748
+ return getDictionaryTextByValue('SC00001', text);
7749
+ }
7750
+ }] : []))
7722
7751
  }, modalTableBusProps);
7723
7752
  }
7724
7753
  // 仓库选择器(虚拟、渠道仓)(无弹窗)
@@ -8137,6 +8166,11 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
8137
8166
  type: 'select',
8138
8167
  label: '商店类型',
8139
8168
  initialSource: shopFile2Type
8169
+ }, {
8170
+ name: 'qp-status-in',
8171
+ type: 'select',
8172
+ label: '商店状态',
8173
+ initialSource: shopFile2Status
8140
8174
  }, {
8141
8175
  name: 'qp-orgCode-in',
8142
8176
  type: 'select',
@@ -8162,7 +8196,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
8162
8196
  'qp-realOrg-eq': true,
8163
8197
  'qp-status-eq': 10
8164
8198
  })]).then(function (x) {
8165
- formatSource(x, 0, 3, tableSearchForm);
8199
+ formatSource(x, 0, 4, tableSearchForm);
8166
8200
  });
8167
8201
  modalTableProps = _objectSpread2({
8168
8202
  modalTableTitle: '选择商店',
@@ -8182,6 +8216,15 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
8182
8216
  return i.value === text;
8183
8217
  })) === null || _shopFile2Type$find === void 0 ? void 0 : _shopFile2Type$find.text;
8184
8218
  }
8219
+ }, {
8220
+ title: '启用状态',
8221
+ dataIndex: 'status',
8222
+ render: function render(text) {
8223
+ var _shopFile2Status$find;
8224
+ return (_shopFile2Status$find = shopFile2Status.find(function (i) {
8225
+ return i.value === text;
8226
+ })) === null || _shopFile2Status$find === void 0 ? void 0 : _shopFile2Status$find.text;
8227
+ }
8185
8228
  }, {
8186
8229
  title: '所属销售组织',
8187
8230
  dataIndex: 'orgName'
@@ -9608,7 +9651,7 @@ var CommodityEntry = function CommodityEntry(props) {
9608
9651
  * @LastEditTime: 2022-01-14 17:17:26
9609
9652
  * @LastEditors: rodchen
9610
9653
  */
9611
- var index$1 = (function (storageKeyString) {
9654
+ var index$2 = (function (storageKeyString) {
9612
9655
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
9613
9656
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
9614
9657
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -9729,44 +9772,42 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9729
9772
  var _ctx$form;
9730
9773
  var resData, coverData, data, dataList;
9731
9774
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9732
- while (1) {
9733
- switch (_context.prev = _context.next) {
9734
- case 0:
9735
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9736
- if (!(resData.status === '0' || resData.code === '000000')) {
9737
- _context.next = 13;
9738
- break;
9739
- }
9740
- data = resData.data;
9741
- if (!remoteSource.converter) {
9742
- _context.next = 9;
9743
- break;
9744
- }
9745
- _context.next = 6;
9746
- return remoteSource.converter({
9747
- data: [data]
9748
- });
9749
- case 6:
9750
- coverData = _context.sent;
9751
- _context.next = 11;
9775
+ while (1) switch (_context.prev = _context.next) {
9776
+ case 0:
9777
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9778
+ if (!(resData.status === '0' || resData.code === '000000')) {
9779
+ _context.next = 13;
9752
9780
  break;
9753
- case 9:
9754
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
9755
- coverData = dataList.length && dataList.map(function (ites) {
9756
- return mapSearchTree(ites);
9757
- }) || [];
9758
- case 11:
9759
- _context.next = 14;
9781
+ }
9782
+ data = resData.data;
9783
+ if (!remoteSource.converter) {
9784
+ _context.next = 9;
9760
9785
  break;
9761
- case 13:
9762
- coverData = [];
9763
- case 14:
9764
- setTreeData(coverData);
9765
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9766
- case 16:
9767
- case "end":
9768
- return _context.stop();
9769
- }
9786
+ }
9787
+ _context.next = 6;
9788
+ return remoteSource.converter({
9789
+ data: [data]
9790
+ });
9791
+ case 6:
9792
+ coverData = _context.sent;
9793
+ _context.next = 11;
9794
+ break;
9795
+ case 9:
9796
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
9797
+ coverData = dataList.length && dataList.map(function (ites) {
9798
+ return mapSearchTree(ites);
9799
+ }) || [];
9800
+ case 11:
9801
+ _context.next = 14;
9802
+ break;
9803
+ case 13:
9804
+ coverData = [];
9805
+ case 14:
9806
+ setTreeData(coverData);
9807
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9808
+ case 16:
9809
+ case "end":
9810
+ return _context.stop();
9770
9811
  }
9771
9812
  }, _callee);
9772
9813
  }));
@@ -9973,7 +10014,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
9973
10014
  var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
9974
10015
  styleInject(css_248z$8);
9975
10016
 
9976
- var index$2 = (function (props) {
10017
+ var index$3 = (function (props) {
9977
10018
  var _props$formStatusMapp = props.formStatusMapping,
9978
10019
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
9979
10020
  return /*#__PURE__*/React.createElement("div", {
@@ -11397,7 +11438,7 @@ var iconMap = {
11397
11438
  src: moreIcon
11398
11439
  })
11399
11440
  };
11400
- var index$3 = (function (props) {
11441
+ var index$4 = (function (props) {
11401
11442
  var _useLocation = useLocation(),
11402
11443
  pathname = _useLocation.pathname;
11403
11444
  var _useState = useState(pathname + 'id'),
@@ -11614,7 +11655,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
11614
11655
  styleInject(css_248z$d);
11615
11656
 
11616
11657
  var _excluded$c = ["children"];
11617
- var index$4 = (function (props) {
11658
+ var index$5 = (function (props) {
11618
11659
  var _useLocation = useLocation(),
11619
11660
  pathname = _useLocation.pathname;
11620
11661
  var _useState = useState(pathname + 'id'),
@@ -12975,7 +13016,8 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
12975
13016
  }))))), /*#__PURE__*/React.createElement("div", {
12976
13017
  onClick: this.showModal,
12977
13018
  style: {
12978
- fontSize: 14
13019
+ fontSize: 14,
13020
+ textAlign: 'center'
12979
13021
  }
12980
13022
  }, "\u641C\u7D22\u9879\u8BBE\u7F6E"));
12981
13023
  }
@@ -13307,7 +13349,8 @@ var BsSulaQueryTable = (function (props) {
13307
13349
  overlay: /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement(Menu.Item, null, /*#__PURE__*/React.createElement("div", {
13308
13350
  onClick: sortTableRef === null || sortTableRef === void 0 ? void 0 : (_sortTableRef$current = sortTableRef.current) === null || _sortTableRef$current === void 0 ? void 0 : _sortTableRef$current.showModal,
13309
13351
  style: {
13310
- fontSize: 14
13352
+ fontSize: 14,
13353
+ textAlign: 'center'
13311
13354
  }
13312
13355
  }, "\u5217\u8BBE\u7F6E")), /*#__PURE__*/React.createElement(Menu.Item, null, /*#__PURE__*/React.createElement(SearchItemTable, {
13313
13356
  ref: searchTableRef,
@@ -13911,21 +13954,19 @@ function _outLogin() {
13911
13954
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
13912
13955
  var res;
13913
13956
  return _regeneratorRuntime().wrap(function _callee$(_context) {
13914
- while (1) {
13915
- switch (_context.prev = _context.next) {
13916
- case 0:
13917
- _context.next = 2;
13918
- return axios({
13919
- url: '/user/web/loginOut',
13920
- method: 'GET'
13921
- });
13922
- case 2:
13923
- res = _context.sent;
13924
- return _context.abrupt("return", res);
13925
- case 4:
13926
- case "end":
13927
- return _context.stop();
13928
- }
13957
+ while (1) switch (_context.prev = _context.next) {
13958
+ case 0:
13959
+ _context.next = 2;
13960
+ return axios({
13961
+ url: '/user/web/loginOut',
13962
+ method: 'GET'
13963
+ });
13964
+ case 2:
13965
+ res = _context.sent;
13966
+ return _context.abrupt("return", res);
13967
+ case 4:
13968
+ case "end":
13969
+ return _context.stop();
13929
13970
  }
13930
13971
  }, _callee);
13931
13972
  }));
@@ -14054,31 +14095,29 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14054
14095
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14055
14096
  var sessionId;
14056
14097
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14057
- while (1) {
14058
- switch (_context.prev = _context.next) {
14059
- case 0:
14060
- _context.next = 2;
14061
- return getSessionId();
14062
- case 2:
14063
- sessionId = _context.sent;
14064
- _context.next = 5;
14065
- return outLogin({
14066
- sessionId: sessionId
14098
+ while (1) switch (_context.prev = _context.next) {
14099
+ case 0:
14100
+ _context.next = 2;
14101
+ return getSessionId();
14102
+ case 2:
14103
+ sessionId = _context.sent;
14104
+ _context.next = 5;
14105
+ return outLogin({
14106
+ sessionId: sessionId
14107
+ });
14108
+ case 5:
14109
+ // @ts-ignore
14110
+ if (BUILD_TYPE) {
14111
+ message$1.success('退出登录成功');
14112
+ history.replace({
14113
+ pathname: '/user/login'
14067
14114
  });
14068
- case 5:
14069
- // @ts-ignore
14070
- if (BUILD_TYPE) {
14071
- message$1.success('退出登录成功');
14072
- history.replace({
14073
- pathname: '/user/login'
14074
- });
14075
- } else {
14076
- setLoginOutPath();
14077
- }
14078
- case 6:
14079
- case "end":
14080
- return _context.stop();
14081
- }
14115
+ } else {
14116
+ setLoginOutPath();
14117
+ }
14118
+ case 6:
14119
+ case "end":
14120
+ return _context.stop();
14082
14121
  }
14083
14122
  }, _callee);
14084
14123
  }));
@@ -15906,6 +15945,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
15906
15945
  showSubMenu: isShow
15907
15946
  });
15908
15947
  }, 500);
15948
+ //设置tabs标签左右滚动
15909
15949
  _this.setTabNavTransLate = function (num) {
15910
15950
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
15911
15951
  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];
@@ -16586,14 +16626,12 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16586
16626
  request: function () {
16587
16627
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16588
16628
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16589
- while (1) {
16590
- switch (_context.prev = _context.next) {
16591
- case 0:
16592
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16593
- case 1:
16594
- case "end":
16595
- return _context.stop();
16596
- }
16629
+ while (1) switch (_context.prev = _context.next) {
16630
+ case 0:
16631
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16632
+ case 1:
16633
+ case "end":
16634
+ return _context.stop();
16597
16635
  }
16598
16636
  }, _callee);
16599
16637
  }));
@@ -16731,7 +16769,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
16731
16769
  }]);
16732
16770
  return WrapperComponent;
16733
16771
  }(React.Component);
16734
- var index$5 = (function (props) {
16772
+ var index$6 = (function (props) {
16735
16773
  var _useModel = useModel('@@initialState'),
16736
16774
  _useModel$initialStat = _useModel.initialState,
16737
16775
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -16972,7 +17010,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
16972
17010
  };
16973
17011
  var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
16974
17012
 
16975
- var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
17013
+ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
16976
17014
  var _useState = useState(false),
16977
17015
  _useState2 = _slicedToArray(_useState, 2),
16978
17016
  show = _useState2[0],
@@ -24273,28 +24311,26 @@ var valueType = {
24273
24311
  var getDynamicDict = /*#__PURE__*/function () {
24274
24312
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24275
24313
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24276
- while (1) {
24277
- switch (_context.prev = _context.next) {
24278
- case 0:
24279
- _context.next = 2;
24280
- return request$1({
24281
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24282
- converter: function converter(_ref2) {
24283
- var data = _ref2.data;
24284
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24285
- return {
24286
- text: d.name,
24287
- value: d.code || d.brandCode
24288
- };
24289
- });
24290
- }
24291
- });
24292
- case 2:
24293
- return _context.abrupt("return", _context.sent);
24294
- case 3:
24295
- case "end":
24296
- return _context.stop();
24297
- }
24314
+ while (1) switch (_context.prev = _context.next) {
24315
+ case 0:
24316
+ _context.next = 2;
24317
+ return request$1({
24318
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24319
+ converter: function converter(_ref2) {
24320
+ var data = _ref2.data;
24321
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24322
+ return {
24323
+ text: d.name,
24324
+ value: d.code || d.brandCode
24325
+ };
24326
+ });
24327
+ }
24328
+ });
24329
+ case 2:
24330
+ return _context.abrupt("return", _context.sent);
24331
+ case 3:
24332
+ case "end":
24333
+ return _context.stop();
24298
24334
  }
24299
24335
  }, _callee);
24300
24336
  }));
@@ -24344,55 +24380,53 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24344
24380
  useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24345
24381
  var _ref$current, source;
24346
24382
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24347
- while (1) {
24348
- switch (_context.prev = _context.next) {
24349
- case 0:
24350
- _context.next = 2;
24351
- return setIsShowAndType(function (prev) {
24352
- if (record.inputType === 20 || record.inputType === 30) {
24353
- return {
24354
- isShow: true,
24355
- singleOrMultiple: record.inputType,
24356
- type: record.choiceType
24357
- };
24358
- }
24359
- return prev;
24360
- });
24361
- case 2:
24362
- if (!record.dictionaryCode) {
24363
- _context.next = 17;
24364
- break;
24365
- }
24366
- if (!(record.choiceType == 20)) {
24367
- _context.next = 7;
24368
- break;
24383
+ while (1) switch (_context.prev = _context.next) {
24384
+ case 0:
24385
+ _context.next = 2;
24386
+ return setIsShowAndType(function (prev) {
24387
+ if (record.inputType === 20 || record.inputType === 30) {
24388
+ return {
24389
+ isShow: true,
24390
+ singleOrMultiple: record.inputType,
24391
+ type: record.choiceType
24392
+ };
24369
24393
  }
24370
- _context.t0 = getDictionarySource(record.dictionaryCode);
24371
- _context.next = 15;
24394
+ return prev;
24395
+ });
24396
+ case 2:
24397
+ if (!record.dictionaryCode) {
24398
+ _context.next = 17;
24372
24399
  break;
24373
- case 7:
24374
- if (!(record.choiceType == 30)) {
24375
- _context.next = 13;
24376
- break;
24377
- }
24378
- _context.next = 10;
24379
- return getDynamicDict(record.dictionaryCode);
24380
- case 10:
24381
- _context.t1 = _context.sent;
24382
- _context.next = 14;
24400
+ }
24401
+ if (!(record.choiceType == 20)) {
24402
+ _context.next = 7;
24383
24403
  break;
24384
- case 13:
24385
- _context.t1 = [];
24386
- case 14:
24387
- _context.t0 = _context.t1;
24388
- case 15:
24389
- source = _context.t0;
24390
- // @ts-ignore
24391
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24392
- case 17:
24393
- case "end":
24394
- return _context.stop();
24395
- }
24404
+ }
24405
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24406
+ _context.next = 15;
24407
+ break;
24408
+ case 7:
24409
+ if (!(record.choiceType == 30)) {
24410
+ _context.next = 13;
24411
+ break;
24412
+ }
24413
+ _context.next = 10;
24414
+ return getDynamicDict(record.dictionaryCode);
24415
+ case 10:
24416
+ _context.t1 = _context.sent;
24417
+ _context.next = 14;
24418
+ break;
24419
+ case 13:
24420
+ _context.t1 = [];
24421
+ case 14:
24422
+ _context.t0 = _context.t1;
24423
+ case 15:
24424
+ source = _context.t0;
24425
+ // @ts-ignore
24426
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24427
+ case 17:
24428
+ case "end":
24429
+ return _context.stop();
24396
24430
  }
24397
24431
  }, _callee);
24398
24432
  })));
@@ -24460,30 +24494,28 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24460
24494
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24461
24495
  var form, values, name, relates, source;
24462
24496
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
24463
- while (1) {
24464
- switch (_context2.prev = _context2.next) {
24465
- case 0:
24466
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24467
- if (values[0]) {
24468
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24469
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24470
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24471
- }
24472
- if (!values[1]) {
24473
- _context2.next = 9;
24474
- break;
24475
- }
24476
- _context2.next = 5;
24477
- return getDynamicDict(record.dictionaryCode || values[1]);
24478
- case 5:
24479
- source = _context2.sent;
24497
+ while (1) switch (_context2.prev = _context2.next) {
24498
+ case 0:
24499
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24500
+ if (values[0]) {
24480
24501
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24481
24502
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24482
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24483
- case 9:
24484
- case "end":
24485
- return _context2.stop();
24486
- }
24503
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24504
+ }
24505
+ if (!values[1]) {
24506
+ _context2.next = 9;
24507
+ break;
24508
+ }
24509
+ _context2.next = 5;
24510
+ return getDynamicDict(record.dictionaryCode || values[1]);
24511
+ case 5:
24512
+ source = _context2.sent;
24513
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24514
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24515
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24516
+ case 9:
24517
+ case "end":
24518
+ return _context2.stop();
24487
24519
  }
24488
24520
  }, _callee2);
24489
24521
  }));
@@ -24943,43 +24975,41 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24943
24975
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
24944
24976
  var values, name, form, source;
24945
24977
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
24946
- while (1) {
24947
- switch (_context3.prev = _context3.next) {
24948
- case 0:
24949
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
24950
- if (values[1] === 40) {
24951
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
24952
- form.setFieldVisible(name, false);
24953
- }
24954
- if (!(values[0] === 30)) {
24955
- _context3.next = 10;
24956
- break;
24957
- }
24958
- _context3.next = 5;
24959
- return request$1({
24960
- url: '/basic/dictDynamicItem/queryList',
24961
- converter: function converter(_ref11) {
24962
- var data = _ref11.data;
24963
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24964
- return {
24965
- text: d.dictCode,
24966
- value: d.dictCode
24967
- };
24968
- });
24969
- }
24970
- });
24971
- case 5:
24972
- source = _context3.sent;
24973
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
24974
- form.setFieldVisible(name, true);
24975
- _context3.next = 11;
24976
- break;
24977
- case 10:
24978
+ while (1) switch (_context3.prev = _context3.next) {
24979
+ case 0:
24980
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
24981
+ if (values[1] === 40) {
24982
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
24978
24983
  form.setFieldVisible(name, false);
24979
- case 11:
24980
- case "end":
24981
- return _context3.stop();
24982
- }
24984
+ }
24985
+ if (!(values[0] === 30)) {
24986
+ _context3.next = 10;
24987
+ break;
24988
+ }
24989
+ _context3.next = 5;
24990
+ return request$1({
24991
+ url: '/basic/dictDynamicItem/queryList',
24992
+ converter: function converter(_ref11) {
24993
+ var data = _ref11.data;
24994
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24995
+ return {
24996
+ text: d.dictCode,
24997
+ value: d.dictCode
24998
+ };
24999
+ });
25000
+ }
25001
+ });
25002
+ case 5:
25003
+ source = _context3.sent;
25004
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25005
+ form.setFieldVisible(name, true);
25006
+ _context3.next = 11;
25007
+ break;
25008
+ case 10:
25009
+ form.setFieldVisible(name, false);
25010
+ case 11:
25011
+ case "end":
25012
+ return _context3.stop();
24983
25013
  }
24984
25014
  }, _callee3);
24985
25015
  }));
@@ -25168,66 +25198,64 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25168
25198
  var _ref$current4, _res$editableStatus;
25169
25199
  var res, _res$defaultValue;
25170
25200
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
25171
- while (1) {
25172
- switch (_context4.prev = _context4.next) {
25173
- case 0:
25174
- _context4.next = 2;
25175
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25176
- case 2:
25177
- res = _context4.sent;
25178
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25179
- res.fieldGroup = record.fieldGroup;
25180
- res.businessType = record.businessType;
25181
- res.info = {
25182
- enumeration: res.enumeration,
25183
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25184
- formula: res.formula,
25185
- scale: res.scale,
25186
- variable: res.variable
25187
- };
25188
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25189
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25190
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25191
- if (res.inputType === 40) {
25192
- res.valueType = 22;
25201
+ while (1) switch (_context4.prev = _context4.next) {
25202
+ case 0:
25203
+ _context4.next = 2;
25204
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25205
+ case 2:
25206
+ res = _context4.sent;
25207
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25208
+ res.fieldGroup = record.fieldGroup;
25209
+ res.businessType = record.businessType;
25210
+ res.info = {
25211
+ enumeration: res.enumeration,
25212
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25213
+ formula: res.formula,
25214
+ scale: res.scale,
25215
+ variable: res.variable
25216
+ };
25217
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25218
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25219
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25220
+ if (res.inputType === 40) {
25221
+ res.valueType = 22;
25222
+ }
25223
+ // 把数组处理成文本
25224
+ if (res.inputType === 30) {
25225
+ if (res.defaultValue) {
25226
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25193
25227
  }
25194
- // 把数组处理成文本
25195
- if (res.inputType === 30) {
25196
- if (res.defaultValue) {
25197
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25198
- }
25228
+ }
25229
+ res.fieldMapping = res.fieldMapping || '';
25230
+ delete res.formula;
25231
+ delete res.showValue;
25232
+ if (!(mode === 'create')) {
25233
+ _context4.next = 18;
25234
+ break;
25235
+ }
25236
+ request$1({
25237
+ url: "/basic/flow/businessField",
25238
+ method: 'POST',
25239
+ params: res,
25240
+ successMessage: '创建成功!',
25241
+ converter: function converter() {
25242
+ onParentOk();
25199
25243
  }
25200
- res.fieldMapping = res.fieldMapping || '';
25201
- delete res.formula;
25202
- delete res.showValue;
25203
- if (!(mode === 'create')) {
25204
- _context4.next = 18;
25205
- break;
25244
+ });
25245
+ return _context4.abrupt("return");
25246
+ case 18:
25247
+ request$1({
25248
+ url: "/basic/flow/businessField/".concat(record.id),
25249
+ method: 'PATCH',
25250
+ params: res,
25251
+ successMessage: '修改成功!',
25252
+ converter: function converter() {
25253
+ onParentOk();
25206
25254
  }
25207
- request$1({
25208
- url: "/basic/flow/businessField",
25209
- method: 'POST',
25210
- params: res,
25211
- successMessage: '创建成功!',
25212
- converter: function converter() {
25213
- onParentOk();
25214
- }
25215
- });
25216
- return _context4.abrupt("return");
25217
- case 18:
25218
- request$1({
25219
- url: "/basic/flow/businessField/".concat(record.id),
25220
- method: 'PATCH',
25221
- params: res,
25222
- successMessage: '修改成功!',
25223
- converter: function converter() {
25224
- onParentOk();
25225
- }
25226
- });
25227
- case 19:
25228
- case "end":
25229
- return _context4.stop();
25230
- }
25255
+ });
25256
+ case 19:
25257
+ case "end":
25258
+ return _context4.stop();
25231
25259
  }
25232
25260
  }, _callee4);
25233
25261
  }));
@@ -26012,28 +26040,26 @@ var BsCascader = function BsCascader(_ref) {
26012
26040
  useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26013
26041
  var resData, data;
26014
26042
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26015
- while (1) {
26016
- switch (_context.prev = _context.next) {
26017
- case 0:
26018
- if (!(!source && initRequestSource)) {
26019
- _context.next = 6;
26020
- break;
26021
- }
26022
- _context.next = 3;
26023
- return initRequestSource();
26024
- case 3:
26025
- resData = _context.sent;
26026
- data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26027
- return _objectSpread2(_objectSpread2({}, item), {}, {
26028
- label: item.text,
26029
- isLeaf: false
26030
- });
26031
- })) || [];
26032
- setHandSource(data);
26033
- case 6:
26034
- case "end":
26035
- return _context.stop();
26036
- }
26043
+ while (1) switch (_context.prev = _context.next) {
26044
+ case 0:
26045
+ if (!(!source && initRequestSource)) {
26046
+ _context.next = 6;
26047
+ break;
26048
+ }
26049
+ _context.next = 3;
26050
+ return initRequestSource();
26051
+ case 3:
26052
+ resData = _context.sent;
26053
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26054
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26055
+ label: item.text,
26056
+ isLeaf: false
26057
+ });
26058
+ })) || [];
26059
+ setHandSource(data);
26060
+ case 6:
26061
+ case "end":
26062
+ return _context.stop();
26037
26063
  }
26038
26064
  }, _callee);
26039
26065
  })), []);
@@ -26165,20 +26191,18 @@ function getRegularThresholdRange(_x) {
26165
26191
  function _getRegularThresholdRange() {
26166
26192
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
26167
26193
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26168
- while (1) {
26169
- switch (_context.prev = _context.next) {
26170
- case 0:
26171
- return _context.abrupt("return", axios({
26172
- url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26173
- method: 'POST',
26174
- data: _objectSpread2(_objectSpread2({}, params), {}, {
26175
- queryIdentify: undefined
26176
- })
26177
- }));
26178
- case 1:
26179
- case "end":
26180
- return _context.stop();
26181
- }
26194
+ while (1) switch (_context.prev = _context.next) {
26195
+ case 0:
26196
+ return _context.abrupt("return", axios({
26197
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26198
+ method: 'POST',
26199
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26200
+ queryIdentify: undefined
26201
+ })
26202
+ }));
26203
+ case 1:
26204
+ case "end":
26205
+ return _context.stop();
26182
26206
  }
26183
26207
  }, _callee);
26184
26208
  }));
@@ -26317,137 +26341,136 @@ var RuleField = /*#__PURE__*/function (_Component) {
26317
26341
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
26318
26342
  });
26319
26343
  };
26344
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
26320
26345
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
26321
26346
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
26322
26347
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
26323
26348
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26324
- while (1) {
26325
- switch (_context.prev = _context.next) {
26326
- case 0:
26327
- if (queryIdentify) {
26328
- _context.next = 2;
26329
- break;
26330
- }
26331
- return _context.abrupt("return");
26332
- case 2:
26333
- thresholdQuery = _this.state.thresholdQuery;
26334
- extraRequestUrl = '';
26335
- querParams = setParams(propertyCode, thresholdQuery);
26336
- if (!queryIdentityInfo.find(function (item) {
26337
- return item.identity == propertyCode;
26338
- })) {
26339
- _context.next = 10;
26340
- break;
26341
- }
26342
- //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26343
- needQueryList = queryIdentityInfo.find(function (item) {
26344
- return item.identity == propertyCode;
26345
- }).queryParam.filter(function (item) {
26346
- return item.isRequired;
26347
- }).map(function (item) {
26348
- return item.queryKey;
26349
- });
26350
- if (!needQueryList.some(function (item) {
26351
- return !querParams[item] || !querParams[item].length;
26352
- })) {
26353
- _context.next = 9;
26354
- break;
26355
- }
26356
- return _context.abrupt("return");
26357
- case 9:
26358
- extraRequestUrl = queryIdentityInfo.find(function (item) {
26359
- return item.identity == propertyCode;
26360
- }).requestUrl || '';
26361
- case 10:
26362
- if (queryIdentifyType === 'dictCodeIdentify') {
26363
- extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26364
- querParams = {
26365
- dictCode: queryIdentify
26366
- };
26367
- } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26368
- extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26369
- // querParams = { dictCode: queryIdentify }
26370
- }
26371
- if (!extraRequestUrl) {
26372
- _context.next = 16;
26373
- break;
26374
- }
26375
- if (queryIdentify == 'maintain_area_code') {
26376
- extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26377
- } else if (queryIdentifyType == 'dictCodeIdentify') {
26378
- extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26379
- } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26380
- extraRequestUrl = "/basic/".concat(extraRequestUrl);
26381
- }
26382
- request$1({
26383
- url: extraRequestUrl,
26384
- method: 'get',
26385
- converter: function converter(res) {
26386
- if (handleError(res)) {
26387
- var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26388
- if (queryIdentifyType === 'dictCodeIdentify') {
26389
- var _handleData2;
26390
- _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26391
- return {
26392
- code: i.dictItemCode,
26393
- name: i.dictItemName
26394
- };
26395
- }) : [];
26396
- }
26397
- if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26398
- var _handleData3;
26399
- _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26400
- return {
26401
- code: i.code.toString(),
26402
- name: i.name
26403
- };
26404
- }) : [];
26405
- }
26406
- _this.setState({
26407
- thresholdList: _handleData
26408
- });
26349
+ while (1) switch (_context.prev = _context.next) {
26350
+ case 0:
26351
+ if (queryIdentify) {
26352
+ _context.next = 2;
26353
+ break;
26354
+ }
26355
+ return _context.abrupt("return");
26356
+ case 2:
26357
+ thresholdQuery = _this.state.thresholdQuery;
26358
+ extraRequestUrl = '';
26359
+ querParams = setParams(propertyCode, thresholdQuery);
26360
+ if (!queryIdentityInfo.find(function (item) {
26361
+ return item.identity == propertyCode;
26362
+ })) {
26363
+ _context.next = 10;
26364
+ break;
26365
+ }
26366
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26367
+ needQueryList = queryIdentityInfo.find(function (item) {
26368
+ return item.identity == propertyCode;
26369
+ }).queryParam.filter(function (item) {
26370
+ return item.isRequired;
26371
+ }).map(function (item) {
26372
+ return item.queryKey;
26373
+ });
26374
+ if (!needQueryList.some(function (item) {
26375
+ return !querParams[item] || !querParams[item].length;
26376
+ })) {
26377
+ _context.next = 9;
26378
+ break;
26379
+ }
26380
+ return _context.abrupt("return");
26381
+ case 9:
26382
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26383
+ return item.identity == propertyCode;
26384
+ }).requestUrl || '';
26385
+ case 10:
26386
+ if (queryIdentifyType === 'dictCodeIdentify') {
26387
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26388
+ querParams = {
26389
+ dictCode: queryIdentify
26390
+ };
26391
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26392
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26393
+ // querParams = { dictCode: queryIdentify }
26394
+ }
26395
+ if (!extraRequestUrl) {
26396
+ _context.next = 16;
26397
+ break;
26398
+ }
26399
+ if (queryIdentify == 'maintain_area_code') {
26400
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(stringify(querParams));
26401
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26402
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(stringify(querParams));
26403
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26404
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26405
+ }
26406
+ request$1({
26407
+ url: extraRequestUrl,
26408
+ method: 'get',
26409
+ converter: function converter(res) {
26410
+ if (handleError(res)) {
26411
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26412
+ if (queryIdentifyType === 'dictCodeIdentify') {
26413
+ var _handleData2;
26414
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26415
+ return {
26416
+ code: i.dictItemCode,
26417
+ name: i.dictItemName
26418
+ };
26419
+ }) : [];
26409
26420
  }
26410
- return handleData;
26421
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26422
+ var _handleData3;
26423
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26424
+ return {
26425
+ code: i.code.toString(),
26426
+ name: i.name
26427
+ };
26428
+ }) : [];
26429
+ }
26430
+ _this.setState({
26431
+ thresholdList: _handleData
26432
+ });
26411
26433
  }
26412
- });
26413
- _context.next = 29;
26414
- break;
26415
- case 16:
26416
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26417
- _context.next = 20;
26418
- break;
26434
+ return handleData;
26419
26435
  }
26420
- _this.setState({
26421
- thresholdList: queryIdentify
26422
- });
26423
- _context.next = 29;
26436
+ });
26437
+ _context.next = 29;
26438
+ break;
26439
+ case 16:
26440
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26441
+ _context.next = 20;
26424
26442
  break;
26425
- case 20:
26426
- if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26427
- _context.next = 24;
26428
- break;
26429
- }
26430
- // TODO待处理
26443
+ }
26444
+ _this.setState({
26445
+ thresholdList: queryIdentify
26446
+ });
26447
+ _context.next = 29;
26448
+ break;
26449
+ case 20:
26450
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26451
+ _context.next = 24;
26452
+ break;
26453
+ }
26454
+ // TODO待处理
26455
+ _this.setState({
26456
+ thresholdList: []
26457
+ });
26458
+ _context.next = 29;
26459
+ break;
26460
+ case 24:
26461
+ querParams.queryIdentify = queryIdentify;
26462
+ _context.next = 27;
26463
+ return getRegularThresholdRange(querParams);
26464
+ case 27:
26465
+ res = _context.sent;
26466
+ if (handleError(res)) {
26431
26467
  _this.setState({
26432
- thresholdList: []
26468
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26433
26469
  });
26434
- _context.next = 29;
26435
- break;
26436
- case 24:
26437
- querParams.queryIdentify = queryIdentify;
26438
- _context.next = 27;
26439
- return getRegularThresholdRange(querParams);
26440
- case 27:
26441
- res = _context.sent;
26442
- if (handleError(res)) {
26443
- _this.setState({
26444
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26445
- });
26446
- }
26447
- case 29:
26448
- case "end":
26449
- return _context.stop();
26450
- }
26470
+ }
26471
+ case 29:
26472
+ case "end":
26473
+ return _context.stop();
26451
26474
  }
26452
26475
  }, _callee);
26453
26476
  }));
@@ -27266,32 +27289,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27266
27289
  notChangeOnSelect: true,
27267
27290
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
27268
27291
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
27269
- while (1) {
27270
- switch (_context2.prev = _context2.next) {
27271
- case 0:
27272
- _context2.next = 2;
27273
- return request$1({
27274
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27275
- method: 'get',
27276
- converter: function converter(_ref3) {
27277
- var data = _ref3.data;
27278
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27279
- return {
27280
- text: item.name,
27281
- value: item.id,
27282
- level: item.level,
27283
- id: item.id
27284
- };
27285
- }) : [];
27286
- return handleData;
27287
- }
27288
- });
27289
- case 2:
27290
- return _context2.abrupt("return", _context2.sent);
27291
- case 3:
27292
- case "end":
27293
- return _context2.stop();
27294
- }
27292
+ while (1) switch (_context2.prev = _context2.next) {
27293
+ case 0:
27294
+ _context2.next = 2;
27295
+ return request$1({
27296
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27297
+ method: 'get',
27298
+ converter: function converter(_ref3) {
27299
+ var data = _ref3.data;
27300
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27301
+ return {
27302
+ text: item.name,
27303
+ value: item.id,
27304
+ level: item.level,
27305
+ id: item.id
27306
+ };
27307
+ }) : [];
27308
+ return handleData;
27309
+ }
27310
+ });
27311
+ case 2:
27312
+ return _context2.abrupt("return", _context2.sent);
27313
+ case 3:
27314
+ case "end":
27315
+ return _context2.stop();
27295
27316
  }
27296
27317
  }, _callee2);
27297
27318
  })),
@@ -27317,32 +27338,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27317
27338
  notChangeOnSelect: true,
27318
27339
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
27319
27340
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
27320
- while (1) {
27321
- switch (_context3.prev = _context3.next) {
27322
- case 0:
27323
- _context3.next = 2;
27324
- return request$1({
27325
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27326
- method: 'get',
27327
- converter: function converter(_ref5) {
27328
- var data = _ref5.data;
27329
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27330
- return {
27331
- text: item.name,
27332
- value: item.id,
27333
- level: item.level,
27334
- id: item.id
27335
- };
27336
- }) : [];
27337
- return handleData;
27338
- }
27339
- });
27340
- case 2:
27341
- return _context3.abrupt("return", _context3.sent);
27342
- case 3:
27343
- case "end":
27344
- return _context3.stop();
27345
- }
27341
+ while (1) switch (_context3.prev = _context3.next) {
27342
+ case 0:
27343
+ _context3.next = 2;
27344
+ return request$1({
27345
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27346
+ method: 'get',
27347
+ converter: function converter(_ref5) {
27348
+ var data = _ref5.data;
27349
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27350
+ return {
27351
+ text: item.name,
27352
+ value: item.id,
27353
+ level: item.level,
27354
+ id: item.id
27355
+ };
27356
+ }) : [];
27357
+ return handleData;
27358
+ }
27359
+ });
27360
+ case 2:
27361
+ return _context3.abrupt("return", _context3.sent);
27362
+ case 3:
27363
+ case "end":
27364
+ return _context3.stop();
27346
27365
  }
27347
27366
  }, _callee3);
27348
27367
  })),
@@ -27370,32 +27389,30 @@ var RuleField = /*#__PURE__*/function (_Component) {
27370
27389
  notChangeOnSelect: true,
27371
27390
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
27372
27391
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
27373
- while (1) {
27374
- switch (_context4.prev = _context4.next) {
27375
- case 0:
27376
- _context4.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(_ref7) {
27381
- var data = _ref7.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 _context4.abrupt("return", _context4.sent);
27395
- case 3:
27396
- case "end":
27397
- return _context4.stop();
27398
- }
27392
+ while (1) switch (_context4.prev = _context4.next) {
27393
+ case 0:
27394
+ _context4.next = 2;
27395
+ return request$1({
27396
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27397
+ method: 'get',
27398
+ converter: function converter(_ref7) {
27399
+ var data = _ref7.data;
27400
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27401
+ return {
27402
+ text: item.name,
27403
+ value: item.id,
27404
+ level: item.level,
27405
+ id: item.id
27406
+ };
27407
+ }) : [];
27408
+ return handleData;
27409
+ }
27410
+ });
27411
+ case 2:
27412
+ return _context4.abrupt("return", _context4.sent);
27413
+ case 3:
27414
+ case "end":
27415
+ return _context4.stop();
27399
27416
  }
27400
27417
  }, _callee4);
27401
27418
  })),
@@ -28512,8 +28529,6 @@ var RuleField = /*#__PURE__*/function (_Component) {
28512
28529
  });
28513
28530
  }
28514
28531
  }
28515
-
28516
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28517
28532
  }, {
28518
28533
  key: "render",
28519
28534
  value: function render() {
@@ -29344,6 +29359,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29344
29359
  callBack(ruleClassData);
29345
29360
  });
29346
29361
  };
29362
+ // 树结构 转化成 平行树 (递归函数)
29347
29363
  _this.coverToParallel = function (treeData, result) {
29348
29364
  treeData.forEach(function (el) {
29349
29365
  result.push(el);
@@ -29597,6 +29613,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29597
29613
  callBack(ruleClassData);
29598
29614
  });
29599
29615
  };
29616
+ // 场景需要返回值2022.11.15
29600
29617
  _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
29601
29618
  var _ruleReturnConfig$rig;
29602
29619
  var isShowResponse = itemDetail.response['enable'];
@@ -29894,32 +29911,30 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29894
29911
  notChangeOnSelect: true,
29895
29912
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29896
29913
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29897
- while (1) {
29898
- switch (_context.prev = _context.next) {
29899
- case 0:
29900
- _context.next = 2;
29901
- return request$1({
29902
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29903
- method: 'get',
29904
- converter: function converter(_ref2) {
29905
- var data = _ref2.data;
29906
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29907
- return {
29908
- text: item.name,
29909
- value: item.id,
29910
- level: item.level,
29911
- id: item.id
29912
- };
29913
- }) : [];
29914
- return handleData;
29915
- }
29916
- });
29917
- case 2:
29918
- return _context.abrupt("return", _context.sent);
29919
- case 3:
29920
- case "end":
29921
- return _context.stop();
29922
- }
29914
+ while (1) switch (_context.prev = _context.next) {
29915
+ case 0:
29916
+ _context.next = 2;
29917
+ return request$1({
29918
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29919
+ method: 'get',
29920
+ converter: function converter(_ref2) {
29921
+ var data = _ref2.data;
29922
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29923
+ return {
29924
+ text: item.name,
29925
+ value: item.id,
29926
+ level: item.level,
29927
+ id: item.id
29928
+ };
29929
+ }) : [];
29930
+ return handleData;
29931
+ }
29932
+ });
29933
+ case 2:
29934
+ return _context.abrupt("return", _context.sent);
29935
+ case 3:
29936
+ case "end":
29937
+ return _context.stop();
29923
29938
  }
29924
29939
  }, _callee);
29925
29940
  })),
@@ -30253,6 +30268,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30253
30268
  }
30254
30269
  }, "\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);
30255
30270
  };
30271
+ //添加同一层级条件
30256
30272
  _this.addPeerRule = function (itemDetail) {
30257
30273
  var ruleClassData = _this.state.ruleClassData;
30258
30274
  var _this$props4 = _this.props,
@@ -30273,6 +30289,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30273
30289
  callBack(ruleClassData);
30274
30290
  });
30275
30291
  };
30292
+ //添加子层级条件
30276
30293
  _this.addChildRules = function (itemDetail) {
30277
30294
  var ruleClassData = _this.state.ruleClassData;
30278
30295
  var callBack = _this.props.callBack;
@@ -30348,6 +30365,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30348
30365
  callBack(ruleClassData);
30349
30366
  });
30350
30367
  };
30368
+ // 新增执行顺序
30351
30369
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
30352
30370
  callback();
30353
30371
  var callBack = _this.props.callBack;
@@ -30498,4 +30516,4 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30498
30516
  return RuleObjectComponent;
30499
30517
  }(Component);
30500
30518
 
30501
- export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, GuideWrapper, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, SearchSelect, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };
30519
+ export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$6 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$2 as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$4 as DetailPageWrapper, EllipsisTooltip, ExportIcon, GuideWrapper, index$5 as HomePageWrapper, JsonQueryTable, index$7 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, SearchSelect, index$3 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };