@bit-sun/business-component 2.3.13 → 2.3.14

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 (201) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +5 -5
  3. package/.gitlab-ci.yml +179 -179
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  11. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  12. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  13. package/dist/index.esm.js +941 -894
  14. package/dist/index.js +947 -900
  15. package/dist/utils/utils.d.ts +1 -1
  16. package/docs/index.md +21 -21
  17. package/lib/assets/drag.svg +17 -17
  18. package/lib/assets/exportFail.svg +37 -37
  19. package/lib/assets/exportProcessing.svg +28 -28
  20. package/lib/assets/exportSuccess.svg +34 -34
  21. package/lib/assets/label_icon_bottom.svg +25 -25
  22. package/lib/assets/upExport.svg +22 -22
  23. package/package.json +78 -78
  24. package/src/assets/32.svg +27 -27
  25. package/src/assets/addIcon.svg +17 -17
  26. package/src/assets/allfunc.svg +27 -27
  27. package/src/assets/arrowRight.svg +24 -24
  28. package/src/assets/btn-delete.svg +29 -29
  29. package/src/assets/btn-edit.svg +19 -19
  30. package/src/assets/btn-more.svg +17 -17
  31. package/src/assets/btn-submit.svg +19 -19
  32. package/src/assets/caidan.svg +11 -11
  33. package/src/assets/close.svg +26 -26
  34. package/src/assets/drag.svg +17 -17
  35. package/src/assets/exportFail.svg +37 -37
  36. package/src/assets/exportProcessing.svg +28 -28
  37. package/src/assets/exportSuccess.svg +34 -34
  38. package/src/assets/fixed-left-active.svg +11 -11
  39. package/src/assets/fixed-left.svg +15 -15
  40. package/src/assets/fixed-right-active.svg +11 -11
  41. package/src/assets/fixed-right.svg +15 -15
  42. package/src/assets/guanbi.svg +15 -15
  43. package/src/assets/icon-quanping.svg +15 -15
  44. package/src/assets/icon-shezhi.svg +17 -17
  45. package/src/assets/label_icon_bottom.svg +25 -25
  46. package/src/assets/list-no-img.svg +21 -21
  47. package/src/assets/morentouxiang-32.svg +23 -23
  48. package/src/assets/scanning.svg +24 -24
  49. package/src/assets/upExport.svg +22 -22
  50. package/src/common/ENUM.ts +41 -41
  51. package/src/components/Business/AddSelectBusiness/index.md +161 -161
  52. package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
  53. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  54. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  55. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  56. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  57. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  58. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  59. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  60. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  61. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  62. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  63. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  64. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  65. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  66. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  67. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  68. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  69. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  70. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  71. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  72. package/src/components/Business/BsLayouts/index.less +79 -79
  73. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  74. package/src/components/Business/BsLayouts/service.ts +10 -10
  75. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  76. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +564 -564
  77. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  78. package/src/components/Business/BsSulaQueryTable/index.tsx +535 -535
  79. package/src/components/Business/BsSulaQueryTable/setting.tsx +852 -852
  80. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  81. package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
  82. package/src/components/Business/CommodityEntry/index.md +70 -70
  83. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  84. package/src/components/Business/CommonAlert/index.tsx +23 -23
  85. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  86. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  87. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  88. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  89. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  90. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  91. package/src/components/Business/HomePageWrapper/index.less +33 -33
  92. package/src/components/Business/HomePageWrapper/index.md +45 -45
  93. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  94. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  95. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
  96. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  97. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  98. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  99. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  100. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  101. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  102. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  103. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  104. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  105. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  106. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  107. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  108. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  109. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  110. package/src/components/Business/JsonQueryTable/index.less +16 -16
  111. package/src/components/Business/JsonQueryTable/index.md +328 -328
  112. package/src/components/Business/JsonQueryTable/index.tsx +535 -535
  113. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  114. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  115. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  116. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  117. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  118. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  119. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  120. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  121. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  122. package/src/components/Business/SearchSelect/BusinessUtils.ts +1756 -1756
  123. package/src/components/Business/SearchSelect/common.ts +64 -64
  124. package/src/components/Business/SearchSelect/index.md +1326 -1326
  125. package/src/components/Business/SearchSelect/index.tsx +51 -51
  126. package/src/components/Business/SearchSelect/utils.ts +100 -100
  127. package/src/components/Business/StateFlow/index.less +130 -130
  128. package/src/components/Business/StateFlow/index.md +60 -60
  129. package/src/components/Business/StateFlow/index.tsx +29 -29
  130. package/src/components/Business/TreeSearchSelect/index.md +154 -154
  131. package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
  132. package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
  133. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  134. package/src/components/Business/columnSettingTable/index.less +247 -247
  135. package/src/components/Business/columnSettingTable/index.md +357 -357
  136. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  137. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  138. package/src/components/Business/columnSettingTable/utils.tsx +68 -68
  139. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +86 -86
  140. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  141. package/src/components/Business/moreTreeTable/index.less +99 -99
  142. package/src/components/Business/moreTreeTable/index.md +448 -448
  143. package/src/components/Business/moreTreeTable/index.tsx +387 -387
  144. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  145. package/src/components/Functional/AddSelect/helps.ts +14 -14
  146. package/src/components/Functional/AddSelect/index.less +367 -367
  147. package/src/components/Functional/AddSelect/index.md +155 -155
  148. package/src/components/Functional/AddSelect/index.tsx +1279 -1279
  149. package/src/components/Functional/BillEntry/index.less +371 -371
  150. package/src/components/Functional/BillEntry/index.md +39 -39
  151. package/src/components/Functional/BillEntry/index.tsx +772 -772
  152. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  153. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  154. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  155. package/src/components/Functional/DataImport/index.less +63 -63
  156. package/src/components/Functional/DataImport/index.md +44 -44
  157. package/src/components/Functional/DataImport/index.tsx +695 -695
  158. package/src/components/Functional/DataValidation/index.less +63 -63
  159. package/src/components/Functional/DataValidation/index.md +39 -39
  160. package/src/components/Functional/DataValidation/index.tsx +687 -687
  161. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  162. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  163. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  164. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  165. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  166. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  167. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  168. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  169. package/src/components/Functional/SearchSelect/index.less +115 -115
  170. package/src/components/Functional/SearchSelect/index.md +141 -141
  171. package/src/components/Functional/SearchSelect/index.tsx +874 -858
  172. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  173. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  174. package/src/components/Functional/TreeSearchSelect/index.tsx +163 -163
  175. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  176. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  177. package/src/components/Solution/RuleComponent/index.js +2028 -2028
  178. package/src/components/Solution/RuleComponent/index.less +230 -230
  179. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  180. package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
  181. package/src/components/Solution/RuleComponent/services.ts +13 -13
  182. package/src/components/Solution/RuleComponent/util.js +139 -139
  183. package/src/index.ts +38 -38
  184. package/src/plugin/TableColumnSetting/index.less +247 -247
  185. package/src/plugin/TableColumnSetting/index.md +50 -50
  186. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  187. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  188. package/src/styles/bsDefault.less +1912 -1912
  189. package/src/utils/CheckOneUser/index.md +39 -39
  190. package/src/utils/CheckOneUser/index.ts +51 -51
  191. package/src/utils/LocalstorageUtils.ts +90 -90
  192. package/src/utils/TableUtils.tsx +18 -18
  193. package/src/utils/checkUtils.ts +39 -39
  194. package/src/utils/enumConfig.ts +11 -11
  195. package/src/utils/getFormMode.js +12 -12
  196. package/src/utils/index.ts +4 -4
  197. package/src/utils/requestUtils.ts +34 -34
  198. package/src/utils/serialize.js +7 -7
  199. package/src/utils/utils.ts +212 -212
  200. package/tsconfig.json +29 -29
  201. 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();
@@ -2616,7 +2626,9 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2616
2626
  _ref$init = _ref.init,
2617
2627
  init = _ref$init === void 0 ? true : _ref$init,
2618
2628
  _ref$extralHeaders = _ref.extralHeaders,
2619
- extralHeaders = _ref$extralHeaders === void 0 ? {} : _ref$extralHeaders;
2629
+ extralHeaders = _ref$extralHeaders === void 0 ? {} : _ref$extralHeaders,
2630
+ _ref$specialBracket = _ref.specialBracket,
2631
+ specialBracket = _ref$specialBracket === void 0 ? false : _ref$specialBracket;
2620
2632
  var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || 'supplierCode');
2621
2633
  var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
