@bit-sun/business-component 2.3.7 → 2.3.9

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/BsSulaQueryTable/setting.d.ts +2 -2
  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 +980 -918
  15. package/dist/index.js +986 -924
  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 +532 -527
  80. package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -832
  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 +1732 -1732
  124. package/src/components/Business/SearchSelect/common.ts +53 -53
  125. package/src/components/Business/SearchSelect/index.md +1319 -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.js CHANGED
@@ -6,7 +6,7 @@ var axios = require('axios');
6
6
  var antd = require('antd');
7
7
  var _ = require('lodash');
8
8
  var umi = require('umi');
9
- var isEqual = require('lodash/isEqual');
9
+ var isEqual$1 = require('lodash/isEqual');
10
10
  var React = require('react');
11
11
  var moment$1 = require('moment');
12
12
  var icons = require('@ant-design/icons');
@@ -33,7 +33,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
33
33
 
34
34
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
35
35
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
36
- var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
36
+ var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual$1);
37
37
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
38
38
  var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment$1);
39
39
  var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
@@ -781,41 +781,52 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
781
781
  return '';
782
782
  };
783
783
 
784
- var simpleIsEqual = function simpleIsEqual(a, b) {
785
- return a === b;
786
- };
787
-
788
- function index$1 (resultFn, isEqual) {
789
- if (isEqual === void 0) {
790
- isEqual = simpleIsEqual;
791
- }
792
-
793
- var lastThis;
794
- var lastArgs = [];
795
- var lastResult;
796
- var calledOnce = false;
797
-
798
- var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
799
- return isEqual(newArg, lastArgs[index], index);
800
- };
801
-
802
- var result = function result() {
803
- for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
804
- newArgs[_key] = arguments[_key];
784
+ var safeIsNaN = Number.isNaN ||
785
+ function ponyfill(value) {
786
+ return typeof value === 'number' && value !== value;
787
+ };
788
+ function isEqual(first, second) {
789
+ if (first === second) {
790
+ return true;
805
791
  }
806
-
807
- if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
808
- return lastResult;
792
+ if (safeIsNaN(first) && safeIsNaN(second)) {
793
+ return true;
809
794
  }
795
+ return false;
796
+ }
797
+ function areInputsEqual(newInputs, lastInputs) {
798
+ if (newInputs.length !== lastInputs.length) {
799
+ return false;
800
+ }
801
+ for (var i = 0; i < newInputs.length; i++) {
802
+ if (!isEqual(newInputs[i], lastInputs[i])) {
803
+ return false;
804
+ }
805
+ }
806
+ return true;
807
+ }
810
808
 
811
- lastResult = resultFn.apply(this, newArgs);
812
- calledOnce = true;
813
- lastThis = this;
814
- lastArgs = newArgs;
815
- return lastResult;
816
- };
817
-
818
- return result;
809
+ function memoizeOne(resultFn, isEqual) {
810
+ if (isEqual === void 0) { isEqual = areInputsEqual; }
811
+ var lastThis;
812
+ var lastArgs = [];
813
+ var lastResult;
814
+ var calledOnce = false;
815
+ function memoized() {
816
+ var newArgs = [];
817
+ for (var _i = 0; _i < arguments.length; _i++) {
818
+ newArgs[_i] = arguments[_i];
819
+ }
820
+ if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
821
+ return lastResult;
822
+ }
823
+ lastResult = resultFn.apply(this, newArgs);
824
+ calledOnce = true;
825
+ lastThis = this;
826
+ lastArgs = newArgs;
827
+ return lastResult;
828
+ }
829
+ return memoized;
819
830
  }
820
831
 
821
832
  function styleInject(css, ref) {
@@ -1029,59 +1040,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
1029
1040
  * @returns 返回处理后的查询参数
1030
1041
  */
1031
1042
  function queryParams(params, flag) {
1032
- var _loop = function _loop() {
1043
+ for (var key in params) {
1033
1044
  if (Object.prototype.hasOwnProperty.call(params, key)) {
1034
- var element = params[key];
1035
- if (element && key.indexOf('*number*') >= 0) {
1036
- var dataParams = key.split('*number*');
1037
- dataParams.forEach(function (value, index) {
1038
- params[value] = element[index];
1039
- });
1040
- delete params[key];
1041
- } else if (element && key.indexOf('*address*') >= 0) {
1042
- var _dataParams = key.split('*address*');
1043
- _dataParams.forEach(function (value, index) {
1044
- params[value] = element.PCDCode[index];
1045
- });
1046
- delete params[key];
1047
- } else if (element && key.indexOf('*costType*') >= 0) {
1048
- var _dataParams2 = key.split('*costType*');
1049
- // eslint-disable-next-line prefer-destructuring
1050
- params[_dataParams2[0]] = element[1];
1051
- delete params[key];
1052
- } else if (element && key.indexOf('*fullDate*') >= 0) {
1053
- var _dataParams3 = key.split('*fullDate*');
1054
- _dataParams3.forEach(function (value, index) {
1055
- if (index === 0) {
1056
- params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1045
+ (function () {
1046
+ var element = params[key];
1047
+ if (element && key.indexOf('*number*') >= 0) {
1048
+ var dataParams = key.split('*number*');
1049
+ dataParams.forEach(function (value, index) {
1050
+ params[value] = element[index];
1051
+ });
1052
+ delete params[key];
1053
+ } else if (element && key.indexOf('*address*') >= 0) {
1054
+ var _dataParams = key.split('*address*');
1055
+ _dataParams.forEach(function (value, index) {
1056
+ params[value] = element.PCDCode[index];
1057
+ });
1058
+ delete params[key];
1059
+ } else if (element && key.indexOf('*costType*') >= 0) {
1060
+ var _dataParams2 = key.split('*costType*');
1061
+ // eslint-disable-next-line prefer-destructuring
1062
+ params[_dataParams2[0]] = element[1];
1063
+ delete params[key];
1064
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
1065
+ var _dataParams3 = key.split('*fullDate*');
1066
+ _dataParams3.forEach(function (value, index) {
1067
+ if (index === 0) {
1068
+ params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
1069
+ } else {
1070
+ params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1071
+ }
1072
+ });
1073
+ delete params[key];
1074
+ } else if (element && key.indexOf('*') >= 0) {
1075
+ var _dataParams4 = key.split('*');
1076
+ _dataParams4.forEach(function (value, index) {
1077
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1078
+ });
1079
+ delete params[key];
1080
+ } else if (element && key.indexOf('_likeIn_') >= 0) {
1081
+ var _dataParams5 = key.split('_likeIn_');
1082
+ if (element.indexOf(',') >= 0) {
1083
+ params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1084
+ params["qp-".concat(_dataParams5[0], "-like")] = null;
1057
1085
  } else {
1058
- params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
1086
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
1087
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
1059
1088
  }
1060
- });
1061
- delete params[key];
1062
- } else if (element && key.indexOf('*') >= 0) {
1063
- var _dataParams4 = key.split('*');
1064
- _dataParams4.forEach(function (value, index) {
1065
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
1066
- });
1067
- delete params[key];
1068
- } else if (element && key.indexOf('_likeIn_') >= 0) {
1069
- var _dataParams5 = key.split('_likeIn_');
1070
- if (element.indexOf(',') >= 0) {
1071
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
1072
- params["qp-".concat(_dataParams5[0], "-like")] = null;
1073
- } else {
1074
- params["qp-".concat(_dataParams5[0], "-like")] = element;
1075
- params["qp-".concat(_dataParams5[0], "-in")] = null;
1089
+ delete params[key];
1090
+ } else if (Array.isArray(element)) {
1091
+ params[key] = element.join(',');
1076
1092
  }
1077
- delete params[key];
1078
- } else if (Array.isArray(element)) {
1079
- params[key] = element.join(',');
1080
- }
1093
+ })();
1081
1094
  }
1082
- };
1083
- for (var key in params) {
1084
- _loop();
1085
1095
  }
1086
1096
  return flag ? params : qs.stringify(params);
1087
1097
  }
@@ -1127,7 +1137,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
1127
1137
  return item;
1128
1138
  });
1129
1139
  };
1130
- var memoizeOneFormatter = index$1(formatter, isEqual__default['default']);
1140
+ var memoizeOneFormatter = memoizeOne(formatter, isEqual__default['default']);
1131
1141
  var go2BackAndClose = function go2BackAndClose() {
1132
1142
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
1133
1143
  umi.history.goBack();
@@ -2806,85 +2816,84 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2806
2816
  });
2807
2817
  }
2808
2818
  // 数组对象处理,对带有特殊标记的name进行处理
2809
- var _loop = function _loop() {
2819
+ for (var key in params) {
2810
2820
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2811
- var element = params[key];
2812
- if (element && key.indexOf('*number*') >= 0) {
2813
- var dataParams = key.split('*number*');
2814
- dataParams.forEach(function (value, index) {
2815
- params[value] = element[index];
2816
- });
2817
- delete params[key];
2818
- } else if (element && key.indexOf('*address*') >= 0) {
2819
- var _dataParams = key.split('*address*');
2820
- _dataParams.forEach(function (value, index) {
2821
- params[value] = element.PCDCode[index];
2822
- });
2823
- delete params[key];
2824
- } else if (element && key.indexOf('*costType*') >= 0) {
2825
- var _dataParams2 = key.split('*costType*');
2826
- // eslint-disable-next-line prefer-destructuring
2827
- params[_dataParams2[0]] = element[1];
2828
- delete params[key];
2829
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2830
- var _dataParams3 = key.split('*fullDate*');
2831
- _dataParams3.forEach(function (value, index) {
2832
- if (index === 0) {
2833
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2834
- } else {
2835
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2821
+ (function () {
2822
+ var element = params[key];
2823
+ if (element && key.indexOf('*number*') >= 0) {
2824
+ var dataParams = key.split('*number*');
2825
+ dataParams.forEach(function (value, index) {
2826
+ params[value] = element[index];
2827
+ });
2828
+ delete params[key];
2829
+ } else if (element && key.indexOf('*address*') >= 0) {
2830
+ var _dataParams = key.split('*address*');
2831
+ _dataParams.forEach(function (value, index) {
2832
+ params[value] = element.PCDCode[index];
2833
+ });
2834
+ delete params[key];
2835
+ } else if (element && key.indexOf('*costType*') >= 0) {
2836
+ var _dataParams2 = key.split('*costType*');
2837
+ // eslint-disable-next-line prefer-destructuring
2838
+ params[_dataParams2[0]] = element[1];
2839
+ delete params[key];
2840
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2841
+ var _dataParams3 = key.split('*fullDate*');
2842
+ _dataParams3.forEach(function (value, index) {
2843
+ if (index === 0) {
2844
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2845
+ } else {
2846
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2847
+ }
2848
+ });
2849
+ delete params[key];
2850
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2851
+ var _dataParams4 = key.split('*checkBox*');
2852
+ if (element) {
2853
+ params[_dataParams4[0]] = 0;
2836
2854
  }
2837
- });
2838
- delete params[key];
2839
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2840
- var _dataParams4 = key.split('*checkBox*');
2841
- if (element) {
2842
- params[_dataParams4[0]] = 0;
2843
- }
2844
- delete params[key];
2845
- } else if (element && key.indexOf('*cascader*') >= 0) {
2846
- var _dataParams5 = key.split('*cascader*');
2847
- params[_dataParams5[0]] = element[element.length - 1];
2848
- delete params[key];
2849
- } else if (element && key.indexOf('*date*') >= 0) {
2850
- var _dataParams6 = key.split('*date*');
2851
- _dataParams6.forEach(function (value, index) {
2852
- if (index === 0) {
2853
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2855
+ delete params[key];
2856
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2857
+ var _dataParams5 = key.split('*cascader*');
2858
+ params[_dataParams5[0]] = element[element.length - 1];
2859
+ delete params[key];
2860
+ } else if (element && key.indexOf('*date*') >= 0) {
2861
+ var _dataParams6 = key.split('*date*');
2862
+ _dataParams6.forEach(function (value, index) {
2863
+ if (index === 0) {
2864
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2865
+ } else {
2866
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2867
+ }
2868
+ });
2869
+ delete params[key];
2870
+ } else if (element && key.indexOf('*') >= 0) {
2871
+ var _dataParams7 = key.split('*');
2872
+ _dataParams7.forEach(function (value, index) {
2873
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2874
+ });
2875
+ delete params[key];
2876
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2877
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2878
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2879
+ if (params[key][0] === 'range') {
2880
+ if (params[key][1][0]) {
2881
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2882
+ }
2883
+ if (params[key][1][1]) {
2884
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2885
+ }
2854
2886
  } else {
2855
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2887
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2856
2888
  }
2857
- });
2858
- delete params[key];
2859
- } else if (element && key.indexOf('*') >= 0) {
2860
- var _dataParams7 = key.split('*');
2861
- _dataParams7.forEach(function (value, index) {
2862
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2863
- });
2864
- delete params[key];
2865
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2866
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2867
- var _dataParams8 = key.split('_selectNumberRange')[0];
2868
- if (params[key][0] === 'range') {
2869
- if (params[key][1][0]) {
2870
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2871
- }
2872
- if (params[key][1][1]) {
2873
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2874
- }
2875
- } else {
2876
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2889
+ delete params[key];
2890
+ } else if (Array.isArray(element)) {
2891
+ params[key] = element.join(',');
2892
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2893
+ delete params[key];
2877
2894
  }
2878
- delete params[key];
2879
- } else if (Array.isArray(element)) {
2880
- params[key] = element.join(',');
2881
- } else if (element == null || element === undefined || String(element).trim() === '') {
2882
- delete params[key];
2883
- }
2895
+ })();
2884
2896
  }
2885
- };
2886
- for (var key in params) {
2887
- _loop();
2888
2897
  }
2889
2898
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2890
2899
  pageSize: pageSize,
@@ -4543,74 +4552,76 @@ var AddSelect = function AddSelect(props) {
4543
4552
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4544
4553
  var result;
4545
4554
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4546
- while (1) switch (_context.prev = _context.next) {
4547
- case 0:
4548
- if (!(bType == 'skc' && tList.some(function (i) {
4549
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4550
- }))) {
4551
- _context.next = 3;
4552
- break;
4553
- }
4554
- antd.message.warning('相同skc配码不可设置相同哦');
4555
- return _context.abrupt("return", false);
4556
- case 3:
4557
- if (!(bType == 'spu')) {
4558
- _context.next = 26;
4559
- break;
4560
- }
4561
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4562
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4563
- }))) {
4564
- _context.next = 7;
4565
- break;
4566
- }
4567
- antd.message.warning('相同商品相同配码颜色不可设置相同哦');
4568
- return _context.abrupt("return", false);
4569
- case 7:
4570
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4571
- _context.next = 10;
4572
- break;
4573
- }
4574
- antd.message.warning('请先选择颜色!');
4575
- return _context.abrupt("return", false);
4576
- case 10:
4577
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4578
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4579
- }))) {
4580
- _context.next = 13;
4581
- break;
4582
- }
4583
- antd.message.warning('相同商品相同颜色配码不可设置相同哦');
4584
- return _context.abrupt("return", false);
4585
- case 13:
4586
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4587
- _context.next = 26;
4555
+ while (1) {
4556
+ switch (_context.prev = _context.next) {
4557
+ case 0:
4558
+ if (!(bType == 'skc' && tList.some(function (i) {
4559
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4560
+ }))) {
4561
+ _context.next = 3;
4562
+ break;
4563
+ }
4564
+ antd.message.warning('相同skc配码不可设置相同哦');
4565
+ return _context.abrupt("return", false);
4566
+ case 3:
4567
+ if (!(bType == 'spu')) {
4568
+ _context.next = 26;
4569
+ break;
4570
+ }
4571
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4572
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4573
+ }))) {
4574
+ _context.next = 7;
4575
+ break;
4576
+ }
4577
+ antd.message.warning('相同商品相同配码颜色不可设置相同哦');
4578
+ return _context.abrupt("return", false);
4579
+ case 7:
4580
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4581
+ _context.next = 10;
4582
+ break;
4583
+ }
4584
+ antd.message.warning('请先选择颜色!');
4585
+ return _context.abrupt("return", false);
4586
+ case 10:
4587
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4588
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4589
+ }))) {
4590
+ _context.next = 13;
4591
+ break;
4592
+ }
4593
+ antd.message.warning('相同商品相同颜色配码不可设置相同哦');
4594
+ return _context.abrupt("return", false);
4595
+ case 13:
4596
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4597
+ _context.next = 26;
4598
+ break;
4599
+ }
4600
+ result = true;
4601
+ _context.prev = 15;
4602
+ _context.next = 18;
4603
+ return checkSpuMatchCode({
4604
+ skcCode: recordItem[recordKey],
4605
+ matchingCode: changeValue,
4606
+ ext1: recordItem.colorName
4607
+ });
4608
+ case 18:
4609
+ result = _context.sent;
4610
+ result = true;
4611
+ _context.next = 25;
4588
4612
  break;
4589
- }
4590
- result = true;
4591
- _context.prev = 15;
4592
- _context.next = 18;
4593
- return checkSpuMatchCode({
4594
- skcCode: recordItem[recordKey],
4595
- matchingCode: changeValue,
4596
- ext1: recordItem.colorName
4597
- });
4598
- case 18:
4599
- result = _context.sent;
4600
- result = true;
4601
- _context.next = 25;
4602
- break;
4603
- case 22:
4604
- _context.prev = 22;
4605
- _context.t0 = _context["catch"](15);
4606
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4607
- case 25:
4608
- return _context.abrupt("return", result);
4609
- case 26:
4610
- return _context.abrupt("return", true);
4611
- case 27:
4612
- case "end":
4613
- return _context.stop();
4613
+ case 22:
4614
+ _context.prev = 22;
4615
+ _context.t0 = _context["catch"](15);
4616
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4617
+ case 25:
4618
+ return _context.abrupt("return", result);
4619
+ case 26:
4620
+ return _context.abrupt("return", true);
4621
+ case 27:
4622
+ case "end":
4623
+ return _context.stop();
4624
+ }
4614
4625
  }
4615
4626
  }, _callee, null, [[15, 22]]);
4616
4627
  }));
@@ -4802,27 +4813,29 @@ var AddSelect = function AddSelect(props) {
4802
4813
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4803
4814
  var isConformToTheRules, newPopValue;
4804
4815
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4805
- while (1) switch (_context2.prev = _context2.next) {
4806
- case 0:
4807
- _context2.next = 2;
4808
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4809
- case 2:
4810
- isConformToTheRules = _context2.sent;
4811
- if (isConformToTheRules) {
4812
- record[item.dataIndex] = value;
4813
- } else {
4814
- record[item.dataIndex] = null;
4815
- }
4816
- newPopValue = popvalue.map(function (i, innerIndex) {
4817
- if (innerIndex == index) {
4818
- i[item.dataIndex] = record[item.dataIndex];
4816
+ while (1) {
4817
+ switch (_context2.prev = _context2.next) {
4818
+ case 0:
4819
+ _context2.next = 2;
4820
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4821
+ case 2:
4822
+ isConformToTheRules = _context2.sent;
4823
+ if (isConformToTheRules) {
4824
+ record[item.dataIndex] = value;
4825
+ } else {
4826
+ record[item.dataIndex] = null;
4819
4827
  }
4820
- return i;
4821
- });
4822
- setPopValue(newPopValue);
4823
- case 6:
4824
- case "end":
4825
- return _context2.stop();
4828
+ newPopValue = popvalue.map(function (i, innerIndex) {
4829
+ if (innerIndex == index) {
4830
+ i[item.dataIndex] = record[item.dataIndex];
4831
+ }
4832
+ return i;
4833
+ });
4834
+ setPopValue(newPopValue);
4835
+ case 6:
4836
+ case "end":
4837
+ return _context2.stop();
4838
+ }
4826
4839
  }
4827
4840
  }, _callee2);
4828
4841
  }));