2622
2634
  var initVal = value || (selectMode ? [] : null);
@@ -2806,85 +2818,84 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2806
2818
  });
2807
2819
  }
2808
2820
  // 数组对象处理,对带有特殊标记的name进行处理
2809
- var _loop = function _loop() {
2821
+ for (var key in params) {
2810
2822
  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');
2823
+ (function () {
2824
+ var element = params[key];
2825
+ if (element && key.indexOf('*number*') >= 0) {
2826
+ var dataParams = key.split('*number*');
2827
+ dataParams.forEach(function (value, index) {
2828
+ params[value] = element[index];
2829
+ });
2830
+ delete params[key];
2831
+ } else if (element && key.indexOf('*address*') >= 0) {
2832
+ var _dataParams = key.split('*address*');
2833
+ _dataParams.forEach(function (value, index) {
2834
+ params[value] = element.PCDCode[index];
2835
+ });
2836
+ delete params[key];
2837
+ } else if (element && key.indexOf('*costType*') >= 0) {
2838
+ var _dataParams2 = key.split('*costType*');
2839
+ // eslint-disable-next-line prefer-destructuring
2840
+ params[_dataParams2[0]] = element[1];
2841
+ delete params[key];
2842
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2843
+ var _dataParams3 = key.split('*fullDate*');
2844
+ _dataParams3.forEach(function (value, index) {
2845
+ if (index === 0) {
2846
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2847
+ } else {
2848
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2849
+ }
2850
+ });
2851
+ delete params[key];
2852
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2853
+ var _dataParams4 = key.split('*checkBox*');
2854
+ if (element) {
2855
+ params[_dataParams4[0]] = 0;
2836
2856
  }
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');
2857
+ delete params[key];
2858
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2859
+ var _dataParams5 = key.split('*cascader*');
2860
+ params[_dataParams5[0]] = element[element.length - 1];
2861
+ delete params[key];
2862
+ } else if (element && key.indexOf('*date*') >= 0) {
2863
+ var _dataParams6 = key.split('*date*');
2864
+ _dataParams6.forEach(function (value, index) {
2865
+ if (index === 0) {
2866
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2867
+ } else {
2868
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2869
+ }
2870
+ });
2871
+ delete params[key];
2872
+ } else if (element && key.indexOf('*') >= 0) {
2873
+ var _dataParams7 = key.split('*');
2874
+ _dataParams7.forEach(function (value, index) {
2875
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2876
+ });
2877
+ delete params[key];
2878
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2879
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2880
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2881
+ if (params[key][0] === 'range') {
2882
+ if (params[key][1][0]) {
2883
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2884
+ }
2885
+ if (params[key][1][1]) {
2886
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2887
+ }
2854
2888
  } else {
2855
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2856
- }
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];
2889
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2871
2890
  }
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];
2891
+ delete params[key];
2892
+ } else if (Array.isArray(element)) {
2893
+ params[key] = element.join(',');
2894
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2895
+ delete params[key];
2877
2896
  }
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
- }
2897
+ })();
2884
2898
  }
2885
- };
2886
- for (var key in params) {
2887
- _loop();
2888
2899
  }
2889
2900
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2890
2901
  pageSize: pageSize,
@@ -2924,7 +2935,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2924
2935
  }
2925
2936
  }
2926
2937
  return _objectSpread2(_objectSpread2({}, item), {}, {
2927
- text: item[mappingTextField],
2938
+ text: specialBracket ? "\u3010".concat(item[mappingValueField], "\u3011").concat(item[mappingTextField]) : item[mappingTextField],
2928
2939
  textShowText: textShowText,
2929
2940
  textShowKey: item[mappingTextShowKeyField || mappingValueField],
2930
2941
  value: item[mappingValueField]
@@ -2942,7 +2953,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2942
2953
  }
2943
2954
  }
2944
2955
  return _objectSpread2(_objectSpread2({}, item), {}, {
2945
- text: item[mappingTextField],
2956
+ text: specialBracket ? "\u3010".concat(item[mappingValueField], "\u3011").concat(item[mappingTextField]) : item[mappingTextField],
2946
2957
  textShowText: textShowText,
2947
2958
  textShowKey: item[mappingTextShowKeyField || mappingValueField],
2948
2959
  value: item[mappingValueField]
@@ -3176,13 +3187,13 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3176
3187
  var LightHeightOption = function LightHeightOption(props) {
3177
3188
  var filterTxt = props.filterTxt,
3178
3189
  text = props.text;
3179
- var heightLightTxt = function heightLightTxt(txt, heightTxt) {
3190
+ var heightLightTxt = function heightLightTxt(text, heightTxt) {
3180
3191
  if (heightTxt === '') {
3181
- return txt;
3192
+ return text;
3182
3193
  }
3183
3194
  // 前面filterOption 不区分大小写,这里用i
3184
3195
  var regexp = new RegExp(heightTxt, 'gi');
3185
- return txt.replace(regexp, "<span style=\"color:red\">".concat(heightTxt, "</span>"));
3196
+ return text.replace(regexp, "<span style=\"color:red\">".concat(heightTxt, "</span>"));
3186
3197
  };
3187
3198
  return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
3188
3199
  title: text
@@ -3388,6 +3399,10 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3388
3399
  })
3389
3400
  }, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
3390
3401
  };
3402
+ var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, item) {
3403
+ var showText = Array.isArray(item.textShowText) && item.textShowText.join(' ') || item.textShowText;
3404
+ return specialBracket ? "\u3010".concat(item.textShowKey, "\u3011").concat(showText) : "".concat(item.textShowKey, " ").concat(showText);
3405
+ };
3391
3406
  return /*#__PURE__*/React__default['default'].createElement("div", {
3392
3407
  className: 'search_select'
3393
3408
  }, fieldComponent ? /*#__PURE__*/React__default['default'].createElement("div", {
@@ -3457,7 +3472,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
3457
3472
  key: item.value,
3458
3473
  label: item.text
3459
3474
  }, LightHeightOption({
3460
- text: "".concat(item.textShowKey, " ").concat(Array.isArray(item.textShowText) && item.textShowText.join(' ') || item.textShowText),
3475
+ text: handleSelectOptionsShowValue(specialBracket, item),
3461
3476
  filterTxt: searchValue
3462
3477
  }));
3463
3478
  })), needModalTable && /*#__PURE__*/React__default['default'].createElement(antd.Button, {
@@ -4543,74 +4558,76 @@ var AddSelect = function AddSelect(props) {
4543
4558
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
4544
4559
  var result;
4545
4560
  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;
4561
+ while (1) {
4562
+ switch (_context.prev = _context.next) {
4563
+ case 0:
4564
+ if (!(bType == 'skc' && tList.some(function (i) {
4565
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
4566
+ }))) {
4567
+ _context.next = 3;
4568
+ break;
4569
+ }
4570
+ antd.message.warning('相同skc配码不可设置相同哦');
4571
+ return _context.abrupt("return", false);
4572
+ case 3:
4573
+ if (!(bType == 'spu')) {
4574
+ _context.next = 26;
4575
+ break;
4576
+ }
4577
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
4578
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
4579
+ }))) {
4580
+ _context.next = 7;
4581
+ break;
4582
+ }
4583
+ antd.message.warning('相同商品相同配码颜色不可设置相同哦');
4584
+ return _context.abrupt("return", false);
4585
+ case 7:
4586
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
4587
+ _context.next = 10;
4588
+ break;
4589
+ }
4590
+ antd.message.warning('请先选择颜色!');
4591
+ return _context.abrupt("return", false);
4592
+ case 10:
4593
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
4594
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
4595
+ }))) {
4596
+ _context.next = 13;
4597
+ break;
4598
+ }
4599
+ antd.message.warning('相同商品相同颜色配码不可设置相同哦');
4600
+ return _context.abrupt("return", false);
4601
+ case 13:
4602
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
4603
+ _context.next = 26;
4604
+ break;
4605
+ }
4606
+ result = true;
4607
+ _context.prev = 15;
4608
+ _context.next = 18;
4609
+ return checkSpuMatchCode({
4610
+ skcCode: recordItem[recordKey],
4611
+ matchingCode: changeValue,
4612
+ ext1: recordItem.colorName
4613
+ });
4614
+ case 18:
4615
+ result = _context.sent;
4616
+ result = true;
4617
+ _context.next = 25;
4588
4618
  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();