@@ -4882,85 +4895,84 @@ var AddSelect = function AddSelect(props) {
4882
4895
  });
4883
4896
  }
4884
4897
  // 数组对象处理,对带有特殊标记的name进行处理
4885
- var _loop = function _loop() {
4898
+ for (var key in params) {
4886
4899
  if (Object.prototype.hasOwnProperty.call(params, key)) {
4887
- var element = params[key];
4888
- if (element && key.indexOf('*number*') >= 0) {
4889
- var dataParams = key.split('*number*');
4890
- dataParams.forEach(function (value, index) {
4891
- params[value] = element[index];
4892
- });
4893
- delete params[key];
4894
- } else if (element && key.indexOf('*address*') >= 0) {
4895
- var _dataParams = key.split('*address*');
4896
- _dataParams.forEach(function (value, index) {
4897
- params[value] = element.PCDCode[index];
4898
- });
4899
- delete params[key];
4900
- } else if (element && key.indexOf('*costType*') >= 0) {
4901
- var _dataParams2 = key.split('*costType*');
4902
- // eslint-disable-next-line prefer-destructuring
4903
- params[_dataParams2[0]] = element[1];
4904
- delete params[key];
4905
- } else if (element && key.indexOf('*fullDate*') >= 0) {
4906
- var _dataParams3 = key.split('*fullDate*');
4907
- _dataParams3.forEach(function (value, index) {
4908
- if (index === 0) {
4909
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4910
- } else {
4911
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4900
+ (function () {
4901
+ var element = params[key];
4902
+ if (element && key.indexOf('*number*') >= 0) {
4903
+ var dataParams = key.split('*number*');
4904
+ dataParams.forEach(function (value, index) {
4905
+ params[value] = element[index];
4906
+ });
4907
+ delete params[key];
4908
+ } else if (element && key.indexOf('*address*') >= 0) {
4909
+ var _dataParams = key.split('*address*');
4910
+ _dataParams.forEach(function (value, index) {
4911
+ params[value] = element.PCDCode[index];
4912
+ });
4913
+ delete params[key];
4914
+ } else if (element && key.indexOf('*costType*') >= 0) {
4915
+ var _dataParams2 = key.split('*costType*');
4916
+ // eslint-disable-next-line prefer-destructuring
4917
+ params[_dataParams2[0]] = element[1];
4918
+ delete params[key];
4919
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4920
+ var _dataParams3 = key.split('*fullDate*');
4921
+ _dataParams3.forEach(function (value, index) {
4922
+ if (index === 0) {
4923
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4924
+ } else {
4925
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4926
+ }
4927
+ });
4928
+ delete params[key];
4929
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4930
+ var _dataParams4 = key.split('*checkBox*');
4931
+ if (element) {
4932
+ params[_dataParams4[0]] = 0;
4912
4933
  }
4913
- });
4914
- delete params[key];
4915
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4916
- var _dataParams4 = key.split('*checkBox*');
4917
- if (element) {
4918
- params[_dataParams4[0]] = 0;
4919
- }
4920
- delete params[key];
4921
- } else if (element && key.indexOf('*cascader*') >= 0) {
4922
- var _dataParams5 = key.split('*cascader*');
4923
- params[_dataParams5[0]] = element[element.length - 1];
4924
- delete params[key];
4925
- } else if (element && key.indexOf('*date*') >= 0) {
4926
- var _dataParams6 = key.split('*date*');
4927
- _dataParams6.forEach(function (value, index) {
4928
- if (index === 0) {
4929
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4934
+ delete params[key];
4935
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4936
+ var _dataParams5 = key.split('*cascader*');
4937
+ params[_dataParams5[0]] = element[element.length - 1];
4938
+ delete params[key];
4939
+ } else if (element && key.indexOf('*date*') >= 0) {
4940
+ var _dataParams6 = key.split('*date*');
4941
+ _dataParams6.forEach(function (value, index) {
4942
+ if (index === 0) {
4943
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4944
+ } else {
4945
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4946
+ }
4947
+ });
4948
+ delete params[key];
4949
+ } else if (element && key.indexOf('*') >= 0) {
4950
+ var _dataParams7 = key.split('*');
4951
+ _dataParams7.forEach(function (value, index) {
4952
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4953
+ });
4954
+ delete params[key];
4955
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4956
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4957
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4958
+ if (params[key][0] === 'range') {
4959
+ if (params[key][1][0]) {
4960
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4961
+ }
4962
+ if (params[key][1][1]) {
4963
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4964
+ }
4930
4965
  } else {
4931
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4932
- }
4933
- });
4934
- delete params[key];
4935
- } else if (element && key.indexOf('*') >= 0) {
4936
- var _dataParams7 = key.split('*');
4937
- _dataParams7.forEach(function (value, index) {
4938
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4939
- });
4940
- delete params[key];
4941
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4942
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
4943
- var _dataParams8 = key.split('_selectNumberRange')[0];
4944
- if (params[key][0] === 'range') {
4945
- if (params[key][1][0]) {
4946
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4966
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4947
4967
  }
4948
- if (params[key][1][1]) {
4949
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4950
- }
4951
- } else {
4952
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4968
+ delete params[key];
4969
+ } else if (Array.isArray(element)) {
4970
+ params[key] = element.join(',');
4971
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4972
+ delete params[key];
4953
4973
  }
4954
- delete params[key];
4955
- } else if (Array.isArray(element)) {
4956
- params[key] = element.join(',');
4957
- } else if (element == null || element === undefined || String(element).trim() === '') {
4958
- delete params[key];
4959
- }
4974
+ })();
4960
4975
  }
4961
- };
4962
- for (var key in params) {
4963
- _loop();
4964
4976
  }
4965
4977
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4966
4978
  pageSize: pageSize,
@@ -6415,70 +6427,72 @@ var BillEntry = function BillEntry(_ref3) {
6415
6427
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6416
6428
  var canEntryObject, _canEntryObject$error, messageInfo;
6417
6429
  return _regeneratorRuntime().wrap(function _callee$(_context) {
6418
- while (1) switch (_context.prev = _context.next) {
6419
- case 0:
6420
- if (data === null || data === void 0 ? void 0 : data.length) {
6421
- _context.next = 3;
6422
- break;
6423
- }
6424
- antd.message.warning('至少录入一条数据');
6425
- return _context.abrupt("return");
6426
- case 3:
6427
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6428
- return d.skuCode && d.name;
6429
- })) {
6430
- _context.next = 6;
6431
- break;
6432
- }
6433
- antd.message.warning('请选择商品!');
6434
- return _context.abrupt("return");
6435
- case 6:
6436
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6437
- return d.count;
6438
- })) {
6439
- _context.next = 9;
6440
- break;
6441
- }
6442
- antd.message.warning('请填写商品数量!');
6443
- return _context.abrupt("return");
6444
- case 9:
6445
- _context.next = 11;
6446
- return isSkuCanEntry(data);
6447
- case 11:
6448
- canEntryObject = _context.sent;
6449
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6450
- _context.next = 16;
6451
- break;
6452
- }
6453
- 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) {
6454
- return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6455
- }));
6456
- messageInfo && antd.message.warning({
6457
- content: messageInfo,
6458
- duration: 6
6459
- });
6460
- return _context.abrupt("return");
6461
- case 16:
6462
- setLoading(true);
6463
- onSaveCallback(data).then(function (res) {
6464
- {
6465
- var _Object$keys;
6466
- var initSuccessMessage = '保存成功';
6467
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6468
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6469
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6470
- } else {
6471
- antd.message.success(initSuccessMessage);
6472
- }
6430
+ while (1) {
6431
+ switch (_context.prev = _context.next) {
6432
+ case 0:
6433
+ if (data === null || data === void 0 ? void 0 : data.length) {
6434
+ _context.next = 3;
6435
+ break;
6473
6436
  }
6474
- setLoading(false);
6475
- }).catch(function (Error) {
6476
- antd.message.error(Error);
6477
- setLoading(false);
6478
- });
6479
- case 18:
6480
- case "end":
6481
- return _context.stop();
6437
+ antd.message.warning('至少录入一条数据');
6438
+ return _context.abrupt("return");
6439
+ case 3:
6440
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6441
+ return d.skuCode && d.name;
6442
+ })) {
6443
+ _context.next = 6;
6444
+ break;
6445
+ }
6446
+ antd.message.warning('请选择商品!');
6447
+ return _context.abrupt("return");
6448
+ case 6:
6449
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6450
+ return d.count;
6451
+ })) {
6452
+ _context.next = 9;
6453
+ break;
6454
+ }
6455
+ antd.message.warning('请填写商品数量!');
6456
+ return _context.abrupt("return");
6457
+ case 9:
6458
+ _context.next = 11;
6459
+ return isSkuCanEntry(data);
6460
+ case 11:
6461
+ canEntryObject = _context.sent;
6462
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6463
+ _context.next = 16;
6464
+ break;
6465
+ }
6466
+ 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) {
6467
+ return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6468
+ }));
6469
+ messageInfo && antd.message.warning({
6470
+ content: messageInfo,
6471
+ duration: 6
6472
+ });
6473
+ return _context.abrupt("return");
6474
+ case 16:
6475
+ setLoading(true);
6476
+ onSaveCallback(data).then(function (res) {
6477
+ {
6478
+ var _Object$keys;
6479
+ var initSuccessMessage = '保存成功';
6480
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6481
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6482
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6483
+ } else {
6484
+ antd.message.success(initSuccessMessage);
6485
+ }
6486
+ }
6487
+ setLoading(false);
6488
+ }).catch(function (Error) {
6489
+ antd.message.error(Error);
6490
+ setLoading(false);
6491
+ });
6492
+ case 18:
6493
+ case "end":
6494
+ return _context.stop();
6495
+ }
6482
6496
  }
6483
6497
  }, _callee);
6484
6498
  }));
@@ -9613,7 +9627,7 @@ var CommodityEntry = function CommodityEntry(props) {
9613
9627
  * @LastEditTime: 2022-01-14 17:17:26
9614
9628
  * @LastEditors: rodchen
9615
9629
  */
9616
- var index$2 = (function (storageKeyString) {
9630
+ var index$1 = (function (storageKeyString) {
9617
9631
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
9618
9632
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
9619
9633
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -9734,42 +9748,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9734
9748
  var _ctx$form;
9735
9749
  var resData, coverData, data, dataList;
9736
9750
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9737
- while (1) switch (_context.prev = _context.next) {
9738
- case 0:
9739
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9740
- if (!(resData.status === '0' || resData.code === '000000')) {
9741
- _context.next = 13;
9751
+ while (1) {
9752
+ switch (_context.prev = _context.next) {
9753
+ case 0:
9754
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9755
+ if (!(resData.status === '0' || resData.code === '000000')) {
9756
+ _context.next = 13;
9757
+ break;
9758
+ }
9759
+ data = resData.data;
9760
+ if (!remoteSource.converter) {
9761
+ _context.next = 9;
9762
+ break;
9763
+ }
9764
+ _context.next = 6;
9765
+ return remoteSource.converter({
9766
+ data: [data]
9767
+ });
9768
+ case 6:
9769
+ coverData = _context.sent;
9770
+ _context.next = 11;
9742
9771
  break;
9743
- }
9744
- data = resData.data;
9745
- if (!remoteSource.converter) {
9746
- _context.next = 9;
9772
+ case 9:
9773
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
9774
+ coverData = dataList.length && dataList.map(function (ites) {
9775
+ return mapSearchTree(ites);
9776
+ }) || [];
9777
+ case 11:
9778
+ _context.next = 14;
9747
9779
  break;
9748
- }
9749
- _context.next = 6;
9750
- return remoteSource.converter({
9751
- data: [data]
9752
- });
9753
- case 6:
9754
- coverData = _context.sent;
9755
- _context.next = 11;
9756
- break;
9757
- case 9:
9758
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
9759
- coverData = dataList.length && dataList.map(function (ites) {
9760
- return mapSearchTree(ites);
9761
- }) || [];
9762
- case 11:
9763
- _context.next = 14;
9764
- break;
9765
- case 13:
9766
- coverData = [];
9767
- case 14:
9768
- setTreeData(coverData);
9769
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9770
- case 16:
9771
- case "end":
9772
- return _context.stop();
9780
+ case 13:
9781
+ coverData = [];
9782
+ case 14:
9783
+ setTreeData(coverData);
9784
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9785
+ case 16:
9786
+ case "end":
9787
+ return _context.stop();
9788
+ }
9773
9789
  }
9774
9790
  }, _callee);
9775
9791
  }));
@@ -9976,7 +9992,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
9976
9992
  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";
9977
9993
  styleInject(css_248z$8);
9978
9994
 
9979
- var index$3 = (function (props) {
9995
+ var index$2 = (function (props) {
9980
9996
  var _props$formStatusMapp = props.formStatusMapping,
9981
9997
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
9982
9998
  return /*#__PURE__*/React__default['default'].createElement("div", {
@@ -11400,7 +11416,7 @@ var iconMap = {
11400
11416
  src: moreIcon
11401
11417
  })
11402
11418
  };
11403
- var index$4 = (function (props) {
11419
+ var index$3 = (function (props) {
11404
11420
  var _useLocation = umi.useLocation(),
11405
11421
  pathname = _useLocation.pathname;
11406
11422
  var _useState = React.useState(pathname + 'id'),
@@ -11617,7 +11633,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
11617
11633
  styleInject(css_248z$d);
11618
11634
 
11619
11635
  var _excluded$c = ["children"];
11620
- var index$5 = (function (props) {
11636
+ var index$4 = (function (props) {
11621
11637
  var _useLocation = umi.useLocation(),
11622
11638
  pathname = _useLocation.pathname;
11623
11639
  var _useState = React.useState(pathname + 'id'),
@@ -11772,20 +11788,26 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
11772
11788
  fixed: item.fixed
11773
11789
  };
11774
11790
  }) : '';
11775
- axios__default['default']({
11776
- url: '/user/appConfig/saveUserOrder',
11777
- method: 'POST',
11778
- data: {
11779
- code: that.state.bsTableCode,
11780
- detail: configvalue ? JSON.stringify(configvalue) : ''
11781
- }
11782
- }).then(function (res) {
11783
- var _res$data;
11784
- if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status) === '0') {
11785
- _this.patchConfigToLocalstorage(configvalue);
11786
- } else {
11787
- antd.message.error('保存表头列自定义失败,请稍后尝试');
11788
- }
11791
+ return new Promise(function (resolve, reject) {
11792
+ axios__default['default']({
11793
+ url: '/user/appConfig/saveUserOrder',
11794
+ method: 'POST',
11795
+ data: {
11796
+ code: that.state.bsTableCode,
11797
+ detail: configvalue ? JSON.stringify(configvalue) : ''
11798
+ }
11799
+ }).then(function (res) {
11800
+ var _res$data;
11801
+ if ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status) === '0') {
11802
+ _this.patchConfigToLocalstorage(configvalue);
11803
+ resolve({
11804
+ status: '0'
11805
+ });
11806
+ } else {
11807
+ antd.message.error('保存表头列自定义失败,请稍后尝试');
11808
+ reject('');
11809
+ }
11810
+ });
11789
11811
  });
11790
11812
  };
11791
11813
  _this.getConfigFromlocalstorage = function () {
@@ -12089,7 +12111,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
12089
12111
  // this.patchUserColumnConfig('');
12090
12112
  // return;
12091
12113
  // }
12092
- _this.patchUserColumnConfig(sortDataSource);
12114
+ return _this.patchUserColumnConfig(sortDataSource);
12093
12115
  };
12094
12116
  _this.handleCancel = function (e) {
12095
12117
  console.log(e);
@@ -12114,7 +12136,14 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
12114
12136
  return item;
12115
12137
  }))
12116
12138
  }, function () {
12117
- _this.handleOk();
12139
+ _this.handleOk().then(function (res) {
12140
+ if (res.status === '0') {
12141
+ antd.message.success( /*#__PURE__*/React__default['default'].createElement("span", null, "\u5B57\u6BB5\u5DF2\u9690\u85CF\uFF0C\u5982\u9700\u91CD\u65B0\u663E\u793A\u8BF7\u524D\u5F80", /*#__PURE__*/React__default['default'].createElement(antd.Typography.Link, {
12142
+ underline: true,
12143
+ onClick: _this.showModal
12144
+ }, "\u5217\u8BBE\u7F6E")));
12145
+ }
12146
+ });
12118
12147
  });
12119
12148
  };
12120
12149
  _this.onSortEnd = function (_ref) {
@@ -12284,6 +12313,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
12284
12313
  key: "render",
12285
12314
  value: function render() {
12286
12315
  var _this2 = this;
12316
+ var onlyModal = this.props.onlyModal;
12287
12317
  var _this$state5 = this.state,
12288
12318
  dataSource = _this$state5.dataSource,
12289
12319
  searchDataSource = _this$state5.searchDataSource,
@@ -12454,12 +12484,12 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
12454
12484
  row: this.DraggableBodyRow
12455
12485
  }
12456
12486
  }
12457
- }))))), /*#__PURE__*/React__default['default'].createElement("div", {
12487
+ }))))), !onlyModal ? /*#__PURE__*/React__default['default'].createElement("div", {
12458
12488
  onClick: this.showModal,
12459
12489
  style: {
12460
12490
  fontSize: 14
12461
12491
  }
12462
- }, "\u5217\u8BBE\u7F6E"));
12492
+ }, "\u5217\u8BBE\u7F6E") : '');
12463
12493
  }
12464
12494
  }]);
12465
12495
  return SortableTable;