4619
+ case 22:
4620
+ _context.prev = 22;
4621
+ _context.t0 = _context["catch"](15);
4622
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
4623
+ case 25:
4624
+ return _context.abrupt("return", result);
4625
+ case 26:
4626
+ return _context.abrupt("return", true);
4627
+ case 27:
4628
+ case "end":
4629
+ return _context.stop();
4630
+ }
4614
4631
  }
4615
4632
  }, _callee, null, [[15, 22]]);
4616
4633
  }));
@@ -4802,27 +4819,29 @@ var AddSelect = function AddSelect(props) {
4802
4819
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
4803
4820
  var isConformToTheRules, newPopValue;
4804
4821
  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];
4822
+ while (1) {
4823
+ switch (_context2.prev = _context2.next) {
4824
+ case 0:
4825
+ _context2.next = 2;
4826
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
4827
+ case 2:
4828
+ isConformToTheRules = _context2.sent;
4829
+ if (isConformToTheRules) {
4830
+ record[item.dataIndex] = value;
4831
+ } else {
4832
+ record[item.dataIndex] = null;
4819
4833
  }
4820
- return i;
4821
- });
4822
- setPopValue(newPopValue);
4823
- case 6:
4824
- case "end":
4825
- return _context2.stop();
4834
+ newPopValue = popvalue.map(function (i, innerIndex) {
4835
+ if (innerIndex == index) {
4836
+ i[item.dataIndex] = record[item.dataIndex];
4837
+ }
4838
+ return i;
4839
+ });
4840
+ setPopValue(newPopValue);
4841
+ case 6:
4842
+ case "end":
4843
+ return _context2.stop();
4844
+ }
4826
4845
  }
4827
4846
  }, _callee2);
4828
4847
  }));
@@ -4882,85 +4901,84 @@ var AddSelect = function AddSelect(props) {
4882
4901
  });
4883
4902
  }
4884
4903
  // 数组对象处理,对带有特殊标记的name进行处理
4885
- var _loop = function _loop() {
4904
+ for (var key in params) {
4886
4905
  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');
4906
+ (function () {
4907
+ var element = params[key];
4908
+ if (element && key.indexOf('*number*') >= 0) {
4909
+ var dataParams = key.split('*number*');
4910
+ dataParams.forEach(function (value, index) {
4911
+ params[value] = element[index];
4912
+ });
4913
+ delete params[key];
4914
+ } else if (element && key.indexOf('*address*') >= 0) {
4915
+ var _dataParams = key.split('*address*');
4916
+ _dataParams.forEach(function (value, index) {
4917
+ params[value] = element.PCDCode[index];
4918
+ });
4919
+ delete params[key];
4920
+ } else if (element && key.indexOf('*costType*') >= 0) {
4921
+ var _dataParams2 = key.split('*costType*');
4922
+ // eslint-disable-next-line prefer-destructuring
4923
+ params[_dataParams2[0]] = element[1];
4924
+ delete params[key];
4925
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
4926
+ var _dataParams3 = key.split('*fullDate*');
4927
+ _dataParams3.forEach(function (value, index) {
4928
+ if (index === 0) {
4929
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4930
+ } else {
4931
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4932
+ }
4933
+ });
4934
+ delete params[key];
4935
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4936
+ var _dataParams4 = key.split('*checkBox*');
4937
+ if (element) {
4938
+ params[_dataParams4[0]] = 0;
4912
4939
  }
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');
4940
+ delete params[key];
4941
+ } else if (element && key.indexOf('*cascader*') >= 0) {
4942
+ var _dataParams5 = key.split('*cascader*');
4943
+ params[_dataParams5[0]] = element[element.length - 1];
4944
+ delete params[key];
4945
+ } else if (element && key.indexOf('*date*') >= 0) {
4946
+ var _dataParams6 = key.split('*date*');
4947
+ _dataParams6.forEach(function (value, index) {
4948
+ if (index === 0) {
4949
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4950
+ } else {
4951
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
4952
+ }
4953
+ });
4954
+ delete params[key];
4955
+ } else if (element && key.indexOf('*') >= 0) {
4956
+ var _dataParams7 = key.split('*');
4957
+ _dataParams7.forEach(function (value, index) {
4958
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
4959
+ });
4960
+ delete params[key];
4961
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
4962
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
4963
+ var _dataParams8 = key.split('_selectNumberRange')[0];
4964
+ if (params[key][0] === 'range') {
4965
+ if (params[key][1][0]) {
4966
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
4967
+ }
4968
+ if (params[key][1][1]) {
4969
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
4970
+ }
4930
4971
  } else {
4931
- params[value] = moment(element[index]).format('YYYY-MM-DD');
4972
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
4932
4973
  }
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];
4947
- }
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];
4974
+ delete params[key];
4975
+ } else if (Array.isArray(element)) {
4976
+ params[key] = element.join(',');
4977
+ } else if (element == null || element === undefined || String(element).trim() === '') {
4978
+ delete params[key];
4953
4979
  }
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
- }
4980
+ })();
4960
4981
  }
4961
- };
4962
- for (var key in params) {
4963
- _loop();
4964
4982
  }
4965
4983
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
4966
4984
  pageSize: pageSize,
@@ -6415,70 +6433,72 @@ var BillEntry = function BillEntry(_ref3) {
6415
6433
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6416
6434
  var canEntryObject, _canEntryObject$error, messageInfo;
6417
6435
  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
- }
6436
+ while (1) {
6437
+ switch (_context.prev = _context.next) {
6438
+ case 0:
6439
+ if (data === null || data === void 0 ? void 0 : data.length) {
6440
+ _context.next = 3;
6441
+ break;
6473
6442
  }
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();
6443
+ antd.message.warning('至少录入一条数据');
6444
+ return _context.abrupt("return");
6445
+ case 3:
6446
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6447
+ return d.skuCode && d.name;
6448
+ })) {
6449
+ _context.next = 6;
6450
+ break;
6451
+ }
6452
+ antd.message.warning('请选择商品!');
6453
+ return _context.abrupt("return");
6454
+ case 6:
6455
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
6456
+ return d.count;
6457
+ })) {
6458
+ _context.next = 9;
6459
+ break;
6460
+ }
6461
+ antd.message.warning('请填写商品数量!');
6462
+ return _context.abrupt("return");
6463
+ case 9:
6464
+ _context.next = 11;
6465
+ return isSkuCanEntry(data);
6466
+ case 11:
6467
+ canEntryObject = _context.sent;
6468
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
6469
+ _context.next = 16;
6470
+ break;
6471
+ }
6472
+ 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) {
6473
+ return /*#__PURE__*/React__default['default'].createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
6474
+ }));
6475
+ messageInfo && antd.message.warning({
6476
+ content: messageInfo,
6477
+ duration: 6
6478
+ });
6479
+ return _context.abrupt("return");
6480
+ case 16:
6481
+ setLoading(true);
6482
+ onSaveCallback(data).then(function (res) {
6483
+ {
6484
+ var _Object$keys;
6485
+ var initSuccessMessage = '保存成功';
6486
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
6487
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
6488
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? antd.message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
6489
+ } else {
6490
+ antd.message.success(initSuccessMessage);
6491
+ }
6492
+ }
6493
+ setLoading(false);
6494
+ }).catch(function (Error) {
6495
+ antd.message.error(Error);
6496
+ setLoading(false);
6497
+ });
6498
+ case 18:
6499
+ case "end":
6500
+ return _context.stop();
6501
+ }
6482
6502
  }
6483
6503
  }, _callee);
6484
6504
  }));