@@ -13035,6 +13065,7 @@ var BsSulaQueryTable = (function (props) {
13035
13065
  height = _useState16[0],
13036
13066
  setHeight = _useState16[1];
13037
13067
  var sortTableRef = React.useRef(null);
13068
+ var searchTableRef = React.useRef(null);
13038
13069
  var bsTableCode = tableCode || window.location.hash; //设置列字段的唯一标识
13039
13070
  // 获取table高度
13040
13071
  var getTableHeight = function getTableHeight() {
@@ -13284,7 +13315,7 @@ var BsSulaQueryTable = (function (props) {
13284
13315
  }
13285
13316
  };
13286
13317
  var handleTimeValue = function handleTimeValue() {
13287
- var _value$exportConfig, _value$exportConfig2, _value$exportConfig3;
13318
+ var _sortTableRef$current, _value$exportConfig, _value$exportConfig2, _value$exportConfig3;
13288
13319
  var actionsRender = value.actionsRender || [];
13289
13320
  actionsRender = [].concat(_toConsumableArray(actionsRender), [{
13290
13321
  type: 'text',
@@ -13292,20 +13323,19 @@ var BsSulaQueryTable = (function (props) {
13292
13323
  children: /*#__PURE__*/React__default['default'].createElement("span", {
13293
13324
  className: "ant-dropdown-link"
13294
13325
  }, /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
13295
- overlay: /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
13296
- ref: sortTableRef,
13297
- setShowColumns: setShowColumns,
13298
- showColumn: showColumn,
13299
- datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
13300
- bsTableCode: bsTableCode
13301
- })), /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, /*#__PURE__*/React__default['default'].createElement(SearchItemTable, {
13302
- ref: sortTableRef,
13326
+ overlay: /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, /*#__PURE__*/React__default['default'].createElement("div", {
13327
+ onClick: sortTableRef === null || sortTableRef === void 0 ? void 0 : (_sortTableRef$current = sortTableRef.current) === null || _sortTableRef$current === void 0 ? void 0 : _sortTableRef$current.showModal,
13328
+ style: {
13329
+ fontSize: 14
13330
+ }
13331
+ }, "\u5217\u8BBE\u7F6E")), /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, /*#__PURE__*/React__default['default'].createElement(SearchItemTable, {
13332
+ ref: searchTableRef,
13303
13333
  setShowSearchFields: setShowSearchFields,
13304
13334
  showSearchFields: showSearchFields,
13305
13335
  datasource: (value === null || value === void 0 ? void 0 : value.fields) || [],
13306
13336
  bsTableCode: bsTableCode
13307
13337
  }))),
13308
- placement: "bottom"
13338
+ placement: "bottomRight"
13309
13339
  }, /*#__PURE__*/React__default['default'].createElement("span", {
13310
13340
  className: "ant-dropdown-link"
13311
13341
  }, /*#__PURE__*/React__default['default'].createElement("img", {
@@ -13369,8 +13399,8 @@ var BsSulaQueryTable = (function (props) {
13369
13399
  };
13370
13400
  };
13371
13401
  var setVisibleColumn = function setVisibleColumn(columnTitle) {
13372
- var _sortTableRef$current, _sortTableRef$current2;
13373
- sortTableRef === null || sortTableRef === void 0 ? void 0 : (_sortTableRef$current = sortTableRef.current) === null || _sortTableRef$current === void 0 ? void 0 : (_sortTableRef$current2 = _sortTableRef$current.handleTableHeadHidden) === null || _sortTableRef$current2 === void 0 ? void 0 : _sortTableRef$current2.call(_sortTableRef$current, columnTitle);
13402
+ var _sortTableRef$current2, _sortTableRef$current3;
13403
+ sortTableRef === null || sortTableRef === void 0 ? void 0 : (_sortTableRef$current2 = sortTableRef.current) === null || _sortTableRef$current2 === void 0 ? void 0 : (_sortTableRef$current3 = _sortTableRef$current2.handleTableHeadHidden) === null || _sortTableRef$current3 === void 0 ? void 0 : _sortTableRef$current3.call(_sortTableRef$current2, columnTitle);
13374
13404
  };
13375
13405
  var config = _objectSpread2(_objectSpread2({
13376
13406
  visibleFieldsCount: 3,
@@ -13418,7 +13448,14 @@ var BsSulaQueryTable = (function (props) {
13418
13448
  statusMapping: props.statusMapping
13419
13449
  });
13420
13450
  }, [value, checkedList, showColumn, props.statusMapping, showSearchFields]);
13421
- return /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig));
13451
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
13452
+ ref: sortTableRef,
13453
+ setShowColumns: setShowColumns,
13454
+ showColumn: showColumn,
13455
+ datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
13456
+ bsTableCode: bsTableCode,
13457
+ onlyModal: true
13458
+ }));
13422
13459
  });
13423
13460
 
13424
13461
  var css_248z$f = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.allFunsList {\n margin-bottom: 10px;\n}\n.isClons {\n position: relative;\n left: -8px;\n width: 30px;\n height: 36px;\n}\n.drawerWarp {\n -moz-column-count: 3;\n column-count: 3;\n}\n.allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n.searchTop {\n display: flex;\n align-items: center;\n}\n.searchTopInp {\n width: 528px;\n height: 40px;\n background: #f8f9fa;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.searchTopInp .ant-input {\n background: #f8f9fa;\n}\n.searchTopBtn {\n position: relative;\n left: -1px;\n width: 92px;\n height: 40px;\n background: #005cff;\n border-radius: 0px 4px 4px 0px;\n}\n.contentWarp {\n margin-top: 54px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005CFF;\n}\n.serachView {\n margin-top: 36px;\n margin-bottom: 32px;\n}\n.content {\n display: flex;\n flex-wrap: wrap;\n}\n.content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.content div:hover {\n cursor: pointer;\n}\n";
@@ -13893,19 +13930,21 @@ function _outLogin() {
13893
13930
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
13894
13931
  var res;
13895
13932
  return _regeneratorRuntime().wrap(function _callee$(_context) {
13896
- while (1) switch (_context.prev = _context.next) {
13897
- case 0:
13898
- _context.next = 2;
13899
- return axios__default['default']({
13900
- url: '/user/web/loginOut',
13901
- method: 'GET'
13902
- });
13903
- case 2:
13904
- res = _context.sent;
13905
- return _context.abrupt("return", res);
13906
- case 4:
13907
- case "end":
13908
- return _context.stop();
13933
+ while (1) {
13934
+ switch (_context.prev = _context.next) {
13935
+ case 0:
13936
+ _context.next = 2;
13937
+ return axios__default['default']({
13938
+ url: '/user/web/loginOut',
13939
+ method: 'GET'
13940
+ });
13941
+ case 2:
13942
+ res = _context.sent;
13943
+ return _context.abrupt("return", res);
13944
+ case 4:
13945
+ case "end":
13946
+ return _context.stop();
13947
+ }
13909
13948
  }
13910
13949
  }, _callee);
13911
13950
  }));
@@ -14034,29 +14073,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14034
14073
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14035
14074
  var sessionId;
14036
14075
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14037
- while (1) switch (_context.prev = _context.next) {
14038
- case 0:
14039
- _context.next = 2;
14040
- return getSessionId();
14041
- case 2:
14042
- sessionId = _context.sent;
14043
- _context.next = 5;
14044
- return outLogin({
14045
- sessionId: sessionId
14046
- });
14047
- case 5:
14048
- // @ts-ignore
14049
- if (BUILD_TYPE) {
14050
- antd.message.success('退出登录成功');
14051
- umi.history.replace({
14052
- pathname: '/user/login'
14076
+ while (1) {
14077
+ switch (_context.prev = _context.next) {
14078
+ case 0:
14079
+ _context.next = 2;
14080
+ return getSessionId();
14081
+ case 2:
14082
+ sessionId = _context.sent;
14083
+ _context.next = 5;
14084
+ return outLogin({
14085
+ sessionId: sessionId
14053
14086
  });
14054
- } else {
14055
- setLoginOutPath();
14056
- }
14057
- case 6:
14058
- case "end":
14059
- return _context.stop();
14087
+ case 5:
14088
+ // @ts-ignore
14089
+ if (BUILD_TYPE) {
14090
+ antd.message.success('退出登录成功');
14091
+ umi.history.replace({
14092
+ pathname: '/user/login'
14093
+ });
14094
+ } else {
14095
+ setLoginOutPath();
14096
+ }
14097
+ case 6:
14098
+ case "end":
14099
+ return _context.stop();
14100
+ }
14060
14101
  }
14061
14102
  }, _callee);
14062
14103
  }));
@@ -15884,7 +15925,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
15884
15925
  showSubMenu: isShow
15885
15926
  });
15886
15927
  }, 500);
15887
- //设置tabs标签左右滚动
15888
15928
  _this.setTabNavTransLate = function (num) {
15889
15929
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
15890
15930
  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];
@@ -16565,12 +16605,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16565
16605
  request: function () {
16566
16606
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16567
16607
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16568
- while (1) switch (_context.prev = _context.next) {
16569
- case 0:
16570
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16571
- case 1:
16572
- case "end":
16573
- return _context.stop();
16608
+ while (1) {
16609
+ switch (_context.prev = _context.next) {
16610
+ case 0:
16611
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16612
+ case 1:
16613
+ case "end":
16614
+ return _context.stop();
16615
+ }
16574
16616
  }
16575
16617
  }, _callee);
16576
16618
  }));
@@ -16708,7 +16750,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
16708
16750
  }]);
16709
16751
  return WrapperComponent;
16710
16752
  }(React__default['default'].Component);
16711
- var index$6 = (function (props) {
16753
+ var index$5 = (function (props) {
16712
16754
  var _useModel = umi.useModel('@@initialState'),
16713
16755
  _useModel$initialStat = _useModel.initialState,
16714
16756
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -16949,7 +16991,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
16949
16991
  };
16950
16992
  var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
16951
16993
 
16952
- var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
16994
+ var index$6 = /*#__PURE__*/React.forwardRef(function (props, ref) {
16953
16995
  var _useState = React.useState(false),
16954
16996
  _useState2 = _slicedToArray(_useState, 2),
16955
16997
  show = _useState2[0],
@@ -24250,26 +24292,28 @@ var valueType = {
24250
24292
  var getDynamicDict = /*#__PURE__*/function () {
24251
24293
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24252
24294
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24253
- while (1) switch (_context.prev = _context.next) {
24254
- case 0:
24255
- _context.next = 2;
24256
- return bssula.request({
24257
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24258
- converter: function converter(_ref2) {
24259
- var data = _ref2.data;
24260
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24261
- return {
24262
- text: d.name,
24263
- value: d.code || d.brandCode
24264
- };
24265
- });
24266
- }
24267
- });
24268
- case 2:
24269
- return _context.abrupt("return", _context.sent);
24270
- case 3:
24271
- case "end":
24272
- return _context.stop();
24295
+ while (1) {
24296
+ switch (_context.prev = _context.next) {
24297
+ case 0:
24298
+ _context.next = 2;
24299
+ return bssula.request({
24300
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24301
+ converter: function converter(_ref2) {
24302
+ var data = _ref2.data;
24303
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24304
+ return {
24305
+ text: d.name,
24306
+ value: d.code || d.brandCode
24307
+ };
24308
+ });
24309
+ }
24310
+ });
24311
+ case 2:
24312
+ return _context.abrupt("return", _context.sent);
24313
+ case 3:
24314
+ case "end":
24315
+ return _context.stop();
24316
+ }
24273
24317
  }
24274
24318
  }, _callee);
24275
24319
  }));
@@ -24319,53 +24363,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24319
24363
  ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24320
24364
  var _ref$current, source;
24321
24365
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24322
- while (1) switch (_context.prev = _context.next) {
24323
- case 0:
24324
- _context.next = 2;
24325
- return setIsShowAndType(function (prev) {
24326
- if (record.inputType === 20 || record.inputType === 30) {
24327
- return {
24328
- isShow: true,
24329
- singleOrMultiple: record.inputType,
24330
- type: record.choiceType
24331
- };
24366
+ while (1) {
24367
+ switch (_context.prev = _context.next) {
24368
+ case 0:
24369
+ _context.next = 2;
24370
+ return setIsShowAndType(function (prev) {
24371
+ if (record.inputType === 20 || record.inputType === 30) {
24372
+ return {
24373
+ isShow: true,
24374
+ singleOrMultiple: record.inputType,
24375
+ type: record.choiceType
24376
+ };
24377
+ }
24378
+ return prev;
24379
+ });
24380
+ case 2:
24381
+ if (!record.dictionaryCode) {
24382
+ _context.next = 17;
24383
+ break;
24332
24384
  }
24333
- return prev;
24334
- });
24335
- case 2:
24336
- if (!record.dictionaryCode) {
24337
- _context.next = 17;
24338
- break;
24339
- }
24340
- if (!(record.choiceType == 20)) {
24341
- _context.next = 7;
24385
+ if (!(record.choiceType == 20)) {
24386
+ _context.next = 7;
24387
+ break;
24388
+ }
24389
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24390
+ _context.next = 15;
24342
24391
  break;
24343
- }
24344
- _context.t0 = getDictionarySource(record.dictionaryCode);
24345
- _context.next = 15;
24346
- break;
24347
- case 7:
24348
- if (!(record.choiceType == 30)) {
24349
- _context.next = 13;
24392
+ case 7:
24393
+ if (!(record.choiceType == 30)) {
24394
+ _context.next = 13;
24395
+ break;
24396
+ }
24397
+ _context.next = 10;
24398
+ return getDynamicDict(record.dictionaryCode);
24399
+ case 10:
24400
+ _context.t1 = _context.sent;
24401
+ _context.next = 14;
24350
24402
  break;
24351
- }
24352
- _context.next = 10;
24353
- return getDynamicDict(record.dictionaryCode);
24354
- case 10:
24355
- _context.t1 = _context.sent;
24356
- _context.next = 14;
24357
- break;
24358
- case 13:
24359
- _context.t1 = [];
24360
- case 14:
24361
- _context.t0 = _context.t1;
24362
- case 15:
24363
- source = _context.t0;
24364
- // @ts-ignore
24365
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24366
- case 17:
24367
- case "end":
24368
- return _context.stop();
24403
+ case 13:
24404
+ _context.t1 = [];
24405
+ case 14:
24406
+ _context.t0 = _context.t1;
24407
+ case 15:
24408
+ source = _context.t0;
24409
+ // @ts-ignore
24410
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24411
+ case 17:
24412
+ case "end":
24413
+ return _context.stop();
24414
+ }
24369
24415
  }
24370
24416
  }, _callee);
24371
24417
  })));
@@ -24433,28 +24479,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24433
24479
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24434
24480
  var form, values, name, relates, source;
24435
24481
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
24436
- while (1) switch (_context2.prev = _context2.next) {
24437
- case 0:
24438
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24439
- if (values[0]) {
24482
+ while (1) {
24483
+ switch (_context2.prev = _context2.next) {
24484
+ case 0:
24485
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24486
+ if (values[0]) {
24487
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24488
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24489
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24490
+ }
24491
+ if (!values[1]) {
24492
+ _context2.next = 9;
24493
+ break;
24494
+ }
24495
+ _context2.next = 5;
24496
+ return getDynamicDict(record.dictionaryCode || values[1]);
24497
+ case 5:
24498
+ source = _context2.sent;
24440
24499
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24441
24500
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24442
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24443
- }
24444
- if (!values[1]) {
24445
- _context2.next = 9;
24446
- break;
24447
- }
24448
- _context2.next = 5;
24449
- return getDynamicDict(record.dictionaryCode || values[1]);
24450
- case 5:
24451
- source = _context2.sent;
24452
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24453
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24454
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24455
- case 9:
24456
- case "end":
24457
- return _context2.stop();
24501
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24502
+ case 9:
24503
+ case "end":
24504
+ return _context2.stop();
24505
+ }
24458
24506
  }
24459
24507
  }, _callee2);
24460
24508
  }));
@@ -24914,41 +24962,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24914
24962
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
24915
24963
  var values, name, form, source;
24916
24964
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
24917
- while (1) switch (_context3.prev = _context3.next) {
24918
- case 0:
24919
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
24920
- if (values[1] === 40) {
24921
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
24922
- form.setFieldVisible(name, false);
24923
- }
24924
- if (!(values[0] === 30)) {
24925
- _context3.next = 10;
24926
- break;
24927
- }
24928
- _context3.next = 5;
24929
- return bssula.request({
24930
- url: '/basic/dictDynamicItem/queryList',
24931
- converter: function converter(_ref11) {
24932
- var data = _ref11.data;
24933
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24934
- return {
24935
- text: d.dictCode,
24936
- value: d.dictCode
24937
- };
24938
- });
24965
+ while (1) {
24966
+ switch (_context3.prev = _context3.next) {
24967
+ case 0:
24968
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
24969
+ if (values[1] === 40) {
24970
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
24971
+ form.setFieldVisible(name, false);
24939
24972
  }
24940
- });
24941
- case 5:
24942
- source = _context3.sent;
24943
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
24944
- form.setFieldVisible(name, true);
24945
- _context3.next = 11;
24946
- break;
24947
- case 10:
24948
- form.setFieldVisible(name, false);
24949
- case 11:
24950
- case "end":
24951
- return _context3.stop();
24973
+ if (!(values[0] === 30)) {
24974
+ _context3.next = 10;
24975
+ break;
24976
+ }
24977
+ _context3.next = 5;
24978
+ return bssula.request({
24979
+ url: '/basic/dictDynamicItem/queryList',
24980
+ converter: function converter(_ref11) {
24981
+ var data = _ref11.data;
24982
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24983
+ return {
24984
+ text: d.dictCode,
24985
+ value: d.dictCode
24986
+ };
24987
+ });
24988
+ }
24989
+ });
24990
+ case 5:
24991
+ source = _context3.sent;
24992
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
24993
+ form.setFieldVisible(name, true);
24994
+ _context3.next = 11;
24995
+ break;
24996
+ case 10:
24997
+ form.setFieldVisible(name, false);
24998
+ case 11:
24999
+ case "end":
25000
+ return _context3.stop();
25001
+ }
24952
25002
  }
24953
25003
  }, _callee3);
24954
25004
  }));
@@ -25137,64 +25187,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25137
25187
  var _ref$current4, _res$editableStatus;
25138
25188
  var res, _res$defaultValue;
25139
25189
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
25140
- while (1) switch (_context4.prev = _context4.next) {
25141
- case 0:
25142
- _context4.next = 2;
25143
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25144
- case 2:
25145
- res = _context4.sent;
25146
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25147
- res.fieldGroup = record.fieldGroup;
25148
- res.businessType = record.businessType;
25149
- res.info = {
25150
- enumeration: res.enumeration,
25151
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25152
- formula: res.formula,
25153
- scale: res.scale,
25154
- variable: res.variable
25155
- };
25156
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25157
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25158
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25159
- if (res.inputType === 40) {
25160
- res.valueType = 22;
25161
- }
25162
- // 把数组处理成文本
25163
- if (res.inputType === 30) {
25164
- if (res.defaultValue) {
25165
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25190
+ while (1) {
25191
+ switch (_context4.prev = _context4.next) {
25192
+ case 0:
25193
+ _context4.next = 2;
25194
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25195
+ case 2:
25196
+ res = _context4.sent;
25197
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25198
+ res.fieldGroup = record.fieldGroup;
25199
+ res.businessType = record.businessType;
25200
+ res.info = {
25201
+ enumeration: res.enumeration,
25202
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25203
+ formula: res.formula,
25204
+ scale: res.scale,
25205
+ variable: res.variable
25206
+ };
25207
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25208
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25209
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25210
+ if (res.inputType === 40) {
25211
+ res.valueType = 22;
25166
25212
  }
25167
- }
25168
- res.fieldMapping = res.fieldMapping || '';
25169
- delete res.formula;
25170
- delete res.showValue;
25171
- if (!(mode === 'create')) {
25172
- _context4.next = 18;
25173
- break;
25174
- }
25175
- bssula.request({
25176
- url: "/basic/flow/businessField",
25177
- method: 'POST',
25178
- params: res,
25179
- successMessage: '创建成功!',
25180
- converter: function converter() {
25181
- onParentOk();
25213
+ // 把数组处理成文本
25214
+ if (res.inputType === 30) {
25215
+ if (res.defaultValue) {
25216
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25217
+ }
25182
25218
  }
25183
- });
25184
- return _context4.abrupt("return");
25185
- case 18:
25186
- bssula.request({
25187
- url: "/basic/flow/businessField/".concat(record.id),
25188
- method: 'PATCH',
25189
- params: res,
25190
- successMessage: '修改成功!',
25191
- converter: function converter() {
25192
- onParentOk();
25219
+ res.fieldMapping = res.fieldMapping || '';
25220
+ delete res.formula;
25221
+ delete res.showValue;
25222
+ if (!(mode === 'create')) {
25223
+ _context4.next = 18;
25224
+ break;
25193
25225
  }
25194
- });
25195
- case 19:
25196
- case "end":
25197
- return _context4.stop();
25226
+ bssula.request({
25227
+ url: "/basic/flow/businessField",
25228
+ method: 'POST',
25229
+ params: res,
25230
+ successMessage: '创建成功!',
25231
+ converter: function converter() {
25232
+ onParentOk();
25233
+ }
25234
+ });
25235
+ return _context4.abrupt("return");
25236
+ case 18:
25237
+ bssula.request({
25238
+ url: "/basic/flow/businessField/".concat(record.id),
25239
+ method: 'PATCH',
25240
+ params: res,
25241
+ successMessage: '修改成功!',
25242
+ converter: function converter() {
25243
+ onParentOk();
25244
+ }
25245
+ });
25246
+ case 19:
25247
+ case "end":
25248
+ return _context4.stop();
25249
+ }
25198
25250
  }
25199
25251
  }, _callee4);
25200
25252
  }));