@@ -9670,7 +9690,7 @@ var CommodityEntry = function CommodityEntry(props) {
9670
9690
  * @LastEditTime: 2022-01-14 17:17:26
9671
9691
  * @LastEditors: rodchen
9672
9692
  */
9673
- var index$2 = (function (storageKeyString) {
9693
+ var index$1 = (function (storageKeyString) {
9674
9694
  var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
9675
9695
  var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
9676
9696
  if (typeof seconds !== 'number') throw new Error('seconds should be number');
@@ -9791,42 +9811,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
9791
9811
  var _ctx$form;
9792
9812
  var resData, coverData, data, dataList;
9793
9813
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9794
- while (1) switch (_context.prev = _context.next) {
9795
- case 0:
9796
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9797
- if (!(resData.status === '0' || resData.code === '000000')) {
9798
- _context.next = 13;
9814
+ while (1) {
9815
+ switch (_context.prev = _context.next) {
9816
+ case 0:
9817
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
9818
+ if (!(resData.status === '0' || resData.code === '000000')) {
9819
+ _context.next = 13;
9820
+ break;
9821
+ }
9822
+ data = resData.data;
9823
+ if (!remoteSource.converter) {
9824
+ _context.next = 9;
9825
+ break;
9826
+ }
9827
+ _context.next = 6;
9828
+ return remoteSource.converter({
9829
+ data: [data]
9830
+ });
9831
+ case 6:
9832
+ coverData = _context.sent;
9833
+ _context.next = 11;
9799
9834
  break;
9800
- }
9801
- data = resData.data;
9802
- if (!remoteSource.converter) {
9803
- _context.next = 9;
9835
+ case 9:
9836
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
9837
+ coverData = dataList.length && dataList.map(function (ites) {
9838
+ return mapSearchTree(ites);
9839
+ }) || [];
9840
+ case 11:
9841
+ _context.next = 14;
9804
9842
  break;
9805
- }
9806
- _context.next = 6;
9807
- return remoteSource.converter({
9808
- data: [data]
9809
- });
9810
- case 6:
9811
- coverData = _context.sent;
9812
- _context.next = 11;
9813
- break;
9814
- case 9:
9815
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
9816
- coverData = dataList.length && dataList.map(function (ites) {
9817
- return mapSearchTree(ites);
9818
- }) || [];
9819
- case 11:
9820
- _context.next = 14;
9821
- break;
9822
- case 13:
9823
- coverData = [];
9824
- case 14:
9825
- setTreeData(coverData);
9826
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9827
- case 16:
9828
- case "end":
9829
- return _context.stop();
9843
+ case 13:
9844
+ coverData = [];
9845
+ case 14:
9846
+ setTreeData(coverData);
9847
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
9848
+ case 16:
9849
+ case "end":
9850
+ return _context.stop();
9851
+ }
9830
9852
  }
9831
9853
  }, _callee);
9832
9854
  }));
@@ -10033,7 +10055,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
10033
10055
  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";
10034
10056
  styleInject(css_248z$8);
10035
10057
 
10036
- var index$3 = (function (props) {
10058
+ var index$2 = (function (props) {
10037
10059
  var _props$formStatusMapp = props.formStatusMapping,
10038
10060
  formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
10039
10061
  return /*#__PURE__*/React__default['default'].createElement("div", {
@@ -11457,7 +11479,7 @@ var iconMap = {
11457
11479
  src: moreIcon
11458
11480
  })
11459
11481
  };
11460
- var index$4 = (function (props) {
11482
+ var index$3 = (function (props) {
11461
11483
  var _useLocation = umi.useLocation(),
11462
11484
  pathname = _useLocation.pathname;
11463
11485
  var _useState = React.useState(pathname + 'id'),
@@ -11674,7 +11696,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
11674
11696
  styleInject(css_248z$d);
11675
11697
 
11676
11698
  var _excluded$c = ["children"];
11677
- var index$5 = (function (props) {
11699
+ var index$4 = (function (props) {
11678
11700
  var _useLocation = umi.useLocation(),
11679
11701
  pathname = _useLocation.pathname;
11680
11702
  var _useState = React.useState(pathname + 'id'),
@@ -13973,19 +13995,21 @@ function _outLogin() {
13973
13995
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
13974
13996
  var res;
13975
13997
  return _regeneratorRuntime().wrap(function _callee$(_context) {
13976
- while (1) switch (_context.prev = _context.next) {
13977
- case 0:
13978
- _context.next = 2;
13979
- return axios__default['default']({
13980
- url: '/user/web/loginOut',
13981
- method: 'GET'
13982
- });
13983
- case 2:
13984
- res = _context.sent;
13985
- return _context.abrupt("return", res);
13986
- case 4:
13987
- case "end":
13988
- return _context.stop();
13998
+ while (1) {
13999
+ switch (_context.prev = _context.next) {
14000
+ case 0:
14001
+ _context.next = 2;
14002
+ return axios__default['default']({
14003
+ url: '/user/web/loginOut',
14004
+ method: 'GET'
14005
+ });
14006
+ case 2:
14007
+ res = _context.sent;
14008
+ return _context.abrupt("return", res);
14009
+ case 4:
14010
+ case "end":
14011
+ return _context.stop();
14012
+ }
13989
14013
  }
13990
14014
  }, _callee);
13991
14015
  }));
@@ -14114,29 +14138,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
14114
14138
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
14115
14139
  var sessionId;
14116
14140
  return _regeneratorRuntime().wrap(function _callee$(_context) {
14117
- while (1) switch (_context.prev = _context.next) {
14118
- case 0:
14119
- _context.next = 2;
14120
- return getSessionId();
14121
- case 2:
14122
- sessionId = _context.sent;
14123
- _context.next = 5;
14124
- return outLogin({
14125
- sessionId: sessionId
14126
- });
14127
- case 5:
14128
- // @ts-ignore
14129
- if (BUILD_TYPE) {
14130
- antd.message.success('退出登录成功');
14131
- umi.history.replace({
14132
- pathname: '/user/login'
14141
+ while (1) {
14142
+ switch (_context.prev = _context.next) {
14143
+ case 0:
14144
+ _context.next = 2;
14145
+ return getSessionId();
14146
+ case 2:
14147
+ sessionId = _context.sent;
14148
+ _context.next = 5;
14149
+ return outLogin({
14150
+ sessionId: sessionId
14133
14151
  });
14134
- } else {
14135
- setLoginOutPath();
14136
- }
14137
- case 6:
14138
- case "end":
14139
- return _context.stop();
14152
+ case 5:
14153
+ // @ts-ignore
14154
+ if (BUILD_TYPE) {
14155
+ antd.message.success('退出登录成功');
14156
+ umi.history.replace({
14157
+ pathname: '/user/login'
14158
+ });
14159
+ } else {
14160
+ setLoginOutPath();
14161
+ }
14162
+ case 6:
14163
+ case "end":
14164
+ return _context.stop();
14165
+ }
14140
14166
  }
14141
14167
  }, _callee);
14142
14168
  }));
@@ -15964,7 +15990,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
15964
15990
  showSubMenu: isShow
15965
15991
  });
15966
15992
  }, 500);
15967
- //设置tabs标签左右滚动
15968
15993
  _this.setTabNavTransLate = function (num) {
15969
15994
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
15970
15995
  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];
@@ -16645,12 +16670,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
16645
16670
  request: function () {
16646
16671
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16647
16672
  return _regeneratorRuntime().wrap(function _callee$(_context) {
16648
- while (1) switch (_context.prev = _context.next) {
16649
- case 0:
16650
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16651
- case 1:
16652
- case "end":
16653
- return _context.stop();
16673
+ while (1) {
16674
+ switch (_context.prev = _context.next) {
16675
+ case 0:
16676
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
16677
+ case 1:
16678
+ case "end":
16679
+ return _context.stop();
16680
+ }
16654
16681
  }
16655
16682
  }, _callee);
16656
16683
  }));
@@ -16788,7 +16815,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
16788
16815
  }]);
16789
16816
  return WrapperComponent;
16790
16817
  }(React__default['default'].Component);
16791
- var index$6 = (function (props) {
16818
+ var index$5 = (function (props) {
16792
16819
  var _useModel = umi.useModel('@@initialState'),
16793
16820
  _useModel$initialStat = _useModel.initialState,
16794
16821
  initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
@@ -17029,7 +17056,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
17029
17056
  };
17030
17057
  var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
17031
17058
 
17032
- var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
17059
+ var index$6 = /*#__PURE__*/React.forwardRef(function (props, ref) {
17033
17060
  var _useState = React.useState(false),
17034
17061
  _useState2 = _slicedToArray(_useState, 2),
17035
17062
  show = _useState2[0],
@@ -24330,26 +24357,28 @@ var valueType = {
24330
24357
  var getDynamicDict = /*#__PURE__*/function () {
24331
24358
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
24332
24359
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24333
- while (1) switch (_context.prev = _context.next) {
24334
- case 0:
24335
- _context.next = 2;
24336
- return bssula.request({
24337
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24338
- converter: function converter(_ref2) {
24339
- var data = _ref2.data;
24340
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
24341
- return {
24342
- text: d.name,
24343
- value: d.code || d.brandCode
24344
- };
24345
- });
24346
- }
24347
- });
24348
- case 2:
24349
- return _context.abrupt("return", _context.sent);
24350
- case 3:
24351
- case "end":
24352
- return _context.stop();
24360
+ while (1) {
24361
+ switch (_context.prev = _context.next) {
24362
+ case 0:
24363
+ _context.next = 2;
24364
+ return bssula.request({
24365
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
24366
+ converter: function converter(_ref2) {
24367
+ var data = _ref2.data;
24368
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
24369
+ return {
24370
+ text: d.name,
24371
+ value: d.code || d.brandCode
24372
+ };
24373
+ });
24374
+ }
24375
+ });
24376
+ case 2:
24377
+ return _context.abrupt("return", _context.sent);
24378
+ case 3:
24379
+ case "end":
24380
+ return _context.stop();
24381
+ }
24353
24382
  }
24354
24383
  }, _callee);
24355
24384
  }));
@@ -24399,53 +24428,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24399
24428
  ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24400
24429
  var _ref$current, source;
24401
24430
  return _regeneratorRuntime().wrap(function _callee$(_context) {
24402
- while (1) switch (_context.prev = _context.next) {
24403
- case 0:
24404
- _context.next = 2;
24405
- return setIsShowAndType(function (prev) {
24406
- if (record.inputType === 20 || record.inputType === 30) {
24407
- return {
24408
- isShow: true,
24409
- singleOrMultiple: record.inputType,
24410
- type: record.choiceType
24411
- };
24431
+ while (1) {
24432
+ switch (_context.prev = _context.next) {
24433
+ case 0:
24434
+ _context.next = 2;
24435
+ return setIsShowAndType(function (prev) {
24436
+ if (record.inputType === 20 || record.inputType === 30) {
24437
+ return {
24438
+ isShow: true,
24439
+ singleOrMultiple: record.inputType,
24440
+ type: record.choiceType
24441
+ };
24442
+ }
24443
+ return prev;
24444
+ });
24445
+ case 2:
24446
+ if (!record.dictionaryCode) {
24447
+ _context.next = 17;
24448
+ break;
24412
24449
  }
24413
- return prev;
24414
- });
24415
- case 2:
24416
- if (!record.dictionaryCode) {
24417
- _context.next = 17;
24418
- break;
24419
- }
24420
- if (!(record.choiceType == 20)) {
24421
- _context.next = 7;
24450
+ if (!(record.choiceType == 20)) {
24451
+ _context.next = 7;
24452
+ break;
24453
+ }
24454
+ _context.t0 = getDictionarySource(record.dictionaryCode);
24455
+ _context.next = 15;
24422
24456
  break;
24423
- }
24424
- _context.t0 = getDictionarySource(record.dictionaryCode);
24425
- _context.next = 15;
24426
- break;
24427
- case 7:
24428
- if (!(record.choiceType == 30)) {
24429
- _context.next = 13;
24457
+ case 7:
24458
+ if (!(record.choiceType == 30)) {
24459
+ _context.next = 13;
24460
+ break;
24461
+ }
24462
+ _context.next = 10;
24463
+ return getDynamicDict(record.dictionaryCode);
24464
+ case 10:
24465
+ _context.t1 = _context.sent;
24466
+ _context.next = 14;
24430
24467
  break;
24431
- }
24432
- _context.next = 10;
24433
- return getDynamicDict(record.dictionaryCode);
24434
- case 10:
24435
- _context.t1 = _context.sent;
24436
- _context.next = 14;
24437
- break;
24438
- case 13:
24439
- _context.t1 = [];
24440
- case 14:
24441
- _context.t0 = _context.t1;
24442
- case 15:
24443
- source = _context.t0;
24444
- // @ts-ignore
24445
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24446
- case 17:
24447
- case "end":
24448
- return _context.stop();
24468
+ case 13:
24469
+ _context.t1 = [];
24470
+ case 14:
24471
+ _context.t0 = _context.t1;
24472
+ case 15:
24473
+ source = _context.t0;
24474
+ // @ts-ignore
24475
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
24476
+ case 17:
24477
+ case "end":
24478
+ return _context.stop();
24479
+ }
24449
24480
  }
24450
24481
  }, _callee);
24451
24482
  })));
@@ -24513,28 +24544,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24513
24544
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
24514
24545
  var form, values, name, relates, source;
24515
24546
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
24516
- while (1) switch (_context2.prev = _context2.next) {
24517
- case 0:
24518
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24519
- if (values[0]) {
24547
+ while (1) {
24548
+ switch (_context2.prev = _context2.next) {
24549
+ case 0:
24550
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
24551
+ if (values[0]) {
24552
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24553
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24554
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24555
+ }
24556
+ if (!values[1]) {
24557
+ _context2.next = 9;
24558
+ break;
24559
+ }
24560
+ _context2.next = 5;
24561
+ return getDynamicDict(record.dictionaryCode || values[1]);
24562
+ case 5:
24563
+ source = _context2.sent;
24520
24564
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24521
24565
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24522
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
24523
- }
24524
- if (!values[1]) {
24525
- _context2.next = 9;
24526
- break;
24527
- }
24528
- _context2.next = 5;
24529
- return getDynamicDict(record.dictionaryCode || values[1]);
24530
- case 5:
24531
- source = _context2.sent;
24532
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
24533
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
24534
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24535
- case 9:
24536
- case "end":
24537
- return _context2.stop();
24566
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
24567
+ case 9:
24568
+ case "end":
24569
+ return _context2.stop();
24570
+ }
24538
24571
  }
24539
24572
  }, _callee2);
24540
24573
  }));
@@ -24994,41 +25027,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
24994
25027
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
24995
25028
  var values, name, form, source;
24996
25029
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
24997
- while (1) switch (_context3.prev = _context3.next) {
24998
- case 0:
24999
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
25000
- if (values[1] === 40) {
25001
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25002
- form.setFieldVisible(name, false);
25003
- }
25004
- if (!(values[0] === 30)) {
25005
- _context3.next = 10;
25006
- break;
25007
- }
25008
- _context3.next = 5;
25009
- return bssula.request({
25010
- url: '/basic/dictDynamicItem/queryList',
25011
- converter: function converter(_ref11) {
25012
- var data = _ref11.data;
25013
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
25014
- return {
25015
- text: d.dictCode,
25016
- value: d.dictCode
25017
- };
25018
- });
25030
+ while (1) {
25031
+ switch (_context3.prev = _context3.next) {
25032
+ case 0:
25033
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
25034
+ if (values[1] === 40) {
25035
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
25036
+ form.setFieldVisible(name, false);
25019
25037
  }
25020
- });
25021
- case 5:
25022
- source = _context3.sent;
25023
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25024
- form.setFieldVisible(name, true);
25025
- _context3.next = 11;
25026
- break;
25027
- case 10:
25028
- form.setFieldVisible(name, false);
25029
- case 11:
25030
- case "end":
25031
- return _context3.stop();
25038
+ if (!(values[0] === 30)) {
25039
+ _context3.next = 10;
25040
+ break;
25041
+ }
25042
+ _context3.next = 5;
25043
+ return bssula.request({
25044
+ url: '/basic/dictDynamicItem/queryList',
25045
+ converter: function converter(_ref11) {
25046
+ var data = _ref11.data;
25047
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
25048
+ return {
25049
+ text: d.dictCode,
25050
+ value: d.dictCode
25051
+ };
25052
+ });
25053
+ }
25054
+ });
25055
+ case 5:
25056
+ source = _context3.sent;
25057
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
25058
+ form.setFieldVisible(name, true);
25059
+ _context3.next = 11;
25060
+ break;
25061
+ case 10:
25062
+ form.setFieldVisible(name, false);
25063
+ case 11:
25064
+ case "end":
25065
+ return _context3.stop();
25066
+ }
25032
25067
  }
25033
25068
  }, _callee3);
25034
25069
  }));
@@ -25217,64 +25252,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
25217
25252
  var _ref$current4, _res$editableStatus;
25218
25253
  var res, _res$defaultValue;