@@ -25979,26 +26031,28 @@ var BsCascader = function BsCascader(_ref) {
25979
26031
  React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
25980
26032
  var resData, data;
25981
26033
  return _regeneratorRuntime().wrap(function _callee$(_context) {
25982
- while (1) switch (_context.prev = _context.next) {
25983
- case 0:
25984
- if (!(!source && initRequestSource)) {
25985
- _context.next = 6;
25986
- break;
25987
- }
25988
- _context.next = 3;
25989
- return initRequestSource();
25990
- case 3:
25991
- resData = _context.sent;
25992
- data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
25993
- return _objectSpread2(_objectSpread2({}, item), {}, {
25994
- label: item.text,
25995
- isLeaf: false
25996
- });
25997
- })) || [];
25998
- setHandSource(data);
25999
- case 6:
26000
- case "end":
26001
- return _context.stop();
26034
+ while (1) {
26035
+ switch (_context.prev = _context.next) {
26036
+ case 0:
26037
+ if (!(!source && initRequestSource)) {
26038
+ _context.next = 6;
26039
+ break;
26040
+ }
26041
+ _context.next = 3;
26042
+ return initRequestSource();
26043
+ case 3:
26044
+ resData = _context.sent;
26045
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26046
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26047
+ label: item.text,
26048
+ isLeaf: false
26049
+ });
26050
+ })) || [];
26051
+ setHandSource(data);
26052
+ case 6:
26053
+ case "end":
26054
+ return _context.stop();
26055
+ }
26002
26056
  }
26003
26057
  }, _callee);
26004
26058
  })), []);
@@ -26130,18 +26184,20 @@ function getRegularThresholdRange(_x) {
26130
26184
  function _getRegularThresholdRange() {
26131
26185
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
26132
26186
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26133
- while (1) switch (_context.prev = _context.next) {
26134
- case 0:
26135
- return _context.abrupt("return", axios__default['default']({
26136
- url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26137
- method: 'POST',
26138
- data: _objectSpread2(_objectSpread2({}, params), {}, {
26139
- queryIdentify: undefined
26140
- })
26141
- }));
26142
- case 1:
26143
- case "end":
26144
- return _context.stop();
26187
+ while (1) {
26188
+ switch (_context.prev = _context.next) {
26189
+ case 0:
26190
+ return _context.abrupt("return", axios__default['default']({
26191
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26192
+ method: 'POST',
26193
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26194
+ queryIdentify: undefined
26195
+ })
26196
+ }));
26197
+ case 1:
26198
+ case "end":
26199
+ return _context.stop();
26200
+ }
26145
26201
  }
26146
26202
  }, _callee);
26147
26203
  }));
@@ -26280,136 +26336,137 @@ var RuleField = /*#__PURE__*/function (_Component) {
26280
26336
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
26281
26337
  });
26282
26338
  };
26283
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
26284
26339
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
26285
26340
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
26286
26341
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
26287
26342
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26288
- while (1) switch (_context.prev = _context.next) {
26289
- case 0:
26290
- if (queryIdentify) {
26291
- _context.next = 2;
26292
- break;
26293
- }
26294
- return _context.abrupt("return");
26295
- case 2:
26296
- thresholdQuery = _this.state.thresholdQuery;
26297
- extraRequestUrl = '';
26298
- querParams = setParams(propertyCode, thresholdQuery);
26299
- if (!queryIdentityInfo.find(function (item) {
26300
- return item.identity == propertyCode;
26301
- })) {
26302
- _context.next = 10;
26303
- break;
26304
- }
26305
- //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26306
- needQueryList = queryIdentityInfo.find(function (item) {
26307
- return item.identity == propertyCode;
26308
- }).queryParam.filter(function (item) {
26309
- return item.isRequired;
26310
- }).map(function (item) {
26311
- return item.queryKey;
26312
- });
26313
- if (!needQueryList.some(function (item) {
26314
- return !querParams[item] || !querParams[item].length;
26315
- })) {
26316
- _context.next = 9;
26317
- break;
26318
- }
26319
- return _context.abrupt("return");
26320
- case 9:
26321
- extraRequestUrl = queryIdentityInfo.find(function (item) {
26322
- return item.identity == propertyCode;
26323
- }).requestUrl || '';
26324
- case 10:
26325
- if (queryIdentifyType === 'dictCodeIdentify') {
26326
- extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26327
- querParams = {
26328
- dictCode: queryIdentify
26329
- };
26330
- } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26331
- extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26332
- // querParams = { dictCode: queryIdentify }
26333
- }
26334
- if (!extraRequestUrl) {
26335
- _context.next = 16;
26336
- break;
26337
- }
26338
- if (queryIdentify == 'maintain_area_code') {
26339
- extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
26340
- } else if (queryIdentifyType == 'dictCodeIdentify') {
26341
- extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
26342
- } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26343
- extraRequestUrl = "/basic/".concat(extraRequestUrl);
26344
- }
26345
- bssula.request({
26346
- url: extraRequestUrl,
26347
- method: 'get',
26348
- converter: function converter(res) {
26349
- if (handleError(res)) {
26350
- var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26351
- if (queryIdentifyType === 'dictCodeIdentify') {
26352
- var _handleData2;
26353
- _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26354
- return {
26355
- code: i.dictItemCode,
26356
- name: i.dictItemName
26357
- };
26358
- }) : [];
26359
- }
26360
- if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26361
- var _handleData3;
26362
- _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26363
- return {
26364
- code: i.code.toString(),
26365
- name: i.name
26366
- };
26367
- }) : [];
26343
+ while (1) {
26344
+ switch (_context.prev = _context.next) {
26345
+ case 0:
26346
+ if (queryIdentify) {
26347
+ _context.next = 2;
26348
+ break;
26349
+ }
26350
+ return _context.abrupt("return");
26351
+ case 2:
26352
+ thresholdQuery = _this.state.thresholdQuery;
26353
+ extraRequestUrl = '';
26354
+ querParams = setParams(propertyCode, thresholdQuery);
26355
+ if (!queryIdentityInfo.find(function (item) {
26356
+ return item.identity == propertyCode;
26357
+ })) {
26358
+ _context.next = 10;
26359
+ break;
26360
+ }
26361
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26362
+ needQueryList = queryIdentityInfo.find(function (item) {
26363
+ return item.identity == propertyCode;
26364
+ }).queryParam.filter(function (item) {
26365
+ return item.isRequired;
26366
+ }).map(function (item) {
26367
+ return item.queryKey;
26368
+ });
26369
+ if (!needQueryList.some(function (item) {
26370
+ return !querParams[item] || !querParams[item].length;
26371
+ })) {
26372
+ _context.next = 9;
26373
+ break;
26374
+ }
26375
+ return _context.abrupt("return");
26376
+ case 9:
26377
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26378
+ return item.identity == propertyCode;
26379
+ }).requestUrl || '';
26380
+ case 10:
26381
+ if (queryIdentifyType === 'dictCodeIdentify') {
26382
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26383
+ querParams = {
26384
+ dictCode: queryIdentify
26385
+ };
26386
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26387
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26388
+ // querParams = { dictCode: queryIdentify }
26389
+ }
26390
+ if (!extraRequestUrl) {
26391
+ _context.next = 16;
26392
+ break;
26393
+ }
26394
+ if (queryIdentify == 'maintain_area_code') {
26395
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
26396
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26397
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
26398
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26399
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26400
+ }
26401
+ bssula.request({
26402
+ url: extraRequestUrl,
26403
+ method: 'get',
26404
+ converter: function converter(res) {
26405
+ if (handleError(res)) {
26406
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26407
+ if (queryIdentifyType === 'dictCodeIdentify') {
26408
+ var _handleData2;
26409
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26410
+ return {
26411
+ code: i.dictItemCode,
26412
+ name: i.dictItemName
26413
+ };
26414
+ }) : [];
26415
+ }
26416
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26417
+ var _handleData3;
26418
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26419
+ return {
26420
+ code: i.code.toString(),
26421
+ name: i.name
26422
+ };
26423
+ }) : [];
26424
+ }
26425
+ _this.setState({
26426
+ thresholdList: _handleData
26427
+ });
26368
26428
  }
26369
- _this.setState({
26370
- thresholdList: _handleData
26371
- });
26429
+ return handleData;
26372
26430
  }
26373
- return handleData;
26374
- }
26375
- });
26376
- _context.next = 29;
26377
- break;
26378
- case 16:
26379
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26380
- _context.next = 20;
26431
+ });
26432
+ _context.next = 29;
26381
26433
  break;
26382
- }
26383
- _this.setState({
26384
- thresholdList: queryIdentify
26385
- });
26386
- _context.next = 29;
26387
- break;
26388
- case 20:
26389
- if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26390
- _context.next = 24;
26434
+ case 16:
26435
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26436
+ _context.next = 20;
26437
+ break;
26438
+ }
26439
+ _this.setState({
26440
+ thresholdList: queryIdentify
26441
+ });
26442
+ _context.next = 29;
26391
26443
  break;
26392
- }
26393
- // TODO待处理
26394
- _this.setState({
26395
- thresholdList: []
26396
- });
26397
- _context.next = 29;
26398
- break;
26399
- case 24:
26400
- querParams.queryIdentify = queryIdentify;
26401
- _context.next = 27;
26402
- return getRegularThresholdRange(querParams);
26403
- case 27:
26404
- res = _context.sent;
26405
- if (handleError(res)) {
26444
+ case 20:
26445
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26446
+ _context.next = 24;
26447
+ break;
26448
+ }
26449
+ // TODO待处理
26406
26450
  _this.setState({
26407
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26451
+ thresholdList: []
26408
26452
  });
26409
- }
26410
- case 29:
26411
- case "end":
26412
- return _context.stop();
26453
+ _context.next = 29;
26454
+ break;
26455
+ case 24:
26456
+ querParams.queryIdentify = queryIdentify;
26457
+ _context.next = 27;
26458
+ return getRegularThresholdRange(querParams);
26459
+ case 27:
26460
+ res = _context.sent;
26461
+ if (handleError(res)) {
26462
+ _this.setState({
26463
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26464
+ });
26465
+ }
26466
+ case 29:
26467
+ case "end":
26468
+ return _context.stop();
26469
+ }
26413
26470
  }
26414
26471
  }, _callee);
26415
26472
  }));
@@ -27228,30 +27285,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27228
27285
  notChangeOnSelect: true,