25219
25254
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
25220
- while (1) switch (_context4.prev = _context4.next) {
25221
- case 0:
25222
- _context4.next = 2;
25223
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25224
- case 2:
25225
- res = _context4.sent;
25226
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25227
- res.fieldGroup = record.fieldGroup;
25228
- res.businessType = record.businessType;
25229
- res.info = {
25230
- enumeration: res.enumeration,
25231
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25232
- formula: res.formula,
25233
- scale: res.scale,
25234
- variable: res.variable
25235
- };
25236
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25237
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25238
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25239
- if (res.inputType === 40) {
25240
- res.valueType = 22;
25241
- }
25242
- // 把数组处理成文本
25243
- if (res.inputType === 30) {
25244
- if (res.defaultValue) {
25245
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25255
+ while (1) {
25256
+ switch (_context4.prev = _context4.next) {
25257
+ case 0:
25258
+ _context4.next = 2;
25259
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
25260
+ case 2:
25261
+ res = _context4.sent;
25262
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
25263
+ res.fieldGroup = record.fieldGroup;
25264
+ res.businessType = record.businessType;
25265
+ res.info = {
25266
+ enumeration: res.enumeration,
25267
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
25268
+ formula: res.formula,
25269
+ scale: res.scale,
25270
+ variable: res.variable
25271
+ };
25272
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
25273
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
25274
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
25275
+ if (res.inputType === 40) {
25276
+ res.valueType = 22;
25246
25277
  }
25247
- }
25248
- res.fieldMapping = res.fieldMapping || '';
25249
- delete res.formula;
25250
- delete res.showValue;
25251
- if (!(mode === 'create')) {
25252
- _context4.next = 18;
25253
- break;
25254
- }
25255
- bssula.request({
25256
- url: "/basic/flow/businessField",
25257
- method: 'POST',
25258
- params: res,
25259
- successMessage: '创建成功!',
25260
- converter: function converter() {
25261
- onParentOk();
25278
+ // 把数组处理成文本
25279
+ if (res.inputType === 30) {
25280
+ if (res.defaultValue) {
25281
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
25282
+ }
25262
25283
  }
25263
- });
25264
- return _context4.abrupt("return");
25265
- case 18:
25266
- bssula.request({
25267
- url: "/basic/flow/businessField/".concat(record.id),
25268
- method: 'PATCH',
25269
- params: res,
25270
- successMessage: '修改成功!',
25271
- converter: function converter() {
25272
- onParentOk();
25284
+ res.fieldMapping = res.fieldMapping || '';
25285
+ delete res.formula;
25286
+ delete res.showValue;
25287
+ if (!(mode === 'create')) {
25288
+ _context4.next = 18;
25289
+ break;
25273
25290
  }
25274
- });
25275
- case 19:
25276
- case "end":
25277
- return _context4.stop();
25291
+ bssula.request({
25292
+ url: "/basic/flow/businessField",
25293
+ method: 'POST',
25294
+ params: res,
25295
+ successMessage: '创建成功!',
25296
+ converter: function converter() {
25297
+ onParentOk();
25298
+ }
25299
+ });
25300
+ return _context4.abrupt("return");
25301
+ case 18:
25302
+ bssula.request({
25303
+ url: "/basic/flow/businessField/".concat(record.id),
25304
+ method: 'PATCH',
25305
+ params: res,
25306
+ successMessage: '修改成功!',
25307
+ converter: function converter() {
25308
+ onParentOk();
25309
+ }
25310
+ });
25311
+ case 19:
25312
+ case "end":
25313
+ return _context4.stop();
25314
+ }
25278
25315
  }
25279
25316
  }, _callee4);
25280
25317
  }));
@@ -26059,26 +26096,28 @@ var BsCascader = function BsCascader(_ref) {
26059
26096
  React.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26060
26097
  var resData, data;
26061
26098
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26062
- while (1) switch (_context.prev = _context.next) {
26063
- case 0:
26064
- if (!(!source && initRequestSource)) {
26065
- _context.next = 6;
26066
- break;
26067
- }
26068
- _context.next = 3;
26069
- return initRequestSource();
26070
- case 3:
26071
- resData = _context.sent;
26072
- data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26073
- return _objectSpread2(_objectSpread2({}, item), {}, {
26074
- label: item.text,
26075
- isLeaf: false
26076
- });
26077
- })) || [];
26078
- setHandSource(data);
26079
- case 6:
26080
- case "end":
26081
- return _context.stop();
26099
+ while (1) {
26100
+ switch (_context.prev = _context.next) {
26101
+ case 0:
26102
+ if (!(!source && initRequestSource)) {
26103
+ _context.next = 6;
26104
+ break;
26105
+ }
26106
+ _context.next = 3;
26107
+ return initRequestSource();
26108
+ case 3:
26109
+ resData = _context.sent;
26110
+ data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
26111
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26112
+ label: item.text,
26113
+ isLeaf: false
26114
+ });
26115
+ })) || [];
26116
+ setHandSource(data);
26117
+ case 6:
26118
+ case "end":
26119
+ return _context.stop();
26120
+ }
26082
26121
  }
26083
26122
  }, _callee);
26084
26123
  })), []);
@@ -26210,18 +26249,20 @@ function getRegularThresholdRange(_x) {
26210
26249
  function _getRegularThresholdRange() {
26211
26250
  _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
26212
26251
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26213
- while (1) switch (_context.prev = _context.next) {
26214
- case 0:
26215
- return _context.abrupt("return", axios__default['default']({
26216
- url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26217
- method: 'POST',
26218
- data: _objectSpread2(_objectSpread2({}, params), {}, {
26219
- queryIdentify: undefined
26220
- })
26221
- }));
26222
- case 1:
26223
- case "end":
26224
- return _context.stop();
26252
+ while (1) {
26253
+ switch (_context.prev = _context.next) {
26254
+ case 0:
26255
+ return _context.abrupt("return", axios__default['default']({
26256
+ url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
26257
+ method: 'POST',
26258
+ data: _objectSpread2(_objectSpread2({}, params), {}, {
26259
+ queryIdentify: undefined
26260
+ })
26261
+ }));
26262
+ case 1:
26263
+ case "end":
26264
+ return _context.stop();
26265
+ }
26225
26266
  }
26226
26267
  }, _callee);
26227
26268
  }));
@@ -26360,136 +26401,137 @@ var RuleField = /*#__PURE__*/function (_Component) {
26360
26401
  _this.getRegularThresholdRange(queryIdentify, propertyCode, queryIdentifyType);
26361
26402
  });
26362
26403
  };
26363
- //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
26364
26404
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
26365
26405
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
26366
26406
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
26367
26407
  return _regeneratorRuntime().wrap(function _callee$(_context) {
26368
- while (1) switch (_context.prev = _context.next) {
26369
- case 0:
26370
- if (queryIdentify) {
26371
- _context.next = 2;
26372
- break;
26373
- }
26374
- return _context.abrupt("return");
26375
- case 2:
26376
- thresholdQuery = _this.state.thresholdQuery;
26377
- extraRequestUrl = '';
26378
- querParams = setParams(propertyCode, thresholdQuery);
26379
- if (!queryIdentityInfo.find(function (item) {
26380
- return item.identity == propertyCode;
26381
- })) {
26382
- _context.next = 10;
26383
- break;
26384
- }
26385
- //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26386
- needQueryList = queryIdentityInfo.find(function (item) {
26387
- return item.identity == propertyCode;
26388
- }).queryParam.filter(function (item) {
26389
- return item.isRequired;
26390
- }).map(function (item) {
26391
- return item.queryKey;
26392
- });
26393
- if (!needQueryList.some(function (item) {
26394
- return !querParams[item] || !querParams[item].length;
26395
- })) {
26396
- _context.next = 9;
26397
- break;
26398
- }
26399
- return _context.abrupt("return");
26400
- case 9:
26401
- extraRequestUrl = queryIdentityInfo.find(function (item) {
26402
- return item.identity == propertyCode;
26403
- }).requestUrl || '';
26404
- case 10:
26405
- if (queryIdentifyType === 'dictCodeIdentify') {
26406
- extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26407
- querParams = {
26408
- dictCode: queryIdentify
26409
- };
26410
- } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26411
- extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26412
- // querParams = { dictCode: queryIdentify }
26413
- }
26414
- if (!extraRequestUrl) {
26415
- _context.next = 16;
26416
- break;
26417
- }
26418
- if (queryIdentify == 'maintain_area_code') {
26419
- extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
26420
- } else if (queryIdentifyType == 'dictCodeIdentify') {
26421
- extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
26422
- } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26423
- extraRequestUrl = "/basic/".concat(extraRequestUrl);
26424
- }
26425
- bssula.request({
26426
- url: extraRequestUrl,
26427
- method: 'get',
26428
- converter: function converter(res) {
26429
- if (handleError(res)) {
26430
- var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26431
- if (queryIdentifyType === 'dictCodeIdentify') {
26432
- var _handleData2;
26433
- _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26434
- return {
26435
- code: i.dictItemCode,
26436
- name: i.dictItemName
26437
- };
26438
- }) : [];
26439
- }
26440
- if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26441
- var _handleData3;
26442
- _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26443
- return {
26444
- code: i.code.toString(),
26445
- name: i.name
26446
- };
26447
- }) : [];
26408
+ while (1) {
26409
+ switch (_context.prev = _context.next) {
26410
+ case 0:
26411
+ if (queryIdentify) {
26412
+ _context.next = 2;
26413
+ break;
26414
+ }
26415
+ return _context.abrupt("return");
26416
+ case 2:
26417
+ thresholdQuery = _this.state.thresholdQuery;
26418
+ extraRequestUrl = '';
26419
+ querParams = setParams(propertyCode, thresholdQuery);
26420
+ if (!queryIdentityInfo.find(function (item) {
26421
+ return item.identity == propertyCode;
26422
+ })) {
26423
+ _context.next = 10;
26424
+ break;
26425
+ }
26426
+ //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
26427
+ needQueryList = queryIdentityInfo.find(function (item) {
26428
+ return item.identity == propertyCode;
26429
+ }).queryParam.filter(function (item) {
26430
+ return item.isRequired;
26431
+ }).map(function (item) {
26432
+ return item.queryKey;
26433
+ });
26434
+ if (!needQueryList.some(function (item) {
26435
+ return !querParams[item] || !querParams[item].length;
26436
+ })) {
26437
+ _context.next = 9;
26438
+ break;
26439
+ }
26440
+ return _context.abrupt("return");
26441
+ case 9:
26442
+ extraRequestUrl = queryIdentityInfo.find(function (item) {
26443
+ return item.identity == propertyCode;
26444
+ }).requestUrl || '';
26445
+ case 10:
26446
+ if (queryIdentifyType === 'dictCodeIdentify') {
26447
+ extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
26448
+ querParams = {
26449
+ dictCode: queryIdentify
26450
+ };
26451
+ } else if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26452
+ extraRequestUrl = "dictDynamicItem/getDynamicData/".concat(queryIdentify); // 字典接口
26453
+ // querParams = { dictCode: queryIdentify }
26454
+ }
26455
+ if (!extraRequestUrl) {
26456
+ _context.next = 16;
26457
+ break;
26458
+ }
26459
+ if (queryIdentify == 'maintain_area_code') {
26460
+ extraRequestUrl = "/basic/".concat(extraRequestUrl).concat(querParams.memberCardCode, "?").concat(querystring.stringify(querParams));
26461
+ } else if (queryIdentifyType == 'dictCodeIdentify') {
26462
+ extraRequestUrl = "/basic/".concat(extraRequestUrl, "?").concat(querystring.stringify(querParams));
26463
+ } else if (queryIdentifyType == 'dynamicDictCodeIdentify') {
26464
+ extraRequestUrl = "/basic/".concat(extraRequestUrl);
26465
+ }
26466
+ bssula.request({
26467
+ url: extraRequestUrl,
26468
+ method: 'get',
26469
+ converter: function converter(res) {
26470
+ if (handleError(res)) {
26471
+ var _handleData = (res === null || res === void 0 ? void 0 : res.data) || [];
26472
+ if (queryIdentifyType === 'dictCodeIdentify') {
26473
+ var _handleData2;
26474
+ _handleData = ((_handleData2 = _handleData) === null || _handleData2 === void 0 ? void 0 : _handleData2.length) ? _handleData.map(function (i) {
26475
+ return {
26476
+ code: i.dictItemCode,
26477
+ name: i.dictItemName
26478
+ };
26479
+ }) : [];
26480
+ }
26481
+ if (queryIdentifyType === 'dynamicDictCodeIdentify') {
26482
+ var _handleData3;
26483
+ _handleData = ((_handleData3 = _handleData) === null || _handleData3 === void 0 ? void 0 : _handleData3.length) ? _handleData.map(function (i) {
26484
+ return {
26485
+ code: i.code.toString(),
26486
+ name: i.name
26487
+ };
26488
+ }) : [];
26489
+ }
26490
+ _this.setState({
26491
+ thresholdList: _handleData
26492
+ });
26448
26493
  }
26449
- _this.setState({
26450
- thresholdList: _handleData
26451
- });
26494
+ return handleData;
26452
26495
  }
26453
- return handleData;
26454
- }
26455
- });
26456
- _context.next = 29;
26457
- break;
26458
- case 16:
26459
- if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26460
- _context.next = 20;
26496
+ });
26497
+ _context.next = 29;
26461
26498
  break;
26462
- }
26463
- _this.setState({
26464
- thresholdList: queryIdentify
26465
- });
26466
- _context.next = 29;
26467
- break;
26468
- case 20:
26469
- if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26470
- _context.next = 24;
26499
+ case 16:
26500
+ if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
26501
+ _context.next = 20;
26502
+ break;
26503
+ }
26504
+ _this.setState({
26505
+ thresholdList: queryIdentify
26506
+ });
26507
+ _context.next = 29;
26471
26508
  break;
26472
- }
26473
- // TODO待处理
26474
- _this.setState({
26475
- thresholdList: []
26476
- });
26477
- _context.next = 29;
26478
- break;
26479
- case 24:
26480
- querParams.queryIdentify = queryIdentify;
26481
- _context.next = 27;
26482
- return getRegularThresholdRange(querParams);
26483
- case 27:
26484
- res = _context.sent;
26485
- if (handleError(res)) {
26509
+ case 20:
26510
+ if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
26511
+ _context.next = 24;
26512
+ break;
26513
+ }
26514
+ // TODO待处理
26486
26515
  _this.setState({
26487
- thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26516
+ thresholdList: []
26488
26517
  });
26489
- }
26490
- case 29:
26491
- case "end":
26492
- return _context.stop();
26518
+ _context.next = 29;
26519
+ break;
26520
+ case 24:
26521
+ querParams.queryIdentify = queryIdentify;
26522
+ _context.next = 27;
26523
+ return getRegularThresholdRange(querParams);
26524
+ case 27:
26525
+ res = _context.sent;
26526
+ if (handleError(res)) {
26527
+ _this.setState({
26528
+ thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
26529
+ });
26530
+ }
26531
+ case 29:
26532
+ case "end":
26533
+ return _context.stop();
26534
+ }
26493
26535
  }
26494
26536
  }, _callee);
26495
26537
  }));
@@ -27308,30 +27350,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27308
27350
  notChangeOnSelect: true,
27309
27351
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
27310
27352
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
27311
- while (1) switch (_context2.prev = _context2.next) {
27312
- case 0:
27313
- _context2.next = 2;
27314
- return bssula.request({
27315
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27316
- method: 'get',
27317
- converter: function converter(_ref3) {
27318
- var data = _ref3.data;
27319
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27320
- return {
27321
- text: item.name,
27322
- value: item.id,
27323
- level: item.level,
27324
- id: item.id
27325
- };
27326
- }) : [];
27327
- return handleData;
27328
- }
27329
- });
27330
- case 2:
27331
- return _context2.abrupt("return", _context2.sent);
27332
- case 3:
27333
- case "end":
27334
- return _context2.stop();
27353
+ while (1) {
27354
+ switch (_context2.prev = _context2.next) {
27355
+ case 0:
27356
+ _context2.next = 2;
27357
+ return bssula.request({
27358
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27359
+ method: 'get',
27360
+ converter: function converter(_ref3) {
27361
+ var data = _ref3.data;
27362
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27363
+ return {
27364
+ text: item.name,
27365
+ value: item.id,
27366
+ level: item.level,
27367
+ id: item.id
27368
+ };
27369
+ }) : [];
27370
+ return handleData;
27371
+ }
27372
+ });
27373
+ case 2:
27374
+ return _context2.abrupt("return", _context2.sent);
27375
+ case 3:
27376
+ case "end":
27377
+ return _context2.stop();
27378
+ }
27335
27379
  }
27336
27380
  }, _callee2);
27337
27381
  })),
@@ -27357,30 +27401,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27357
27401
  notChangeOnSelect: true,