27229
27286
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
27230
27287
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
27231
- while (1) switch (_context2.prev = _context2.next) {
27232
- case 0:
27233
- _context2.next = 2;
27234
- return bssula.request({
27235
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27236
- method: 'get',
27237
- converter: function converter(_ref3) {
27238
- var data = _ref3.data;
27239
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27240
- return {
27241
- text: item.name,
27242
- value: item.id,
27243
- level: item.level,
27244
- id: item.id
27245
- };
27246
- }) : [];
27247
- return handleData;
27248
- }
27249
- });
27250
- case 2:
27251
- return _context2.abrupt("return", _context2.sent);
27252
- case 3:
27253
- case "end":
27254
- return _context2.stop();
27288
+ while (1) {
27289
+ switch (_context2.prev = _context2.next) {
27290
+ case 0:
27291
+ _context2.next = 2;
27292
+ return bssula.request({
27293
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27294
+ method: 'get',
27295
+ converter: function converter(_ref3) {
27296
+ var data = _ref3.data;
27297
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27298
+ return {
27299
+ text: item.name,
27300
+ value: item.id,
27301
+ level: item.level,
27302
+ id: item.id
27303
+ };
27304
+ }) : [];
27305
+ return handleData;
27306
+ }
27307
+ });
27308
+ case 2:
27309
+ return _context2.abrupt("return", _context2.sent);
27310
+ case 3:
27311
+ case "end":
27312
+ return _context2.stop();
27313
+ }
27255
27314
  }
27256
27315
  }, _callee2);
27257
27316
  })),
@@ -27277,30 +27336,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27277
27336
  notChangeOnSelect: true,
27278
27337
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
27279
27338
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
27280
- while (1) switch (_context3.prev = _context3.next) {
27281
- case 0:
27282
- _context3.next = 2;
27283
- return bssula.request({
27284
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27285
- method: 'get',
27286
- converter: function converter(_ref5) {
27287
- var data = _ref5.data;
27288
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27289
- return {
27290
- text: item.name,
27291
- value: item.id,
27292
- level: item.level,
27293
- id: item.id
27294
- };
27295
- }) : [];
27296
- return handleData;
27297
- }
27298
- });
27299
- case 2:
27300
- return _context3.abrupt("return", _context3.sent);
27301
- case 3:
27302
- case "end":
27303
- return _context3.stop();
27339
+ while (1) {
27340
+ switch (_context3.prev = _context3.next) {
27341
+ case 0:
27342
+ _context3.next = 2;
27343
+ return bssula.request({
27344
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27345
+ method: 'get',
27346
+ converter: function converter(_ref5) {
27347
+ var data = _ref5.data;
27348
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27349
+ return {
27350
+ text: item.name,
27351
+ value: item.id,
27352
+ level: item.level,
27353
+ id: item.id
27354
+ };
27355
+ }) : [];
27356
+ return handleData;
27357
+ }
27358
+ });
27359
+ case 2:
27360
+ return _context3.abrupt("return", _context3.sent);
27361
+ case 3:
27362
+ case "end":
27363
+ return _context3.stop();
27364
+ }
27304
27365
  }
27305
27366
  }, _callee3);
27306
27367
  })),
@@ -27328,30 +27389,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27328
27389
  notChangeOnSelect: true,
27329
27390
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
27330
27391
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
27331
- while (1) switch (_context4.prev = _context4.next) {
27332
- case 0:
27333
- _context4.next = 2;
27334
- return bssula.request({
27335
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27336
- method: 'get',
27337
- converter: function converter(_ref7) {
27338
- var data = _ref7.data;
27339
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27340
- return {
27341
- text: item.name,
27342
- value: item.id,
27343
- level: item.level,
27344
- id: item.id
27345
- };
27346
- }) : [];
27347
- return handleData;
27348
- }
27349
- });
27350
- case 2:
27351
- return _context4.abrupt("return", _context4.sent);
27352
- case 3:
27353
- case "end":
27354
- return _context4.stop();
27392
+ while (1) {
27393
+ switch (_context4.prev = _context4.next) {
27394
+ case 0:
27395
+ _context4.next = 2;
27396
+ return bssula.request({
27397
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27398
+ method: 'get',
27399
+ converter: function converter(_ref7) {
27400
+ var data = _ref7.data;
27401
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27402
+ return {
27403
+ text: item.name,
27404
+ value: item.id,
27405
+ level: item.level,
27406
+ id: item.id
27407
+ };
27408
+ }) : [];
27409
+ return handleData;
27410
+ }
27411
+ });
27412
+ case 2:
27413
+ return _context4.abrupt("return", _context4.sent);
27414
+ case 3:
27415
+ case "end":
27416
+ return _context4.stop();
27417
+ }
27355
27418
  }
27356
27419
  }, _callee4);
27357
27420
  })),
@@ -28468,6 +28531,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
28468
28531
  });
28469
28532
  }
28470
28533
  }
28534
+
28535
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28471
28536
  }, {
28472
28537
  key: "render",
28473
28538
  value: function render() {
@@ -29298,7 +29363,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29298
29363
  callBack(ruleClassData);
29299
29364
  });
29300
29365
  };
29301
- // 树结构 转化成 平行树 (递归函数)
29302
29366
  _this.coverToParallel = function (treeData, result) {
29303
29367
  treeData.forEach(function (el) {
29304
29368
  result.push(el);
@@ -29552,7 +29616,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29552
29616
  callBack(ruleClassData);
29553
29617
  });
29554
29618
  };
29555
- // 场景需要返回值2022.11.15
29556
29619
  _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
29557
29620
  var _ruleReturnConfig$rig;
29558
29621
  var isShowResponse = itemDetail.response['enable'];
@@ -29850,30 +29913,32 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29850
29913
  notChangeOnSelect: true,
29851
29914
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29852
29915
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29853
- while (1) switch (_context.prev = _context.next) {
29854
- case 0:
29855
- _context.next = 2;
29856
- return bssula.request({
29857
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29858
- method: 'get',
29859
- converter: function converter(_ref2) {
29860
- var data = _ref2.data;
29861
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29862
- return {
29863
- text: item.name,
29864
- value: item.id,
29865
- level: item.level,
29866
- id: item.id
29867
- };
29868
- }) : [];
29869
- return handleData;
29870
- }
29871
- });
29872
- case 2:
29873
- return _context.abrupt("return", _context.sent);
29874
- case 3:
29875
- case "end":
29876
- return _context.stop();
29916
+ while (1) {
29917
+ switch (_context.prev = _context.next) {
29918
+ case 0:
29919
+ _context.next = 2;
29920
+ return bssula.request({
29921
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29922
+ method: 'get',
29923
+ converter: function converter(_ref2) {
29924
+ var data = _ref2.data;
29925
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29926
+ return {
29927
+ text: item.name,
29928
+ value: item.id,
29929
+ level: item.level,
29930
+ id: item.id
29931
+ };
29932
+ }) : [];
29933
+ return handleData;
29934
+ }
29935
+ });
29936
+ case 2:
29937
+ return _context.abrupt("return", _context.sent);
29938
+ case 3:
29939
+ case "end":
29940
+ return _context.stop();
29941
+ }
29877
29942
  }
29878
29943
  }, _callee);
29879
29944
  })),
@@ -30207,7 +30272,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30207
30272
  }
30208
30273
  }, "\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);
30209
30274
  };
30210
- //添加同一层级条件
30211
30275
  _this.addPeerRule = function (itemDetail) {
30212
30276
  var ruleClassData = _this.state.ruleClassData;
30213
30277
  var _this$props4 = _this.props,
@@ -30228,7 +30292,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30228
30292
  callBack(ruleClassData);
30229
30293
  });
30230
30294
  };
30231
- //添加子层级条件
30232
30295
  _this.addChildRules = function (itemDetail) {
30233
30296
  var ruleClassData = _this.state.ruleClassData;
30234
30297
  var callBack = _this.props.callBack;
@@ -30304,7 +30367,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30304
30367
  callBack(ruleClassData);
30305
30368
  });
30306
30369
  };
30307
- // 新增执行顺序
30308
30370
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
30309
30371
  callback();
30310
30372
  var callBack = _this.props.callBack;
@@ -30461,26 +30523,26 @@ exports.AddSkuSelect = AddSkuSelect;
30461
30523
  exports.AddSpuSelect = AddSpuSelect;
30462
30524
  exports.BillEntry = BillEntry;
30463
30525
  exports.BsCascader = BsCascader;
30464
- exports.BsLayout = index$6;
30526
+ exports.BsLayout = index$5;
30465
30527
  exports.BsSulaQueryTable = BsSulaQueryTable;
30466
30528
  exports.BusinessSearchSelect = BusinessSearchSelect$1;
30467
30529
  exports.BusinessTreeSearchSelect = BusinessTreeSearchSelect$1;
30468
- exports.CheckOneUser = index$2;
30530
+ exports.CheckOneUser = index$1;
30469
30531
  exports.ColumnSettingTable = ColumnSettingTable;
30470
30532
  exports.CommodityEntry = CommodityEntry;
30471
30533
  exports.DataImport = DataImport;
30472
30534
  exports.DataValidation = DataValidation;
30473
- exports.DetailPageWrapper = index$4;
30535
+ exports.DetailPageWrapper = index$3;
30474
30536
  exports.EllipsisTooltip = EllipsisTooltip;
30475
30537
  exports.ExportIcon = ExportIcon;
30476
30538
  exports.GuideWrapper = GuideWrapper;
30477
- exports.HomePageWrapper = index$5;
30539
+ exports.HomePageWrapper = index$4;
30478
30540
  exports.JsonQueryTable = JsonQueryTable;
30479
- exports.MoreTreeTable = index$7;
30541
+ exports.MoreTreeTable = index$6;
30480
30542
  exports.QueryMutipleInput = QueryMutipleInput;
30481
30543
  exports.RuleComponent = RuleObjectComponent;
30482
30544
  exports.SearchSelect = SearchSelect;
30483
- exports.StateFlow = index$3;
30545
+ exports.StateFlow = index$2;
30484
30546
  exports.SulaColumnSettingTable = ColumnSettingSulaTable;
30485
30547
  exports.TableColumnSetting = TableColumnSetting;
30486
30548
  exports.TreeSearchSelect = TreeSearchSelect;