27358
27402
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
27359
27403
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
27360
- while (1) switch (_context3.prev = _context3.next) {
27361
- case 0:
27362
- _context3.next = 2;
27363
- return bssula.request({
27364
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27365
- method: 'get',
27366
- converter: function converter(_ref5) {
27367
- var data = _ref5.data;
27368
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27369
- return {
27370
- text: item.name,
27371
- value: item.id,
27372
- level: item.level,
27373
- id: item.id
27374
- };
27375
- }) : [];
27376
- return handleData;
27377
- }
27378
- });
27379
- case 2:
27380
- return _context3.abrupt("return", _context3.sent);
27381
- case 3:
27382
- case "end":
27383
- return _context3.stop();
27404
+ while (1) {
27405
+ switch (_context3.prev = _context3.next) {
27406
+ case 0:
27407
+ _context3.next = 2;
27408
+ return bssula.request({
27409
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27410
+ method: 'get',
27411
+ converter: function converter(_ref5) {
27412
+ var data = _ref5.data;
27413
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27414
+ return {
27415
+ text: item.name,
27416
+ value: item.id,
27417
+ level: item.level,
27418
+ id: item.id
27419
+ };
27420
+ }) : [];
27421
+ return handleData;
27422
+ }
27423
+ });
27424
+ case 2:
27425
+ return _context3.abrupt("return", _context3.sent);
27426
+ case 3:
27427
+ case "end":
27428
+ return _context3.stop();
27429
+ }
27384
27430
  }
27385
27431
  }, _callee3);
27386
27432
  })),
@@ -27408,30 +27454,32 @@ var RuleField = /*#__PURE__*/function (_Component) {
27408
27454
  notChangeOnSelect: true,
27409
27455
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
27410
27456
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
27411
- while (1) switch (_context4.prev = _context4.next) {
27412
- case 0:
27413
- _context4.next = 2;
27414
- return bssula.request({
27415
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27416
- method: 'get',
27417
- converter: function converter(_ref7) {
27418
- var data = _ref7.data;
27419
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27420
- return {
27421
- text: item.name,
27422
- value: item.id,
27423
- level: item.level,
27424
- id: item.id
27425
- };
27426
- }) : [];
27427
- return handleData;
27428
- }
27429
- });
27430
- case 2:
27431
- return _context4.abrupt("return", _context4.sent);
27432
- case 3:
27433
- case "end":
27434
- return _context4.stop();
27457
+ while (1) {
27458
+ switch (_context4.prev = _context4.next) {
27459
+ case 0:
27460
+ _context4.next = 2;
27461
+ return bssula.request({
27462
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
27463
+ method: 'get',
27464
+ converter: function converter(_ref7) {
27465
+ var data = _ref7.data;
27466
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
27467
+ return {
27468
+ text: item.name,
27469
+ value: item.id,
27470
+ level: item.level,
27471
+ id: item.id
27472
+ };
27473
+ }) : [];
27474
+ return handleData;
27475
+ }
27476
+ });
27477
+ case 2:
27478
+ return _context4.abrupt("return", _context4.sent);
27479
+ case 3:
27480
+ case "end":
27481
+ return _context4.stop();
27482
+ }
27435
27483
  }
27436
27484
  }, _callee4);
27437
27485
  })),
@@ -28548,6 +28596,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
28548
28596
  });
28549
28597
  }
28550
28598
  }
28599
+
28600
+ //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
28551
28601
  }, {
28552
28602
  key: "render",
28553
28603
  value: function render() {
@@ -29378,7 +29428,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29378
29428
  callBack(ruleClassData);
29379
29429
  });
29380
29430
  };
29381
- // 树结构 转化成 平行树 (递归函数)
29382
29431
  _this.coverToParallel = function (treeData, result) {
29383
29432
  treeData.forEach(function (el) {
29384
29433
  result.push(el);
@@ -29632,7 +29681,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29632
29681
  callBack(ruleClassData);
29633
29682
  });
29634
29683
  };
29635
- // 场景需要返回值2022.11.15
29636
29684
  _this.renderResItem = function (itemDetail, parentDetail, ruleReturnConfig, disabled, boxStyle) {
29637
29685
  var _ruleReturnConfig$rig;
29638
29686
  var isShowResponse = itemDetail.response['enable'];
@@ -29930,30 +29978,32 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29930
29978
  notChangeOnSelect: true,
29931
29979
  initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29932
29980
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29933
- while (1) switch (_context.prev = _context.next) {
29934
- case 0:
29935
- _context.next = 2;
29936
- return bssula.request({
29937
- url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29938
- method: 'get',
29939
- converter: function converter(_ref2) {
29940
- var data = _ref2.data;
29941
- var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29942
- return {
29943
- text: item.name,
29944
- value: item.id,
29945
- level: item.level,
29946
- id: item.id
29947
- };
29948
- }) : [];
29949
- return handleData;
29950
- }
29951
- });
29952
- case 2:
29953
- return _context.abrupt("return", _context.sent);
29954
- case 3:
29955
- case "end":
29956
- return _context.stop();
29981
+ while (1) {
29982
+ switch (_context.prev = _context.next) {
29983
+ case 0:
29984
+ _context.next = 2;
29985
+ return bssula.request({
29986
+ url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
29987
+ method: 'get',
29988
+ converter: function converter(_ref2) {
29989
+ var data = _ref2.data;
29990
+ var handleData = data && data[0] ? data === null || data === void 0 ? void 0 : data.map(function (item) {
29991
+ return {
29992
+ text: item.name,
29993
+ value: item.id,
29994
+ level: item.level,
29995
+ id: item.id
29996
+ };
29997
+ }) : [];
29998
+ return handleData;
29999
+ }
30000
+ });
30001
+ case 2:
30002
+ return _context.abrupt("return", _context.sent);
30003
+ case 3:
30004
+ case "end":
30005
+ return _context.stop();
30006
+ }
29957
30007
  }
29958
30008
  }, _callee);
29959
30009
  })),
@@ -30287,7 +30337,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30287
30337
  }
30288
30338
  }, "\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);
30289
30339
  };
30290
- //添加同一层级条件
30291
30340
  _this.addPeerRule = function (itemDetail) {
30292
30341
  var ruleClassData = _this.state.ruleClassData;
30293
30342
  var _this$props4 = _this.props,
@@ -30308,7 +30357,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30308
30357
  callBack(ruleClassData);
30309
30358
  });
30310
30359
  };
30311
- //添加子层级条件
30312
30360
  _this.addChildRules = function (itemDetail) {
30313
30361
  var ruleClassData = _this.state.ruleClassData;
30314
30362
  var callBack = _this.props.callBack;
@@ -30384,7 +30432,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
30384
30432
  callBack(ruleClassData);
30385
30433
  });
30386
30434
  };
30387
- // 新增执行顺序
30388
30435
  _this.handleSelectRuleAction = function (keys, classDataIndex, callback) {
30389
30436
  callback();
30390
30437
  var callBack = _this.props.callBack;
@@ -30541,26 +30588,26 @@ exports.AddSkuSelect = AddSkuSelect;
30541
30588
  exports.AddSpuSelect = AddSpuSelect;
30542
30589
  exports.BillEntry = BillEntry;
30543
30590
  exports.BsCascader = BsCascader;
30544
- exports.BsLayout = index$6;
30591
+ exports.BsLayout = index$5;
30545
30592
  exports.BsSulaQueryTable = BsSulaQueryTable;
30546
30593
  exports.BusinessSearchSelect = BusinessSearchSelect$1;
30547
30594
  exports.BusinessTreeSearchSelect = BusinessTreeSearchSelect$1;
30548
- exports.CheckOneUser = index$2;
30595
+ exports.CheckOneUser = index$1;
30549
30596
  exports.ColumnSettingTable = ColumnSettingTable;
30550
30597
  exports.CommodityEntry = CommodityEntry;
30551
30598
  exports.DataImport = DataImport;
30552
30599
  exports.DataValidation = DataValidation;
30553
- exports.DetailPageWrapper = index$4;
30600
+ exports.DetailPageWrapper = index$3;
30554
30601
  exports.EllipsisTooltip = EllipsisTooltip;
30555
30602
  exports.ExportIcon = ExportIcon;
30556
30603
  exports.GuideWrapper = GuideWrapper;
30557
- exports.HomePageWrapper = index$5;
30604
+ exports.HomePageWrapper = index$4;
30558
30605
  exports.JsonQueryTable = JsonQueryTable;
30559
- exports.MoreTreeTable = index$7;
30606
+ exports.MoreTreeTable = index$6;
30560
30607
  exports.QueryMutipleInput = QueryMutipleInput;
30561
30608
  exports.RuleComponent = RuleObjectComponent;
30562
30609
  exports.SearchSelect = SearchSelect;
30563
- exports.StateFlow = index$3;
30610
+ exports.StateFlow = index$2;
30564
30611
  exports.SulaColumnSettingTable = ColumnSettingSulaTable;
30565
30612
  exports.TableColumnSetting = TableColumnSetting;
30566
30613
  exports.TreeSearchSelect = TreeSearchSelect;